If i have 2module
A module setted kernal and rootfs and all the things
B module is empty
i should command as below with A module??
but -K means Partition name or number specified in flash.xml or flash.cfg.
so how can i copy all from A module?
SDKM is just a front end to flash software. The flash.sh script is itself what you would use to flash. If you’ve ever flashed via SDKM, then you will have this content in place thanks to SDKM downloading it. Location would be: ~/nvidia/nvidia_sdk/JetPack...version.../Linux_for_Tegra
Whenever you run a command like this it flashes everything, but uses your image rather than generating a new/default image: sudo ./flash.sh -r <board> mmcblk0p1
As soon as you start adding the other options the partitions being restored becomes limited. It is probably best to flash all using the above command since the surrounding partitions are fast to put in place (they are small) and guarantee that content is consistent with that release. Do know though that the clone you use was flashed by a given version of L4T (the part which is actually flashed by JetPack/SDKM/command line). The surrounding partition content may fail if the reused image is from a different release as those surrounding partitions. You can see the L4T version via “head -n 1 /etc/nv_tegra_release”.