编译内核 报错 -mlittle-endian
cc1: error: unrecognized command line option "-mlittle-endian"
cc1: error: unrecognized command line option "-mapcs"
cc1: error: unrecognized command line option "-mno-sched-prolog"
cc1: error: unrecognized command line option "-mabi=aapcs-linux"
cc1: error: unrecognized command line option "-mno-thumb-interwork"
arch/arm/kernel/asm-offsets.c:1: error: bad value (armv5t) for -march= switch
arch/arm/kernel/asm-offsets.c:1: error: bad value (strongarm) for -mtune= switch
---------------------
交叉编译内核出现
cc1: error: unrecognized command line option "-mlittle-endian"
解决办法:
命令行加入 ARCH=arm CROSS_COMPILE="arm-linux-"或
export CROSS_COMPILE="arm-linux-"
export ARCH=arm
make zImage
======================================
garbage following instruction -- `dmb ish'
2017年10月13日 00:58:15 with_dream 阅读数:1292
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/with_dream/article/details/78221378
编译linux kernel 4.4,报garbage following instruction – `dmb ish’
解决:
编译器问题。更换编译器即可。
sudo apt-get install gcc-arm-linux-gnueabi
编译内核时,修改编译器:
ARCH ?= arm
CROSS_COMPILE ?= arm-linux-gnueabi-
保存后执行make uImage。