Subject: Re: A question regarding ramdisks

From: Shawn Jin <[email-masked]>
Date: Thu, 1 Sep 2005 10:38:56 -0700

> 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().

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

Regards,
-Shawn.