围墙里的鱼 发表于 2015-4-14 21:06:23

E9 Ubuntu系统 内核编译

E9内核 直接执行make uImage编译,无法通过,会报错:
我编译kernel时,直接输入make uImage,返回如下错误:
root@ubuntu:/opt/Embedsky/TQIMX6/E9/Ubuntu# cd linux_E9_3.0.35_for_Ubuntu/
root@ubuntu:/opt/Embedsky/TQIMX6/E9/Ubuntu/linux_E9_3.0.35_for_Ubuntu# ls
arch      COPYINGDocumentationfs         init    Kconfiglocalversionmm      REPORTING-BUGSsecurityusr
block   CREDITSdrivers      imx6_configipc   kernel   MAINTAINERS   net   samples         sound   virt
build.shcrypto   firmware       include      Kbuildlib      Makefile      READMEscripts         tools
root@ubuntu:/opt/Embedsky/TQIMX6/E9/Ubuntu/linux_E9_3.0.35_for_Ubuntu# make uImage
CHK   include/linux/version.h
CHK   include/generated/utsrelease.h
make: `include/generated/mach-types.h' is up to date.
CC      kernel/bounds.s
cc1: error: unrecognized command line option "-mlittle-endian"
cc1: error: unrecognized command line option "-mno-thumb-interwork"
kernel/bounds.c:1: error: unknown ABI (aapcs-linux) for -mabi= switch
kernel/bounds.c:1: error: bad value (armv5t) for -march= switch
kernel/bounds.c:1: error: bad value (armv5t) for -mtune= switch
make: *** Error 1
make: *** Error 2
root@ubuntu:/opt/Embedsky/TQIMX6/E9/Ubuntu/linux_E9_3.0.35_for_Ubuntu#


如果使用build.sh,可以成功编译,但是这是ARM交叉编译,编译出来的内核无法作为ubuntu的内核烧写文件执行。

请问如何编译ubuntu系统的kernel烧写文件?

TQ-ZQL 发表于 2015-4-16 08:49:56

ubuntu也是直接使用build.sh编译的,跟qt的内核是一样的编译方法 ,只是内核不一样.

zeze0556 发表于 2015-6-2 21:40:51

上面的错误的原因是编译器不对。攒积分升级

闲云野鹤 发表于 2015-7-15 11:16:46

交叉编译器设置不当,用文本编辑器打开Makefile, 找到CROSS_COMPILE的参数设置进行修改。
页: [1]
查看完整版本: E9 Ubuntu系统 内核编译