diff options
author | Andrey Zhizhikin <andrey.z@gmail.com> | 2021-05-03 10:57:05 +0000 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2021-05-04 14:07:09 -0300 |
commit | 122bfa162197075949adf826a39119cc21c6955f (patch) | |
tree | 766d608ce2f3a93a9c7e8434c4cedf015b0a84e0 /conf/machine | |
parent | e465b75e5cc6bce98d7fb2aacbd2eb1c98b21a22 (diff) | |
download | meta-freescale-122bfa162197075949adf826a39119cc21c6955f.tar.gz |
conf: machine: imx8m[m,n,p]: enable extlinux support
Newer U-Boot versions enables distro boot option as a default. This
requires that the target uses either Syslinux or boot script in order to
start instead of customized boot environment.
Since according to U-Boot documentation [1], Syslinux is considered as a
preferred way of using distro boot - enable it for imx8mm, imx8mn and
imx8mp derivatives for mainline BSP.
Syslinux options are introduced in machine-specific headers in order
to assemble correct extlinux.conf file.
Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
Link: [1]: https://source.denx.de/u-boot/u-boot/-/blob/master/doc/README.distro
Diffstat (limited to 'conf/machine')
-rw-r--r-- | conf/machine/include/imx8mm-evk.inc | 19 | ||||
-rw-r--r-- | conf/machine/include/imx8mn-evk.inc | 19 | ||||
-rw-r--r-- | conf/machine/include/imx8mp-evk.inc | 19 |
3 files changed, 57 insertions, 0 deletions
diff --git a/conf/machine/include/imx8mm-evk.inc b/conf/machine/include/imx8mm-evk.inc index 9b590fe0..bcf838ab 100644 --- a/conf/machine/include/imx8mm-evk.inc +++ b/conf/machine/include/imx8mm-evk.inc | |||
@@ -45,6 +45,25 @@ IMX_BOOT_SOC_TARGET = "iMX8MM" | |||
45 | 45 | ||
46 | SERIAL_CONSOLES = "115200;ttymxc1" | 46 | SERIAL_CONSOLES = "115200;ttymxc1" |
47 | 47 | ||
48 | # Add support for Syslinux to mainline BSP. | ||
49 | # U-Boot has the Distro Boot mode enabled by default, which | ||
50 | # require that either Syslinux to be enabled, or a boot script | ||
51 | # to be used to define the boot process. | ||
52 | # We opt-in for Syslinux, since it is designated as a preferred | ||
53 | # distro boot mode according to the U-Boot documentation. | ||
54 | UBOOT_EXTLINUX_use-mainline-bsp = "1" | ||
55 | UBOOT_EXTLINUX_LABELS_use-mainline-bsp = "default" | ||
56 | UBOOT_EXTLINUX_DEFAULT_LABEL_use-mainline-bsp = "i.MX8M Mini EVK" | ||
57 | |||
58 | UBOOT_EXTLINUX_MENU_DESCRIPTION_default_use-mainline-bsp = "i.MX8M Mini EVK" | ||
59 | UBOOT_EXTLINUX_FDT_default_use-mainline-bsp = "../${KERNEL_DEVICETREE_BASENAME}.dtb" | ||
60 | UBOOT_EXTLINUX_CONSOLE_default_use-mainline-bsp = "console=${console}" | ||
61 | UBOOT_EXTLINUX_ROOT_default_use-mainline-bsp = "root=/dev/mmcblk1p2" | ||
62 | |||
63 | # Add extlinux.conf to the lis of files, which are deployed onto the | ||
64 | # boot partition | ||
65 | IMAGE_BOOT_FILES_append_use-mainline-bsp = " extlinux.conf;extlinux/extlinux.conf" | ||
66 | |||
48 | LOADADDR = "" | 67 | LOADADDR = "" |
49 | UBOOT_SUFFIX = "bin" | 68 | UBOOT_SUFFIX = "bin" |
50 | UBOOT_MAKE_TARGET = "all" | 69 | UBOOT_MAKE_TARGET = "all" |
diff --git a/conf/machine/include/imx8mn-evk.inc b/conf/machine/include/imx8mn-evk.inc index 6a5b31f7..a0e39857 100644 --- a/conf/machine/include/imx8mn-evk.inc +++ b/conf/machine/include/imx8mn-evk.inc | |||
@@ -46,6 +46,25 @@ IMX_BOOT_SOC_TARGET = "iMX8MN" | |||
46 | 46 | ||
47 | SERIAL_CONSOLES = "115200;ttymxc1" | 47 | SERIAL_CONSOLES = "115200;ttymxc1" |
48 | 48 | ||
49 | # Add support for Syslinux to mainline BSP. | ||
50 | # U-Boot has the Distro Boot mode enabled by default, which | ||
51 | # require that either Syslinux to be enabled, or a boot script | ||
52 | # to be used to define the boot process. | ||
53 | # We opt-in for Syslinux, since it is designated as a preferred | ||
54 | # distro boot mode according to the U-Boot documentation. | ||
55 | UBOOT_EXTLINUX_use-mainline-bsp = "1" | ||
56 | UBOOT_EXTLINUX_LABELS_use-mainline-bsp = "default" | ||
57 | UBOOT_EXTLINUX_DEFAULT_LABEL_use-mainline-bsp = "i.MX8M Nano EVK" | ||
58 | |||
59 | UBOOT_EXTLINUX_MENU_DESCRIPTION_default_use-mainline-bsp = "i.MX8M Nano EVK" | ||
60 | UBOOT_EXTLINUX_FDT_default_use-mainline-bsp = "../${KERNEL_DEVICETREE_BASENAME}.dtb" | ||
61 | UBOOT_EXTLINUX_CONSOLE_default_use-mainline-bsp = "console=${console}" | ||
62 | UBOOT_EXTLINUX_ROOT_default_use-mainline-bsp = "root=/dev/mmcblk1p2" | ||
63 | |||
64 | # Add extlinux.conf to the lis of files, which are deployed onto the | ||
65 | # boot partition | ||
66 | IMAGE_BOOT_FILES_append_use-mainline-bsp = " extlinux.conf;extlinux/extlinux.conf" | ||
67 | |||
49 | BOOT_SPACE = "65536" | 68 | BOOT_SPACE = "65536" |
50 | LOADADDR = "" | 69 | LOADADDR = "" |
51 | UBOOT_SUFFIX = "bin" | 70 | UBOOT_SUFFIX = "bin" |
diff --git a/conf/machine/include/imx8mp-evk.inc b/conf/machine/include/imx8mp-evk.inc index 872d07a0..814638d0 100644 --- a/conf/machine/include/imx8mp-evk.inc +++ b/conf/machine/include/imx8mp-evk.inc | |||
@@ -43,6 +43,25 @@ IMX_BOOT_SOC_TARGET = "iMX8MP" | |||
43 | 43 | ||
44 | SERIAL_CONSOLES = "115200;ttymxc1" | 44 | SERIAL_CONSOLES = "115200;ttymxc1" |
45 | 45 | ||
46 | # Add support for Syslinux to mainline BSP. | ||
47 | # U-Boot has the Distro Boot mode enabled by default, which | ||
48 | # require that either Syslinux to be enabled, or a boot script | ||
49 | # to be used to define the boot process. | ||
50 | # We opt-in for Syslinux, since it is designated as a preferred | ||
51 | # distro boot mode according to the U-Boot documentation. | ||
52 | UBOOT_EXTLINUX_use-mainline-bsp = "1" | ||
53 | UBOOT_EXTLINUX_LABELS_use-mainline-bsp = "default" | ||
54 | UBOOT_EXTLINUX_DEFAULT_LABEL_use-mainline-bsp = "i.MX8M Plus EVK" | ||
55 | |||
56 | UBOOT_EXTLINUX_MENU_DESCRIPTION_default_use-mainline-bsp = "i.MX8M Plus EVK" | ||
57 | UBOOT_EXTLINUX_FDT_default_use-mainline-bsp = "../${KERNEL_DEVICETREE_BASENAME}.dtb" | ||
58 | UBOOT_EXTLINUX_CONSOLE_default_use-mainline-bsp = "console=${console}" | ||
59 | UBOOT_EXTLINUX_ROOT_default_use-mainline-bsp = "root=/dev/mmcblk1p2" | ||
60 | |||
61 | # Add extlinux.conf to the lis of files, which are deployed onto the | ||
62 | # boot partition | ||
63 | IMAGE_BOOT_FILES_append_use-mainline-bsp = " extlinux.conf;extlinux/extlinux.conf" | ||
64 | |||
46 | LOADADDR = "" | 65 | LOADADDR = "" |
47 | UBOOT_SUFFIX = "bin" | 66 | UBOOT_SUFFIX = "bin" |
48 | UBOOT_MAKE_TARGET = "all" | 67 | UBOOT_MAKE_TARGET = "all" |