Skip to contentSkip to conversation

configs: imx8mp_beacon: Do not set SYS_CONSOLE_IS_IN_ENV

PATCH In review Adam Ford 2 participants 9 messages Oct 25, 2023 – Dec 13, 2023 Arm i.MX and Layerscape

lore
Share & tools
lore

Adam Ford

author
#0 lore raw

PATCH 1/5 configs: imx8mp_beacon: Do not set SYS_CONSOLE_IS_IN_ENV

The hardware only supports a specific console port, so remove the option to change the console location in the environment.

---
 configs/imx8mp_beacon_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/imx8mp_beacon_defconfig +1 -0
index b686af8d18..c758ff371d 100644
@@ -42,6 +42,7 @@ CONFIG_DISTRO_DEFAULTS=y
 CONFIG_OF_SYSTEM_SETUP=y
 CONFIG_BOOTCOMMAND="mmc dev ${mmcdev}; if mmc rescan; then if run loadbootscript; then run bootscript; else if run loadimage; then run mmcboot; else run netboot; fi; fi; else booti ${loadaddr} - ${fdt_addr}; fi"
 CONFIG_DEFAULT_FDT_FILE="imx8mp-beacon-kit.dtb"
+# CONFIG_SYS_CONSOLE_IS_IN_ENV is not set
 # CONFIG_SYS_DEVICE_NULLDEV is not set
 CONFIG_SPL_MAX_SIZE=0x26000
 CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
Signature · 1 line
2.40.1
author
#1 lore raw

PATCH 2/5 configs: imx8mm_beacon: Enable fastboot downloading

Fastboot is necessary to use UUU enhanced functions, so enable it.

---
 configs/imx8mm_beacon_defconfig | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
configs/imx8mm_beacon_defconfig +5 -1
index 031470c169..886d912650 100644
@@ -86,6 +86,11 @@ CONFIG_SPL_CLK_COMPOSITE_CCF=y
 CONFIG_CLK_COMPOSITE_CCF=y
 CONFIG_SPL_CLK_IMX8MM=y
 CONFIG_CLK_IMX8MM=y
+CONFIG_USB_FUNCTION_FASTBOOT=y
+CONFIG_FASTBOOT_BUF_ADDR=0x42800000
+CONFIG_FASTBOOT_BUF_SIZE=0x20000000
+CONFIG_FASTBOOT_FLASH=y
+CONFIG_FASTBOOT_FLASH_MMC_DEV=2
 CONFIG_MXC_GPIO=y
 CONFIG_DM_PCA953X=y
 CONFIG_DM_I2C=y
@@ -142,6 +147,5 @@ CONFIG_USB_GADGET_VENDOR_NUM=0x0525
 CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
 CONFIG_CI_UDC=y
 CONFIG_SDP_LOADADDR=0x40400000
-CONFIG_USB_GADGET_DOWNLOAD=y
 CONFIG_SPL_USB_SDP_SUPPORT=y
 CONFIG_IMX_WATCHDOG=y
Signature · 1 line
2.40.1
author
#2 lore raw

PATCH 3/5 configs: imx8mm_beacon: Disable the WDT autostart

In reply to Adam Ford

Auto-starting the WDT can cause false reboots when the user is not intentionally trying to use the WDT, so leave it off until it is requested.

---
 configs/imx8mm_beacon_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/imx8mm_beacon_defconfig +1 -0
index 886d912650..b33e113580 100644
@@ -148,4 +148,5 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
 CONFIG_CI_UDC=y
 CONFIG_SDP_LOADADDR=0x40400000
 CONFIG_SPL_USB_SDP_SUPPORT=y
+# CONFIG_WATCHDOG_AUTOSTART is not set
 CONFIG_IMX_WATCHDOG=y
Signature · 1 line
2.40.1
author
#3 lore raw

PATCH 4/5 configs: imx8mn_beacon: Do not set SYS_CONSOLE_IS_IN_ENV

In reply to Adam Ford

The hardware only supports a specific console port, so remove the option to change the console location in the environment.

---
 configs/imx8mn_beacon_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/imx8mn_beacon_defconfig +1 -0
index 9409d5142c..cfff20f84f 100644
@@ -34,6 +34,7 @@ CONFIG_OF_SYSTEM_SETUP=y
 CONFIG_USE_BOOTCOMMAND=y
 CONFIG_BOOTCOMMAND="mmc dev ${mmcdev}; if mmc rescan; then if run loadbootscript; then run bootscript; else if run loadimage; then run mmcboot; else run netboot; fi; fi; else booti ${loadaddr} - ${fdt_addr}; fi"
 CONFIG_DEFAULT_FDT_FILE="imx8mn-beacon-kit.dtb"
+# CONFIG_SYS_CONSOLE_IS_IN_ENV is not set
 CONFIG_SPL_MAX_SIZE=0x25000
 CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
 CONFIG_SPL_BSS_START_ADDR=0x950000
Signature · 1 line
2.40.1
author
#4 lore raw

PATCH 5/5 configs: imx8mn_beacon: Disable the WDT autostart

In reply to Adam Ford

Auto-starting the WDT can cause false reboots when the user is not intentionally trying to use the WDT, so leave it off until it is requested.

---
 configs/imx8mn_beacon_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/imx8mn_beacon_defconfig +1 -0
index cfff20f84f..d1c27ce22c 100644
@@ -150,4 +150,5 @@ CONFIG_USB_GADGET_MANUFACTURER="FSL"
 CONFIG_USB_GADGET_VENDOR_NUM=0x0525
 CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
 CONFIG_CI_UDC=y
+# CONFIG_WATCHDOG_AUTOSTART is not set
 CONFIG_IMX_WATCHDOG=y
Signature · 1 line
2.40.1
author
#6 lore raw
Quoted 10 lines · Fabio Estevam
Quoted 5 lines · Adam Ford

The hardware only supports a specific console port, so remove the option to change the console location in the environment.

For the series:

Fabio / Stefan,

Is there any chance this series can be applied to imx-next?

Quoted 1 line
reviewer
#7 lore raw

Hi Adam,

Quoted 3 lines · Adam Ford

Fabio / Stefan,

Is there any chance this series can be applied to imx-next?

Yes, I will start collecting patches for u-boot-imx next soon.