Skip to content

System Image Installation and Backup

Flashing the OriginCar SD Card Image

Download the OriginCar SD Card Image

Download the SD card image for the robot from the table below, and extract the downloaded file.

Version Download Link Included Software Version
v1.0.0 OriginCar_sd_image_v1.0.0 ros2: foxy
v1.0.0 OriginCar_Pro_sd_image_v1.0.0 ros2: humble

Flash the SD Card Image

(1) Insert the SD card into the computer with a card reader. An SD card capacity of ≥16GB is recommended;

(2) Start the image flashing software (you can refer to Common Software to download it);

(3) Select the system image to be flashed and the SD card device number;

image-20220902144937771

(4) Click "Flash" to start flashing the image;

image-20220902144937771

(5) After flashing is complete, the software enters verification. Once verification finishes, you can exit the software.

Backing Up the OriginCar SD Card Image

The following backup procedure is completed in the Ubuntu system on the computer.

Shrink the Disk Space

To reduce the image size, we first use the gparted software to shrink the disk space of the SD card. Insert the SD card into a running computer, then install and start the gparted software:

$ sudo apt-get install gparted
$ sudo gparted

In the gparted software that opens, select the SD card in the upper-right corner: img

Then right-click and select the unmount option to unmount the SD card: img

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

Drag the right side of the space bar to shrink the space. Yellow indicates used partitions and white indicates free partitions. Be careful to keep some white free space, otherwise the image may fail to start. img

After confirming, click the execute button in the software to start the shrinking operation. img

When shrinking is complete, you can close the gparted software.

View Disk Information

Open a terminal and use the fdisk command to view the current disk information.

$ sudo fdisk -u -l
img

In the figure, /dev/sdb is the disk number of the SD card. Continue with the following command to view the SD card partition information:

$ sudo fdisk -u -l /dev/sdb

Start the Disk Backup

Now you can use the dd command to back up the SD card to an img file.

$ sudo dd bs=512 count=[largest end number from the fdisk command + 1] if=/dev/sdb of=OriginCar_backup.img
At this point there is no prompt in the terminal, but the backup has already started. It takes a long time, so please wait patiently.

After the backup is complete, the terminal command exits automatically, and the img image backup file is obtained in the current path. img

The generated img image file is relatively large. If needed, you can use tools such as zip to compress and decompress it.

At this point, the SD card image backup is complete.

Image 1