主机 PC 中启动的依赖关系是什么?



我正在尝试在Cygwin上交叉编译u-boot。但是在安装了 arm 工具链后,我发现仍然缺少大量需要的库。例如,弹性野牛...

我在 you-boot 的自述文件中搜索了这些,但没有看到这样的关键字。那么是否有关于构建入门和主机要求的文档?

在 VirtualBox 6.1.0 中从 lubuntu-18.04-desktop-amd64 启动的实时 Lubuntu 系统上.iso可以通过以下命令安装所需的依赖项:

sudo apt install make gcc bison flex device-tree-compiler python3-distutils swig python3-dev

在实时 lubuntu-18.04-desktop-amd64 系统上构建最新 u-boot 的过程可以是:

# Using lubuntu-18.04-desktop-amd64.iso ISO image
wget "https://developer.arm.com/-/media/Files/downloads/gnu-a/9.2-2019.12/binrel/gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf.tar.xz?revision=fed31ee5-2ed7-40c8-9e0e-474299a3c4ac&la=en&hash=76DAF56606E7CB66CC5B5B33D8FB90D9F24C9D20"  -O gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf.tar.xz
sudo mkdir -p /opt/arm/9
sudo tar Jxf gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf.tar.xz -C /opt/arm/9
wget https://github.com/u-boot/u-boot/archive/v2020.01.tar.gz
tar zxf v2020.01.tar.gz
# in the case we would run live fron an ISO image
rm  https://github.com/u-boot/u-boot/archive/v2020.01.tar.gz v2020.01.tar.gz
sudo apt install make gcc bison flex device-tree-compiler python3-distutils swig python3-dev
make -C u-boot-2020.01 CROSS_COMPILE=/opt/arm/9/gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf/bin/arm-none-linux-gnueabihf- mrproper nanopi_m1_defconfig  all
ls -g -G u-boot-2020.01/u-boot.*
-rw-rw-r-- 1  423674 Jan 10 20:16 u-boot-2020.01/u-boot.bin
-rw-rw-r-- 1   13103 Jan 10 20:15 u-boot-2020.01/u-boot.cfg
-rw-rw-r-- 1    8053 Jan 10 20:16 u-boot-2020.01/u-boot.cfg.configs
-rw-rw-r-- 1   19970 Jan 10 20:16 u-boot-2020.01/u-boot.dtb
-rw-rw-r-- 1   20113 Jan 10 20:16 u-boot-2020.01/u-boot.dtb.out
-rw-rw-r-- 1  423738 Jan 10 20:16 u-boot-2020.01/u-boot.img
-rw-rw-r-- 1    2343 Jan 10 20:16 u-boot-2020.01/u-boot.lds
-rw-rw-r-- 1  615871 Jan 10 20:16 u-boot-2020.01/u-boot.map
-rwxrwxr-x 1 1211266 Jan 10 20:16 u-boot-2020.01/u-boot.srec
-rw-rw-r-- 1  164646 Jan 10 20:16 u-boot-2020.01/u-boot.sym

如果在Cygwin上构建不是你的最终目标,我强烈建议在Windows PC上使用VirtualBox或WSL:你将节省大量时间,并确保你能够构建u-boot。

最新更新