How do I flash multiple Orin Nano and NX modules?

hello.

I’m currently testing Orin Nano, NX and I’m looking to build and use about 100 modules this time.

It would be too inefficient to do a 1:1 module Flash.

Is there any way to flash multiple modules at the same time?

Linux_for_Tegra/tools/kernel_flash/README_initrd_flash.txt

Workflow 7: Initrd Massflash
Initrd Massflash works with workflow 3,4,5. Initrd massflash also requires you to do the massflash
in two steps.

First, generate massflash package using options --no-flash and --massflash <x> and --network usb0
Where <x> is the highest possible number of devices to be flashed concurrently.

Both online mode and offline mode are supported (Details can be seen in workflow 2).
In the example below, we use offline mode to create a flashing environment that is
capable of flashing 5 devices concurrently.

$ sudo BOARDID=<BOARDID> FAB=<FAB> BOARDSKU=<BOARDSKU> BOARDREV=<BOARDREV>
./tools/kernel_flash/l4t_initrd_flash.sh --no-flash --massflash 5 --network usb0 jetson-xavier-nx-devkit-emmc mmcblk0p1

(For the value of BOARDID, FAB, BOARDSKU and BOARDREV, please refer to the table at the bottom of this file.)


Second,
- Connect all 5 Jetson devices to the flashing hosts.
(Make sure all devices are in exactly the same hardware revision similar to the requirement in
README_Massflash.txt )
- Put all of connected Jetsons into RCM mode.
- Run:
$ sudo ./tools/kernel_flash/l4t_initrd_flash.sh --flash-only --massflash 5 --network usb0
(Optionally add --showlogs to show all of the log)

Note:
the actual number of connected devices can be less than the maximum number
of devices the package can support.


Tips:
- The tool also provides the --keep option to keep the flash
  environment, and the --reuse options to reuse the flash environment to make
  massflash run faster:

  Massflash the first time.
  $ sudo ./tools/kernel_flash/l4t_initrd_flash.sh --flash-only --massflash 5 --network usb0 --keep

  Massflash the second time.
  $ sudo ./tools/kernel_flash/l4t_initrd_flash.sh --flash-only --massflash 5 --network usb0 --reuse

- Use ionice to make the flash process the highest I/O priority in the system.
  $ sudo ionice -c 1 -n 0 ./tools/kernel_flash/l4t_initrd_flash.sh --flash-only --network usb0 --massflash 5