FAQ_MA35_Family_Disable U-Boot and TF-A Booting Log by Buildroot

Post Reply
ytliu6
Posts: 95
Joined: 08 Nov 2022, 10:28

23 Apr 2024, 16:54

Follow the steps below to disable the log output from U-Boot and TF-A.

1. Open the necessary U-Boot configurations by running the following command

Code: Select all

# make uboot-menuconfig

Console  --->
[ ] Console recording 
[*] Add functionality to disable console completely
()  Board specific string to be added to uboot version string
(4) loglevel
[*] Support a silent console
[*]   Only silence the U-Boot console
[*]   Changes to the 'silent' environment variable update immediately
[*]   Allow flags to take effect on relocation
[*] Don't display the console devices on boot

Start-up hooks  --->
[*] Call board-specific init before relocation
2. Add the following function to the ma35d1.c file

Code: Select all

Path:
~/Buildroot/output/build/uboot-custom/board/nuvoton/ma35d1/ma35d1.c

int board_early_init_f(void)
{
	gd->flags |= (GD_FLG_SILENT | GD_FLG_DISABLE_CONSOLE);
	return 0;
}
3. Modify the TF-A log level to disable all logs except emergency errors by editing the platform.mk file at the following path

Code: Select all

Path:
~/Buildroot/output/build/arm-trusted-firmware-custom/plat/nuvoton/ma35d1/platform.mk

# Build option to add debugfs support
USE_DEBUGFS		:= 1
DEBUG			:= 1
LOG_LEVEL		:= 0
4. Rebuild U-Boot and TF-A, and then rebuild the whole image by running the following command:

Code: Select all

# make uboot-rebuild arm-trusted-firmware-rebuild && make
#MA35 #Booting Log

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests