Request for help booting Gumstix from MTD Flash
Artem Bityutskiy
dedekind1 at gmail.com
Tue Jul 1 07:45:54 PDT 2014
On Sat, 2014-06-28 at 09:48 -0400, Larry Martin wrote:
> Hello, I am writing this list because my question is not being answered
> on the Gumstix list, so I am turning to the subsystem developers. I
> have a u-boot, kernel and rootfs all booting properly from MMC, but when
> I try to boot the set from NAND the kernel says the rootfs superblock is
> empty.
I'd try to mark every eraseblock with its number. Then try to boot, and
see what is the number of the block where UBIFS searches for the
superblock.
Probably if you take your 'rootfs.ubifs', then modify it like this:
for each 128KiB-2KiB block
fill the block with its number
Then you ubinize it and to the same as you did.
And in the mount failure you should see the block number instead of
zeros, I'd assume.
Or you may hack ubinize and make it put the block number to the 'sqnum'
field. And then hack the UBI driver and make it print sqnum for you.
Basically this is an idea how to detect misplaced partitioning.
--
Best Regards,
Artem Bityutskiy
More information about the linux-mtd
mailing list