All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/2] imx8m: fix secure boot
@ 2021-08-06  4:44 Heiko Schocher
  2021-08-06  4:44 ` [PATCH v1 1/2] spl_fit. add hook to make fixes after fit header is loaded Heiko Schocher
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Heiko Schocher @ 2021-08-06  4:44 UTC (permalink / raw)
  To: u-boot, Stefano Babic
  Cc: Tim Harvey, Heiko Schocher, Alexandru Gagniuc, Fabio Estevam,
	Faiz Abbas, Jaehoon Chung, Marek Vasut, Michael Walle,
	Michal Simek, NXP i.MX U-Boot Team, Pali Rohár,
	Philippe Reynes, Simon Glass, Stefan Roese, Teresa Remmet


This series fixes secure boot on imx8m based boards. Tim
also detected this issue and the patches fixed on his hardware
also the problem, see discussion here:

https://lists.denx.de/pipermail/u-boot/2021-July/454351.html

Problem is that the IVT header gets loaded to a memallocated
buffer, but it needs to sit on memaddress coded in IVT header
itself. This patchseries adds a weak function spl_load_simple_fit()
in common spl code, which does not change current code behaviour.

Second patch than implements this weak function for imx based
boards (if no IVT header is found on address which is passed
to it, it does nothing).

I am not sure if this is the best solution, but it fixes a real
bug, and may could be made clearer, if possible.


Heiko Schocher (2):
  spl_fit. add hook to make fixes after fit header is loaded
  imx: spl: implement spl_load_simple_fit_fix_load

 arch/arm/mach-imx/spl.c | 33 +++++++++++++++++++++++++++++++++
 common/spl/spl_fit.c    | 11 +++++++++++
 include/spl.h           |  8 ++++++++
 3 files changed, 52 insertions(+)

-- 
2.31.1


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

end of thread, other threads:[~2021-10-07 14:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-06  4:44 [PATCH v1 0/2] imx8m: fix secure boot Heiko Schocher
2021-08-06  4:44 ` [PATCH v1 1/2] spl_fit. add hook to make fixes after fit header is loaded Heiko Schocher
2021-09-30  4:09   ` Simon Glass
2021-10-07 14:13   ` sbabic
2021-08-06  4:44 ` [PATCH v1 2/2] imx: spl: implement spl_load_simple_fit_fix_load Heiko Schocher
2021-10-07 14:12   ` sbabic
2021-08-06  5:56 ` [PATCH v1 0/2] imx8m: fix secure boot Peng Fan (OSS)
2021-08-06  6:39   ` Heiko Schocher
2021-08-06  7:16     ` [EXT] " Ye Li

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.