Image installation and backup

Note: The TF card of the RDK X5 robot has been burned with the image at the factory. You can directly insert the TF card into the robot for use. Generally, you do not need to burn the image system according to this tutorial! ! !

6.1. Burn the SD card image

Preparation: Windows 10/11 system computer, card reader, TF card (64G or larger recommended), factory image compressed package file.

Steps:

  1. Unzip the downloaded system compressed file to get the img image file;
  2. Insert the TF card into the card reader, and then insert the card reader into the computer USB port;
  3. Format the SD card to exfat format disk;
  4. Start the image burning software, here use the Win32DiskImager tool;
  5. Confirm the SD card device number and select the system image to be burned;

image-20241203120942413

  1. Wait for the image writing to complete;

image-20241203121339904

  1. The progress bar will show the current burning progress. After the burning is completed, you can exit the software.
  1. Eject the disk

6.2 Disk expansion

Insert the SD card into the RDK X5 motherboard slot and wait for the system to start.

Install and run the GParted software on the system:

image-20241203141259190

Drag the slider to change the disk space capacity:

image-20241203141429300

image-2024120314145267 5

image-20241203141526976

image-20241203141545812

After completing all operations, close the software!

6.3, backup SD card image

6.2.1 Compress disk space

Before backing up the image, use gparted software to compress the disk space of the SD card to reduce the image size.

Install and start gparted software in the virtual machine:

Insert the SD card into the running computer through the card reader and connect it to the virtual machine. In the opened gparted software, select the SD card in the upper right corner:

image-20241203180604652

Then right-click and select to uninstall the SD card mount:

image-20241203180714583

Continue to right-click and select the "Resize/Moves" option to reset the space size of the SD card:

image-20241203180750444

Drag the right side of the space division bar to compress the space. The yellow one is the occupied partition and the white one is the free partition. Be careful to keep a little white free partition to prevent the image from failing to start.

image-20241203180933381

After confirmation, click the execute button in the software to start the compression operation.

image-20241203181039619

image-20241203181322297

After the compression is completed, you can close the gparted software.

6.2.2 View disk information

Open the terminal and use the script to view the current disk status:

parted_info.sh script content

image-20241203181628214

/dev/sdb in the figure is the disk number of the SD card, record this data in the figure: 56393728

image-20241203181724766

6.2.3 Start disk backup

Use the dd command to back up the SD card to the img file. Enter the following in the terminal:

where if=/dev/sdb is the disk device number queried in the first step, of=RDK_X5.img is the name of the backup, bs=512 indicates the block size,

count=56393728 indicates the backup size, and this data is obtained from the above steps.

At this time, there is no prompt information in the terminal. Reopen a terminal and run the following command to check the progress.

image-20241203182048066

Wait for the backup to complete!

image-20241203183250091

The above is the image burning and backup process!