Cant flash Orin Nano devkit with SD - Error: Return value 4

Hi
I cant flash new Orin Nano devkit with SD 32GB in Nvidia carrierboard - get an “Error: Return value 4”
Cant find any info about this error.

Conditions:
-Host PC x86 Ubuntu 22
-no SSD in carrierboard
-SD card 32GB
-use NVIDIA Jetson Linux 35.4.1

Try:

$ tar xf ${L4T_RELEASE_PACKAGE} (Driver Package (BSP))
$ cd Linux_for_Tegra/rootfs/
$ sudo tar xpf ../../${SAMPLE_FS_PACKAGE} (Sample Root Filesystem)
$ nano ./bootloader/t186ref/BCT/tegra234-mb2-bct-misc-p3767-0000.dts

change - cvb_eeprom_read_size = <0x100> to + cvb_eeprom_read_size = <0x0>
because want after to use Orin Nano in other custom carrierboard withou eeprom as discribed

$ sudo ./apply_binaries.sh with success
$ lsusb
Bus 001 Device 002: ID 0955:7523 NVIDIA Corp. APX
$ sudo ./flash.sh jetson-orin-nano-devkit internal

as described

Result is

Error: Return value 4
Command tegraparser_v2 --storageinfo storage_info.bin --generategpt --pt flash.xml.bin
Failed flashing t186ref.

Flash and debus logs attached
flash fail.log (77.0 KB)
serial_debug.log (20.9 KB)

You don’t need to disable cvb eeprom for orin nano devkit…

Also, try this

sudo ./tools/kernel_flash/l4t_initrd_flash.sh --external-device mmcblk1p1
-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

But I will use the Orin Nano in other custom carrierboard without eeprom memory on it.
Before I test it in custom carrierboard with Nvidia image for SD and get error:

I> Task: Prepare eeprom data (0x50017bd8)
E> I2C: slave not found in slaves.
E> I2C: Could not write 0 bytes to slave: 0x00ae with repeat start true.
E> I2C_DEV: Failed to send register address 0x00000000.
E> I2C_DEV: Could not read 256 registers of size 1 from slave 0xae at 0x00000000 via instance 0.
E> eeprom: Failed to read I2C slave device
C> Task 0x0 failed (err: 0x1f1e050d)
E> Top caller module: I2C_DEV, error module: I2C, reason: 0x0d, aux_info: 0x05
I> Busy Spin

So need to edit file as in Jetson Orin NX and Nano Series — Jetson Linux Developer Guide documentation

Then you can do it when you use custom carrier board…
There is no need to do that when it is devkit.

But I have not USB Recovery capability in custom carrierboard,
So want to flash firmware in original carrierboard and then replace Orin Nano in custom carrierboard.

Or may be I can edit cvb_eeprom_read_size after flashing?

You can try my previous comment with initrd flash tool first. Keep cvb eeprom as disabled.

I tried it, it flashes 3 times automatically.
After reboot Nano work normally.
Result is with success?

last logs

Copied 16896 bytes from /qspi/internal/gpt_secondary_3_0.bin to address 0x03ffbe00 in flash
[ 227]: l4t_flash_from_kernel: Successfully flash the qspi
[ 227]: l4t_flash_from_kernel: Flashing success
Error flashing non-qspi storage
Cleaning up...

flash success.log (271.7 KB)
serial_debug success.log (95.2 KB)

No, it didn’t succeed.

Your flash command seem wrong too.

image

image

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.