天嵌 ARM开发社区

 找回密码
 注册
查看: 2221|回复: 3

E9 Ubuntu系统 内核编译

[复制链接]
围墙里的鱼 发表于 2015-4-14 21:06:23 | 显示全部楼层 |阅读模式
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      COPYING  Documentation  fs           init    Kconfig  localversion  mm      REPORTING-BUGS  security  usr
block     CREDITS  drivers        imx6_config  ipc     kernel   MAINTAINERS   net     samples         sound     virt
build.sh  crypto   firmware       include      Kbuild  lib      Makefile      README  scripts         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[1]: `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[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] 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的参数设置进行修改。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号 )

GMT+8, 2024-5-6 06:23 , Processed in 1.062500 second(s), 19 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表