I am trying to flash my Jetson Xavier NX microSD card version via Balena Etcher (v. 2.1.6) in Windows 11 following this guide.
Both formatting via the SD Card Formatter (v. 5.0.3) and flashing via the Etcher works fine without issue (at least, that’s what the Etcher tells me). I am using the SD card image for Jetpack 5.1.3 from here. But when I then follow this setup guide, I only ever get to the part where the green LED turns on. I never get to the initial setup steps. Instead, the screen remains black and shows that it does not receive any signal, no matter how long I wait.
When I connect the Jetson to a PC via the micro USB port, it shows up as if it were in recovery mode, even though no jumper is set.
But when I instead follow this guide and flash the SD card via WSL using the BSP and sample root filesystem for Linux 35.5.0 provided here, the flashing succeeds and I can boot up and operate the Jetson as expected.
Why does the flashing via the Etcher fail? Since the procedure is so straightforward, I don’t see what might have went wrong.
I just realized: could it have something to do with the QSPI? Because even though I am not running Jetpack 5.x on my Jetson for the first time, nor am I upgrading from Jetpack 4.x to Jetpack 5.x as discussed here, it is still mentioned on the SD card image download page.
Each full flash does update QSPI (a better way of saying this is that the boot content prior to loading Linux is updated). When you work with just an SD card, then that content is untouched. Should the boot content be valid for the release of SD card you use, then flashing just the SD card would work. It is correct that if you mix boot content from a JetPack 4.x with content from a JetPack 5.x that boot will fail. The major release of boot content must be for the SD card major release.
There is an additional related possible issue. The “structure” of the boot content also has to be correct. By “structure” what I mean is that if the boot content was configured to point at the eMMC, but the boot content is an SD card, then this could also be a reason to fail (this is just one example, but a Jetson does not have a true BIOS and every flash is essentially setting up the software equivalent of a BIOS which includes things like boot device).
There could of course still be something which has gone wrong besides this, but from your description it does seem like you are correct that it is related to the mix of JetPack 4.x and 5.x.
Also note that not all releases are available for all Jetsons. This will compare the list of L4T releases (L4T is what gets flashed, while JetPack/SDK Manager is what performs the flash): https://developer.nvidia.com/embedded/jetson-linux-archive
Note that L4T R36.x is not supported on Xavier, but you have used JetPack 4.x and 5.x, and those work with releases which should be supported on your Xavier hardware, so all is good there.
Hi @linuxdev, thanks a lot for your elaborate reply! So if I understand correctly, the following should work:
I flash the Jetson via the Ubuntu command line, i.e. with the SD card plugged into the Jetson. This should then update the QSPI to the correct version, correct?
After testing if the Jetson works as intended, I flash it via Windows + Etcher using only the SD card. At that point the QSPI and boot content should match and the Jetson should work as intended.
It depends on the method of a flash, but generally speaking, a full flash (which would mean through a Jetson and not just through the SD card…your example probably fulfills this) also flashes content in the module itself, and that module content is what contains the software equivalent of a BIOS and the boot loader. So yes, probably that does the job.
If this succeeds once with a major release version, then all subsequent flashes of just the SD card should work whenever the SD card version is the same major release.