All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot]  UBI/UBIFS complete integrity check
@ 2017-10-31 15:01 Liam Beguin
  2017-11-04 21:17 ` Lukasz Majewski
  2017-11-05  8:37 ` Ladislav Michl
  0 siblings, 2 replies; 8+ messages in thread
From: Liam Beguin @ 2017-10-31 15:01 UTC (permalink / raw)
  To: u-boot

Hi everyone,

I'm currently using a UBIFS root file system (stored on SPI-NOR flash)
and would like to perform a full integrity check before booting it.
The rootfs is read-only and until now, I've been computing an md5sum on
the whole mtd device from an initramfs and comparing it to a stored
md5sum. If both md5sums don't match, I need to stop the boot process
completely.

If possible, I was hoping to drop initramfs and do the integrity check
from U-Boot. I know UBI/UBIFS does a CRC-32 of the data it writes to
flash but the intent here is to prevent booting an image where
even a _single bit_ of flash may have been corrupted.

My question is, does UBI/UBIFS have this kind of complete integrity
check built-in? If not, can I take advantage of these CRC-32, to do
something equivalent to my md5sum check from U-Boot.
Thanks,

Liam Beguin
Xiphos Systems Corp.
http://xiphos.com

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-11-06 18:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-31 15:01 [U-Boot] UBI/UBIFS complete integrity check Liam Beguin
2017-11-04 21:17 ` Lukasz Majewski
2017-11-06 16:34   ` Liam Beguin
2017-11-06 17:30     ` Lukasz Majewski
2017-11-05  8:37 ` Ladislav Michl
2017-11-06 17:31   ` Liam Beguin
2017-11-06 17:57     ` Ladislav Michl
2017-11-06 18:29       ` Liam Beguin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.