Failed to copy master board's image to other new slave boards

I have one “Master Nano module” (it contains my softwares and customized setting) on “JN30B” carrier board.

And I want to copy this to other same nano modules (there are also set on JN30B)

Master module’s OS and other computer vision libraries are installed eMMC not SDCard
(Actually module was not contain SD Card)

Other(Target) modules is that has no data that has just been shipped.

So I try below sequence to copy that,


1. Make “Master Nano board” (set ip, programs, etc …)

2. In host PC(ubuntu), type below command

working dir : JetPack_4.6_Linux_JESTON_NANO_TARGETS/Linux_for_Tegra

$ sudo ./flash.sh -r -k APP -G clone.img jetson-nano-emmc mmcblk0p1

(The size of mmcblk0p1 is about 15.3gb)

and then, backup original system.img

$ mkdir bootloader/_backup_img

$ mv bootloader/system.img bootloader/_backup_img

copy new created image( clone.img : size about 15.xx gb )

$ sudo cp clone.img bootloader/system.img

3. Create massflash blob (“Master Nano board” was already connected with RCM)

$ sudo ./nvmassflashgen.sh jetson-nano-emmc mmcblk0p1

$ tar xvjf mfi_jetson_jetson-nano-emmc.tbz2

4. Connect multiple “Sub jetson nano boards(4ea)” with RCM

5. Copy to “Sub jetson nano boards”

$ cd mfi_jetson-nano-emmc

$ sudo ./nvmflash.sh

after above command lines,
“ongoing process BoardID1 ID2 ID3 ID4” printed repeatly about 20~30 minute
finally print "Flash complete (SUCCESSED)

6. Problem…

Copy was successed, but my softwares and setting which was developed and NVIDIA libaries(such as OpenCV, CUDA … ) are not exist.

It was a pure image state with only OS installed.

Also I checked current board’s partition size, (df -lh)
It is only using about 5 gb.

7. I wished

I want to copy master board(with my software, ip setting, other else …) to multiple new jetson board

Are there any missing steps or parts that need to be corrected?

Could you try to put file under your Linux_for_Tegra/rootfs/, re-create a new massflash tarball, flash it and see if the added file will appear in your device or not?

Thank you for your answer !!

Is the “file” you mentioned SDK librearies (available in SDK Manager), software I developed, and other self-files and settings??

I proceeded with the development on the master Jetson board.

Therefore, it is not difficult to move the software or other files I developed to rootfs on the Ubuntu host PC.

By the way, is there a good way to copy all the components installed through SDK Manager to rootfs?

Or, is there any way to utilize about 15 gb of backup image (system.img) files that have already been created by Clone the masterboard?