All of lore.kernel.org
 help / color / mirror / Atom feed
* silent u-boot not working
@ 2024-06-13 13:16 Jonas Kvinge
  2024-06-13 15:34 ` Sean Anderson
  0 siblings, 1 reply; 6+ messages in thread
From: Jonas Kvinge @ 2024-06-13 13:16 UTC (permalink / raw)
  To: u-boot

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: silent u-boot not working
  2024-06-13 13:16 silent u-boot not working Jonas Kvinge
@ 2024-06-13 15:34 ` Sean Anderson
  2024-06-14 10:49   ` Jonas Kvinge
  0 siblings, 1 reply; 6+ messages in thread
From: Sean Anderson @ 2024-06-13 15:34 UTC (permalink / raw)
  To: Jonas Kvinge, u-boot

Hi Jonas,

On 6/13/24 09:16, Jonas Kvinge wrote:
> 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
> 
> 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: silent u-boot not working
  2024-06-13 15:34 ` Sean Anderson
@ 2024-06-14 10:49   ` Jonas Kvinge
  2024-06-14 10:52     ` Fabio Estevam
  0 siblings, 1 reply; 6+ messages in thread
From: Jonas Kvinge @ 2024-06-14 10:49 UTC (permalink / raw)
  To: u-boot

On Thu, 2024-06-13 at 11:34 -0400, Sean Anderson wrote:
> 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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: silent u-boot not working
  2024-06-14 10:49   ` Jonas Kvinge
@ 2024-06-14 10:52     ` Fabio Estevam
  2024-06-14 11:51       ` Jonas Kvinge
  0 siblings, 1 reply; 6+ messages in thread
From: Fabio Estevam @ 2024-06-14 10:52 UTC (permalink / raw)
  To: Jonas Kvinge; +Cc: u-boot

Hi Jonas,

On Fri, Jun 14, 2024 at 7:49 AM Jonas Kvinge <jonaski@opensuse.org> wrote:

> 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: silent u-boot not working
  2024-06-14 10:52     ` Fabio Estevam
@ 2024-06-14 11:51       ` Jonas Kvinge
  2024-06-14 11:58         ` Fabio Estevam
  0 siblings, 1 reply; 6+ messages in thread
From: Jonas Kvinge @ 2024-06-14 11:51 UTC (permalink / raw)
  To: u-boot

On Fri, 2024-06-14 at 07:52 -0300, Fabio Estevam wrote:
> Hi Jonas,
> 
> On Fri, Jun 14, 2024 at 7:49 AM Jonas Kvinge <jonaski@opensuse.org>
> wrote:
> 
> > 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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: silent u-boot not working
  2024-06-14 11:51       ` Jonas Kvinge
@ 2024-06-14 11:58         ` Fabio Estevam
  0 siblings, 0 replies; 6+ messages in thread
From: Fabio Estevam @ 2024-06-14 11:58 UTC (permalink / raw)
  To: Jonas Kvinge; +Cc: u-boot

On Fri, Jun 14, 2024 at 8:51 AM Jonas Kvinge <jonaski@opensuse.org> wrote:

> 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-06-14 11:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-13 13:16 silent u-boot not working Jonas Kvinge
2024-06-13 15:34 ` Sean Anderson
2024-06-14 10:49   ` Jonas Kvinge
2024-06-14 10:52     ` Fabio Estevam
2024-06-14 11:51       ` Jonas Kvinge
2024-06-14 11:58         ` Fabio Estevam

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.