LocalHake

Tutorial

Prepare MicroSD Card in Ubuntu

A guide to preparing your MicroSD card for installing an OS onto the CM3588.

Hake HardwarePublished Updated ~5 minbeginner

This post contains paid links (affiliate) — how that works.


▶ Watch this build on YouTube
Contents

Overview

This guide will walk you through the process of preparing a MicroSD card for installing an operating system onto the CM3588. Before proceeding, ensure you have already downloaded the OS image you wish to install. The CM3588 supports several operating systems including FriendlyElec Debian, FriendlyElec Ubuntu, and Armbian.

Prepare the MicroSD Card

If your PC does not have an SD Card slot, you can use a USB MicroSD card reader.

Once the card is inserted into your system, follow the instructions below to wipe and format the MicroSD card.

It is extremely important to make sure you are selecting the correct device as all data will be wiped.

Identify the device on your system:

bash
lsblk
lsblk output showing MicroSD card

If any of the partitions are mounted, unmount them:

bash
sudo umount /dev/sdX*

Wipe the MicroSD card:

bash
sudo wipefs -a /dev/sdX
wipefs erasing MicroSD partitions

Flash the Image

If you have downloaded an image file that ends with .img.gz:

bash
gzip -dc ~/Downloads/rk3588*.img.gz | sudo dd of=/dev/sdX bs=4M status=progress conv=fsync

If you have downloaded an image file that ends with .img.xz (such as Armbian):

bash
xz -dc ~/Downloads/Armbian*.img.xz | sudo dd of=/dev/sdX bs=4M status=progress conv=fsync

Make sure you replace the path to the image with the actual path and replace /dev/sdX with the actual device name.

After it looks like it is complete, there may be a few minute delay before the prompt returns. This is normal as it is flushing the write cache.

dd flash complete with transfer stats

Sync the Filesystem

bash
sync

Eject the drive:

bash
sudo eject /dev/sdX

The MicroSD card is now ready to be inserted into the CM3588 and booted up.

Gear used

  • SanDisk Extreme 64GB microSDXC (A2, U3, V30)Amazon →
  • SanDisk MobileMate USB 3.0 microSD Card ReaderAmazon →
  • WayPonDEV CM3588 Plus NAS Kit (16GB, RK3588)Amazon →