]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: imx: Set stdio to serial on DH i.MX8M Plus DHCOM
authorMarek Vasut <marex@denx.de>
Sat, 13 Jan 2024 17:58:30 +0000 (18:58 +0100)
committerFabio Estevam <festevam@gmail.com>
Sat, 13 Jan 2024 18:02:24 +0000 (15:02 -0300)
In case CONSOLE_MUX and SYS_CONSOLE_IS_IN_ENV are enabled, the console
stdin, stdout, stderr must be defined in environment. Define the default
settings to fix the following warning on boot:

"
In:    No input devices available!
Out:   No output devices available!
Err:   No error devices available!
"

Sort the default environment as well.

Signed-off-by: Marek Vasut <marex@denx.de>
include/configs/imx8mp_dhcom_pdk2.h

index d022faaa91a48aec7341af9b7f00389a1ad8d8ba..ea32fe11a52969ba50b2b336b9bac7479d6c13da 100644 (file)
 #define CFG_SYS_FSL_USDHC_NUM  2
 #define CFG_SYS_FSL_ESDHC_ADDR 0
 
-#define CFG_EXTRA_ENV_SETTINGS                                 \
+#define CFG_EXTRA_ENV_SETTINGS                                         \
        "altbootcmd=run bootcmd ; reset\0"                              \
        "bootlimit=3\0"                                                 \
-       "kernel_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0"         \
-       "pxefile_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0"        \
-       "ramdisk_addr_r=0x58000000\0"                                   \
-       "scriptaddr=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0"            \
-       /* Give slow devices beyond USB HUB chance to come up. */       \
-       "usb_pgood_delay=2000\0"                                        \
        "dfu_alt_info="                                                 \
                /* RAM block at DRAM offset 256..768 MiB */             \
                "ram ram0=ram ram 0x50000000 0x20000000&"               \
        "dh_update_emmc_to_sf="                                         \
                "load mmc 1:1 ${loadaddr} boot/flash.bin && "           \
                "run dh_update_sf_gen_fcfb dh_update_sf_write_data\0"   \
+       "kernel_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0"         \
+       "pxefile_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0"        \
+       "ramdisk_addr_r=0x58000000\0"                                   \
+       "scriptaddr=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0"            \
+       "stdin=serial\0"                                                \
+       "stdout=serial\0"                                               \
+       "stderr=serial\0"                                               \
+       /* Give slow devices beyond USB HUB chance to come up. */       \
+       "usb_pgood_delay=2000\0"                                        \
        BOOTENV
 
 #define BOOT_TARGET_DEVICES(func)      \