JP7.2.1 massflash 5 failed

Hi,

I’m trying to create a Massflash package for AGX Orin using JP7.2.1,

sudo BOARDID=3701 FAB=TS4 BOARDSKU=0004 BOARDREV=G.0 CHIP_SKU="00:00:00:D2" ./tools/kernel_flash/l4t_initrd_flash.sh --no-flash --network usb0 --massflash 5 jetson-agx-orin-devkit internal

but the process always fails with the following error:

118101 blocks
mkdir: cannot create directory ‘/tmp/tmp.ZNVoWy23hy/initrd/usr/share/misc/’: File exists
Cleaning up...

I also applied the patch mentioned in this thread: jetpack7-2-massflash-5-failed

However, the Massflash package generation still fails with the same File exists error.

Any suggestions on how to resolve this issue would be greatly appreciated.

Thanks!

Hi,

Could you reboot the host machine or clean the /tmp directory using below commands

sudo rm -rf /tmp/tmp.*

Thanks

You could try

sudo chmod 1777 /tmp
sudo rm -rf /tmp/tmp.*

Then run massflash again.

Hi @DavidDDD and @whitesscott

Thanks for your reply.

I rebooted the system, cleaned the directory, and tried again

but it still fails with the same File exists error…

Edit
tools/kernel_flash/l4t_initrd_flash_internal.sh

go to line 523
add -p like

mkdir -p "${working_dir}/initrd/usr/share/misc/

Thanks!!!