[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#497133: initramfs-tools: explodes when kernel is booted with root=mtd0



On Sat, 30 Aug 2008, Andres Salomon wrote:

> Package: initramfs-tools
> Version: 0.92f
> 
> On OLPC machines, root is a nand device that is mounted as mtd0 (it is
> neither a block device nor a char device).  The arguments passed to the
> kernel are "ro root=mtd0 rootfstype=jffs2".

could you try to give the full device string root=/dev/mtd0
 
> Unfortunately, attempting to use an initrd based upon initramfs-tools
> on such a machine results in a kernel panic and a syntax error.
> 
> 
> Begin: Mounting root file system ... /init: line 172: syntax error:
> 0xmtd0
> 
> The probably appears to be in parse_numeric(); the init scripts assume
> that normal devices are always prefixed with /, and root= strings that
> aren't are raw device numbers (prefixing them with 0x).  I'm not sure
> if there are other devices similar to mtd that don't begin with a /.

parse_numeric is for legacy lilo support, right. does aboves
circumvent it?

thanks for report!
 
-- 
maks



Reply to: