Hi,
I'm also having
problems with the initrd of booting form NOR. I have checked the mail list
archives and it seems other people have had the same problem, but I have found
no real solution.
I'm getting
..
RAMDISK: Compressed image found at block
0
Kernel panic - not syncing: VFS: Unable to mount root fs on
unknown-block(1,0)
My kernel .config
includes ..
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_COUNT=1
CONFIG_BLK_DEV_RAM_SIZE=32768
CONFIG_BLK_DEV_INITRD=y
CONFIG_INITRAMFS_SOURCE=""
My boot args line
is
bootargs=console=ttyS0,115200n8 root=/dev/ram0 rw initrd=0x85000000,6M
load_ramdisk=1 [EMAIL PROTECTED]/,@192.168.0.250/
I followed the instructions in NOR-FLASH - SPRAAH2.pdf
(building small embedded linux kernel example.pdf).
Except I couldn't
find the ramdisk.gz in my distribution/mv devkit so I built my own using the
wizard in devrocket. Just a simple one containing the network/init scripts,
busybox
and
tinyhttp.
I then noticed that
devrocket wasn't saving /dev/ram0 or /dev/init in my image so I mknod'ed and
chmod'ed them manually to my .build directory,
and rebuilt
ramdisk.gz using find . | cpio --quiet -c -o | gzip -9 -n >
ramdisk.gz
I've added in some
printk statement to see where the kernel is going , and it finds the compressed
image, decompresses it ok, but rd_load_image returns zero, and
therefore
handle_initrd isn't
called. I still have to study why rd_load_image is failing but doesn't anybody
have any ideas ?
p.s. is it possible
to debug kernel bootup using kgdb ?
Thanks,
John_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source