Jetson Nano production module does not boot on custom carrier board, but does so on auvidea's

Hi WayneWWW,

I was also working on the same, but am unable to fetch UART logs so far. So it would be helpful to track any related posts, by members who have the UART logs, for debugging our issue. Could I get a link to the new post here, if it is put up by reifenrath.michel.

Hi, here is the Link to the new topic:

Hi WayneWWW,

We finally managed to get the UART logs, for our custom carrier boards. Please find attached the logs for the booting and non-booting case.
UARTLogsNanoBooting (18.6 KB)
UARTLogsNanoNotBooting (18.9 KB)

It seems that for our non-booting case, we have a peculiar log:
We get a prompt for:

“Tegra210 (P3450-Porg) # MC: “

instead of

“switch to partitions #0”.

One more difference is that vdd_core voltage is set to 1125 mV in case of the booting Nano, but 1075 mV in case of the non-booting one. Is this something to worry about? Although for the non-booting case, we have also seen 1125mV being set as the vdd_core voltage, in some other logs that we have.

Can you please advice regarding this?

Hi WayneWWW,

Do you have an update on this yet?

hello jetson_user,

it looks you stuck at u-boot stage due to bad device.

U-Boot 2016.07-gd917e08cec (Jul 16 2019 - 16:52:59 -0700)

Model: NVIDIA P3450-Porg
Board: NVIDIA P3450-PORG
DRAM:  4 GiB
MMC:   Tegra SD/MMC: 0, Tegra SD/MMC: 1
Using default environment

In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
MMC: no card present
** Bad device mmc 1 **

could you please have summarize what’s the modification you had done,
since it’s a custom carrier board, did you fully check schematic to review the board design? had you also done pinmux customization.
in addition, what’s the release image you’re now using.

Hi JerryChang,

Did you mean the changes related to software or hardware? For software, I tried with Jetpack 4.2.1, and changed the command line argument, like adding console=ttyTHS1 and early_printk, as can be followed in our previous discussion: How to obtain UART logs on Jetson Nano production modules, over UART 2 - #10 by jetson_user. We also tried with Jetpack 4.6 and 4.5.1, and still the booting is stuck, for some of the Nanos. Of course, at this moment we are able to get the UART logs. And we have resumed with Jetpack 4.2.1, because our drivers are based on that.

For hardware, I will have to get back to you with the details.

The bad device message also appears for the booting case, in the logs: UARTLogsNanoBooting. So might this still be the issue?

Hi JerryChang,

We finally have the root cause known for (some of) the Nanos not being able to boot on our custom carrier boards. It seems there was noise on pin 238 (UART2-RX) which we had left unconnected. This caused the uboot to detect a BREAK signal, apparently. On applying a pull-down resistor on this pin, the Nanos are booting.

We need to change the circuit of course, but we were wondering if there was some easy way to ignore the detection of this signal in the u-boot source code, for now? We are using L4T_R32-2_public_sources. Also could you please let us know a good way to distribute this new u-boot binary in the field Nanos? Do we need to use the encryption method as we do for signing device tree binaries and updating some partition? If this is so, could we have details on that please?

Eagerly waiting for your reply. Thanks!

Hi JerryChang,

Do you by chance have an update on this issue yet?

hello jetson_user,

sorry for late reply, I was missing this thread.
there’s u-boot to detect everything to stop booting-up. you should have resistor on this pin to avoid the detected noise.
for an alternative way, you should try disable abortboot() function or having hard-code bootdelay to skip detecting input keys.

furthermore, Nano’s u-boot binary is flashing to the LNX partition. are you able to perform flash script to update u-boot binary?

Hi JerryChang,

Thanks for the reply. We tried these two, that is keeping CONFIG_BOOTDELAY as 0, -1, -2, etc. And also commenting out the body of the abortboot() function (such that it always returned 0). Still it did not work, I mean we are getting past the stage where it checks for partitions, but the booting appears to be paused due to continuous interrupts due the noise on our pin 238. For the moment, we can only work with a software solution (so addition of pull down resistor is not feasible).

