免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 14375 | 回复: 10
打印 上一主题 下一主题

模块编译问题 mipsel-linux-uclibc-gcc: unrecognized option `-EL' [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-03-20 12:41 |只看该作者 |倒序浏览
5可用积分
make -C /home/will/BCM97452/stblinux-2.6.12-5.0 SUBDIRS=/home/will/BCM97452/LinuxUSB_AR2524-3.0.0.56/ar2524drv modules
make[1]: Entering directory `/home/will/BCM97452/stblinux-2.6.12-5.0'

  WARNING: Symbol version dump /home/will/BCM97452/stblinux-2.6.12-5.0/Module.symvers
           is missing; modules will have no dependencies and modversions.

  CC [M]  /home/will/BCM97452/LinuxUSB_AR2524-3.0.0.56/ar2524drv/src/zd1205.o
mipsel-linux-uclibc-gcc: unrecognized option `-EL'
cc1: error: invalid option `cpu=r4600'
make[2]: *** [/home/will/BCM97452/LinuxUSB_AR2524-3.0.0.56/ar2524drv/src/zd1205.o] Error 1
make[1]: *** [_module_/home/will/BCM97452/LinuxUSB_AR2524-3.0.0.56/ar2524drv] Error 2
make[1]: Leaving directory `/home/will/BCM97452/stblinux-2.6.12-5.0'
make: *** [all] Error 2

论坛徽章:
5
2 [报告]
发表于 2009-03-20 13:01 |只看该作者
Makefile中指定了cpu=r4600???

论坛徽章:
0
3 [报告]
发表于 2009-03-20 13:02 |只看该作者

回复 #2 yidou 的帖子

没有啊

论坛徽章:
5
4 [报告]
发表于 2009-03-20 13:13 |只看该作者
在你的目录中, grep r4600, 看看在哪个文件里

论坛徽章:
0
5 [报告]
发表于 2009-03-20 13:49 |只看该作者

回复 #4 yidou 的帖子

[root@rw stblinux-2.6.12-5.0]# find -type f|xargs grep -n "r4600"
./arch/mips/Makefile:179:                       $(call set_gccflags,r4100,mips3,r4600,mips3,mips2) \
./arch/mips/Makefile:183:                       $(call set_gccflags,r4600,mips3,r4600,mips3,mips2) \
./arch/mips/Makefile:187:                       $(call set_gccflags,r4600,mips3,r4600,mips3,mips2)  \
./arch/mips/Makefile:195:                       $(call set_gccflags,mips32,mips32,r4600,mips3,mips2) \
./arch/mips/Makefile:199:                       $(call set_gccflags,mips64,mips64,r4600,mips3,mips2) \
./arch/mips/mm/c-r4k.c:252:#define cpu_is_r4600_v1_x()  ((read_c0_prid() & 0xfffffff0) == 0x2010)
./arch/mips/mm/c-r4k.c:253:#define cpu_is_r4600_v2_x()  ((read_c0_prid() & 0xfffffff0) == 0x2020)
./arch/mips/mm/c-r4k.c:257:     if (R4600_V2_HIT_CACHEOP_WAR && cpu_is_r4600_v2_x())            \
./arch/mips/mm/c-r4k.c:329:static inline void blast_r4600_v1_icache32(void)
./arch/mips/mm/c-r4k.c:359:static inline void blast_icache32_r4600_v1_page_indexed(unsigned long page)
./arch/mips/mm/c-r4k.c:416:             else if (R4600_V1_INDEX_ICACHEOP_WAR && cpu_is_r4600_v1_x())
./arch/mips/mm/c-r4k.c:418:                             blast_icache32_r4600_v1_page_indexed;
./arch/mips/mm/c-r4k.c:435:             if (R4600_V1_INDEX_ICACHEOP_WAR && cpu_is_r4600_v1_x())
./arch/mips/mm/c-r4k.c:436:                     r4k_blast_icache = blast_r4600_v1_icache32;

然后怎么办啊?

论坛徽章:
5
6 [报告]
发表于 2009-03-20 14:50 |只看该作者
./arch/mips/Makefile:179:                       $(call set_gccflags,r4100,mips3,r4600,mips3,mips2) \
./arch/mips/Makefile:183:                       $(call set_gccflags,r4600,mips3,r4600,mips3,mips2) \
./arch/mips/Makefile:187:                       $(call set_gccflags,r4600,mips3,r4600,mips3,mips2)  \
./arch/mips/Makefile:195:                       $(call set_gccflags,mips32,mips32,r4600,mips3,mips2) \
./arch/mips/Makefile:199:                       $(call set_gccflags,mips64,mips64,r4600,mips3,mips2) \

这些应该是设置GCC编译时的处理器选项. 你研究一下. 这点信息我看不出来.

论坛徽章:
0
7 [报告]
发表于 2009-03-20 15:16 |只看该作者

回复 #6 yidou 的帖子

搞定了!原来是要编译内核

我以为在2.6上编译模块只需要配置内核选项就好了,搞了半天,原来还要编译出内核才行。

可书上说只需要配置内核的,兄弟,你有什么看法没?

论坛徽章:
5
8 [报告]
发表于 2009-03-20 15:32 |只看该作者
编译完内核后, WARNING: Symbol version dump /home/will/BCM97452/stblinux-2.6.12-5.0/Module.symvers
文件生成了吧?

论坛徽章:
0
9 [报告]
发表于 2009-03-20 16:20 |只看该作者

回复 #8 yidou 的帖子

对!生成了!编译模块一定要这个Module.symvers吗?

论坛徽章:
5
10 [报告]
发表于 2009-03-20 16:48 |只看该作者
原帖由 todayrw 于 2009/3/20 16:20 发表
对!生成了!编译模块一定要这个Module.symvers吗?


内核要生成好几个文件, 给编译module时用.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP