Flash Jeston Nano Failed with error: Failed to write to APP

Hi, NVIDIA
I am trying to flash my board with follow command:

cd mfi_SQ-ORIN+p3767-0000
sudo ./tools/kernel_flash/l4t_initrd_flash.sh --flash-only --massflash 5 --network usb0 --showlogs

Ubuntu PC 20.04

But I can see some error in console:
flash_3-1_0_20250325-102940.log (39.9 KB)
especially error log:

Error: The backup GPT table is corrupt, but the primary appears OK, so that will be used.
Warning: Not all of the space available to /dev/nvme0n1 appears to be used, you can fix the GPT to use all of the space (an extra 380580527 blocks) or continue with the current setting?
...
mount: only root can do that (effective UID is 1000)
[ 18]: l4t_flash_from_kernel: Failed to mount APP partition /dev/nvme0n1p1

How can I fix it?
Thanks

Are you using Jetson Nano or Orin Nano?
Devkit or custom carrier board?
Which JetPack SW?

Hi
I am using Jeston Orin Nano, which PID is: 0955:7323 NVIDIA Corp. APX by lsusb
custom board
Jetpack SW: 5.1.1 with linux: R35(release). REVISION:3.1

Hi,

Do you format your NVMe to ext4 before flashing?

Thanks

Hi David
Thanks for your reply.

How can I ensure my NVMe format? and How formatNVMe to ext4?
I am using my custom board, and run the command: sudo ./tools/kernel_flash/l4t_initrd_flash.sh --flash-only --massflash 5 --network usb0 --showlogs

You could insert to other device and use lsblk to check.

Is this custom board you design or bought from other vendor?
Do you modify the bsp to suit your custom board?

Thanks

Hi, David
Thanks very much

From other vendor

Yes, The vendor had modify the bsp to suit the board.

In fact, this board can be successfully flashed with the same commands and software at the beginning. But later on, we tried to align the upgrade, but it failed. Then I tried to flash back to this working version, but found that I couldn’t flash it again.
What I want to do now is to rescue it, but I don’t know how to solve this problem.
Thanks

What is the meaning of the align the upgrade?
Do you do the apt ugpradeor other commands ?

It is weird that you flash successfully before with same bsp but now fail.
Do you have other hard drive like (NVMe or USB) to flash and cross check?

Thanks

Yes, We do the dist-upgrade that we to update it to ubuntu 24.04.
During the upgrade process, the screen suddenly went black and there was no response. Then we powered off and on again, and the board couldn’t work properly, can not be flashed again.

Now we use type-C debug port to connect PC(Ubuntu20.04) and board(with NVMe), and no other method.
Thanks

Hi,

The upgrade will crash your system because of custom carrier board.
When apt upgrade, the apt server will replace your package with our official stuff and lead to system fail.

Could you use our dev kit to cross check or record a serial console log for us to review?

Thanks

Hi

I am sorry for that I do not have dev kit currently.

I uploaded the complete refresh log from the beginning,is there any useful information?
Thanks

Notice that you are using the mass flash.
Could you try other flashing commands similar like Quick Start — NVIDIA Jetson Linux Developer Guide 1 documentation mentioned commands?
Or try other NVMe.

Thanks

I have tried other flashing commands, but it do not worked.

Thank you for your try.

The log you provide is host flashing log.
We need the serial console log.
Please follow the below link to record

Thanks