mx6cuboxi: Do not print devicetree model
PATCH v2 1/1 mx6cuboxi: Do not print devicetree model
The mx6cuboxi_defconfig target supports several board variants. All of these variants use the hummingboard devicetree in U-Boot.
Currently, the devicetree model as well as the board variant name are shown:
...
Model: SolidRun HummingBoard2 Dual/Quad (1.5som+emmc)
Board: MX6 Cubox-i
...
Printing the devicetree model that is used internally by U-Boot may confuse users.
Unselect the CONFIG_DISPLAY_BOARDINFO option so that only the board name is printed in board_late_init() instead.
---
Changes since v1:
- Remove checkboard and print the board name in board_late_init().
board/solidrun/mx6cuboxi/mx6cuboxi.c | 40 ++++++---------------------- configs/mx6cuboxi_defconfig | 1 + 2 files changed, 9 insertions(+), 32 deletions(-)
board/solidrun/mx6cuboxi/mx6cuboxi.c +8 -32
@@ -381,37 +381,6 @@ static bool has_emmc(void)return (mmc_get_op_cond (mmc, true) <0 ) ?0 :1 ; } -/* Override the default implementation, DT model is not accurate */ -int checkboard (void ) -{ -request_detect_gpios (); - -switch (board_type ()) { -case CUBOXI : -puts ("Board: MX6 Cubox-i" ); -break ; -case HUMMINGBOARD : -puts ("Board: MX6 HummingBoard" ); -break ; -case HUMMINGBOARD2 : -puts ("Board: MX6 HummingBoard2" ); -break ; -case UNKNOWN : -default : -puts ("Board: Unknown\n" ); - goto out; - } - -if (is_rev_15_som ()) -puts (" (som rev 1.5)\n" ); -else -puts ("\n" ); - -free_detect_gpios (); -out: -return 0 ; -} -static int find_ethernet_phy (void ) {struct mii_dev *bus =NULL ;
@@ -505,12 +474,15 @@ int board_late_init(void)switch (board_type ()) {case CUBOXI :env_set ("board_name" ,"CUBOXI" ); +puts ("Board: MX6 Cubox-i" );break ;case HUMMINGBOARD :env_set ("board_name" ,"HUMMINGBOARD" ); +puts ("Board: MX6 HummingBoard" );break ;case HUMMINGBOARD2 :env_set ("board_name" ,"HUMMINGBOARD2" ); +puts ("Board: MX6 HummingBoard2" );break ;case UNKNOWN :default :
@@ -522,8 +494,12 @@ int board_late_init(void)else env_set ("board_rev" ,"MX6DL" ); -if (is_rev_15_som ()) +if (is_rev_15_som ()) {env_set ("som_rev" ,"V15" ); +puts (" (som rev 1.5)\n" ); + }else { +puts ("\n" ); + }if (has_emmc ())env_set ("has_emmc" ,"yes" );
configs/mx6cuboxi_defconfig +1 -0
@@ -28,6 +28,7 @@ CONFIG_BOOTCOMMAND="run findfdt; run finduuid; run distro_bootcmd" CONFIG_USE_PREBOOT=y CONFIG_PREBOOT="if hdmidet; then usb start; setenv stdin serial,usbkbd; setenv stdout serial,vidconsole; setenv stderr serial,vidconsole; else setenv stdin serial; setenv stdout serial; setenv stderr serial; fi;" CONFIG_SYS_PBSIZE=532 +# CONFIG_DISPLAY_BOARDINFO is not set CONFIG_BOARD_EARLY_INIT_F=y CONFIG_SPL_SYS_MALLOC=y CONFIG_SPL_FS_EXT4=y
Signature · 1 line
2.34.1
Hi Fabio
Quoted 11 lines
The
mx6cuboxi_defconfigtarget supports several board variants. All of these variants use the hummingboard devicetree in U-Boot.Currently, the devicetree model as well as the board variant name are shown:
...
Model: SolidRun HummingBoard2 Dual/Quad (1.5som+emmc)
Board: MX6 Cubox-i
...
Quoted 8 lines
Printing the devicetree model that is used internally by U-Boot may confuse users.
Unselect the
CONFIG_DISPLAY_BOARDINFOoption so that only the board name is printed inboard_late_init()instead.Signed-off-by Fabio Estevam <[email protected]>---
U-Boot 2024.04-rc5-00003-g5565c24adb (Apr 01 2024 - 12:05:25 +0200)
CPU: Freescale i.MX6Q rev1.3 996 MHz (running at 792 MHz) CPU: Extended Commercial temperature grade (-20C to 105C) at 26C Reset cause: POR DRAM: 2 GiB Core: 84 devices, 19 uclasses, devicetree: fit WDT: Started watchdog@20bc000 with servicing every 1000ms (128s
timeout)
MMC: FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC... *** Warning - bad CRC, using default environment
In: serial Out: serial Err: serial Board: MX6 Cubox-i Net: eth0: ethernet@2188000
Thanks & Regards,
Christian
Fabio Estevam
AppliedQuoted 12 lines · Fabio Estevam
The
mx6cuboxi_defconfigtarget supports several board variants. All of these variants use the hummingboard devicetree in U-Boot.Currently, the devicetree model as well as the board variant name are shown:
...
Model: SolidRun HummingBoard2 Dual/Quad (1.5som+emmc)
Board: MX6 Cubox-i
...
Quoted 7 lines
Printing the devicetree model that is used internally by U-Boot may confuse users.
Unselect the
CONFIG_DISPLAY_BOARDINFOoption so that only the board name is printed inboard_late_init()instead.Signed-off-by Fabio Estevam <[email protected]>
Applied, thanks.