zax
May 22, 2024, 8:41am
1
Hi,
I want to disable the uefi message when boot up
I have comment out some messages, but still has one appear
I have comment out the line in L4TLauncher.c, but it seems not work
ErrorPrint (L"%a: Attempting Direct Boot\r\n", FUNCTION );
Coulu you help to tell me where to comment out this message?
The following result is what I modified
origin
modified
Hi,
How did you build UEFI and re-flash the board?
zax
May 24, 2024, 1:46am
4
Hi,
Yes, the commit version is a5ac12d7
I’m not asking you the commit number…
zax
May 24, 2024, 1:50am
6
Yes,I build UEFI and re-flash the board
I am asking you what commands did you run, not YES or NO…
Can you understand?
zax
May 24, 2024, 2:08am
8
Sorry, I misunderstand
Just refernce by this git, amd build with docker
Then how you re-flash the board?
Note that L4TLauncher is located in a different partition other than the UEFI binary, and it’s on the storage device itself, not the QSPI bootloader.
One is named BOOTAA64.efi, which will be flashed into the esp partition on the storage device, and the other one is named uefi_jetson.bin, which will be flashed into A/B_cpu-bootloader partiton on the QSPI bootloader.
zax
May 24, 2024, 2:19am
10
Flash command reference by document
https://docs.nvidia.com/jetson/archives/r35.5.0/DeveloperGuide/IN/QuickStart.html
sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device nvme0n1p1
-c tools/kernel_flash/flash_l4t_external.xml -p “-c bootloader/t186ref/cfg/flash_t234_qspi.xml”
–showlogs --network usb0 jetson-orin-nano-devkit internal
Then you need to make sure you replace both BOOTAA64.efi and uefi_jetson.bin under Linux_for_Tegra/bootloader/.
zax
May 24, 2024, 2:26am
12
Yes, the files are replaced
-rw-r–r-- 1 gary gary 86016 5月 22 15:11 BOOTAA64.efi
-rw-r–r-- 1 gary gary 2883584 5月 22 15:12 uefi_jetson.bin
Are you sure you really did it the right way?
The file size of the default BOOTAA64.efi is also 86016 bytes.
You should be getting a different file size after commenting out some codes.
zax
May 24, 2024, 3:34am
14
Hi,
I did the following verification
I add 40 lines ErrorPrint (L"%a: Attempting Direct Boot\r\n", FUNCTION ); in L4TLauncher.c and build by docker
But the BOOTAA64.efi size is still 86016 bytes
Build process reference by this page
Is there anything miss?
What L4T version and UEFI branch are you using?
I will verify locally later.
zax
May 24, 2024, 3:44am
16
L4T l4t 35.5.0
UEFI r35.5.0
download the source code by this line
edkrepo clone nvidia-uefi_r35.5.0 NVIDIA-Platforms r35.5.0
Hi,
I just tested locally, and that line of message can be sucessfully removed:
File sizes are also changed:
davey@dave-yu-nvidia-pc:/mnt/1T-HDD/BSP/r35.5/Linux_for_Tegra/bootloader$ ls -l | grep BOOTAA64
-rw-rw-r-- 1 davey davey 86016 2月 20 12:38 BOOTAA64_BACKUP.efi
-rw-r--r-- 1 davey davey 81920 5月 24 16:20 BOOTAA64.efi
zax
May 27, 2024, 6:01am
18
Hi,
Thanks for help
Could you offer your full commands?
The same one as shown in documents.
zax
May 27, 2024, 7:19am
20
Did you build with or without docker?
With Docker.
Docker is the recommended way.