Massflash blob

Hi,

I’m working on Jp7.0 with thor

I tried to use command to produce massflash blob

sudo ./l4t_initrd_flash.sh --no-flash --massflash 5 jetson-agx-thor-devkit internal

And it produce the mfi as Jp6/Jp5

But the size reached to 300G(our rootfs about 22G)

Our mfi image in Jp6 just about 32G

I found that mfi has 5 repeated bsp_imagesX cause the mfi too large

Is that the feature of Jp7?

Can I have a smaller mfi file that supports simultaneous flash to 5 devices?

JetPack_7.1_Linux_JETSON_AGX_THOR_TARGETS/Linux_for_Tegra/tools/kernel_flash/README_initrd_flash.txt

To create the massflash Thor images you need to prepend the following environment variables.

For Thor:

$ sudo BOARDID=3834 FAB= BOARDSKU=0008 BOARDREV= \
./tools/kernel_flash/l4t_initrd_flash.sh --no-flash --massflash 5 --network usb0 jetson-agx-thor-devkit internal

Each of the 5 individual massflash directories is about 8.3GB

ls JetPack_7.1_Linux_JETSON_AGX_THOR_TARGETS/Linux_for_Tegra/mfi_jetson-agx-thor-devkit/unified_flash/out
bsp_images  bsp_images1  bsp_images2  bsp_images3  bsp_images4

du -h mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images4
20K     mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images4/tools/flashtools/board_configs/t264
56K     mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images4/tools/flashtools/board_configs
29M     mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images4/tools/flashtools/flash
16K     mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images4/tools/flashtools/bootburn
892K    mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images4/tools/flashtools/bootburn_t264_py
16K     mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images4/tools/flashtools/storage_configs/t264
20K     mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images4/tools/flashtools/storage_configs
30M     mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images4/tools/flashtools
4.0K    mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images4/tools/muxer/tcu_muxer
8.0K    mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images4/tools/muxer
30M     mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images4/tools
4.0K    mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images4/flash_workspace/rcm-boot
284K    mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images4/flash_workspace/rcm-flash/applet
106M    mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images4/flash_workspace/rcm-flash
284K    mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images4/flash_workspace/flash-images/applet
8.2G    mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images4/flash_workspace/flash-images
8.3G    mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images4/flash_workspace
8.3G    mfi_jetson-agx-thor-devkit/unified_flash/out/bsp_images4

Hi whitesscott,

The command I used refer to the guide, and I use internal instead of mmcblk0p1

My rootfs has installed the nvidia SDK component, and I’ve clone the rootfs back from thor. So each directories I made is about 32G

Sorry for missread, 300G is not only mfi, the mfi is totally about 170G.

So Jp7 would pre-create the flash enviroment and it would cause the flash blob to be too large

Is there any command or variable make it smaller or just use smaller number with --massflash?

Unless you had a Thor in recovery mode usb attached to your host computer when you created massflash you need to prepend the board variables like this.

sudo BOARDID=3834 FAB= BOARDSKU=0008 BOARDREV= \
./tools/kernel_flash/l4t_initrd_flash.sh --no-flash --massflash 5 --network usb0 jetson-agx-thor-devkit internal

You may want to:

  1. sudo rm -rf mfi_jetson-agx-thor-devkit/ mfi_jetson-agx-thor-devkit.tar.gz
  2. Then run that command. It took my host approximately 10 minutes.

My ~/nvidia/nvidia_sdk/JetPack_7.1_Linux_JETSON_AGX_THOR_TARGETS/Linux_for_Tegra/mfi_jetson-agx-thor-devkit

is du -h 42gb

How did you clone your Thor? If you didn’t use this it might be a solution.

Linux_for_Tegra/tools/backup_restore/README_backup_restore.txt

The NVIDIA Jetson Linux package provides a tool to create a backup image and restore
a Jetson device using the backup image.

Requirements:
- Automount of new external storage devices must be temporarily disabled during
  backing up and restoring. On most distributions of Debian-based Linux, you can
  do this using the following command:
      $ systemctl stop udisks2.service
- Run this script to install the right dependencies:
      $ sudo tools/l4t_flash_prerequisites.sh # For Debian-based Linux
- This tool requires the host to have "nfs-kernel-server" service running:
      $ sudo service nfs-kernel-server start

Workflow 1: To create a backup image to host storage
and
Workflow 3: To massflash the backup image

Hi zax,

Are you using the devkit or custom board for Thor?

Please also verify with the latest Jetpack 7.1(r38.4.0) to see if there’s the similar issue.

Hi KevinFFF,

I’m using custom board

but I think it is not relate to the board

My issue is solved, it seems to the feature of jp7