diff options
author | Peng Fan <peng.fan@nxp.com> | 2018-07-23 15:29:07 +0800 |
---|---|---|
committer | Peng Fan <peng.fan@nxp.com> | 2018-07-25 07:51:22 +0800 |
commit | 864c2f9cb3463bfa715cbfd1d7ca16d8bd323003 (patch) | |
tree | 2bb95fa1a1b61386f66d65b4c8e600676e718a23 /include/configs/imx8qxp_mek.h | |
parent | 31cd9242b1a15d9526673bdb467e58ab018769c4 (diff) |
MLK-19011-1 configs: imx8qxp_mek: add jailhouse boot env
Add jailhouse boot env. Use `run jh_netboot` or `jh_mmcboot`
to boot Linux.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit 8a575a160b8e4f8cfdd79177a8f9551106395cf9)
Diffstat (limited to 'include/configs/imx8qxp_mek.h')
-rw-r--r-- | include/configs/imx8qxp_mek.h | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/include/configs/imx8qxp_mek.h b/include/configs/imx8qxp_mek.h index 5b86a3192b..c6972c8966 100644 --- a/include/configs/imx8qxp_mek.h +++ b/include/configs/imx8qxp_mek.h @@ -111,6 +111,16 @@ "emmc_dev=0\0" \ "sd_dev=1\0" \ +#define JAILHOUSE_ENV \ + "jh_mmcboot=" \ + "setenv fdt_file fsl-imx8qxp-mek-root.dtb;"\ + "setenv boot_os 'scu_rm dtb ${fdt_addr}; booti ${loadaddr} - ${fdt_addr};'; " \ + "run mmcboot; \0" \ + "jh_netboot=" \ + "setenv fdt_file fsl-imx8qxp-mek-root.dtb;"\ + "setenv boot_os 'scu_rm dtb ${fdt_addr}; booti ${loadaddr} - ${fdt_addr};'; " \ + "run netboot; \0" + #define XEN_BOOT_ENV \ "xenhyper_bootargs=console=dtuart dtuart=/serial@5a060000 dom0_mem=1024M dom0_max_vcpus=2 dom0_vcpus_pin=true\0" \ "xenlinux_bootargs= \0" \ @@ -145,6 +155,7 @@ CONFIG_MFG_ENV_SETTINGS \ M4_BOOT_ENV \ XEN_BOOT_ENV \ + JAILHOUSE_ENV\ AHAB_ENV \ "script=boot.scr\0" \ "image=Image\0" \ @@ -169,18 +180,19 @@ "loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \ "loadcntr=fatload mmc ${mmcdev}:${mmcpart} ${cntr_addr} ${cntr_file}\0" \ "auth_os=auth_cntr ${cntr_addr}\0" \ + "boot_os=booti ${loadaddr} - ${fdt_addr};\0" \ "mmcboot=echo Booting from mmc ...; " \ "run mmcargs; " \ "if test ${sec_boot} = yes; then " \ "if run auth_os; then " \ - "booti ${loadaddr} - ${fdt_addr}; " \ + "run boot_os; " \ "else " \ "echo ERR: failed to authenticate; " \ "fi; " \ "else " \ "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \ "if run loadfdt; then " \ - "booti ${loadaddr} - ${fdt_addr}; " \ + "run boot_os; " \ "else " \ "echo WARN: Cannot load the DT; " \ "fi; " \ @@ -201,7 +213,7 @@ "if test ${sec_boot} = yes; then " \ "${get_cmd} ${cntr_addr} ${cntr_file}; " \ "if run auth_os; then " \ - "booti ${loadaddr} - ${fdt_addr}; " \ + "run boot_os; " \ "else " \ "echo ERR: failed to authenticate; " \ "fi; " \ @@ -209,7 +221,7 @@ "${get_cmd} ${loadaddr} ${image}; " \ "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \ "if ${get_cmd} ${fdt_addr} ${fdt_file}; then " \ - "booti ${loadaddr} - ${fdt_addr}; " \ + "run boot_os; " \ "else " \ "echo WARN: Cannot load the DT; " \ "fi; " \ |