MTD mounting problem

Richard Weinberger richard.weinberger at gmail.com
Mon Nov 2 05:09:20 PST 2015


On Mon, Nov 2, 2015 at 1:21 PM, Krug, Markus <Markus.Krug at bruker.com> wrote:
> and /proc/mtd shows:
> dev:    size   erasesize  name
> mtd0: 00100000 00010000 "qspi-fsbl-uboot"
> mtd1: 00500000 00010000 "qspi-linux"
> mtd2: 00020000 00010000 "qspi-device-tree"
> mtd3: 005e0000 00010000 "qspi-rootfs"
> mtd4: 00400000 00010000 "qspi-bitstream"
> mtd5: 01000000 00010000 "qspi-data"
> So everything seems to be fine.
> But in /dev there are only mtd0, mtd1, mtdblock0 and mtdblock1.
> So I added with mknod the missing partitions.

This should not happen.
Is your /dev really not managed by udev or devtmpfs?

> Then I run:
> flash_eraseall /dev/mtd5 (no problem)
> mount -t jffs2 /dev/mtdblock5 /mnt
> the mounting failed:
> mount: mounting /dev/mtdblock5 on /mnt failed: No such device
>
> Does someone know whats going wrong?

I think the root cause is the missing device node.
Please double check why it is not present.

-- 
Thanks,
//richard



More information about the linux-mtd mailing list