Installing openKylin on K1

Prepare the SD Card

The openKylin image adapted for K1 can be downloaded from the following link:

Baidu Cloud

Unzip it using the following command:

unzip openKylin-Embedded-V2.0-SP2-Release-spacemit-k1-riscv64.img.zip

Please unzip according to your actual file path.

Create SD Card Boot Disk

First, use a disk utility to format the SD card. You can use balenaEtcher or dd to write the image to the SD card. Here is an example using dd:

sudo dd if=</path/to/image.img> of=/dev/mmcblk0 bs=1M status=progress
  • Note: </path/to/image.img> means the path to the downloaded image. Do not include the angle brackets or the text inside. Try to avoid spaces in the path.

This command assumes you have inserted the SD card into the SD card slot of the development board. If you are using a USB card reader, it may appear as /dev/sdb or something similar instead of /dev/mmcblk0.

  • Warning: Be very careful with the “of” parameter in the above command. Using the wrong disk may result in data loss. You can also use the disk utility’s restore disk image function to write the image to the SD card.

Allocate Remaining SD Card Space After Flashing

Follow the steps below to allocate the remaining SD card space to the root partition. Note: This command assumes your SD card device is /dev/sdb. Please partition according to your actual device number.

sudo apt install cloud-guest-utils
sudo growpart /dev/sdb 6
sudo resize2fs /dev/sdb6

First Boot

Insert the flashed and partitioned SD card into the K1 slot and press the power button. After the first boot, there will be a default user in the system. Once the desktop environment starts, you can log in to K1 for the first time using the default user. You can later change the user or password as needed.

The default username/password is:

username: openkylin
password: openkylin
Scroll to Top