public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* Standard Boot integration - script validation before execution
@ 2025-12-16 14:13 Patryk
  2025-12-16 14:31 ` Tom Rini
  2025-12-16 14:59 ` Alexander Dahl
  0 siblings, 2 replies; 7+ messages in thread
From: Patryk @ 2025-12-16 14:13 UTC (permalink / raw)
  To: u-boot

Hi
I would like to integrate Standard Boot on our custom board based on
NXP LS1028a, as it currently uses a so-called distro boot.
Normally I would just follow the instructions in the doc about
converting from distro boot to standard boot, but things are in fact a
bit more complicated. My board supports dual rootfs following the A/B
update scheme, so I need a place where I can check the boot state,
boot counter and so on, so as to set the final rootfs partition to
pass to the kernel. That's actually not a problem - I can just use the
bootmeth script and put all the logic there. The problem is that on a
production system, the devics will be protected by the Secure Boot
procedure, so the script to be executed should also be verified before
the execution. In the current solution (distro boot), the boot
command, first loads the script, then calls esbc_validate over the
script header and if the validation passes it sources the script so
the OS can be loaded. In current bootmeth_script there is no place (or
I'm not aware of) that would allow me to do vendor-specific validation
over the script. What would you advise in this case? Is there any way
to "inject" some plugins into the existing boot methods, like  e.g. a
plugin that would be overriding or adding some functionalities to
existing bootmeth_script? I can of course patch the existing
bootmeth_script with a command that would perform the validation but
this would no longer be a generic boot method. Or perhaps should I
create my own boot method?

I would be grateful for any suggestion
Best regards
Patryk

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

end of thread, other threads:[~2026-01-06  8:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-16 14:13 Standard Boot integration - script validation before execution Patryk
2025-12-16 14:31 ` Tom Rini
2025-12-16 14:59 ` Alexander Dahl
2025-12-31 14:46   ` Patryk
2025-12-31 15:08     ` Simon Glass
2026-01-05  9:46       ` Patryk
2026-01-06  8:40         ` Rasmus Villemoes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox