打印
[ZLG-ARM]

ARM2200的uCLinux系统配置,编译内核时遇到的问题

[复制链接]
2107|4
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
letfly|  楼主 | 2009-9-25 18:16 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
按照实验指导书所给的步骤,打上了lpc2200的补丁之后要进行uCLinux和文件系统的配置,首先要通过文本菜单方式配置uCLinux:
make menuconfig
这一步执行的没有任何问题,设置了处理器型号,内核版本和函数库版本就行了,然后就是建立源代码之间的依赖关系:
make dep
这一步也没有任何问题,关键在下一步,编译内核:
make
执行这个命令后本应该在终端所在目录生成两个文件系统目录的,结果出错了,提示是:
arm-elf-gcc -D__KERNEL__ -I/usr/src/uClinux-dist/linux-2.4.x/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fno-common -pipe -fno-builtin -D__linux__ -g -DNO_MM -mapcs-32 -mtune=arm7tdmi -mshort-load-bytes -msoft-float -nostdinc -iwithprefix include -DKBUILD_BASENAME=io -c -o io.o io.c
io.c:35: parse error before `('
io.c:39: warning: type defaults to `int' in declaration of `__v'
io.c:39: warning: data definition has no type or storage class
io.c:39: parse error before `}'
io.c:42: parse error before `('
io.c:47: warning: type defaults to `int' in declaration of `__v'
io.c:47: warning: data definition has no type or storage class
io.c:47: parse error before `}'
io.c:50: parse error before `('
io.c:54: warning: type defaults to `int' in declaration of `__v'
io.c:54: warning: data definition has no type or storage class
io.c:54: parse error before `}'
io.c:57: parse error before `('
io.c:65: parse error before `('
io.c:73: parse error before `('
make[3]: *** [io.o] 错误 1
make[3]:正在离开目录 `/usr/src/uClinux-dist/linux-2.4.x/arch/armnommu/mach-dsc21'
make[2]: *** [first_rule] 错误 2
make[2]:正在离开目录 `/usr/src/uClinux-dist/linux-2.4.x/arch/armnommu/mach-dsc21'
make[1]: *** [_dir_arch/armnommu/mach-dsc21] 错误 2
make[1]:正在离开目录 `/usr/src/uClinux-dist/linux-2.4.x'
make: *** [linux] 错误 1
我查看了IO.C文件,并没有发现提示所说的 错误,请问这是怎呒么回事,该如何解决 ?
谢谢! 比较急,在线等

相关帖子

沙发
cpwander| | 2010-1-18 10:07 | 只看该作者
LZ是在easyarm2200上跑uclinux吗?我前段时间也试过,编译没有问题了,只是运行到init,启动shell的时候出了问题!
  LZ编译怎么会和mach-dsc21有关呢?奇怪

使用特权

评论回复
板凳
手写识别| | 2010-1-18 14:36 | 只看该作者
内核写的有问题吧

使用特权

评论回复
地板
swolf| | 2010-1-18 19:28 | 只看该作者
内核写的有问题吧
手写识别 发表于 2010-1-18 14:36

再仔细看看。

使用特权

评论回复
5
五谷道场| | 2010-2-10 23:00 | 只看该作者
十有**是内核写的有问题

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

8

主题

10

帖子

1

粉丝