天嵌 ARM开发社区

 找回密码
 注册
查看: 1939|回复: 5

TQ2440中,Linux移植把开发板当U盘使用有问题

[复制链接]
wwlaoxi 发表于 2012-3-23 17:22:14 | 显示全部楼层 |阅读模式
       我的内核使用的是2.6.30.4, 按照教程LINUX移植之STEP之STEP时,发现在14.3节中的把开发板当U盘的功能有问题,按照说明书把内核源码修改后,总是报错生不成内核的镜像文件,如果把修改的地方屏蔽掉就可以生成镜像文件了,请求解答。
 楼主| wwlaoxi 发表于 2012-3-23 17:42:47 | 显示全部楼层
补充一下,就是14.3中把开发板当U盘使用1,修改源码
 楼主| wwlaoxi 发表于 2012-3-23 17:57:17 | 显示全部楼层
补充一下报的错误:
arch/arm/mach-s3c2440/mach-smdk2440.c:302: error: parameter 1 ('cmd') has incomplete type
arch/arm/mach-s3c2440/mach-smdk2440.c:322: error: expected ',' or ';' before 'static'
arch/arm/mach-s3c2440/mach-smdk2440.c: In function 'smdk2440_machine_init':
arch/arm/mach-s3c2440/mach-smdk2440.c:346: error: 'smdk2440_devices' undeclared (first use in this function)
arch/arm/mach-s3c2440/mach-smdk2440.c:346: error: (Each undeclared identifier is reported only once
rch/arm/mach-s3c2440/mach-smdk2440.c:346: error: for each function it appears in.)
arch/arm/mach-s3c2440/mach-smdk2440.c:346: warning: type defaults to 'int' in declaration of 'type name'
arch/arm/mach-s3c2440/mach-smdk2440.c:346: warning: type defaults to 'int' in declaration of 'type name'
arch/arm/mach-s3c2440/mach-smdk2440.c:346: error: size of array 'type name' is negative
arch/arm/mach-s3c2440/mach-smdk2440.c:349: error: 'S3C2410_GPGIO_OUTPUT' undeclared (first use in this function)
make[1]: *** [arch/arm/mach-s3c2440/mach-smdk2440.o] 错误 1
make: *** [arch/arm/mach-s3c2440] 错误 2
TQ-ZQL 发表于 2012-3-23 18:09:35 | 显示全部楼层
是不是udc的相关头文件没有添加?
 楼主| wwlaoxi 发表于 2012-3-23 18:28:29 | 显示全部楼层
哦,不是。那个加了,主要是我一个是程序的位置没放好,另一个打错一个字母已经解决了,谢谢了啊
亚瑟王 发表于 2012-3-26 12:26:58 | 显示全部楼层
wwlaoxi 发表于 2012-3-23 18:28
哦,不是。那个加了,主要是我一个是程序的位置没放好,另一个打错一个字母已经解决了,谢谢了啊

呵呵,亲,要注意细节啊。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-10-7 04:34 , Processed in 1.045938 second(s), 18 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

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