From: Peng Fan Date: Tue, 13 Mar 2018 01:46:39 +0000 (+0800) Subject: MLK-17786: imx8qm: add xen boot script X-Git-Tag: rel_imx_4.9.88_2.0.0_ga~35 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=2fd813fcfcb82f28f353fbdc727765d6e848bfd7;p=u-boot.git MLK-17786: imx8qm: add xen boot script Add XEN boot script to ease booting. Signed-off-by: Peng Fan --- diff --git a/include/configs/imx8qm_mek.h b/include/configs/imx8qm_mek.h index 2d3be6ddfb..28bb58ca5a 100644 --- a/include/configs/imx8qm_mek.h +++ b/include/configs/imx8qm_mek.h @@ -90,6 +90,34 @@ #define CONFIG_LIB_RAND #define CONFIG_NET_RANDOM_ETHADDR + +#define XEN_BOOT_ENV \ + "xenhyper_bootargs=console=dtuart dtuart=/serial@5a060000 dom0_mem=2048M dom0_max_vcpus=2 dom0_vcpus_pin=true hmp-unsafe=true\0" \ + "xenlinux_bootargs= \0" \ + "xenlinux_console=hvc0 earlycon=xen\0" \ + "xenboot_common=" \ + "${get_cmd} ${loadaddr} xen;" \ + "${get_cmd} ${fdt_addr} fsl-imx8qm-mek-dom0.dtb;" \ + "${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" \ /* Boot M4 */ #define M4_BOOT_ENV \ "m4_0_image=m4_0.bin\0" \ @@ -123,6 +151,7 @@ #define CONFIG_EXTRA_ENV_SETTINGS \ CONFIG_MFG_ENV_SETTINGS \ M4_BOOT_ENV \ + XEN_BOOT_ENV \ "script=boot.scr\0" \ "image=Image\0" \ "panel=NULL\0" \ @@ -310,5 +339,4 @@ #define CONFIG_OF_SYSTEM_SETUP #define BOOTAUX_RESERVED_MEM_BASE 0x88000000 #define BOOTAUX_RESERVED_MEM_SIZE 0x08000000 /* Reserve from second 128MB */ - #endif /* __IMX8QM_MEK_H */