Getting Started with StarFive VisionFive

| | 0 Comments| 5:56 PM
Categories:

I’ve been excited to get my hands on a StarFive VisionFive and it finally arrived last week after being on backorder since late March of 2022. Unlike the HiFive which runs OSes suitable for a microcontroller, the VisionFive will boot into a fully functional Fedora distribution with the Xfce desktop environment.

To get started with the VisionFive you’ll need

  • a microSD Card (at least 16GB, preferably a lot more)
  • USB-C Power Supply (like one used for a Raspberry Pi 4)
  • Keyboard and Mouse
  • Monitor
  • HDMI cable

If you’ve never booted up a BeagleBone or Raspberry Pi “from scratch”, head on over to the VisionFive Quick Start Guide for a gentler introduction.

The Fedora image for the VisionFive can be found on Github. For whatever reason the download of the image kept stalling in Safari, so I resorted to using curl:

The image is compressed with Zstandard. Compressed it is around 3.5 gigabytes. Uncompressed it is around 13G. Once you’ve downloaded the file, go ahead and verify its integrity with sha256sum:

The checksum for the 20211226 image is 94c73c967e12c80192d7bf25147badd9f0ee1738dc9800d1c502f376df5d5e2f. Now, decompress it:

On macOS we’ll use diskutil and dd to write the image. If the microSD is mounted after inserting it, unmount it with diskutil unmountDisk. On my machine the SD card is presented as disk4. Always verify where your disk is mounted before using dd!

Now, let’s write the image to the disk. Take note here that we’re using /dev/rdisk4, i.e., the “raw” disk.

Once your disk is written insert it into the VisionFive and boot it up! I found that having all of the peripherals (keyboard, mouse, monitor, and Ethernet cable) is the best way to go. Be patient, this board is not as snappy as a Pi 4. But, in a few minutes you’ll be presented with a login screen. The default user is riscv and the password is starfive.

Setting Your Timezone

After booting Fedora I noticed the date was in the future. Typing date at the command line resulted in Mon Aug 22 04:52:18 AM CST 2022. Well, I’m in America/Chicago but why is that still ahead? Big dummy. CST in this context is Asia/Shanghai.

Easily fixed with:

Resize Your Root Partition

After booting your VisionFive you might notice that the root partition is smaller than the actual microSD size. In this example we’re using a 16GB microSD, but the root partition is only 11.4G. We can fix that! Using these general instructions we can resize the root partition without rebooting.

Now use resize2fs on /dev/mmcblk0p4:

Impressions

The StarFive VisionFive is really cool. While not exactly usable as a daily driver and a bit sluggish compared to the Raspberry Pi, it is a fully-functional desktop computer with a dual-core RISC-V chip on it. I continue to be excited about the future of RISC-V as an open alternative to x86 or ARM. Two years ago I was tinkering with RISC-V with the equivalent of an Arduino Duo. Today there are RISC-V-based SBCs running full-featured Linux. The Fedora distribution for the VisionFive has a lot of packages installed, including the gcc and g++ compilers, Perl, Python, Ruby, Lua, and even Go. Indeed, it is only a matter of time before one begins seeing other languages like NodeJS (we know, it’s not a language), Swift, Rust, and Racket. Exciting times!

Leave a Reply

Your email address will not be published. Required fields are marked *