Thread (23 messages) 23 messages, 5 authors, 2021-11-12

Re: MTD: How to get actual image size from MTD partition

From: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Date: 2021-07-29 12:03:40
Also in: linux-fsdevel, lkml

On Thu, 29 Jul 2021 at 08:45, Richard Weinberger [off-list ref] wrote:
Ezequiel,

----- Ursprüngliche Mail -----
quoted
[snip]

Ouch, so surprised that after all these years someone is doing squashfs/mtdblock
instead of using ubiblock :-)

Can we patch either Kconfig or add some warn_once on mtdblock
usage, suggesting to use ubiblock instead?
a hint in Kconfig makes IMHO sense. Do you want to send a patch?
A warning is too much since on some tiny embedded system with NOR flash mtdblock is still
a good choice.
ubiblock is mostly useful for NAND flash.
quoted
I remember there was still some use case(s) for mtdblock but I can't remember
now what was it, perhaps we should document the expectations?
(Is that for JFFS2 to mount?)
a long time ago mount didn't accept character devices, so you had to pass mtdblockX to mount
JFFS2.
This limitation is gone.
OK, let me try to cook a patch for you.

Eze

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help