UBI on top of a smaller portion of a bigger MTD device
Nam Nguyen
namnguyen at chromium.org
Thu Jan 29 16:58:35 PST 2015
Hello list,
I am wondering if there is interest to make ubi utils work with a
partial range on the MTD device, like other mtd utils. I would
contribute code to make that happen.
Use case:
We have one big NAND device on which we store kernel (a blob), rootfs
(ext4) and other ubifs. The partition info of that device is stored in
a NOR device. Upon boot, the firmware reads from NOR device, passes
partition values to the kernel via device tree, and the kernel will
set up MTD partitions. The MTD module is compiled in because rootfs is
on it.
In recovery mode, however, the firmware does not read anything from
the (writable) NOR flash for fear of grabbing garbage values and
bricking the device. Hence the kernel has no info about any MTD
partition. Yet the recovery USB stick does have such information on
its rootfs. So we were thinking maybe we could augment ubi-utils with
where the partition starts, where it ends, to work with the raw NAND
device.
I talked to derRichard in #mtd channel. Perhaps this email could
explain it better on why we can't set up MTD partitions.
If there is any other way to achieve the same goal, I'd love to hear
about it too.
Thanks,
Nam
More information about the linux-mtd
mailing list