system.img under Linux_for_Tegra/bootloader/ is for MB2 flashing with eMMC/SD card, for initrd flash, please try replacing the file under Linux_for_Tegra/tools/kernel_flash/images/external/.
Waiting for device to expose ssh ...Device has booted into initrd. You can ssh to the target by the command:
$ ssh root@fc00:1:1:0::2
Cleaning up...
Log is saved to Linux_for_Tegra/initrdlog/flash_3-3_0_20230825-101412.log
We also need serial console log to know if the device has booted into initrd successfully.
Also, you actually don’t need this as you are flashing into a USB drive:
As per the flash log, it says device has booted to initrd. And according to the console log, initrd is fine. I should be able to access the Orin now which has the backup system image flashed on it…
Then what’s the flashing log and serial console log now?
The same as this?
Waiting for device to expose ssh ......RTNETLINK answers: File exists
RTNETLINK answers: File exists
Waiting for device to expose ssh ...Device has booted into initrd. You can ssh to the target by the command:
$ ssh root@fc00:1:1:0::2
Cleaning up...
I think that’s not the main point here.
Even if your system.img is not reused, it should just proceed with creating another one.
157 flash_through_ssh()
158 {
159 wait_for_flash_ssh "${1}"
160 if [ -n "${initrd_only}" ]; then
161 echo "Device has booted into initrd. You can ssh to the target by the command:"
162 echo "$ ssh root@${1}"
163 exit
164 fi
165 run_flash_commmand_on_target "${1}"
166 exit 0
167 }
As you can see in the flashing script ( l4t_network_flash.func), this log will only appear when initrd-only is specified, which you did not do and is weird. That’s why I asked you to try with a different host PC.