AOSP-RISCV on Cuttlefish on SpaceMIT K3

It is running. And history is made today, June 2nd, 2026.

A couple of things I’m pretty certain:

  • First RISCV64 build of android cuttlefish (only base package at this point)
  • First RISCV64 port of crosvm running a real hardware
  • First RISCV64 AOSP image running on cuttlefish/crosvm, and naturally first such running on a real hardware

TODO – Will add more technical bits later, including a list of git repos that contain all the bleeding code.

I must confess – without claude.ai, this porting would be impossible (it starts to sound like oscar winning speech. :-0)

Install Claude Code on RISC-V Linux Hosts

Claude Code is damn powerful! But if you want to install it on RISC-V Linux hosts via the official installer script, you will be greeted with some cold rejection!

jsun@lpi4a:~$ curl -fsSL https://claude.ai/install.sh | bash
Unsupported architecture: riscv64

Below is the workaround method, tested on LicheePi 4A board:

# install nodejs (>=v18) and npm
sudo apt install nodejs npm

# (optional) install npm packages to user-local; no sudo needed
mkdir -p ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
source ~/.bashrc

# install claude-code as npm package
npm install -g @anthropic-ai/claude-code@2.1.112

# run!
cd ~/my-code
claude