Skip to contentSkip to conversation

silent u-boot not working

DISCUSSION Jonas Kvinge 3 participants 6 messages Jun 13, 2024 – Jun 14, 2024

lore
Share & tools
lore
#0 lore raw

Hi,

I'm running openSUSE Tumbleweed on an RPI CM4, I'm trying to silence u- boot boot messages, with the default configuration there is an u-boot logo on the top right corner and boot text, I'd like to get rid of the logo and all text if possible.
The keyboard is not working before the Linux kernel is loaded, so I can not interrupt u-boot and enter any commands, so where should I put "set env silent 1"?

I've followed the guide on
https://github.com/ARM-software/u-boot/blob/master/doc/README.silent

I have built u-boot from source using make rpi_4_defconfig configuration modified the configuration with make menuconfig, and verified this in .config before builing. CONFIG_SILENT_CONSOLE=y
CONFIG_SILENT_U_BOOT_ONLY=y CONFIG_SILENT_CONSOLE_UPDATE_ON_SET=y CONFIG_SILENT_CONSOLE_UPDATE_ON_RELOC=y CONFIG_SILENT_CONSOLE_UNTIL_ENV=y

Copied the binary to /boot/efi/u-boot.bin and /boot/vc/u-boot.bin

I've also tried to define CONFIG_EXTRA_ENV_SETTINGS in include/configs/rpi.h according to:
https://stackoverflow.com/questions/34356844/how-to-disable-serial-consolenon-kernel-in-u-boot/64583919#64583919?newreg=0df51e20b39a448094cbb70fe356e4ec
and rebuilt and copied to binary again, still not working.

The text and logo is still present during boot, what am I doing wrong here?

Jonas

#1 lore raw

Hi Jonas,

Quoted 21 lines · Jonas Kvinge

Hi,

I'm running openSUSE Tumbleweed on an RPI CM4, I'm trying to silence u- boot boot messages, with the default configuration there is an u-boot logo on the top right corner and boot text, I'd like to get rid of the logo and all text if possible.
The keyboard is not working before the Linux kernel is loaded, so I can not interrupt u-boot and enter any commands, so where should I put "set env silent 1"?

I've followed the guide on

I have built u-boot from source using make rpi_4_defconfig configuration modified the configuration with make menuconfig, and verified this in .config before builing. CONFIG_SILENT_CONSOLE=y
CONFIG_SILENT_U_BOOT_ONLY=y CONFIG_SILENT_CONSOLE_UPDATE_ON_SET=y CONFIG_SILENT_CONSOLE_UPDATE_ON_RELOC=y CONFIG_SILENT_CONSOLE_UNTIL_ENV=y

Quoted 8 lines

Copied the binary to /boot/efi/u-boot.bin and /boot/vc/u-boot.bin

I've also tried to define CONFIG_EXTRA_ENV_SETTINGS in include/configs/rpi.h according to:
and rebuilt and copied to binary again, still not working.

The text and logo is still present during boot, what am I doing wrong here?

I implemented a silent console recently. Here are the steps I took:

- Define CONFIG_DISABLE_CONSOLE
- set silent=y in the default environment (CONFIG_EXTRA_ENV_SETTINGS)

You can still enable the console by pressing any key at the (invisible) prompt.

Let me know if that works for you.

--Sean

#2 lore raw
Quoted 6 lines · Sean Anderson

Hi Jonas,

- Define CONFIG_DISABLE_CONSOLE
- set silent=y in the default environment (CONFIG_EXTRA_ENV_SETTINGS)

Where do I find CONFIG_EXTRA_ENV_SETTINGS? Is it an option in make menuconfig, or do I need to edit the header file include/configs/rpi.h?

Jonas

#3 lore raw

Hi Jonas,

Quoted 2 lines · Jonas Kvinge

Where do I find CONFIG_EXTRA_ENV_SETTINGS? Is it an option in make menuconfig, or do I need to edit the header file include/configs/rpi.h?

In recent U-Boot versions, this option has been renamed to CFG_EXTRA_ENV_SETTINGS.

It is located at include/configs/<board>.h

#4 lore raw
Quoted 5 lines · Fabio Estevam

Hi Jonas,

On Fri, Jun 14, 2024 at 7:49 AM Jonas Kvinge <[email protected]> wrote:

Quoted 9 lines
Quoted 3 lines

Where do I find CONFIG_EXTRA_ENV_SETTINGS? Is it an option in make menuconfig, or do I need to edit the header file include/configs/rpi.h?

In recent U-Boot versions, this option has been renamed to CFG_EXTRA_ENV_SETTINGS.

It is located at include/configs/<board>.h

Thanks, that was helpful. I finally was able to silence the boot text by adding the following in include/configs/rpi.h:

#define CFG_EXTRA_ENV_SETTINGS "silent=y\0"

The u-boot logo in the upper right corner is still showing, is it possible to disable that too?

Jonas

#5 lore raw
Quoted 2 lines · Jonas Kvinge

The u-boot logo in the upper right corner is still showing, is it possible to disable that too?

If you don't want the U-Boot splash to appear, you can remove the CONFIG_VIDEO options from configs/rpi_4_defconfig