SpacemiT K1
2026-07-0515 min read

SpacemiT K1 OpenWrt SDK: Complete Development Guide

From SDK download to custom firmware build — the complete guide to developing OpenWrt on the K1 RISC-V platform.

K1OpenWrtSDKRISC-VRouter

Overview

The SpacemiT K1 is an 8-core RISC-V SoC (X60 @1.6GHz) with native OpenWrt 23.05 support. This guide walks through the complete development workflow: obtaining the SDK, building firmware, flashing, and developing custom packages.

Prerequisites

1. Obtain the SDK

The OpenWrt SDK for K1 is hosted on Gitee:

git clone https://gitee.com/bianbu-linux/openwrt.git
cd openwrt
git checkout bl-v2.0.y

The SDK includes:

2. Build Environment Setup

sudo apt update
sudo apt install -y build-essential clang flex bison g++ gawk   gcc-multilib g++-multilib gettext git libncurses-dev libssl-dev   python3-distutils rsync unzip zlib1g-dev

cd openwrt
./scripts/feeds update -a
./scripts/feeds install -a

3. Configure for K1

make menuconfig

Select:

4. Build Firmware

make -j$(nproc) V=s

First build takes 1-2 hours. Output files are in bin/targets/spacemit/.

5. Flash Firmware

Connect USB-TTL to the board's debug UART (115200 8N1). Power on, press any key in serial console to enter U-Boot:

# TFTP flash method
setenv serverip 192.168.1.100
setenv ipaddr 192.168.1.200
tftpboot 0x90000000 openwrt-spacemit-k1-sbc-debX-ext4-pack.zip
# Or use USB/DOS methods

6. Pre-built Firmware

If you just want to test, pre-built firmware is available:

7. Supported Hardware

8. Key Features

CPU8x X60 RISC-V @1.6GHz (50K DMIPS)
GPUPowerVR BXE-2-32 (2D/3D acceleration)
AI2.0 TOPS (INT8) via custom RISC-V instructions
MemoryLPDDR4X up to 16GB
Network2x GMAC, 5x PCIe, 12x UART, 2x CAN-FD
OSOpenWrt 23.05, Bianbu Linux (Ubuntu-based), OpenHarmony

Resources