首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 嵌入开发 > 嵌入开发 >

急大家帮小弟我看看啊错了很久了

2012-03-18 
急!!~~大家帮我看看啊,错了很久了我用的飞思卡尔的IMX21的板子,现在要移植2.6的内核上去,但是编译的时候在

急!!~~大家帮我看看啊,错了很久了
我用的飞思卡尔的IMX21的板子,现在要移植2.6的内核上去,但是编译的时候在这里一直通不过,请大家帮忙看看,谢谢了
CHK include/linux/compile.h
AS arch/arm/kernel/head.o
arch/arm/kernel/head.S: Assembler messages:
arch/arm/kernel/head.S:267: Error: missing ')'
arch/arm/kernel/head.S:267: Error: missing ')'
arch/arm/kernel/head.S:267: Error: missing ')'
arch/arm/kernel/head.S:267: Error: garbage following instruction -- `ldr r4,=(((0xc0000000UL)+0x00008000)-0x4000)'
arch/arm/kernel/head.S:332: Error: missing ')'
arch/arm/kernel/head.S:332: Error: missing ')'
arch/arm/kernel/head.S:332: Error: garbage following instruction -- `orr r6,r7,#((0xc0000000UL)&0xff000000)'
arch/arm/kernel/head.S:333: Error: missing ')'
arch/arm/kernel/head.S:333: Error: missing ')'
arch/arm/kernel/head.S:333: Error: junk at end of line, first unrecognized character is `U'
arch/arm/kernel/head.S:334: Error: missing ')'
arch/arm/kernel/head.S:334: Error: missing ')'
arch/arm/kernel/head.S:334: Error: garbage following instruction -- `orr r6,r6,#((0xc0000000UL)&0x00f00000)'
make[1]: *** [arch/arm/kernel/head.o] Error 1
make: *** [arch/arm/kernel] Error 2


[解决办法]

探讨
谢谢各位,我已经解决了,是编译器宏定义之间的不同造成的,呵呵,
老版本里是 #define PHYS_OFFSET UL(0xc0000000)
新版本是 #define PHYS_OFFSET (0xc0000000UL)

热点排行