My Jetson Xavier NX was programmed with Jetpack5.1.1 through the SDK manager. When my drone is powered on, it will send serial data to Jetson through/dev/ttyTHS1, but there is a chance that it will enter the BIOS interface.
The problem I encountered is similar to the following topic Xavier nx cannot boot when receiving with UART0, but when I used his method to compile UEFI programs and replace the corresponding bin files and dtbo, efi files, and then burned the system with SDK manager, I found that it could not boot up properly. The method used to compile UEFI programs is also a reference Close or hide UEFI menu , using R35.3.1-updates. I am curious where the problem lies?
Hi 443683123,
Are you using the devkit or custom board for Xavier NX?
You are saying that the “drone” so that I suppose you are using the custom carrier board rather than the devkit.
Yes, it seems caused from the serial data sending from your MCU.
This patch should help for your case to disable the feature to enter into UEFI menu.
Please flash your board through command to apply the change.
You can also refer to Q: There is a wait in UEFI stage. How to disable it to accelerate system booting? to remove the 5s auto boot time in UEFI.
Hi KevinFFF,
Yes, I used a custom circuit board. I have tried using this topic to turn off UEFI, but found that replacing the compiled files did not allow the system to initialize and boot up properly. I suspect that it may be necessary to compile the latest version of firmware based on r35.3.1?
Is the effect of disabling the 5-second UEFI selection time the same as the above method of disabling UEFI? If so, I will only choose the solution of disabling the 5-second UEFI selection time.
Both should work.
You can use the following command to clone the source first and update the UEFI binary you built to check if there’s any boot issue.
$ edk2_docker edkrepo clone nvidia-uefi-r35.3.1 NVIDIA-Platforms r35.3.1
They are different.
Disabling the 5s auto boot time is to remove the waiting time but you could still enter into the menu if you press ESC
quickly or something received on serial interface.
Unfortunately, after executing the command you recommended and commenting out the PlatformLoadOptionsAndKeys() line of code, my attempt to compile failed with the following error:
INFO - collect2: error: ld returned 1 exit status
INFO - make: *** [GNUmakefile:576: /build/nvidia-uefi-r35.3.1/Build/Jetson/DEBUG_GCC5/AARCH64/Silicon/NVIDIA/Drivers/EqosDeviceDxe/EqosDeviceDxe/DEBUG/EqosDeviceDxe.dll] Error 1
INFO -
INFO -
INFO - build.py…
INFO - : error 7000: Failed to execute command
INFO - make tbuild [/build/nvidia-uefi-r35.3.1/Build/Jetson/DEBUG_GCC5/AARCH64/Silicon/NVIDIA/Drivers/EqosDeviceDxe/EqosDeviceDxe]
INFO -
INFO -
INFO - build.py…
INFO - : error F002: Failed to build module
INFO - /build/nvidia-uefi-r35.3.1/edk2-nvidia/Silicon/NVIDIA/Drivers/EqosDeviceDxe/EqosDeviceDxe.inf [AARCH64, GCC5, DEBUG]
INFO -
INFO - - Failed -
INFO - Build end time: 14:50:58, Jul.30 2024
INFO - Build total time: 00:02:51
INFO -
INFO - ------------------------------------------------
INFO - --------------Cmd Output Finished---------------
INFO - --------- Running Time (mm:ss): 02:51 ----------
INFO - ----------- Return Code: 0x00000001 ------------
INFO - ------------------------------------------------
ERROR - Compiler #7000 from : Failed to execute command
ERROR - EDK2 #002 from : Failed to build module
CRITICAL - Build failed
PROGRESS - End time: 2024-07-30 14:50:58.999318 Total time Elapsed: 0:02:51
SECTION - Log file is located at: /build/nvidia-uefi-r35.3.1/Build/BUILDLOG_Jetson.txt
SECTION - Summary
ERROR - Error
May I ask if there are any other methods available?
Or you can tell me which version of UEFI program is used for the Xavier nx 5.1.1 version downloaded from the existing SDK Manager
Your issue is about the UART messages sending the data causing the Jetson entering into UEFI menu so that you have to modify the UEFI binary to remove that feature.
The build failed may be caused from your build environment.
Please try using the following UEFI binary and reflash the board to check if it could help in your case.
uefi_jetson_r35.3.1_Remove_5s_menu.bin (2.8 MB)
Although there is still a small probability that this method may not start properly, it has greatly improved the success rate of booting up.
Thanks!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.