Skip to content
RV-Phone / Phase 0 in progress / phone image not yet booted

Prompting a RISC-V phone OS

RV-Phone plans a Linux phone around the StarFive JH7110. Before the hardware exists, the project can build a riscv64 userland and test its first boots in wasm-vm. This is the workflow and its current boundary, not a claim that the phone OS already runs.

See the current status →

The prompt

Start with a specification in plain language, then ask an agent to build the image, boot it, inspect the result, and change one thing at a time.

Example Phase 0 promptBuild me a RISC-V phone OS: Alpine riscv64 with the Sxmo shell, a 720 × 1440 portrait display, touch and sound. Simulate a Quectel EG25-G LTE modem over virtio-console so I can test calls and SMS before the hardware arrives. Boot it in wasm-vm.

The exchange below illustrates the planned workflow. It is not a transcript of a completed RV-Phone build or a recorded VM run.

Agent

Build an Alpine riscv64 root filesystem, add the available Sxmo packages, and configure a phone user.

Agent

Boot the image in wasm-vm. Connect the portrait display, pointer and keys, and guest audio to the browser.

Agent

Implement a fake EG25-G answering AT commands on a guest console port, then check what ModemManager and the dialer observe.

You

Make the launcher bigger and add a dialer shortcut.

Agent

Rebuild, reboot, inspect the changed screen, and keep the boot and modem traces as evidence.

The loop

The bolt.new-style loop for an OS is prompt → build → boot → look → repeat. Each turn should end in a real guest run, rather than a picture of a proposed UI.

  1. Describe the system. Name the distro, shell, screen, inputs, and hardware that needs a stand-in.
  2. Build the image. Assemble the riscv64 root filesystem and configuration in a reproducible build.
  3. Boot it in the tab. Run the image on wasm-vm's RISC-V machine and observe the actual guest display, console, input, and sound.
  4. Change and verify. Try the UI or fake call, inspect logs, revise the image, and retain the next run.

Why it can be real

wasm-vm emulates a RISC-V machine rather than substituting host Linux APIs. That makes it a plausible place to start the phone's riscv64 userland. Moving to the JH7110 will still require hardware-specific kernel and device work, and the transfer has not been proven yet.

Linux

An unmodified Alpine riscv64 guest already boots to a shell in the browser. The proposed phone image will be a separate build. Open the machine →

Devices

The existing VM has browser scanout, guest keyboard and pointer input, and audio. Portrait UI and a simulated modem remain Phase 0 work.

Starting an early OS iteration
StepTypical dev-board pathPlanned browser path
First bootPrepare a board, flash storage, and connect a serial console.Open the built image in a tab.
Build toolsUse a cross-toolchain or riscv64 build host.Build riscv64 packages inside a riscv64 guest.
Modem testConnect a modem, SIM, and carrier service.Start with a fake AT-command modem.
ReviewShare an image and a set of flashing steps.Share the image and its recorded boot evidence.

Verification

wasm-vm's rule is that an implementer's satisfaction is a claim; a deterministic recording is evidence. RV-Phone can use the same rule: the phone UI and fake modem count as working only after a recorded guest boot shows their output and input.

The next concrete proof is a Phase 0 image that boots in the browser, responds to touch or pointer input, and exchanges AT commands with the simulated modem. Real screenshots, commands, and numbers belong here after that run.

Current status

Planned

JH7110 compute platform, EG25-G modem, and foldable-screen hardware design.

Phase 0 · now

Build Alpine riscv64 with Sxmo, a portrait UI, and the simulated modem. No completed in-browser phone boot is claimed yet. This page will be updated with the first result.

After Phase 0

Try the userland on a VisionFive 2 with a real modem, then adapt the kernel and devices for the phone's carrier board.

Back to case studies → · Try wasm-vm →