Re: MTD: Lots of mtdblock warnings on bootup logs

From: Bjørn Mork
Date: Wed Jul 12 2023 - 15:12:27 EST


Pintu Agarwal <pintu.ping@xxxxxxxxx> writes:

> You mean, if someone is using "mount .. /dev/mtdblock*" then only we
> get these warnings ?
> Or, if someone is trying to access the node using open("/dev/mtdblock*") .

open() will cause a warning.

> But in this case, there should be only 1,2,3 entries but here I am
> seeing for all the NAND partitions.
> Or, is it possible that systemd-udevd is trying to access these nodes ?

Maybe? Something trying to figure out the contents of all block devices
perhaps?

> Can we use ubiblock for mount ubifs (rw) volumes, or here we have to
> use mtdblock ?
> We have a mixture of squashfs (ro) and ubifs (rw) ubi volumes.
> Currently, we are using the ubiblock way of mounting for squashfs but
> mtdblock mounting for ubifs.

I don't think it's safe to use mtdblock on NAND. WHich is what the
warning is about.


Bjørn