<icee>
Hey-- i have an application that's a bit paranoid about boot media corruption... I'd really like to get a very small boot image that checks whether one of a few images has a proper shasum or whatever, and boots the first proper one. This isn't for security: no signatures, etc, needed
<icee>
Basically, it's a secondary payload on a satellite and random bit errors accumulating in our flash media isn't that unlikely. Is there any easy way to cobble uboot to do this? I see a lot of functionality that is kind of close to this
<icee>
(I'd be wanting to look at an entire root filesystem, odds are, not just an image to load)
<icee>
(i'm of course considering things like initrd to do the same)
<Forty-Bot>
U-Boot won't boot an image with a bad hash
<Forty-Bot>
so the easiest way is to just try to boot from several locations in sequence
<Forty-Bot>
the traditional way is a script like `set imagename=linux.0.img; run bootlinux; set imagename=linux.1.img; runbootlinux` etc
<Forty-Bot>
but there is probably a bootstd way as well if you like
<icee>
Is there any way to get it to scan the rootfs too? Or do i need to do this at the uboot level, and then once again with an initramfs that finds a valid readonly root filesystem
<Forty-Bot>
what do you mean by scan
<icee>
hash, compare to signature
<Forty-Bot>
idk
<Forty-Bot>
maybe you can use a raid 0 with dm-verity?
<Forty-Bot>
or, actually I think there is some other dm layer that just does ecc
<icee>
ah, dm-verity + raid1 seems cool
<icee>
this whole thing is expected to have crap life in LEO. I just want to improve the odds of it lasting a few months
<Forty-Bot>
yeah, raid 1
<Forty-Bot>
or whatever the redundancy one is
<icee>
all the critical stuff is running off MRAM with ECC
<icee>
but then we're flying a pi zero 2 w to run the camera
<icee>
thanks for the ideas, this is helpful
<Forty-Bot>
yeah, try dm-verity with fec
Daanct12 has quit [Ping timeout: 245 seconds]
Daanct12 has joined #u-boot
lowfi has quit [Read error: Connection reset by peer]
dsimic has quit [Ping timeout: 252 seconds]
dsimic has joined #u-boot
gsz has joined #u-boot
mckoan|away is now known as mckoan
prabhakalad has quit [Quit: Konversation terminated!]
prabhakalad has joined #u-boot
jistr has quit [Quit: quit]
jistr has joined #u-boot
mmu_man has joined #u-boot
warpme has joined #u-boot
mckoan is now known as mckoan|away
goliath has joined #u-boot
monstr has joined #u-boot
monstr has quit [Ping timeout: 252 seconds]
gsz has quit [Ping timeout: 248 seconds]
gsz has joined #u-boot
ikarso has joined #u-boot
___nick___ has joined #u-boot
___nick___ has quit [Client Quit]
___nick___ has joined #u-boot
___nick___ has quit [Ping timeout: 265 seconds]
___nick___ has joined #u-boot
gsz has quit [Ping timeout: 244 seconds]
Daanct12 has quit [Quit: WeeChat 4.4.4]
naoki has quit [Quit: naoki]
<Tartarus>
sjg1: Please stop posting massive patchsets for your fork to the mailing list.
___nick___ has quit [Ping timeout: 252 seconds]
___nick___ has joined #u-boot
goliath has quit [Quit: SIGSEGV]
totkeks has joined #u-boot
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]