help me !编译uclinux时出错
When I try to compile uClinux latestsnapshot (uClinux-dist-20040408) using the arm-elf-tools-20030314.sh
toolchain I get some errors from the linker (see below).
The target platform is Samsung/4510B.
Can anyone help, please?
Thank you.
----------------------------------------------------------------------
arm-elf-ld -p -X -T arch/armnommu/vmlinux.lds
arch/armnommu/kernel/head-armv.o arch/armnommu/kernel/init_task.o
init/main.o init/version.o init/do_mounts.o \
--start-group \
arch/armnommu/kernel/kernel.o arch/armnommu/mm/mm.o
arch/armnommu/mach-snds100/snds100.o kernel/kernel.o mmnommu/mmnommu.o
fs/fs.o ipc/ipc.o \
drivers/char/char.o drivers/block/block.o drivers/misc/misc.o
drivers/net/net.o drivers/media/media.o \
net/network.o \
arch/armnommu/lib/lib.a /opt/uClinux-dist/linux-2.4.x/lib/lib.a
/usr/local/lib/gcc-lib/arm-elf/2.95.3/libgcc.a \
--end-group \
-o linux
arch/armnommu/mm/mm.o(.text+0x14c): In function `free_initmem':
/opt/uClinux-dist/linux-2.4.x/arch/armnommu/mm/init.c:657: undefined
reference to `machine_is_ta7v'
drivers/block/block.o(.data+0x28): In function `blk_dev_init':
/opt/uClinux-dist/linux-2.4.x/drivers/block/ll_rw_blk.c:152: undefined
reference to `romfs_data'
make: *** Error 1
make: Leaving directory `/opt/uClinux-dist/linux-2.4.x'
make: *** Error 1 machine_is_ta7v注意
它是在include/asm/mach-types.h中定义的,而这个文件那,又是在arch/arm/tools/mach-types文件中定义的,而通过同一个目录下一个awk工具生成的。上面错误说明你没有在arch/arm/tools/mach-types添加相应的板子型号 能否给出解决办法?我修改了arch/armnommu/tools/mach-types
增加了一行samsung ARCH_SNDS100 SNDS100 90
但还是出现以下错误:
arch/armnommu/mm/mm.o: In function `reserve_node_zero':
/tmp/uClinux-dist/linux-2.4.x/arch/armnommu/mm/init.c:379: undefined reference to `machine_is_snds100'
drivers/block/block.o: In function `blk_dev_init':
/tmp/uClinux-dist/linux-2.4.x/drivers/block/ll_rw_blk.c:1506: undefined reference to `romfs_data'
页:
[1]