Modify massflash package
Massflash
The massflash package is a tarball that can be generated using the l4t_initrd_flash.sh with the --massflash flag specified. It allows to have a self contained package that has the necessary stuff to flash a jetson board with the specified parameters. That allows to use it on a factory floor that has a production line or faster deliveries. The following steps were tested with Jetpack 4.6.
Modify existing package
To modify and existing package without remaking it, it can be decompressed, modified and then compressed back. The steps shown are for the external image(nvme), but it applies to the internal image(emmc). If in any step 'permission denied' is encountered, just use sudo. The mfi package name applies for a Xavier NX, just change accordingly to the used package name.
1. Decompress the massflash package:
tar -xvf mfi_jetson-xavier-nx-devkit-emmc.tar.gz
2. Go to the external image folder:
cd mfi_jetson-xavier-nx-devkit-emmc/tools/kernel_flash/images/external
3. Make a folder to hold the decompressed rootfs:
mkdir img_out cd img_out tar -xvf ../system.img
4. After that you should see the rootfs structure, similar to this:
bin boot dev etc home lib lost+found media mnt opt proc root run sbin snap srv sys tegra194-mb1-bct-ratchet-p3668.cfg tmp usr var
5. Make the modifications
6. Compress it back, in this step you need to add all the folders and files that were generated before, so verify it:
sudo tar --xattrs -cpf system.img bin boot dev etc home lib lost+found media mnt opt proc root run sbin snap srv sys tegra194-mb1-bct-ratchet-p3668.cfg tmp usr var
7. Then move the image back to the parent folder:
mv system.img ../
8. Delete the temp files:
cd .. rm -rf img_out
9. Make the new shasum:
sudo sha1sum system.img | cut -f 1 -d ' ' > system.img.sha1sum
If you get permissions error, change the output to another folder, like ~/system.img.sha1sum, and then move it back using sudo
10. Now flash as normal:
sudo ./tools/kernel_flash/l4t_initrd_flash.sh --flash-only --massflash 1 --showlogs
For direct inquiries, please refer to the contact information available on our Contact page. Alternatively, you may complete and submit the form provided at the same link. We will respond to your request at our earliest opportunity.
Links to RidgeRun Resources and RidgeRun Artificial Intelligence Solutions can be found in the footer below.