Help: NOR flash MTD and JFFS2 rootfs

Dominik Bozek domino at mikroswiat.pl
Thu Nov 20 00:44:54 EST 2008


Varlese, Christopher wrote:
> I'm having some trouble booting from a JFFS2 disk partition.
> I have a few questions maybe someone can help.
>
>
> Q1: mtdparts=x not necessary?
> U-Boot supports configuring and passing mtdparts=x in the kernel
> command line.  But with powerpc the partitions can be defined in
> the device tree and the kernel can parse this to discover the MTD
> partitions.  So is it right then I don't need to use mtdparts?
> ref: drivers/mtd/ofpart.c:of_mtd_parse_partitions()
>   

If it is working, your choice.


> Q2: /proc/partitions empty?
> [...]

I can't explain.

>
> Q3: JFFS2 booting fails?
> I have a JFFS2 root fs disk image burned to a flash mtd partition.
> I can manually mount it with NFS/ram boot scenarios, but so far
> cannot boot directly from it as rootfs (infos below).   Any
> good suggestions what might be wrong?
>
> [...]
> ...
> Kernel command line: root=/dev/mtdblock5 rw rootfstype=jffs2
> ip=192.168.33.38:192.168.33.35:192.168.33.35::eter1:eth0:off panic=1
> con0
> [...]
> Kernel panic - not syncing: VFS: Unable to mount root fs on
> unknown-block(2,0)

I'm using hexadecimal value for "root". I guess in your case try "root=1f05.

Domino



More information about the Linuxppc-embedded mailing list