Re: [PATCH v2] wait while adding MMC host to ensure root mounts

From: Sergey Yanovich
Date: Thu Mar 14 2013 - 07:58:09 EST


On 14/03/13 08:08, Namjae Jeon wrote:> 2013/3/14, Sergey Yanovich <ynvich@xxxxxxxxx>:
Kernel panic - not syncing: VFS: Unable to mount root fs on
unknown-block(0,0)

Have you ever tried to use rootwait or rootdelay on command line ?
If no, You can use them.

Those options work. However, they introduce a delay in the range of hundreds milliseconds and seconds respectively. They delay is not required. If a cards is present, mmc_rescan will return synchronously with card initialized.

prepare_namespace() uses wait_for_device_probe(). The latter assumes that all "known devices" have initialized by the time it returns. MMC is not currently delivering on the assumptions. It will with the patch applied.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/