public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/4] Allow disabling non-FIT image loading from SPL
@ 2016-08-01 15:30 Andrew F. Davis
  2016-08-01 15:30 ` [U-Boot] [PATCH 1/4] Introduce CONFIG_SPL_PANIC_ON_NON_FIT_IMAGE Andrew F. Davis
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Andrew F. Davis @ 2016-08-01 15:30 UTC (permalink / raw)
  To: u-boot

Hello all,

To address a needed feature brought up by Andreas[0], we need a way to
disable SPL from loading non-FIT images.

The function spl_parse_image_header is common to all SPL loading paths
(common/spl/spl_(nand|net|nor|etc..)) so we add the check here, much
like the existing CONFIG_SPL_PANIC_ON_RAW_IMAGE.

My original attempt was to add CONFIG_SPL_PANIC_ON_MKIMAGE, but then if other
formats are added, flaws in restricting image types may be introduced, so we
would like a single option to restrict all non-FIT types vs disabling types
individually.

Thanks,
Andrew

[0]: https://www.mail-archive.com/u-boot at lists.denx.de/msg219253.html

Andrew F. Davis (4):
  Introduce CONFIG_SPL_PANIC_ON_NON_FIT_IMAGE
  ARM: AM57xx: Disable non-FIT based image loading for HS devices
  ARM: AM437x: Disable non-FIT based image loading for HS devices
  ARM: DRA7xx: Disable non-FIT based image loading for HS devices

 Kconfig                         | 8 ++++++++
 common/spl/spl.c                | 4 ++++
 configs/am43xx_hs_evm_defconfig | 1 +
 configs/am57xx_hs_evm_defconfig | 1 +
 configs/dra7xx_hs_evm_defconfig | 1 +
 5 files changed, 15 insertions(+)

-- 
2.9.2

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

end of thread, other threads:[~2016-08-05 16:15 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-01 15:30 [U-Boot] [PATCH 0/4] Allow disabling non-FIT image loading from SPL Andrew F. Davis
2016-08-01 15:30 ` [U-Boot] [PATCH 1/4] Introduce CONFIG_SPL_PANIC_ON_NON_FIT_IMAGE Andrew F. Davis
2016-08-01 17:30   ` Tom Rini
2016-08-01 17:50     ` Simon Glass
2016-08-01 15:30 ` [U-Boot] [PATCH 2/4] ARM: AM57xx: Disable non-FIT based image loading for HS devices Andrew F. Davis
2016-08-04  1:16   ` Simon Glass
2016-08-04  1:48     ` Tom Rini
2016-08-04  2:27       ` Simon Glass
2016-08-05 16:15         ` Andrew F. Davis
2016-08-01 15:30 ` [U-Boot] [PATCH 3/4] ARM: AM437x: " Andrew F. Davis
2016-08-01 15:30 ` [U-Boot] [PATCH 4/4] ARM: DRA7xx: " Andrew F. Davis

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