Skip to contentSkip to conversation

imx8mq: configs: add support for distro boot commands

PATCH New Alice Guo (OSS) 2 participants 2 messages Jan 14, 2021 – Jan 23, 2021 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 imx8mq: configs: add support for distro boot commands

From: Alice Guo <[email protected]>

Supported boot device types in iMX8MQ: MMC, DHCP.

CONFIG_DISTRO_DEFAULTS is added for enabling the DISTRO_DEFAULTS option.

CONFIG_BOOTCOMMAND which is defined in include/configs/imx8mq_evk.h is deleted because "run distro_bootcmd" is required to be the default boot mode.

scriptaddr is the location in RAM where boot.scr.uimg/boot.scr will be loaded to prior to execution.

kernel_addr_r is the location in RAM where the kernel will be loaded to.

Delete unnecessary environment variables because "run distro_bootcmd" is set to be the default boot mode.

---

Changes for v3:
- enable the DISTRO_DEFAULTS option by adding CONFIG_DISTRO_DEFAULTS=y
- modify commit log
Changes for v2:
- re-add boot_fdt, initrd_addr and bootm_size which may need to be used

 configs/imx8mq_evk_defconfig |  1 +
 include/configs/imx8mq_evk.h | 75 ++++++------------------------------
 2 files changed, 13 insertions(+), 63 deletions(-)
configs/imx8mq_evk_defconfig +1 -0
index de91a76d41..424301bf4d 100644
@@ -36,6 +36,7 @@ CONFIG_CMD_EXT2=y
 CONFIG_CMD_EXT4=y
 CONFIG_CMD_EXT4_WRITE=y
 CONFIG_CMD_FAT=y
+CONFIG_DISTRO_DEFAULTS=y
 CONFIG_OF_CONTROL=y
 CONFIG_ENV_OVERWRITE=y
 CONFIG_ENV_IS_IN_MMC=y
include/configs/imx8mq_evk.h +12 -63

91 lines not on this page · raw message

--
2.17.1

#1 lore raw

PATCH v3 1/1 imx8mq: configs: add support for distro boot commands

Quoted 11 lines

From: Alice Guo <[email protected]>
Supported boot device types in iMX8MQ: MMC, DHCP. CONFIG_DISTRO_DEFAULTS is added for enabling the DISTRO_DEFAULTS option. CONFIG_BOOTCOMMAND which is defined in include/configs/imx8mq_evk.h is deleted because "run distro_bootcmd" is required to be the default boot mode.
scriptaddr is the location in RAM where boot.scr.uimg/boot.scr will be loaded to prior to execution.
kernel_addr_r is the location in RAM where the kernel will be loaded to. Delete unnecessary environment variables because "run distro_bootcmd" is set to be the default boot mode.

Quoted 1 line

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================