续:run armLinux的问题。。
我用的是skyeye0.9.8,linux-2.6.5.tar.bz2 ,arm-linux-tools-20031127.tar.gz起初,在编译的时候,出现如下错误:
arch/arm/lib/io-acorn.S: Assembler messages:
arch/arm/lib/io-acorn.S:57: Error: undefined symbol `PCIO_BASE' in operation setting `diff_pcio_base'
arch/arm/lib/io-acorn.S:57: Error: undefined symbol `IO_BASE' in operation setting `diff_pcio_base'
make: *** Error 1
make: *** Error 2
查看arch/arm/lib/io-acorn.S文件,发现57行:
.equ diff_pcio_base, PCIO_BASE - IO_BASE
后来改成: .equ diff_pcio_base, 0
然后,make通过,
load顺利,但run时出现了前面叙述的错误:
RAMDISK: Couldn't find valid RAM disk image starting at 0.
buffer layer error at fs/buffer.c:2815
buffer layer error at fs/buffer.c:2815
buffer layer error at fs/buffer.c:2866
Kernel panic: VFS: Unable to mount root fs on ram0
应该如何解决呢? 没有加载initrd ,需要把initrd放入内存,并且告诉内核initrd的位置和大小 做这步了,指定了,都没有问题啊
dd if=/dev/zero of=initrd.img bs=1K count=200
/sbin/mke2fs initrd.img
页:
[1]