Skip to content

Allow secure boot on AM33xx devices

Andrew F. Davis u-boot 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest10 patches 0 repliesNew
  2. v311 patches 0 repliesSuperseded
  3. v211 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v113 patches0 repliesSuperseded

Changes in v4 from the cover letter

- Drop SPL_*_BOOT patches as these do not get used by almost anyone so we can just work to remove them completly.
- Fixed defaults for ISW_ENTRY_ADDR.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10Kconfig: Separate AM33XX SOC config from target board configarch/arm/Kconfig arch/arm/cpu/armv7/am33xx/Kconfig configs/am335x_baltos_defconfig +23 more+120 -884 replies
1/10Kconfig: Separate AM33XX SOC config from target board config+0 -01 reply
2/10am33xx: config.mk: Add support for additional secure boot image typesarch/arm/cpu/armv7/am33xx/config.mk+18 -23 replies
3/10doc: Update info on using AM33xx secure devices from TIdoc/README.ti-secure+32 -03 replies
4/10am33xx: config.mk: Fix option used to enable SPI SPL image typearch/arm/cpu/armv7/am33xx/config.mk+2 -23 replies
5/10board: am33xx-hs: Allow post-processing of FIT image on AM33xxboard/ti/am335x/board.c+8 -03 replies
6/10ti: omap-common: Allow AM33xx devices to be built securelyarch/arm/cpu/armv7/omap-common/Kconfig+1 -13 replies
7/10am335x: configs: Use ISW_ENTRY_ADDR to set SPL_TEXT_BASEarch/arm/cpu/armv7/am33xx/Kconfig include/configs/ti_am335x_common.h+3 -22 replies
8/10config: Remove usage of CONFIG_STORAGE_EMMCinclude/configs/am335x_evm.h include/configs/am335x_shc.h include/configs/am335x_sl50.h +1 more+0 -83 replies
9/10ti_armv7_common: Disable Falcon Mode on HS devicesinclude/configs/ti_armv7_common.h+10 -53 replies
10/10defconfig: Add a config for AM335x High Security EVM with SD Boot supportconfigs/am335x_hs_evm_mmc_defconfig+58 -03 replies
10/10defconfig: Add a config for AM335x High Security EVM with SD Boot support+0 -01 reply
10/10defconfig: Add a config for AM335x High Security EVM with SD Boot support+0 -00 replies

Reviews trailers per patch

All 13 patches have a Reviewed-by or Acked-by.

PatchTom RiniLokesh Vutla
1/10R-b A-b
1/10R-b A-b
2/10R-b R-b A-b
3/10R-b R-b A-b
4/10R-b A-b
5/10R-b R-b A-b
6/10R-b R-b A-b
7/10R-b A-b
8/10R-b R-b A-b
9/10R-b R-b A-b
10/10R-b A-b
10/10R-b A-b
10/10R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [U-Boot] [PATCH v4 00/10] Allow secure boot on AM33xx devices

Hello all,

I've recently been tasked with enabling authenticated boot for AM33xx based devices. This work is similar to what has already been done for the AM43xx and AM57xx SoCs and leverages much of the infrastructure from them.

The big difference here is the size of SRAM available on AM33xx being much less than on the other SoCs, when performing a secure boot this limits the maximum size of the SPL to just ~41k, the SPL currently generated for AM33xx SoCs is ~70k.

I have added a defconfig for booting from mmc, but it is RFC for now as the generated SPL is still much too large to fit into SRAM on HS devices. If you would like to help out you can build this defconfig and it will report by how much we have overflowed SRAM, any help reducing this would be greatly appreciated.

Thanks,
Andrew

Changes from v3:
- Drop SPL_*_BOOT patches as these do not get used by almost anyone so we can just work to remove them completly.
- Fixed defaults for ISW_ENTRY_ADDR.

Changes from v2:
- Dropping the SPL_*_SUPPORT patches as Simon is already way ahead of me on this front[0].
- Minor re-organization of the patches, dropped a couple that I didn't feel were important enough to continue working right now.

Changes from v1:
- I've moved the cleanup patches to the end of the series and now consider them RFCs. I also do not move any Kconfig options over as this can be performed automatically but will need to be done by someone who understands the build system better than me.
- Separate additional AM33xx SOC based boards out from the SoC definition in patch #1.

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

Andrew F. Davis (10):
Kconfig: Separate AM33XX SOC config from target board config
am33xx: config.mk: Add support for additional secure boot image types
doc: Update info on using AM33xx secure devices from TI
am33xx: config.mk: Fix option used to enable SPI SPL image type
board: am33xx-hs: Allow post-processing of FIT image on AM33xx
ti: omap-common: Allow AM33xx devices to be built securely
am335x: configs: Use ISW_ENTRY_ADDR to set SPL_TEXT_BASE
config: Remove usage of CONFIG_STORAGE_EMMC
ti_armv7_common: Disable Falcon Mode on HS devices
defconfig: Add a config for AM335x High Security EVM with SD Boot
support

 arch/arm/Kconfig                                   | 98 +++-------------------
 arch/arm/cpu/armv7/am33xx/Kconfig                  | 89 +++++++++++++++++++-
 arch/arm/cpu/armv7/am33xx/config.mk                | 24 +++++-
 arch/arm/cpu/armv7/omap-common/Kconfig             |  2 +-
 board/ti/am335x/board.c                            |  8 ++
 configs/am335x_baltos_defconfig                    |  1 +
 configs/am335x_boneblack_defconfig                 |  1 +
 configs/am335x_boneblack_vboot_defconfig           |  1 +
 configs/am335x_evm_defconfig                       |  1 +
 configs/am335x_evm_nor_defconfig                   |  1 +
 configs/am335x_evm_norboot_defconfig               |  1 +
 configs/am335x_evm_spiboot_defconfig               |  1 +
 configs/am335x_evm_usbspl_defconfig                |  1 +
 ...x_evm_defconfig => am335x_hs_evm_mmc_defconfig} |  8 +-
 configs/am335x_igep0033_defconfig                  |  1 +
 configs/am335x_shc_defconfig                       |  1 +
 configs/am335x_shc_ict_defconfig                   |  1 +
 configs/am335x_shc_netboot_defconfig               |  1 +
 configs/am335x_shc_prompt_defconfig                |  1 +
 configs/am335x_shc_sdboot_defconfig                |  1 +
 configs/am335x_shc_sdboot_prompt_defconfig         |  1 +
 configs/am335x_sl50_defconfig                      |  1 +
 configs/birdland_bav335a_defconfig                 |  1 +
 configs/birdland_bav335b_defconfig                 |  1 +
 configs/cm_t335_defconfig                          |  1 +
 configs/pcm051_rev1_defconfig                      |  1 +
 configs/pcm051_rev3_defconfig                      |  1 +
 configs/pengwyn_defconfig                          |  1 +
 configs/pepper_defconfig                           |  1 +
 doc/README.ti-secure                               | 32 +++++++
 include/configs/am335x_evm.h                       |  2 -
 include/configs/am335x_shc.h                       |  2 -
 include/configs/am335x_sl50.h                      |  2 -
 include/configs/bav335x.h                          |  2 -
 include/configs/ti_am335x_common.h                 |  3 +-
 include/configs/ti_armv7_common.h                  | 15 ++--
 36 files changed, 201 insertions(+), 109 deletions(-)
 copy configs/{am335x_evm_defconfig => am335x_hs_evm_mmc_defconfig} (86%)
Signature · 1 line
2.9.3