We came across a solution for TX2 here: Disable serial console of u-boot on TX2 - #32 by JDSchroeder. Do you think it is the same problem? If yes, what would be an equivalent for Nano? Like an internal pull-down or something? We cannot seem to find similar syntax, as given in the solution, in the Jetson nano boot config files.

In short, we need a way in software to completely disregard any signal on pin 238 (UART2_RX) by the uboot.

Also, a general question. We see that after building bootloader, there are four binaries generated: uoot, u-boot.bin, u-boot.dtb, u-boot-dtb.bin.

But in the path on Jetpack: Linux_for_Tegra/bootloaddloadererer/t210ref/p3450-porg/ there is originally only one file: u-boot.bin. If there were some dtb changes in bootloader, how to incorporate them, i.e., how to make use of the other three binaries generated?

Thanks in advance.

hello jetson_user,

you should update $OUT/Linux_for_Tegra/bootloader/t210ref/p3450-porg/u-boot.bin and execute the commands, $ sudo ./ -k LNX jeton-nano-emmc mmcblk0p1 to update Nano’s uboot binary file.

please refer to Jetson Nano Boot Flow. are you able to confirm which boot stage it stuck at?

Hi JerryChang,

It appears from the logs that it is stuck at the u-boot phase. Because we get the log “switch to partitions #0, OK”, which I see is in u-boot. Immediately after that there seem to be a lot of interrupts from the UART2 RX (pin 238), I receive logs like and then it tries to load some address but is unsuccessful, so it gets stuck there. Attaching the logs. uboot_stuck (3.1 KB)

hello jetson_user,

could you please have a try to remove all the content of extlinux.conf, for the booting process to load binaries via partitions.
the boot flow should reports as below…

 [0012.996] E> Nothing to parse in conf file
 [0012.996] I> Fallback: Load binaries from partition

Hi JerryChang,

I tried the above step. I first commented out everything within <top>/Linux_for_Tegra/bootloader/extlinux.conf. I also tried removing this file altogether, and then flashed the bootloader (I also tried building the bootloader for every change, but guess that is not needed??). Then I tried commenting out everything in the file: Linux_for_Tegra/rootfs/boot/extlinux/extlinux.conf, and flashing everything.

But for none of the cases, I got logs which you mention :(. Please find attached the bootloader log file with the new experiment. uboot_empty_extlinux_conf (2.5 KB)

I also tried making USE_UBOOT=0. This kind of led to a successful boot, but then it is constantly rebooting.

Just a reminder that everything works with the 100k resistor between pin 238 and ground, on a test board. Since our options are limited, we cannot add this new resistor to our already designed custom carrier boards. So we have to manage the “ignoring” of the interrupts caused by noise on pin 238 via uboot modification.

hello jetson_user,

may I also confirm which release version you’re working with.
could you please confirm it is constantly rebooting due to below errors?
for example,
Retry time exceeded; starting again
missing environment variable: pxeuuid

I am working with Jetpack 4.2.1

Yes it is indeed constantly rebooting with the errors you mention

A quick update. I cleared the sysimage and sysimage.raw. Then in the extlinux.conf, I deleted the lines containing MENU and TIMEOUT, as per, section extlinux.conf.

Now I can see it boots, gets the static ip I am setting, I am able to ssh, but then the Nano shuts down again due to sysrq errors. Here the logs: uboot_sysrq_errors (30.0 KB)

hello jetson_user,

are you able to boot into ubuntu desktop with those sysrq logs?
may I know where does system booting from, is it internal eMMC or you’re mounting the rootfs to elsewhere?

Hi JerryChang,

Not sure what booting into Ubuntu desktop means. We do not have an HDMI, and I did not check if the desktop service (if exists) is up. I was able to log in via ssh using the static ip address I provide in the rootfs before flashing. And after about 20 seconds the Nano shuts down, and on the serial console I see logs related to the SysRq interrupts.

The system is booting from internal eMMC in our case, no external mounting of rootfs.

Do you think disabling UART debug in the device tree might help?