arm-linux内核编译及其问题解决

若编译内核出现如下情况

    LD      .tmp_vmlinux1
arm-linux-ld:arch/arm/kernel/vmlinux.lds:812: parse error
make: *** [.tmp_vmlinux1] 错误 1

解决方法:修改arch/arm/kernel/vmlinux.lds
[root@localhost linux-2.6.14]$gedit arch/arm/kernel/vmlinux.lds
将文件尾2条的ASSERT注释掉

不能使用 ‘//’而应该使用‘/**/’

/* ASSERT((__proc_info_end - __proc_info_begin), "missing CPU support") */
/* ASSERT((__arch_info_end - __arch_info_begin), "no machine record defined") */
然后重新make即可


其他一些参考文字
http://hi.baidu.com/maple5214/blog/item/86821a2a6a9f30395243c1f3.html

你可能感兴趣的:(c)