Skip to contentSkip to conversation

Adds support for secure boot on TCI6630K2L HS devices

PATCH Superseded Madan Srinivas 4 participants 7 messages Feb 16, 2018 – Feb 28, 2018

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover Adds support for secure boot on TCI6630K2L HS devices

This series adds support for the secure Lammar (K2L) SoC.

It defines a new defconfig file for K2L HS, based on the GP K2L defconfig and updates the u-boot default env variables to install the secure boot-monitor on startup.

Madan Srinivas (2):
configs: k2l: Updates u-boot env to install secure boot monitor
defconfig: k2l_hs_evm: Add k2l_hs_evm_defconfig

 configs/k2l_hs_evm_defconfig | 43 +++++++++++++++++++++++++++++++++++++++++++
 include/configs/k2l_evm.h    |  9 +++++++++
 2 files changed, 52 insertions(+)
 create mode 100644 configs/k2l_hs_evm_defconfig
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/2 configs: k2l: Updates u-boot env to install secure boot monitor

This patch updates the default u-boot env for K2L HS devices to install the secure boot monitor and load the fitImage during boot.

---

 include/configs/k2l_evm.h | 9 +++++++++
 1 file changed, 9 insertions(+)
include/configs/k2l_evm.h +9 -0
index d8bcbde..87639df 100644
@@ -15,9 +15,18 @@
 /* Platform type */
 #define CONFIG_SOC_K2L
 
+#ifdef CONFIG_TI_SECURE_DEVICE
+#define DEFAULT_SEC_BOOT_ENV						\
+	DEFAULT_FIT_TI_ARGS						\
+	"findfdt=setenv fdtfile ${name_fdt}\0"
+#else
+#define DEFAULT_SEC_BOOT_ENV
+#endif
+
 /* U-Boot general configuration */
 #define CONFIG_EXTRA_ENV_KS2_BOARD_SETTINGS				\
 	DEFAULT_FW_INITRAMFS_BOOT_ENV					\
+	DEFAULT_SEC_BOOT_ENV						\
 	"boot=ubi\0"							\
 	"args_ubi=setenv bootargs ${bootargs} rootfstype=ubifs "	\
 	"root=ubi0:rootfs rootflags=sync rw ubi.mtd=ubifs,4096\0"	\
Signature · 1 line
1.9.1
#2 lore raw

PATCH 1/2 configs: k2l: Updates u-boot env to install secure boot monitor

+Tom

Quoted 5 lines · Madan Srinivas

This patch updates the default u-boot env for K2L HS devices to install the secure boot monitor and load the fitImage during boot.

Thanks and regards,
Lokesh

Quoted 30 lines

---

 include/configs/k2l_evm.h | 9 +++++++++
 1 file changed, 9 insertions(+)
include/configs/k2l_evm.h +9 -0
index d8bcbde..87639df 100644
@@ -15,9 +15,18 @@
 /* Platform type */
 #define CONFIG_SOC_K2L
 
+#ifdef CONFIG_TI_SECURE_DEVICE
+#define DEFAULT_SEC_BOOT_ENV						\
+	DEFAULT_FIT_TI_ARGS						\
+	"findfdt=setenv fdtfile ${name_fdt}\0"
+#else
+#define DEFAULT_SEC_BOOT_ENV
+#endif
+
 /* U-Boot general configuration */
 #define CONFIG_EXTRA_ENV_KS2_BOARD_SETTINGS				\
 	DEFAULT_FW_INITRAMFS_BOOT_ENV					\
+	DEFAULT_SEC_BOOT_ENV						\
 	"boot=ubi\0"							\
 	"args_ubi=setenv bootargs ${bootargs} rootfstype=ubifs "	\
 	"root=ubi0:rootfs rootflags=sync rw ubi.mtd=ubifs,4096\0"	\
#3 lore raw

PATCH 2/2 defconfig: k2l_hs_evm: Add k2l_hs_evm_defconfig

In reply to Madan Srinivas

Adds a dedicated defconfig to build TI K2L secure
devices. Created from the k2l_evm_defconfig and
removes support for SPL, as SPL is not supported
on K2 HS devices. Corrects SYS_TEXT_BASE for HS
devices.

Also adds TI_SECURE_DEVICE and FIT_IMAGE_POST_PROCESS to include support for secure image creation and authentication

---

 configs/k2l_hs_evm_defconfig | 43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)
 create mode 100644 configs/k2l_hs_evm_defconfig
configs/k2l_hs_evm_defconfig new file +43 -0
new file mode 100644
index 0000000..cc002d3
@@ -0,0 +1,43 @@
+CONFIG_ARM=y
+CONFIG_ARCH_KEYSTONE=y
+CONFIG_TI_SECURE_DEVICE=y
+CONFIG_SYS_TEXT_BASE=0xC000060
+CONFIG_TI_COMMON_CMD_OPTIONS=y
+CONFIG_TARGET_K2L_EVM=y
+CONFIG_DEFAULT_DEVICE_TREE="keystone-k2l-evm"
+CONFIG_FIT_IMAGE_POST_PROCESS=y
+CONFIG_OF_BOARD_SETUP=y
+CONFIG_SYS_CONSOLE_INFO_QUIET=y
+CONFIG_VERSION_VARIABLE=y
+CONFIG_BOARD_EARLY_INIT_F=y
+CONFIG_HUSH_PARSER=y
+# CONFIG_CMD_FLASH is not set
+# CONFIG_CMD_GPIO is not set
+# CONFIG_CMD_GPT is not set
+# CONFIG_CMD_MMC is not set
+CONFIG_CMD_NAND=y
+# CONFIG_CMD_SETEXPR is not set
+CONFIG_MTDIDS_DEFAULT="nand0=davinci_nand.0"
+CONFIG_MTDPARTS_DEFAULT="mtdparts=davinci_nand.0:1024k(bootloader)ro,512k(params)ro,-(ubifs)"
+CONFIG_CMD_UBI=y
+CONFIG_ISO_PARTITION=y
+CONFIG_EFI_PARTITION=y
+CONFIG_OF_CONTROL=y
+CONFIG_ENV_IS_IN_NAND=y
+CONFIG_NET_RANDOM_ETHADDR=y
+CONFIG_DM=y
+CONFIG_TI_AEMIF=y
+# CONFIG_MMC is not set
+CONFIG_DM_SPI_FLASH=y
+CONFIG_SPI_FLASH=y
+CONFIG_SPI_FLASH_STMICRO=y
+CONFIG_PHYLIB=y
+CONFIG_DM_ETH=y
+CONFIG_DM_SERIAL=y
+CONFIG_SYS_NS16550=y
+CONFIG_DM_SPI=y
+CONFIG_DAVINCI_SPI=y
+CONFIG_USB=y
+CONFIG_USB_XHCI_HCD=y
+CONFIG_USB_XHCI_DWC3=y
+CONFIG_USB_STORAGE=y
Signature · 1 line
1.9.1
#4 lore raw

PATCH 2/2 defconfig: k2l_hs_evm: Add k2l_hs_evm_defconfig

+Tom

Quoted 10 lines · Madan Srinivas

Adds a dedicated defconfig to build TI K2L secure
devices. Created from the k2l_evm_defconfig and
removes support for SPL, as SPL is not supported
on K2 HS devices. Corrects SYS_TEXT_BASE for HS
devices.

Also adds TI_SECURE_DEVICE and FIT_IMAGE_POST_PROCESS to include support for secure image creation and authentication

Thanks and regards,
Lokesh

Quoted 56 lines

---

 configs/k2l_hs_evm_defconfig | 43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)
 create mode 100644 configs/k2l_hs_evm_defconfig
