系統資源:
Debian Sid(GCC-4.0、Kernel 2.6.16)
arm-elf-tools-20030314.sh
uCLinux-dist-20051110
作法:
- 代碼: 選擇全部
#sh arm-elf-tools-20030314.sh
- 代碼: 選擇全部
#tar -zxvf uClinux-dist-20051110.tar.gz
- 代碼: 選擇全部
#make xconfig
Vendor------>Samsung 4510B
Kernel Version------>linux-2.4.x
Libc Version------>uC-libc
- 代碼: 選擇全部
#make dep
- 代碼: 選擇全部
#make
就會出現錯誤訊息:
- 代碼: 選擇全部
make[2]: Entering directory `/home/ARMEmbedded/uClinux-dist/linux-2.4.x/arch/armnommu/nwfpe'
make all_targets
make[3]: Entering directory `/home/ARMEmbedded/uClinux-dist/linux-2.4.x/arch/armnommu/nwfpe'
rm -f math-emu.o
arm-elf-ar rcs math-emu.o
make[3]: Leaving directory `/home/ARMEmbedded/uClinux-dist/linux-2.4.x/arch/armnommu/nwfpe'
make[2]: Leaving directory `/home/ARMEmbedded/uClinux-dist/linux-2.4.x/arch/armnommu/nwfpe'
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/serial/serial.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 /home/ARMEmbedded/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
drivers/block/block.o: In function `blk_dev_init':
/home/ARMEmbedded/uClinux-dist/linux-2.4.x/drivers/block/ll_rw_blk.c:1523: undefined reference to `romfs_data'
make[1]: *** [linux] Error 1
make[1]: Leaving directory `/home/ARMEmbedded/uClinux-dist/linux-2.4.x'
make: *** [linux] Error 1
請問,小弟有什麼地方做錯嗎?