Skip to contentSkip to conversation

stm32mp1: imply CMD_CLS

PATCH New Patrick Delaunay 1 participant 2 messages Dec 3, 2019 – Dec 18, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 stm32mp1: imply CMD_CLS

Activate by default the command CLS (clear screen); this command used in pxe or sysboot command (DISTRO support) when the "menu background" keyword is present.

This patch avoid the warning "Unknown command 'cls'" with extlinux.conf:

# Generic Distro Configuration file generated by OpenEmbedded menu title Select the boot mode
MENU BACKGROUND /splash.bmp
TIMEOUT 20
DEFAULT stm32mp157c-ev1-emmc
LABEL stm32mp157c-ev1-emmc

	KERNEL /uImage
	FDT /stm32mp157c-ev1.dtb
	APPEND root=/dev/mmcblk1p4 rootwait rw console=ttySTM0,115200

...
Retrieving file: /mmc0_stm32mp157c-ev1_extlinux/extlinux.conf 614 bytes read in 36 ms (16.6 KiB/s)
Retrieving file: /splash.bmp
46180 bytes read in 40 ms (1.1 MiB/s)
Unknown command 'cls' - try 'help'
Select the boot mode
1: stm32mp157c-ev1-sdcard
...

---

 arch/arm/mach-stm32mp/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/mach-stm32mp/Kconfig +1 -0
index c9bc084194..e920b89ef5 100644
@@ -49,6 +49,7 @@ config TARGET_STM32MP1
 	imply BOOTSTAGE
 	imply CMD_BOOTCOUNT
 	imply CMD_BOOTSTAGE
+	imply CMD_CLS if CMD_BMP
 	imply DISABLE_CONSOLE
 	imply PRE_CONSOLE_BUFFER
 	imply SILENT_CONSOLE
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 stm32mp1: imply CMD_CLS

Hi,

Quoted 34 lines

From: Patrick DELAUNAY <[email protected]>
Sent: mardi 3 décembre 2019 09:39
To: u-boot at lists.denx.de
Cc: Patrick DELAUNAY <[email protected]>; Patrice CHOTARD <[email protected]>; U-Boot STM32 <uboot-stm32@st-md- mailman.stormreply.com>
Subject: [PATCH] stm32mp1: imply CMD_CLS
Importance: High

Activate by default the command CLS (clear screen); this command used in pxe or sysboot command (DISTRO support) when the "menu background" keyword is present.

This patch avoid the warning "Unknown command 'cls'" with extlinux.conf:

# Generic Distro Configuration file generated by OpenEmbedded menu title Select the boot mode MENU BACKGROUND /splash.bmp TIMEOUT 20 DEFAULT stm32mp157c-ev1-emmc LABEL stm32mp157c-ev1-emmc

	KERNEL /uImage
	FDT /stm32mp157c-ev1.dtb
	APPEND root=/dev/mmcblk1p4 rootwait rw console=ttySTM0,115200

...
Retrieving file: /mmc0_stm32mp157c-ev1_extlinux/extlinux.conf 614 bytes read in 36 ms (16.6 KiB/s)
Retrieving file: /splash.bmp
46180 bytes read in 40 ms (1.1 MiB/s)
Unknown command 'cls' - try 'help'
Select the boot mode
1: stm32mp157c-ev1-sdcard
...

Quoted 1 line

Applied to u-boot-stm32/master, thanks!

Quoted 18 lines

---

 arch/arm/mach-stm32mp/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/mach-stm32mp/Kconfig +1 -1
index c9bc084194..e920b89ef5 100644
@@ -49,6 +49,7 @@ config TARGET_STM32MP1
 	imply BOOTSTAGE
 	imply CMD_BOOTCOUNT
 	imply CMD_BOOTSTAGE
+	imply CMD_CLS if CMD_BMP
 	imply DISABLE_CONSOLE
 	imply PRE_CONSOLE_BUFFER
 	imply SILENT_CONSOLE
--
Quoted 1 line

2.17.1

BR
Patrick