OpenVINOTM,给你看得见的未来!>>
电子产品世界 » 论坛首页 » 嵌入式开发 » MCU » 4510B移植linux2.6.11.8出错,请求帮助

共2条 1/1 1 跳转至

4510B移植linux2.6.11.8出错,请求帮助

菜鸟
2005-09-19 18:06:00    评分
我按照这里得 http://bbs.edw.com.cn/dispbbs.asp?BoardID=20&replyID=46160&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


请问各位这是什么错误?请求各位帮忙



关键词: 4510B     移植     linux2.6.11.8     出错    

菜鸟
2005-09-19 22:27:00    评分
2楼
我用得是uclinux-dist-test得版本,内核用得是2.6.11.8

共2条 1/1 1 跳转至

回复

匿名不能发帖!请先 [ 登陆 注册 ]