Thread (23 messages) flat view 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 11:18:10
Also in: linux-fsdevel, lkml

Hi Richard,

On Tue, 27 Jul 2021 at 18:16, Richard Weinberger
[off-list ref] wrote:
On Thu, Jul 22, 2021 at 1:11 PM Pintu Agarwal [off-list ref] wrote:
quoted
On Thu, 22 Jul 2021 at 02:24, Richard Weinberger [off-list ref] wrote:
quoted
----- Ursprüngliche Mail -----
quoted
quoted
But let me advertise ubiblock a second time.
Sorry, I could not understand about the ubiblock request. Is it
possible to elaborate little more ?
We are already using squashfs on top of our UBI volumes (including
rootfs mounting).
This is the kernel command line we pass:
rootfstype=squashfs root=/dev/mtdblock44 ubi.mtd=40,0,30
And CONFIG_MTD_UBI_BLOCK=y is already enabled in our kernel.
Do we need to do something different for ubiblock ?
From that command line I understand that you are *not* using squashfs on top of UBI.
You use mtdblock. ubiblock is a mechanism to turn an UBI volume into a read-only
block device.
See: http://www.linux-mtd.infradead.org/doc/ubi.html#L_ubiblock
[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?

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?)

Thanks,
Ezequiel

_______________________________________________
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