* Having trouble using mtdparts kernel command line to repartition flash
@ 2009-08-21 20:48 Nathan French
0 siblings, 0 replies; only message in thread
From: Nathan French @ 2009-08-21 20:48 UTC (permalink / raw)
To: linuxppc-dev@ozlabs.org
I've got a kilauea (PPC405EX) board that we've decided needs more room
in one of the flash partitions. So I took the existing command line
(which came from the dev kit):
Kernel command line: ramdisk_size=65536 root=/dev/ram rw
mtdparts=fc000000.nor_flash:2M(linux),20M(ramdisk),4M(jffs2),38272k(user),256k(env),384k(uboot) ip=10.2.3.28:10.1.0.65:10.0.0.1::kilauea:eth0:off panic=1 console=ttyS0,115200
And modified it like below (4M -> 8M, 38272k->34176k). We're not
currently using the user partition, so I just borrowed 4MB from it.
Kernel command line: ramdisk_size=65536 root=/dev/ram rw
mtdparts=fc000000.nor_flash:2M(linux),20M(ramdisk),8M(jffs2),34176k(user),256k(env),384k(uboot) ip=10.2.3.28:10.1.0.65:10.0.0.1::kilauea:eth0:off panic=1 console=ttyS0,115200
And I get the below error. I noticed that the device tree (FDT/DTB)
lists some partitions as well that don't exactly match up with the
original parameters, so I ignored that part of the FDT. Is this ok?
Does Linux ignore the partition information from the FDT when U-Boot
passes partition arguments?
Oh and... well why is the ram0 device complaining when I modify the
flash partitioning? I'm not expecting the 20M ramdisk portion to be
affected. Also I noticed that the device tree (DTS/DTB) does not
reflect the original partition scheme. Does it need to or is the device
tree ignored when using the mtdparts partitioning? I tried modifying it
to match but didn't seem to make a difference.
Am I missing something here?
RAMDISK: Compressed image found at block 0
RAMDISK: incomplete write (24576 != 32768) 35815424
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 136k init
attempt to access beyond end of device
ram0: rw=0, want=98312, limit=70000
EXT2-fs error (device ram0): ext2_get_inode: unable to read inode block
- inode=12289, block=49155
Warning: unable to open an initial console.
attempt to access beyond end of device
ram0: rw=0, want=98312, limit=70000
EXT2-fs error (device ram0): ext2_get_inode: unable to read inode block
- inode=12289, block=49155
attempt to access beyond end of device
ram0: rw=0, want=98312, limit=70000
EXT2-fs error (device ram0): ext2_get_inode: unable to read inode block
- inode=12289, block=49155
attempt to access beyond end of device
ram0: rw=0, want=98312, limit=70000
...
Thanks,
Nathan French
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-08-21 20:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-21 20:48 Having trouble using mtdparts kernel command line to repartition flash Nathan French
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox