Skip to content
Snippets Groups Projects
Commit 32d2b63e authored by Florian Mayer's avatar Florian Mayer
Browse files

Change environments for secure boot

parent 45093ce8
No related branches found
No related tags found
No related merge requests found
Pipeline #6285 canceled
......@@ -102,7 +102,7 @@
"pxefile_addr_r=" KONTRON_ENV_PXE_ADDR "\0" \
"scriptaddr=" KONTRON_ENV_PXE_ADDR "\0" \
"bootdir=\0" \
"bootdelay=3\0" \
"bootdelay=" KONTRON_BOOTDELAY "\0" \
"ipaddr=192.168.1.11\0" \
"serverip=192.168.1.10\0" \
"gatewayip=192.168.1.10\0" \
......@@ -111,6 +111,7 @@
"hostname=" CONFIG_HOSTNAME "\0" \
"bootubipart=spi-nand0\0" \
"bootubivol=boot\0" \
KONTRON_SECURE_BOOT \
BOOTENV
#endif /* __KONTRON_COMMON_CONFIG_H */
......@@ -14,6 +14,8 @@
#define KONTRON_ENV_KERNEL_CONSOLE ""
#define KONTRON_ENV_KERNEL_MTDPARTS "mtdparts=spi1.0:128k(spl),832k(u-boot),64k(env);spi4.0:192m(rootfs),-(user)"
#define KONTRON_ENV_KERNEL_ADDR "0x82000000"
#define KONTRON_ENV_FDT_ADDR "0x83000000"
#define KONTRON_ENV_PXE_ADDR "0x83100000"
......@@ -35,6 +37,25 @@
#else
#define BOOTENV
#endif
/*Secure boot options*/
#ifdef CONFIG_IMX_HAB
#define KONTRON_SECURE_BOOT \
"secure_bootcmd="\
"if fatload mmc 0:1 ${loadaddr} zImage_signed.bin;" \
"then " \
"fatload mmc 0:1 ${fdt_addr_r} baseboard.dtb;"\
"if hab_auth_img ${loadaddr} 007d9960 7d8000;" \
"then " \
"setenv bootargs root=/dev/mmcblk0p2 rootwait console=ttymxc3,115200;" \
"bootz ${loadaddr} - ${fdt_addr_r};" \
"else reset;" \
"fi;" \
"fi\0"
#define KONTRON_BOOTDELAY "0"
#else
#define KONTRON_SECURE_BOOT
#define KONTRON_BOOTDELAY "3"
#endif
/* MMC Configs */
#ifdef CONFIG_FSL_USDHC
......
......@@ -26,6 +26,11 @@
/* Common options for Kontron Electronics boards */
#include "kontron_common.h"
/*Secure boot options*/
#define KONTRON_SECURE_BOOT "secure_bootcmd=echo secure boot not enable\0"
#define KONTRON_BOOTDELAY "3"
#ifndef CONFIG_SPL_BUILD
#define BOOT_TARGET_DEVICES(func) \
func(MMC, mmc, 1) \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment