summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeonard Crestez <leonard.crestez@nxp.com>2017-11-29 14:56:54 +0200
committerYe Li <ye.li@nxp.com>2018-04-27 06:15:00 -0700
commitd705425c698a71fb070a04b327248bac00681111 (patch)
treefbe6d95aee5c19e2bc2142f7ea7857f9cfed6d11 /include
parentf71b5a989d0292e17f8a5ad526ea8faa3d28ea60 (diff)
MLK-18168 imx8qm_arm2: Add xen boot commands
These commands try to be as generic as possible and avoid duplicating argument values used for regular boot. The fdt_file parameter still needs to be set to a .dtb for dom0. Booting xen with stock dtb would require more hacks, for example lpuart interrupt-parent = <&wu> needs to be removed. Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com> (cherry picked from commit 4c671ef548e2b7f352be184215306766ebc1cc45)
Diffstat (limited to 'include')
-rw-r--r--include/configs/imx8qm_arm2.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/include/configs/imx8qm_arm2.h b/include/configs/imx8qm_arm2.h
index f210417c29e..67a4644c1e0 100644
--- a/include/configs/imx8qm_arm2.h
+++ b/include/configs/imx8qm_arm2.h
@@ -128,9 +128,38 @@
"initrd_high=0xffffffff\0" \
"bootcmd_mfg=run mfgtool_args;booti ${loadaddr} ${initrd_addr} ${fdt_addr};\0" \
+#define XEN_BOOT_ENV \
+ "xenhyper_bootargs=console=dtuart dtuart=/serial@5a060000 dom0_mem=1024M\0" \
+ "xenlinux_bootargs=clk_ignore_unused\0" \
+ "xenlinux_console=hvc0 earlycon=xen\0" \
+ "xenboot_common=" \
+ "${get_cmd} ${loadaddr} xen;" \
+ "${get_cmd} ${fdt_addr} ${fdt_file};" \
+ "${get_cmd} ${initrd_addr} ${image};" \
+ "fdt addr ${fdt_addr};" \
+ "fdt resize 256;" \
+ "fdt set /chosen/module@0 reg <0x00000000 ${initrd_addr} 0x00000000 0x${filesize}>; " \
+ "fdt set /chosen/module@0 bootargs \"${bootargs} ${xenlinux_bootargs}\"; " \
+ "setenv bootargs ${xenhyper_bootargs};" \
+ "booti ${loadaddr} - ${fdt_addr};" \
+ "\0" \
+ "xennetboot=" \
+ "setenv get_cmd dhcp;" \
+ "setenv console ${xenlinux_console};" \
+ "run netargs;" \
+ "run xenboot_common;" \
+ "\0" \
+ "xenmmcboot=" \
+ "setenv get_cmd \"fatload mmc ${mmcdev}:${mmcpart}\";" \
+ "setenv console ${xenlinux_console};" \
+ "run mmcargs;" \
+ "run xenboot_common;" \
+ "\0" \
+
/* Initial environment variables */
#define CONFIG_EXTRA_ENV_SETTINGS \
CONFIG_MFG_ENV_SETTINGS \
+ XEN_BOOT_ENV \
M4_BOOT_ENV \
"script=boot.scr\0" \
"image=Image\0" \