【问题标题】:Building U-Boot is failing构建 U-Boot 失败
【发布时间】:2015-12-19 19:17:40
【问题描述】:

我正在尝试构建 u-boot

工具链: http://web.archive.org/web/20130823131954/http://www.angstrom-distribution.org/toolchains/

U-boot: git.denx.de

我正在关注这个网站来构建这个 u-boot

http://beagleboard.org/linux

它说在构建之前放置交叉编译器路径。

export PATH=/usr/local/angstrom/arm/bin:$PATH

1) 我可以在 /usr/local 中看到 angstrom 文件夹。另外我认为我们需要工具链的二进制文件的实际位置。假设在 /home/myhome/BBB/angtrom_x_y_z/usr/local/angstrom/arm/bin

那么实际上我应该导出哪条路径?

2)我尝试同时放置两条路径,但出现错误。

3)我已经下载了三个工具链

 angstrom-2011.03-i686-linux-armv5te-linux-gnueabi-toolchain
 angstrom-2011.03-x86_64-linux-armv7a-linux-gnueabi-toolchain-qte-4.6.3
 angstrom-2011.03-i686-linux-armv7a-linux-gnueabi-toolchain-qte-4.6.3

第一个给出错误

CROSS_COMPILE=arm-angstrom-linux-gnueabi- make am335x_evm
scripts/kconfig/conf  --silentoldconfig Kconfig
  CHK     include/config.h
  GEN     include/autoconf.mk
arm-angstrom-linux-gnueabi-gcc: 0: No such file or directory
arm-angstrom-linux-gnueabi-gcc: unrecognized option '-G'
cc1: error: unrecognized command line option "-mabicalls"
make[1]: *** [include/autoconf.mk] Error 1
make: *** No rule to make target `am335x_evm'.  Stop.

第二个是我认为的 64 位处理器,我有一个 i386,所以它也不起作用

第三个已损坏。

谁能告诉我如何按照网站上的说明编译它。也许这个网站已经过时了,但如果有人能告诉我一个简单的方法如何做到这一点。

【问题讨论】:

    标签: build cross-platform u-boot


    【解决方案1】:

    看起来 Angstorm toolchian 太旧了,无法处理最近的 U-Boot。我尝试了您的程序并收到其他错误。我不确定您为什么尝试使用那个旧工具链以及是否必须使用它。但我很快检查了 Linaro 工具链 gcc-linaro-arm-linux-gnueabihf-4.9-2014.07_linux,它用于 Cubietruck 和 A20-OLinuXino-MICRO 之类的板子,它工作正常。

    git clone git://git.denx.de/u-boot.git
    cd u-boot
    export PATH=${PATH}:${PATH_TO_TOOLCHAIN}/gcc-linaro-arm-linux-gnueabihf-4.9-2014.07_linux/bin
    CROSS_COMPILE=arm-linux-gnueabihf- make am335x_evm_defconfig
    CROSS_COMPILE=arm-linux-gnueabihf- make -j$(nproc)
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-03-10
      • 2018-10-09
      • 1970-01-01
      • 2023-01-23
      • 2018-09-24
      • 2018-03-22
      • 2021-05-22
      相关资源
      最近更新 更多