天嵌 ARM开发社区

 找回密码
 注册
查看: 2751|回复: 6

网卡驱动移植的问题?

[复制链接]
feixue2588 发表于 2010-8-9 20:56:19 | 显示全部楼层 |阅读模式
我用的是2.6.30.4的内核,按照手册上修改了“arch/arm/mach-s3c2440/mach-smdk2440.c”和“drivers/net/dm9000.c”这两个文件,然后配置了内核,但是在编译内核时出现了这样的问题:
arch/arm/mach-s3c2440/mach-smdk2440.c:155: error: 'tq2440_lcd_cfg' undeclared here (not in a function)
make[1]: *** [arch/arm/mach-s3c2440/mach-smdk2440.o] Error 1
make: *** [arch/arm/mach-s3c2440] Error 2

请问怎么解决??
 楼主| feixue2588 发表于 2010-8-9 22:19:14 | 显示全部楼层
我把step13里所有的“tq”都改成“smdk”,错误就消失了,我是个新手,不太明白这是怎么回事,难道是天嵌的手册写错了???
随后又出现了新的问题:
drivers/net/dm9000.c: In function 'dm9000_probe':
 drivers/net/dm9000.c:1356: error: 'struct net_device' has no member named 'open'
 drivers/net/dm9000.c:1357: error: 'struct net_device' has no member named 'hard_start_xmit'
 drivers/net/dm9000.c:1358: error: 'struct net_device' has no member named 'tx_timeout'
 drivers/net/dm9000.c:1360: error: 'struct net_device' has no member named 'stop'
 drivers/net/dm9000.c:1361: error: 'struct net_device' has no member named 'set_multicast_list'
 drivers/net/dm9000.c:1363: error: 'struct net_device' has no member named 'do_ioctl'
 make[2]: *** [drivers/net/dm9000.o] Error 1
 make[1]: *** [drivers/net] Error 2
 make: *** [drivers] Error 2
经查证,原来配置选项里有一个默认选项“Enable older network device API campatibility”被我取消了,再选上就好了,先在已经成功编译出内核镜像。
回复

使用道具 举报

arm2010 发表于 2010-8-9 22:22:37 | 显示全部楼层
我的没有tq2440_lcd_cfg这个东西的....
回复

使用道具 举报

wuchguang 发表于 2010-9-2 12:01:07 | 显示全部楼层
2# feixue2588


手册里没有讲到tq2440_lcd_cfg 这个地方要修改,出现的错误可能是配置产生的。
回复

使用道具 举报

天嵌_support1 发表于 2010-9-2 12:28:26 | 显示全部楼层
3# arm2010


这个结构体tq2440_lcd_cfg 在 arch/arm/mach-s3c2440/mach-tq2440.c里定义的了
回复

使用道具 举报

fchlong 发表于 2012-5-5 23:06:04 | 显示全部楼层
我也遇到这个问题,选项“Enable older network device API campatibility在手册13.3节是没说要配置的,在附录中是选中的。因此如果只根据13.3节的来操作,会引起错误。希望能将手册改正。
回复

使用道具 举报

李华伟 发表于 2012-5-6 08:31:44 | 显示全部楼层
很实用~:):):):)
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2025-6-20 14:26 , Processed in 2.116699 second(s), 20 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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