configs/k2l_hs_evm_defconfig new file +43 -0
new file mode 100644
index 0000000..cc002d3
@@ -0,0 +1,43 @@
+CONFIG_ARM=y
+CONFIG_ARCH_KEYSTONE=y
+CONFIG_TI_SECURE_DEVICE=y
+CONFIG_SYS_TEXT_BASE=0xC000060
+CONFIG_TI_COMMON_CMD_OPTIONS=y
+CONFIG_TARGET_K2L_EVM=y
+CONFIG_DEFAULT_DEVICE_TREE="keystone-k2l-evm"
+CONFIG_FIT_IMAGE_POST_PROCESS=y
+CONFIG_OF_BOARD_SETUP=y
+CONFIG_SYS_CONSOLE_INFO_QUIET=y
+CONFIG_VERSION_VARIABLE=y
+CONFIG_BOARD_EARLY_INIT_F=y
+CONFIG_HUSH_PARSER=y
+# CONFIG_CMD_FLASH is not set
+# CONFIG_CMD_GPIO is not set
+# CONFIG_CMD_GPT is not set
+# CONFIG_CMD_MMC is not set
+CONFIG_CMD_NAND=y
+# CONFIG_CMD_SETEXPR is not set
+CONFIG_MTDIDS_DEFAULT="nand0=davinci_nand.0"
+CONFIG_MTDPARTS_DEFAULT="mtdparts=davinci_nand.0:1024k(bootloader)ro,512k(params)ro,-(ubifs)"
+CONFIG_CMD_UBI=y
+CONFIG_ISO_PARTITION=y
+CONFIG_EFI_PARTITION=y
+CONFIG_OF_CONTROL=y
+CONFIG_ENV_IS_IN_NAND=y
+CONFIG_NET_RANDOM_ETHADDR=y
+CONFIG_DM=y
+CONFIG_TI_AEMIF=y
+# CONFIG_MMC is not set
+CONFIG_DM_SPI_FLASH=y
+CONFIG_SPI_FLASH=y
+CONFIG_SPI_FLASH_STMICRO=y
+CONFIG_PHYLIB=y
+CONFIG_DM_ETH=y
+CONFIG_DM_SERIAL=y
+CONFIG_SYS_NS16550=y
+CONFIG_DM_SPI=y
+CONFIG_DAVINCI_SPI=y
+CONFIG_USB=y
+CONFIG_USB_XHCI_HCD=y
+CONFIG_USB_XHCI_DWC3=y
+CONFIG_USB_STORAGE=y
#5 lore raw

PATCH 2/2 defconfig: k2l_hs_evm: Add k2l_hs_evm_defconfig

Quoted 12 lines · Lokesh Vutla

+Tom

Quoted 9 lines · Madan Srinivas

Adds a dedicated defconfig to build TI K2L secure devices. Created from the k2l_evm_defconfig and removes support for SPL, as SPL is not supported on K2 HS devices. Corrects SYS_TEXT_BASE for HS devices.

Also adds TI_SECURE_DEVICE and FIT_IMAGE_POST_PROCESS to include support for secure image creation and authentication

Quoted 12 lines
Quoted 1 line

Thanks and regards,
Lokesh

Quoted 5 lines

---

 configs/k2l_hs_evm_defconfig | 43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)
 create mode 100644 configs/k2l_hs_evm_defconfig

Needs to update the relevant MAINTAINERS file, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180227/fca5ae22/attachment.sig>
#6 lore raw

cover Adds support for secure boot on TCI6630K2L HS devices

In reply to Madan Srinivas
Quoted 7 lines · Madan Srinivas

This series adds support for the secure Lammar (K2L) SoC.

It defines a new defconfig file for K2L HS, based on the GP K2L defconfig and updates the u-boot default env variables to install the secure boot-monitor on startup.

Quoted 10 lines

Madan Srinivas (2):
configs: k2l: Updates u-boot env to install secure boot monitor
defconfig: k2l_hs_evm: Add k2l_hs_evm_defconfig

 configs/k2l_hs_evm_defconfig | 43 +++++++++++++++++++++++++++++++++++++++++++
 include/configs/k2l_evm.h    |  9 +++++++++
 2 files changed, 52 insertions(+)
 create mode 100644 configs/k2l_hs_evm_defconfig