How can I extract a complete image from the eMMC on ROC-RK3566-PC?

Hello Firefly Technical Support,

I am using a ROC-RK3566-PC board and I need to make a complete backup/image of the operating system currently installed on the eMMC.

My goal is simply to read the entire eMMC and create a bootable .img file on my PC. I do not want to erase, modify, or overwrite the eMMC.

I connected the board in Loader Mode and I can see the eMMC information using RKDevTool v2.86:

Manufacturer: Samsung
Flash Size: approximately 29.8 GB
Total Sector: 0x3A3E000
Block Size: 512 KB
Page Size: 2 KB
Status: Found One LOADER Device

I tried using the ExportImage function in RKDevTool, but I can only get approximately 32 MB when using:

Start: 0
Count: 65536

I need to extract the complete eMMC image, approximately 30 GB, including the bootloader, partitions, Ubuntu system, and all other data currently stored on the eMMC.

I also tried using an image on an SD card, but the board continued to boot the operating system from the eMMC. Therefore, for now, my priority is simply to make a complete backup of the existing eMMC as a single image file.

Could you please provide the exact procedure or recommended tool/command to read the complete eMMC and save it as a .img file?

For example, if the correct method is to use rkdeveloptool, could you please provide the exact command and explain whether the eMMC needs to remain in Loader Mode during the entire operation?

Important: I do not want to write anything to or erase the eMMC. I only want to read and backup its current contents.

Thank you for your support.

Best regards,
Alpaslan Şahan

Hi Alpaslan,

Thank you for reaching out to Firefly Technical Support.

Regarding your request to create a complete backup/image of the eMMC on your ROC-RK3566-PC board, we recommend the following two-step approach:

Step 1: Export the root filesystem from the device

You can use the ff_export_rootfs tool to export the root filesystem from your device. Please refer to the documentation here:

Step 2: Repack the firmware on your PC

After exporting the rootfs, you can use the Firmware Repack Tool on your PC to create a complete flashable firmware image. Please refer to the documentation here:

This tool allows you to replace the rootfs.img in the official firmware package with the one you exported, and then repack it into a new flashable image (new_update.img). The operations are performed on the PC (x86-64 architecture).

Best regards,

Neutionwei