A question regarding ramdisks

Shawn Jin shawnxjin at gmail.com
Fri Sep 2 03:38:56 EST 2005


> Kernel panic - not syncing: VFS: Unable to mount root
> fs on unknown-block(1,0)
>  <0>Rebooting in 180 seconds..

If you're sure that you enable INITRD and EXT2 support in the kernel
and the problem still exist, check if initrd_start and initrd_end are
set correctly in platform_init().

In 2.6.x, parse_bootinfo() doesn't recognize u-boot's bd_t. One quick
and dirty solution is to set initrd_start and initrd_end to r4 and r5
respectively in platform_init().

	/* set initrd parameters */
#ifdef CONFIG_BLK_DEV_INITRD
	if (r4) {
	  	initrd_start = r4 + KERNELBASE;
		initrd_end = r5 + KERNELBASE;
	}
#endif /* CONFIG_BLK_DEV_INITRD */

Regards,
-Shawn.



More information about the Linuxppc-embedded mailing list