mtd:<myname> mount syntax unique to jffs2 ?

Joakim Tjernlund Joakim.Tjernlund at infinera.com
Sun Jul 10 08:42:36 PDT 2022


On Sun, 2022-07-10 at 17:21 +0200, David Oberhollenzer wrote:
> Hi Joakim,
> 
> On 7/7/22 16:56, Joakim Tjernlund wrote:
> > Why does "mtd:myrootfs" work to mount jffs2 rootfs but not squashfs?
> > What does squashfs need to support the same ?
> > 
> 

Thanks for replying.

> squashfs can only mount block devices and does not support
> raw mtd partitions or ubi volumes directly.
> 
> There is an "mtdblock" driver, which provides a read-only
> block device on top of an mtd partition. Squashfs can then
> be mounted from that.

I known about the mtdblock driver but here I really wanted to use the
symbolic names mtd provides as the mtdblock number may change in our system.

Is adding mtd name support to squshfs an option ? 

> 
> However, what you probably want is the "ubiblock" driver,
> which emulates a read-only block device on top of an ubi
> volume.

We are using SPI NOR flash and I think bit flipping is rare here ? 

> 
> Using ubi underneath takes care of bit-flip handling and
> wear leveling, which is still an issue with nand flash,
> even when used in a read-only fashion.
> 
> Greetings,
> 
> David



More information about the linux-mtd mailing list