Skip to content

About

Getting a StarFive VisionFive V1 (JH7100) running in 2026: Ubuntu 22.04.5, serial console, SD card fixes, step by step

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

VisionFive V1 revival kit

How to get a StarFive VisionFive V1 (JH7100) running in 2026, when the vendor's downloads are gone. Every step below was done on a real 8 GB board in November 2026.

What you end up with: Ubuntu 22.04.5 Server, kernel 6.5, Wi-Fi and Ethernet, reachable over SSH.

What still exists

Source State
Ubuntu 22.04.5 image for the VisionFive Works, used here
openSUSE Tumbleweed JH7100 images Still published, not tested here
fedora.starfivetech.com (StarFive's Fedora images) No response
github.com/starfive-tech/VisionFive_Software 404

You need

  • microSD card, 8 GB or more, from a brand you trust (see Bad cards)
  • 5 V / 3 A USB-C power supply
  • 3.3 V USB-serial adapter (CP2102, CH340, FTDI, WCH-Link...). Not optional: the first boot is done over serial.

1. Flash the card

Download and check the image (4.6 GB unpacked):

https://cdimage.ubuntu.com/ubuntu/releases/22.04/release/ubuntu-22.04.5-preinstalled-server-riscv64+visionfive.img.xz
sha256: d83e1ff0109445aeb82eb37be60780d4dc5a8740f61e6b1c3e62edae5729c96e

The file name must say visionfive, not visionfive2. Write it with balenaEtcher or Raspberry Pi Imager (both take the .img.xz directly), or on Linux:

xz -dc ubuntu-22.04.5-preinstalled-server-riscv64+visionfive.img.xz | sudo dd of=/dev/sdX bs=4M conv=fsync status=progress

2. Connect the serial console

40-pin header, board powered off while wiring. Pin 1 has the square pad; pins 2, 4, 6, 8, 10 are the row nearest the board edge.

Board pin Signal Adapter
6 GND GND
8 board TX RX
10 board RX TX

Leave the adapter's 3.3 V / 5 V pin unconnected. Terminal settings: 115200 baud, 8N1.

putty -serial COM3 -sercfg 115200,8,n,1,N      # Windows
picocom -b 115200 /dev/ttyUSB0                  # Linux

No output at all usually means TX and RX are swapped. Output but no response to typing means the wire to pin 10 is loose.

3. First boot

Insert the card and power on. Do not press keys until Linux is up: a key in the first second opens the first-stage loader's menu, and a c at the GRUB menu opens its command line.

Healthy boot, in order:

bootloader version:211102-0b86f96        first-stage loader, DDR test
OpenSBI v1.0
U-Boot 2022.04-rc2-VisionFive            DRAM: 8 GiB
Welcome to GRUB!
Linux version 6.5.0-1018-starfive
ubuntu login:

The factory U-Boot boots this image as it is; no environment changes are needed. The first boot takes about five minutes (it resizes the file system and generates SSH keys). Log in as ubuntu / ubuntu and set a new password when asked.

If it stops at a grub> prompt because a key got through:

configfile (hd0,gpt1)/boot/grub/grub.cfg

4. Fix the SD card discard stall (do this first)

The image mounts the root file system with discard. With some cards the controller then stalls; apt hangs for hours and the kernel log fills with:

mmc0: Card stuck being busy! __mmc_poll_for_busy
I/O error, dev mmcblk0, sector ... op 0x3:(DISCARD)

Turn discard off, now and for future boots:

sudo mount -o remount,nodiscard /
sudo sed -i.bak -E 's/(\s)discard,/\1/' /etc/fstab
sudo systemctl disable --now fstrim.timer

or run scripts/fix-sd-discard.sh. Check with findmnt -no OPTIONS / (no discard in the list).

5. Network

Wi-Fi (onboard BCM43430, 2.4 GHz only). Create /etc/netplan/60-wifi.yaml from scripts/60-wifi.yaml with your network name and password, then:

sudo chmod 600 /etc/netplan/60-wifi.yaml
sudo netplan apply
ip a          # wlan0 gets an address after about 20 seconds

The Cannot call Open vSwitch warning from netplan apply is harmless.

Ethernet works under Linux with DHCP and no configuration. It does not work from U-Boot: the link comes up but no packets pass, so TFTP and network boot are not available with the factory firmware.

Then use SSH: ssh ubuntu@<address>.

6. Update

sudo apt update && sudo apt full-upgrade -y
sudo reboot

Expect an hour or more. If it was interrupted:

sudo dpkg --configure -a
sudo apt -f install
sudo apt full-upgrade -y

If dpkg reports a package "in a mess", reinstall it from the cache first: sudo dpkg -i /var/cache/apt/archives/<package>_*.deb.

Shut down with sudo poweroff before unplugging power.

What works under this image

Feature State
Both U74 cores, 8 GB RAM Works
SD card, USB ports Work
Ethernet (Linux) Works
Wi-Fi Works
Ethernet in U-Boot No traffic
HDMI Driver loads and finds the HDMI chip; not tested with a display
Bluetooth Not enabled: no Bluetooth device appears

Bad SD cards

Two of three cards used here were bad, and a bad card looks like a dead board.

Signs on a PC: the card shows as unformatted with size 0; every sector reads back identical; the reported size changes during a write; a "successful" write leaves the card blank.

A weak card can pass a short test and still fail after a gigabyte or two of writing. To test a card in the board itself, with no card reader involved, write and compare 16 MB of random data from the U-Boot prompt. This overwrites part of the card; only do it on a card you will reflash.

random 0xa0000000 0x1000000 1
mmc write 0xa0000000 0x100000 0x8000
mmc read 0xb0000000 0x100000 0x8000
cmp.b 0xa0000000 0xb0000000 0x1000000

A good result ends with Total of 16777216 byte(s) were the same. Repeat with other block numbers (the 0x100000) across the card, a hundred times or more in total: the bad card here survived 1.6 GB and then stopped answering.

U-Boot notes

  • Reaching the prompt. Autoboot in 2 seconds does not stop on a key press. Press c at the GRUB menu, type exit, and U-Boot drops to VisionFive #. With no card inserted it goes there by itself.
  • Settings file. U-Boot imports boot/uEnv.txt from the card's small uEnv partition (partition 3, ext4) on every boot; bootcmd is set there.
  • FAT is read-only in this U-Boot (save fails); mmc write works.
  • Card layout after first boot: 15 = EFI (FAT, 106 MB), 12 = CIDATA (4 MB, sample files only), 3 = uEnv, 1 = root (fills the card).
  • Bare-metal code: fatload mmc 0:f 0x80200000 file.bin; go 0x80200000 enters in supervisor mode. Which hart U-Boot runs on varies between boots, and the U74 does not set page-table accessed/dirty bits.

For a worked example of bare-metal code on this board, see the xv6 port: https://github.com/HackHobby-Lab/xv6-visionfive-v1.


MIT licence. Written up with AI assistance. Corrections welcome through issues.

About

Getting a StarFive VisionFive V1 (JH7100) running in 2026: Ubuntu 22.04.5, serial console, SD card fixes, step by step

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages