From 912a867e46040ddb128c1f0442945ad67b5e1b1c Mon Sep 17 00:00:00 2001 From: Gerard Salvatella Date: Thu, 9 May 2019 16:57:57 +0200 Subject: apalis-imx8: enable distro boot in tezi Tezi uses Distro Boot by default. Enable it and modify the appropriate environment. Signed-off-by: Gerard Salvatella --- include/configs/apalis-imx8.h | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) (limited to 'include/configs/apalis-imx8.h') diff --git a/include/configs/apalis-imx8.h b/include/configs/apalis-imx8.h index 7d22ee51202..67721bd23c7 100644 --- a/include/configs/apalis-imx8.h +++ b/include/configs/apalis-imx8.h @@ -83,22 +83,23 @@ "m4boot_0=run loadm4image_0; dcache flush; bootaux ${loadaddr} 0\0" \ "m4boot_1=run loadm4image_1; dcache flush; bootaux ${loadaddr} 1\0" \ -#define CONFIG_MFG_ENV_SETTINGS \ - "mfgtool_args=setenv bootargs console=${console},${baudrate} " \ - "rdinit=/linuxrc " \ - "g_mass_storage.stall=0 g_mass_storage.removable=1 " \ - "g_mass_storage.idVendor=0x066F g_mass_storage.idProduct=0x37FF "\ - "g_mass_storage.iSerialNumber=\"\" "\ - "video=imxdpufb5:off video=imxdpufb6:off video=imxdpufb7:off " \ - "clk_ignore_unused "\ - "\0" \ - "initrd_addr=0x83800000\0" \ - "initrd_high=0xffffffff\0" \ - "bootcmd_mfg=run mfgtool_args;booti ${loadaddr} ${initrd_addr} ${fdt_addr};\0" \ +/* Enable Distro Boot */ +#ifndef CONFIG_SPL_BUILD +#define BOOT_TARGET_DEVICES(func) \ + func(MMC, mmc, 1) \ + func(MMC, mmc, 2) \ + func(MMC, mmc, 0) \ + func(USB, usb, 0) \ + func(DHCP, dhcp, na) +#include +#undef CONFIG_ISO_PARTITION +#else +#define BOOTENV +#endif /* Initial environment variables */ #define CONFIG_EXTRA_ENV_SETTINGS \ - CONFIG_MFG_ENV_SETTINGS \ + BOOTENV \ M4_BOOT_ENV \ MEM_LAYOUT_ENV_SETTINGS \ "script=boot.scr\0" \ @@ -160,6 +161,9 @@ "fi;\0" #undef CONFIG_BOOTCOMMAND +#ifdef CONFIG_TDX_EASY_INSTALLER +#define CONFIG_BOOTCOMMAND "run distro_bootcmd" +#else #define CONFIG_BOOTCOMMAND \ "mmc dev ${mmcdev}; if mmc rescan; then " \ "if run loadbootscript; then " \ @@ -171,6 +175,7 @@ "fi; " \ "fi; " \ "else booti ${loadaddr} - ${fdt_addr}; fi" +#endif /* Link Definitions */ #define CONFIG_LOADADDR 0x80280000 -- cgit v1.2.3