|
4510B移植2.6.11.8出现问题
4510B移植linux2.6.11.8出错,请求帮助
我按照这里得 http://bbs.edw.com.cn/dispbbs.asp?B...id=46160&skin=1
得一些步骤改得
但没有修改这里:
修改linux-2.6.x/arch/armnommu/arch/kernel/vmlinux-lds, 添加romfs.o
78 *(.got) /* Global offset table */
79
80 romfs_start = .;
81 romfs.o
82 romfs_end = .;
修改linux-2.6.x/arch/armnommu/kernel/setup.c,添加变量romfs_start,romfs_end及设置default_command_line
64 extern int _stext, _text, _etext, _edata, _end;
65 extern int romfs_start,romfs_end;
682 char *from = default_command_line;
683 sprintf(default_command_line, "root=/dev/ram0 initrd=0x%08lx,%ldk keepinitrd", (unsigned
long)&romfs_start,((unsigned long)&romfs_end - (unsigned long)&romfs_start)>>10);
结果出现下面得错误:
make -C tools/ucfront
make[1]: Entering directory `/root/uClinux-dist-test/tools/ucfront'
make[1]: `ucfront' is up to date.
make[1]: Leaving directory `/root/uClinux-dist-test/tools/ucfront'
ln -sf /root/uClinux-dist-test/tools/ucfront/ucfront tools/ucfront-gcc
ln -sf /root/uClinux-dist-test/tools/ucfront/ucfront tools/ucfront-g++
make ARCH=arm CROSS_COMPILE=arm-uclinux- -C linux-2.6.x || exit 1
make[1]: Entering directory `/root/uClinux-dist-test/linux-2.6.x'
CHK include/linux/version.h
CC arch/arm/kernel/asm-offsets.s
In file included from arch/arm/kernel/asm-offsets.c:13:
include/linux/sched.h: In function `arch_pick_mmap_layout':
include/linux/sched.h:1174: error: `TASK_UNMAPPED_BASE' undeclared (first use in this function)
include/linux/sched.h:1174: error: (Each undeclared identifier is reported only once
include/linux/sched.h:1174: error: for each function it appears in.)
make[2]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 2
make[1]: Leaving directory `/root/uClinux-dist-test/linux-2.6.x'
make: *** [linux] Error 1
请问各位这是什么错误?请求各位帮忙 |
|