lkml.org 
[lkml]   [2021]   [Jul]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: MTD: How to get actual image size from MTD partition
----- Ursprüngliche Mail -----
> Von: "Greg KH" <greg@kroah.com>
> An: "Pintu Agarwal" <pintu.ping@gmail.com>
> CC: "linux-kernel" <linux-kernel@vger.kernel.org>, "linux-mtd" <linux-mtd@lists.infradead.org>, "linux-fsdevel"
> <linux-fsdevel@vger.kernel.org>, "Phillip Lougher" <phillip@squashfs.org.uk>, "Sean Nyekjaer" <sean@geanix.com>,
> "Kernelnewbies" <kernelnewbies@kernelnewbies.org>, "richard" <richard@nod.at>
> Gesendet: Freitag, 16. Juli 2021 17:41:01
> Betreff: Re: MTD: How to get actual image size from MTD partition

> On Fri, Jul 16, 2021 at 12:12:41PM +0530, Pintu Agarwal wrote:
>> Hi,
>>
>> Our ARM32 Linux embedded system consists of these:
>> * Linux Kernel: 4.14
>> * Processor: Qualcomm Arm32 Cortex-A7
>> * Storage: NAND 512MB
>> * Platform: Simple busybox
>> * Filesystem: UBIFS, Squashfs
>> * Consists of nand raw partitions, squashfs ubi volumes.
>>
>> 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. :-)

Thanks,
//richard

\
 
 \ /
  Last update: 2021-07-16 18:29    [W:0.068 / U:0.356 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site