uboot1.1.6移植问题

[复制链接]
2316|5
 楼主| stubit 发表于 2011-6-30 13:35 | 显示全部楼层 |阅读模式
请教诸位个问题,我买的开发板,按照说明书做的移植,过程如下,
1,board目录下创建ljd2410目录,然后把smdk2410里的内容复制进去,再把smdk2410.c重命名为ljd2410.c
2,include/configs目录下的smdk2410.h复制一个ljd2410.h
3,修改主目录下的Makefile。
4,开始配置,编译。
结果是如果我编译smdk2410就能通过,编译我自己移植的ljd2410就不能过,出错信息如下
interrupts.c: In function `interrupt_init':
interrupts.c:63: error: `CFG_HZ_CLOCK' undeclared (first use in this function)
interrupts.c:63: error: (Each undeclared identifier is reported only once
interrupts.c:63: error: for each function it appears in.)
interrupts.c: In function `get_timer_raw':
interrupts.c:111: error: `CFG_HZ_CLOCK' undeclared (first use in this function)
interrupts.c: In function `get_timer_masked':
interrupts.c:120: error: `CFG_HZ_CLOCK' undeclared (first use in this function)
interrupts.c: In function `udelay_masked':
interrupts.c:129: error: `CFG_HZ_CLOCK' undeclared (first use in this function)
interrupts.c: In function `reset_cpu':
interrupts.c:183: error: `us' undeclared (first use in this function)
make[1]: *** [interrupts.o] Error 1
make[1]: Leaving directory `/root/test/uboot/u-boot-1.1.6/cpu/arm920t/at91rm9200'
make: *** [cpu/arm920t/at91rm9200/libat91rm9200.a] Error 2
哪位高手帮忙看看,烦劳赐教。
 楼主| stubit 发表于 2011-7-1 14:10 | 显示全部楼层
就算不知道也回复个猜想吧,我实在是调的郁闷
hys0401 发表于 2011-7-1 20:33 | 显示全部楼层
interrupts.c还有头文件未包括进来?
 楼主| stubit 发表于 2011-7-3 10:39 | 显示全部楼层
是啊,我看了下这几个变量的定义都在/includes/configs目录下的at91rm9200dk.h文件里。我是做VC+单片机的,现在想做点Linux+ARM,不太适应Linux的没有集成开发环境,不知该怎么调的好。
 楼主| stubit 发表于 2011-7-3 10:51 | 显示全部楼层
有在北京的高手吗?当面请教,请吃饭。
 楼主| stubit 发表于 2011-7-3 17:33 | 显示全部楼层
搞定了,犯了个小错误,主目录的Makefile里的ljd2410_config添加的靠前了,编译顺序出了些问题。
虽然问题解决了,可感觉还是不太会调Linux下的大的工程文件,这个还希望能有人指点下。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

0

主题

5

帖子

1

粉丝
快速回复 在线客服 返回列表 返回顶部