[PATCH v2 1/2] ARM: bootm: Add support for starting Linux through OpTee-OS on ARMv7a

Tom Rini trini at konsulko.com
Mon Jun 30 21:47:11 CEST 2025


On Mon, Jun 30, 2025 at 07:18:33AM +0200, Heinrich Schuchardt wrote:
> Am 30. Juni 2025 02:08:05 MESZ schrieb Marek Vasut <marek.vasut at mailbox.org>:
> >Add support for jumping to Linux kernel through OpTee-OS on ARMv7a.
> >This is only supported if U-Boot runs in PL1 secure. This change adds
> >two components, one is fitImage OpTee-OS loadable handler, which makes
> >a note of OpTee-OS being loaded and stores the load address for later
> >jump to it. The second part is the actual jump to Linux through OpTee-OS.
> >The jump through OpTee-OS requires set up of multiple CPU registers, r1
> >and r2 are passed through, r0 and r3 have to be set to 0, lr is set to
> >Linux kernel entry point. This setup is done by new assembler function
> >boot_jump_linux_via_optee().
> >
> >The boot_jump_linux_via_optee() also includes STM32MP13xx late TZC
> >configuration write, this cannot be moved easily, hence the ifdef.
> 
> Hello Marek,
> 
> Could you, please, add a documentation change to the series. This would allow reviewers to test your proposal.
> 
> Furthermore, please, provide tests on QEMU.

Documentation is good, also wiring up this use case for testing in CI
via QEMU is a rather large ask. We're still on needing a general boot OS
test or two in CI (and Ilias noted either on a call or IRC, I forget
now, that there's been some progress on making up a small enough generic
OS image to work from).

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20250630/410f415b/attachment.sig>


More information about the U-Boot mailing list