1.報錯內(nèi)容
make: arm-linux-gnueabihf-gcc:命令未找到
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CC scripts/mod/empty.o
/bin/sh: 1: arm-linux-gnueabihf-gcc: not found
make[2]: *** [scripts/mod/empty.o] 錯誤 127
make[2]: *** 正在等待未完成的任務....
CC scripts/mod/devicetable-offsets.s
/bin/sh: 1: arm-linux-gnueabihf-gcc: not found
make[2]: *** [scripts/mod/devicetable-offsets.s] 錯誤 127
CHK include/generated/utsrelease.h
make[1]: *** [scripts/mod] 錯誤 2
make: *** [scripts] 錯誤 2
make: *** 正在等待未完成的任務.
2.解決辦法
需要在 Makefile 添加完整路徑內(nèi)容:文章來源:http://www.zghlxwxcb.cn/news/detail-781407.html
ARCH ?= arm
CROSS_COMPILE ?= /usr/local/arm/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
3./bin/sh: 1: lzop: not found
/bin/sh: 1: lzop: not found
make[2]: *** [arch/arm/boot/compressed/piggy.lzo] 錯誤 1
make[1]: *** [arch/arm/boot/compressed/vmlinux] 錯誤 2
make: *** [zImage] 錯誤 2
make: *** 正在等待未完成的任務....
MODPOST 77 modules
make: INTERNAL: Exiting with 17 jobserver tokens available; should be 16!
解決辦法:文章來源地址http://www.zghlxwxcb.cn/news/detail-781407.html
sudo apt-get install lzop
4.編譯成功
SHIPPED arch/arm/boot/compressed/lib1funcs.S
SHIPPED arch/arm/boot/compressed/ashldi3.S
SHIPPED arch/arm/boot/compressed/bswapsdi2.S
AS arch/arm/boot/compressed/hyp-stub.o
AS arch/arm/boot/compressed/lib1funcs.o
AS arch/arm/boot/compressed/ashldi3.o
AS arch/arm/boot/compressed/bswapsdi2.o
AS arch/arm/boot/compressed/piggy.lzo.o
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
到了這里,關(guān)于編譯正點原子kernel報錯make: arm-linux-gnueabihf-gcc:命令未找到的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!