During the reboot test, an issue occurred where the OS suddenly failed to boot.
I used minicom to investigate why the OS wouldn’t boot and found that the BIOS was unable to detect the boot chain.
��DCE: FW Boot Done ��I> Task: Program GICv3 registers (0x50027fa0) I> Task: Audit firewall settings (0x50024fbc) I> Task: Bootchain failure check (0x500025e8) I> Current Boot-Chain Slot: 0 I> BR-BCT Boot-Chain is 0, and status is 1. Set UP0 I> MB2 finished
After referring to the forum below, the boot process is now working properly.
I’d like to analyze why it suddenly unlocked. Are there any possible causes, or are there any Jetson software tools available for analyzing the cause?
also We use custom boards.
yes it is booting into UEFI menu.
Log analysis revealed that the system was booting into recovery mode because it failed to verify the bootchain.
��DCE: FW Boot Done
��I> Task: Program GICv3 registers (0x50027fa0)
I> Task: Audit firewall settings (0x50024fbc)
I> Task: Bootchain failure check (0x500025e8)
I> Current Boot-Chain Slot: 0
I> BR-BCT Boot-Chain is 0, and status is 1. Set UP0
I> MB2 finished
L4TLauncher: Attempting Recovery Boot
EFI stub: Booting Linux Kernel...
EFI stub: Using DTB from configuration table
EFI stub: Loaded initrd from LINUX_EFI_INITRD_MEDIA_GUID device path
EFI stub: Exiting boot services and installing virtual address map...
How did you fix the issue?
Is your AGX Orin booting from internal eMMC or external NVMe?
Upon entering UEFI mode, I found that the OS chain A status was set to “Unbootable.” Changing this setting to “Normal” and rebooting resolved the issue.
I booting internal eMMC.
The URL was incorrect; I resolved the issue after checking this forum.
I resolved the issue, but I haven’t been able to identify the cause of the sudden change in UEFI settings.
I would like to find the cause and establish measures to prevent this from happening again.
Could you help clarifying which UART devices may cause the current assertion issue on your board?
Or you can simply disable the UART node in UEFI-DTB only.
Do you mean if the custom board is designed by CTI and you don’t have the source of custom-built UEFI to modify?
Could you help clarifying which UART devices may cause the current assertion issue on your board?
Or you can simply disable the UART node in UEFI-DTB only.
I think maybe cause camera driver. (GMSL camera)
As far as I know, this issue did not occur on other devices; it occurred only on the device that was replaced with this camera.
Could this be related to the “ASSERT” error and the “unbootable” issue I mentioned earlier?
Do you mean if the custom board is designed by CTI and you don’t have the source of custom-built UEFI to modify?
Yes, we are using the UEFI officially distributed by CTI. We do not have any custom source code.
If the camera module is connected through UART, then this issue is more likely related to UART/serial-console interaction during boot, instead of the camera driver itself.
We have seen the same TerminalConIn.c(2078) assertion internally, and it was analyzed as a wrong key decoding issue in UEFI.
Since UEFI/kernel console traffic is carried on the serial console path, any unexpected UART input/noise/conflict from the connected camera module could potentially trigger this assertion.
and I would like to know the reasons and conditions under which the OS Chain A status changes to “Unbootable.”
What kind of problem causes the system to become unbootable?
It is unlikely that a USB device would be an issue unless your USB device is identifying itself as a keyboard. A serial UART does not identify itself at all, so there is never any activity where the data is not active. Restated, during boot a computer might have boot interrupted when a keyboard button is pressed at the right moment, and your GMSL or other USB devices which are not a keyboard would not identify themselves as a keyboard (if for some very strange reason they do, then you could use lsusb or “lsusb -v” to see which USB devices are showing as a keyboard).
Jetsons have a UART in most cases set up to identify as a serial console. Any and all activity on that port is always seen as a keyboard to the system. One could interrupt boot by any activity on that particular UART during boot. This is not entirely rare for Jetsons because often people want another UART and don’t realize the port is already used as serial console. This gets more complicated because on the Linux side one sees the port as “group” “console”; eliminating the binding to that UART within Linux eliminates the “console” group on the port, but it doesn’t necessarily eliminate the boot chain’s assignment of that port as a console.
Any device using the native serial UART which is identified as console is an issue for boot interrupt. USB devices not assigned as a keyboard do not have such an issue (keyboards don’t have activity unless you press a physical key at the right moment).
I understand that a USB-connected serial device or a GMSL board is unlikely to be the cause of the issue.
I was told that the native UART pins might be the cause.
We are using multiple GPIO pins that are physically connected.
Does this mean the problem could be stemming from that?
Yes, if one of those UARTs is colliding with serial console in the boot stage, then activity on the UART is no different than randomly typing into a console as the boot software listens for boot interrupt and other things you can do in a boot prompt.
If this is after boot stages complete, then no such interrupt of boot would occur (but other bad things might show up, e.g., data might appear corrupted on the UART from two conflicting users). Consider using another computer, and setting up a serial console program. Set it to speed 115200, 8-bit, no parity, and one stop bit. Replace your UART device (GMSL? not sure what is on the UART) with the serial console program, and then boot the Jetson. Any activity on that UART at any stage probably indicates serial console is using the UART. If there is no activity at all, then likely that UART is safe to use.
I have to emphasize that the setup for serial UARTs (and consoles over serial UART) during a boot stage will be independent of when the Linux kernel loads, and that disabling serial console in one stage does not disable it in the other stage. You would have to take specific actions for both boot and Linux stages to disable this. Many Jetson models also dedicate a particular UART for serial console, and if it is one of those UARTs, then you simply cannot use that UART for other purposes (I don’t remember which UARTs are dedicated to console, but often it is using the micro-OTG USB connector; there may be other access to that UART which is how one might accidentally use that UART even without touching the micro-OTG USB connector).
Note that NVIDIA has arranged the boot stage serial console UART to coincide with the same physical UART which the Linux kernel uses, which provides a continuity of service when transitioning between boot stage and Linux kernel stage.
Checking the UART port, we are currently using only four pins:
3V3 Power Output (1A)
GND
I2C1_CLK
I2C1_SDA
I do not believe the pins currently in use are contributing to the issue.
Is there anything else that might be causing the ASSERT error we are seeing?
The only thing related to UART operation that seems suspicious to me is the CAN bus pin. However, while we have connected it to an extension cable for the sake of expandability, we are not actually using it for any operations.
If we speak of a UART with its default protocol, the basics would be GND, TX, and RX. Possibly other pins could optionally be used, e.g., CTS and RTS. What you’ve described (at least so far as electrical pin names are concerned) won’t be used for a serial console over a UART. The use of minicom would have been on the serial UART which is used for serial console, and this is the one which could have hung up boot. Unless minicom had sent a stray signal this would not be an issue. The assert is something else.
What complicates things is that the software in UEFI is more or less a different operating system than when Linux loads. Everything could be perfectly ok for customization or standard installation within Linux, but some step might have been missed in any customization in boot stages (and UEFI is a boot stage we are speaking of).
I would expect a true UART protocol to be ok during boot, that’s pretty standard. However, you mentioned I2C which might or might not be set up the way you expect. As an example, let’s say you are using I2C in Linux, and it behaves the way you want, but perhaps you had to do some sort of device tree setup; any optional setup or changes probably also need to be performed separately for boot stages or else those changes will leave the wires unconfigured. The drivers and setup during UEFI is separate from that within Linux (though a device tree might be used in common for both stages depending on circumstances).
Is the I2C related to the GMSL camera you mentioned? I would assume not because control is most likely also over USB and USB is capable of self-reporting what it is to software drivers and their configuration (I2C and serial UART are not and rely on them being set up correctly and will gladly do the wrong thing if told to).
Are there I2C or other devices (perhaps the CANbus) you can disconnect one at a time and test if the boot issue goes away? Or can you see if removing the USB device causes the error to go away? Sometimes brute force checking is the most direct way to find things if the error message isn’t helpful.