主题 : Tiny210V2提供的linux3.0.8和linux2.6.35的编译内核模块时有错误,请技术支持或者大牛解答一下。 复制链接 | 浏览器收藏 | 打印
哈哈
级别: 新手上路
UID: 88528
精华: 0
发帖: 32
金钱: 170 两
威望: 34 点
综合积分: 64 分
注册时间: 2013-03-11
最后登录: 2013-09-17
楼主  发表于: 2013-03-15 14:04

 Tiny210V2提供的linux3.0.8和linux2.6.35的编译内核模块时有错误,请技术支持或者大牛解答一下。


本想把友善提供的linux内核编译成内核模块,以便再编译驱动模块时加载,但是运行make modules出现错误:

The present kernel configuration has modules disabled.
Type 'make config' and enable loadable module support.
Then build a kernel with module support enabled.

用make menuconfig 选中enable loadable module support选项后出现错误:

zhang@ubuntu:/work/linux-2.6.35.7$ sudo make modules
scripts/kconfig/conf -s arch/arm/Kconfig
  CHK     include/linux/version.h
  UPD     include/linux/version.h
  CHK     include/generated/utsrelease.h
  UPD     include/generated/utsrelease.h
  Generating include/generated/mach-types.h
  CC      kernel/bounds.s
cc1: error: unrecognized command line option "-mlittle-endian"
cc1: error: unrecognized command line option "-mapcs"
cc1: error: unrecognized command line option "-mno-sched-prolog"
kernel/bounds.c:1: error: unknown ABI (apcs-gnu) for -mabi= switch
kernel/bounds.c:1: error: bad value (armv4t) for -march= switch
kernel/bounds.c:1: error: bad value (arm9tdmi) for -mtune= switch
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
zhang@ubuntu:/work/linux-2.6.35.7$

是因为我ubuntu10.10版本低,还是什么情况,敬请解答.
哈哈
级别: 新手上路
UID: 88528
精华: 0
发帖: 32
金钱: 170 两
威望: 34 点
综合积分: 64 分
注册时间: 2013-03-11
最后登录: 2013-09-17
1楼  发表于: 2013-03-15 14:10

 回 楼主(nciae24) 的帖子

追问一下
Tiny210v2的用户手册中说编译内核的命令:
#cd /opt/FriendlyARM/tiny210/android/linux-3.0.8
#cpmini210_linux_defconfig   .config   ;注意config 前面有个”.”

第二条命令是啥意思啊,cp不是复制命令吗?实际运行这个命令也运行不了!
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
2楼  发表于: 2013-04-11 13:10

 回 1楼(nciae24) 的帖子

正确的命令行语法是
#cp mini210_linux_defconfig .config
作用是把当前目录下的mini210_linux_defconfig的文件复制为.config文件。make menuconfig的时候会加载.config文件作为默认的配置,用户可以通过menuconfig的界面修改这个默认的配置。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
哈哈
级别: 新手上路
UID: 88528
精华: 0
发帖: 32
金钱: 170 两
威望: 34 点
综合积分: 64 分
注册时间: 2013-03-11
最后登录: 2013-09-17
3楼  发表于: 2013-04-17 13:16

 回 2楼(kasim) 的帖子

3Ks