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

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

From: Richard Weinberger <richard@nod.at>
Date: 2021-07-19 09:28:28
Also in: linux-fsdevel, lkml

----- Ursprüngliche Mail -----
Von: "Pintu Agarwal" [off-list ref]
An: "richard" [off-list ref]
CC: "Greg KH" <redacted>, "linux-kernel" <redacted>, "linux-mtd"
[off-list ref], "linux-fsdevel" [off-list ref], "Phillip Lougher"
[off-list ref], "Sean Nyekjaer" [off-list ref], "Kernelnewbies" [off-list ref]
Gesendet: Montag, 19. Juli 2021 11:09:46
Betreff: Re: MTD: How to get actual image size from MTD partition
On Fri, 16 Jul 2021 at 21:56, Richard Weinberger [off-list ref] wrote:
quoted
quoted
quoted
My requirement:
To find the checksum of a real image in runtime which is flashed in an
MTD partition.
Try using the dm-verity module for ensuring that a block device really
is properly signed before mounting it.  That's what it was designed for
and is independent of the block device type.
MTDs are not block devices. :-)
Is it possible to use dm-verity with squashfs ?
We are using squashfs for our rootfs which is an MTD block /dev/mtdblock44
Well, if you emulate a block device using mtdblock, you can use dm-verity and friends.
Also consider using ubiblock. It offers better performance and wear leveling support.

Thanks,
//richard

_______________________________________________
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