Burn SD Card onto EMMC

Hi Guys,

I have built an application on TX2 carrier board. Sometime during the development, I switched to SD Card by burning the contents which were present at that time on EMMC and continued my development on SD Card. Now I wish to reflect the new development environment (all installed packages , libraries etc.) which is present on SD Card back onto EMMC.

Is there a way in which this can be accomplished ? If so, what is the best way to do so?

Please help me out.


Lots of ways to do that. Two examples…

You could use rsync since mmcblk1p1 (SD) is mounted instead of mmcblk0p1 (eMMC). You can mount mmcblk0p1 anywhere and treat it like any other disk. E.g., if you mount mmcblk0p1 on “/tmp” while running under the SD card:

sudo -s
mount /dev/mmcblk0p1 /tmp
rsync -avczrx --info=progress2,stats2 / /tmp
# Then edit "/tmp/boot/extlinux/extlinux.conf so "root=/dev/mmcblk0p1" instead of "mmcblk1p1".

You could use a combination of “find” and “cpio” being careful to tell find to not cross file systems. “cpio” is a bit like “cp”, but has a better understanding of special files (e.g., it knows “/dev/zero” isn’t a real file and won’t copy content but will still create the correct file).