We are facing an issue when flashing Orin NX SOM where the script fails with the message like below.
Error: failed to flash QSPI
Flash failure
Either the device cannot mount the NFS server on the host or a flash command has failed. Check your network setting (VPN, firewall,…) to make sure the device can mount NFS server. Debug log saved to /tmp/tmp.0RJxWyqyHy. You can access the target’s terminal through “sshpass -p root ssh root@fc00:1:1:0::2”
As per the instructions in other posts, we ensure the firewall is disabled. Yet, the issue persists. Looking up the dmesg logs at the time of failure, it indicated a failure in the QSPI driver. Logs attached. Please take a look and advise on a fix.
[ 8.078233] tegra-qspi 3270000.spi: Adding to iommu group 8
[ 8.078778] tegra-qspi 3270000.spi: Prod config not found for QSPI: -19
[ 9.090737] ------------[ cut here ]------------
[ 9.090741] WARNING: CPU: 0 PID: 210 at /home/rxt02/PROJECT/NIQO/ALPHA_RELEASE_PACK/Linux_for_Tegra/source/nvidia-oot/drivers/spi/spi-tegra210-quad.c:1406 tegra_qspi_transfer_one_message+0x36c/0x7b4 [spi_tegra210_quad]
[ 9.090751] Modules linked in: spi_tegra210_quad(OE+) tegra_mce(OE) stusb160x(E) nvethernet(OE) nvpps(OE) ipv6(E) tegra_xudc(E) ucsi_ccg(E) typec_ucsi(E) typec(E) libcomposite(E) pwm_fan(E) pwm_tegra(E) tegra_bpmp_thermal(E) nvme(E) nvme_core(E) pcie_tegra194(E) phy_tegra194_p2u(E) r8168(OE)
[ 9.090767] CPU: 0 PID: 210 Comm: modprobe Tainted: G OE 5.15.148-tegra #1
[ 9.090770] Hardware name: NVIDIA NVIDIA Jetson Orin NX Engineering Reference Developer Kit/Jetson, BIOS 36.4.3-gcid-38968081 01/08/2025
[ 9.090772] pstate: 60400009 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=–)
[ 9.090775] pc : tegra_qspi_transfer_one_message+0x36c/0x7b4 [spi_tegra210_quad]
[ 9.090779] lr : tegra_qspi_transfer_one_message+0x2d0/0x7b4 [spi_tegra210_quad]
[ 9.090782] sp : ffff800008eaaf00
[ 9.090783] x29: ffff800008eaaf00 x28: ffff0003e035a7b0 x27: ffff00008a263ed0
[ 9.090785] x26: ffff800008eab1a8 x25: 0000000000000000 x24: ffff00008a263e00
[ 9.090788] x23: ffff00008a263800 x22: ffff00008a265000 x21: 0000000000000000
[ 9.090790] x20: ffff800008eab0b0 x19: ffff800008eab1a8 x18: ffffffffffffffff
[ 9.090792] x17: 000000040044ffff x16: 005000f5b5503510 x15: 0000000000000000
[ 9.090794] x14: ffffcb8ab4082ec0 x13: ffff34791c8ad000 x12: 00000000b464d91d
[ 9.090797] x11: 0000000000000000 x10: 8fdf6f246c53d4bf x9 : 9223ed8aaefdef1d
[ 9.090799] x8 : ffff00008a4ebdd8 x7 : 0000000000000003 x6 : 0000000023834175
[ 9.090801] x5 : 00000000410fd420 x4 : 0000000000c0000e x3 : 0000000000000000
[ 9.090803] x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000
[ 9.090806] Call trace:
[ 9.090808] tegra_qspi_transfer_one_message+0x36c/0x7b4 [spi_tegra210_quad]
[ 9.090811] __spi_pump_messages+0x384/0x7f0
[ 9.090820] __spi_sync+0x2d0/0x310
[ 9.090822] spi_sync+0x3c/0x60
[ 9.090824] spi_mem_exec_op+0x30c/0x440
[ 9.090829] spi_nor_read_id+0x78/0x1a0
[ 9.090832] spi_nor_scan+0x724/0x9f0
[ 9.090834] spi_nor_probe+0xa0/0x2e0
[ 9.090836] spi_mem_probe+0x80/0xd0
[ 9.090838] spi_probe+0x90/0xf0
[ 9.090842] really_probe.part.0+0xac/0x320
[ 9.090846] __driver_probe_device+0xa4/0x170
[ 9.090847] driver_probe_device+0x58/0x1a0
[ 9.090848] __device_attach_driver+0xc4/0x140
[ 9.090851] bus_for_each_drv+0x8c/0xe0
[ 9.090854] __device_attach+0xb4/0x1d0
[ 9.090855] device_initial_probe+0x2c/0x40
[ 9.090856] bus_probe_device+0xa8/0xb0
[ 9.090859] device_add+0x3a4/0x8b0
[ 9.090861] __spi_add_device+0x84/0x140
[ 9.090863] spi_add_device+0x54/0x90
[ 9.090865] of_register_spi_device+0x228/0x380
[ 9.090867] spi_register_controller+0x5e0/0x8b0
[ 9.090868] tegra_qspi_probe+0x38c/0x650 [spi_tegra210_quad]
[ 9.090871] platform_probe+0x74/0xf0
[ 9.090873] really_probe.part.0+0xac/0x320
[ 9.090875] __driver_probe_device+0xa4/0x170
[ 9.090876] driver_probe_device+0x58/0x1a0
[ 9.090877] __driver_attach+0xa8/0x1b0
[ 9.090879] bus_for_each_dev+0x84/0xe0
[ 9.090881] driver_attach+0x38/0x50
[ 9.090884] bus_add_driver+0x118/0x210
[ 9.090886] driver_register+0x80/0x140
[ 9.090888] __platform_driver_register+0x3c/0x50
[ 9.090890] tegra_qspi_driver_init+0x2c/0x1000 [spi_tegra210_quad]
[ 9.090893] do_one_initcall+0x54/0x2b0
[ 9.090896] do_init_module+0x54/0x250
[ 9.090898] load_module+0x2058/0x24c0
[ 9.090900] __do_sys_finit_module+0xa4/0xf0
[ 9.090901] __arm64_sys_finit_module+0x30/0x40
[ 9.090903] invoke_syscall+0x5c/0x130
[ 9.090906] el0_svc_common.constprop.0+0x64/0x110
[ 9.090909] do_el0_svc+0x74/0xa0
[ 9.090912] el0_svc+0x28/0x80
[ 9.090916] el0t_64_sync_handler+0xa4/0x130
[ 9.090918] el0t_64_sync+0x1a4/0x1a8
[ 9.090920] —[ end trace 47c462bbfd3ad51f ]—
[ 10.095864] tegra-qspi 3270000.spi: transfer timeout
[ 10.095866] tegra-qspi 3270000.spi: error in transfer, fifo status 0x00400005
[ 10.096489] spi_master spi0: failed to transfer one message from queue
[ 10.096495] spi-nor: probe of spi0.0 failed with error -2
[ 11.110962] using random self ethernet address
[ 11.110968] using random host ethernet address
[ 11.125422] tegra-xusb 3610000.usb: Firmware timestamp: 2023-02-10 03:48:10 UTC
[ 11.279266] usb0: HOST MAC 1a:8e:fd:a5:b6:72
[ 11.279270] usb0: MAC ee:97:6b:7e:0b:ed
[ 11.279284] tegra-xudc 3550000.usb: EP 0 (type: ctrl, dir: out) enabled
[ 11.798470] tegra-xudc 3550000.usb: EP 5 (type: intr, dir: in) enabled
[ 11.798489] tegra-xudc 3550000.usb: EP 3 (type: bulk, dir: in) enabled
[ 11.798500] tegra-xudc 3550000.usb: EP 2 (type: bulk, dir: out) enabled
[ 11.798558] IPv6: ADDRCONF(NETDEV_CHANGE): usb0: link becomes ready
[ 58.246726] EXT4-fs (nvme0n1p1): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
qspi-fail.txt (39.0 KB)