beagle 骨板 u-boot 编译错误(我使用 Ubuntu 平台)

问题描述 投票:0回答:1

成功硬编码板 ID 后。 在第3步构建U-boot时出现错误

我尝试编译U-BOOT并且 我成功编译了以下两个步骤。

make ARCH=arm CROSS_COMPILE=${CC} distclean
make ARCH=arm CROSS_COMPILE=${CC} am335x_evm_defconfig

但是第三步就是 ----

make ARCH=arm CROSS_COMPILE=${CC}

在上述步骤中我收到如下所述的错误

**cc1: error: unknown value ‘generic-armv7-a’ for -mtune**
Kbuild:43: recipe for target 'lib/asm-offsets.s' failed   
make[1]: *** [lib/asm-offsets.s] Error 1
Makefile:1588: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2
embedded-linux beagleboneblack u-boot
1个回答
0
投票

am335x_evm_defconfig 是一个 32 位 ARM 板。您需要安装适当的交叉编译器。在 Ubuntu 上:

sudo apt-get install gcc-arm-linux-gnueabi

构建时需要引用交叉构建工具:

make mrproper
make am335x_evm_defconfig
make CROSS_COMPILE=arm-linux-gnueabi-

https://u-boot.readthedocs.io/en/latest/build/gcc.html有更多细节。

© www.soinside.com 2019 - 2024. All rights reserved.