diff options
author | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2018-06-04 16:23:13 +0200 |
---|---|---|
committer | Stefan Agner <stefan.agner@toradex.com> | 2018-07-27 14:50:18 +0200 |
commit | f809cb4a7813613b79571a2c5a3d3d4b8598831c (patch) | |
tree | d1e8264067d9fecd28dab03c06c50fe92cf2bb30 /board | |
parent | 08370b35049d86316770580dbd17005ffffcf068 (diff) |
apalis_t30: integrate tezi recovery
In case of Tezi recovery do not stop regular auto booting but rather
load the tezi.itb which got put at a fixed offset of 1M from the
regular loadaddr.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Acked-by: Stefan Agner <stefan.agner@toradex.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/toradex/apalis_t30/apalis_t30.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/board/toradex/apalis_t30/apalis_t30.c b/board/toradex/apalis_t30/apalis_t30.c index 3151078119b..7dcd6648e35 100644 --- a/board/toradex/apalis_t30/apalis_t30.c +++ b/board/toradex/apalis_t30/apalis_t30.c @@ -55,7 +55,23 @@ int arch_misc_init(void) if (readl(NV_PA_BASE_SRAM + NVBOOTINFOTABLE_BOOTTYPE) == NVBOOTTYPE_RECOVERY) { printf("USB recovery mode, disabled autoboot\n"); +#ifdef CONFIG_TDX_EASY_INSTALLER + setenv("bootdelay", "-2"); + setenv("defargs", "pcie_aspm=off user_debug=30"); + setenv("fdt_high", ""); + setenv("initrd_high", ""); + setenv("setup", "setenv setupargs igb_mac=${ethaddr} " \ + "consoleblank=0 no_console_suspend=1 " \ + "console=${console},${baudrate}n8 ${memargs}"); + setenv("teziargs", "rootfstype=squashfs root=/dev/ram quiet " \ + "autoinstall"); + setenv("vidargs", "video=HDMI-A-1:640x480-16@60 hotplugfb"); + setenv("bootcmd", "run setup; setenv bootargs ${defargs} " \ + "${setupargs} ${vidargs} ${teziargs}; " \ + "bootm 0x80208000#config@1"); +#else /* CONFIG_TDX_EASY_INSTALLER */ setenv("bootdelay", "-1"); +#endif /* CONFIG_TDX_EASY_INSTALLER */ } return 0; |