Stephen Smith's Blog

Musings on Machine Learning…

Starfive Visionfive 2 SBC Update

with 6 comments


Introduction

I previously blogged on the Starfive Visionfive 2 RISC-V base Single Board Computer (SBC) here. This computer is a great introduction to working with and programming RISC-V computers. It is similar to a Raspberry Pi in functionality, it runs Debian Linux and seems to work reasonably well. Last week Starfive released the June release of their Debian Linux version which fixed a number of bugs and added some welcome new programs.

The June Debian Release

This release fixes a number of bugs such as the screen color problems. The installation process is the same as the last release, which is more than burning and SD-card image, such as:

  • The first thing you need to do is connect to the Internet. If you are hardwired, you are good to go, but if you are Wifi, as I am, then you need to go into Settings, select the network and enter the password.
  • Next you need to resize the file system as this isn’t done automatically. Otherwise you have very limited disk space and installing pretty much anything will fail.
  • There is no browser installed, so the best way to get running is to use ssh, so you can copy/paste commands from the Getting Started Guide. I used scp to copy the install script to the SBC for the next step.
  • The release image is extremely minimal; they provide a shell script that adds compatible RISC-V versions of Firefox, Chrome, VLC and LibreOffice. However this script took six hours to run.
  • You can’t run apt upgrade as it wipes out the special video drivers and HDMI won’t work afterwards.

Once all this is done it works quite well. Some notes:

  • There are now separate SD-card, Flash memory and SSD versions making it easier to get started with SD-card alternatives.
  • It includes Chrome, which I like.
  • The install script adds quite a few programs that aren’t mentioned such as GCC.
  • No simple GUI based text editor is installed, so I installed gedit with apt install gedit. There are others available, but my needs are currently simple.

The documentation mentions that some programs now use GPU acceleration, though I don’t really notice it. Performance still lags behind a Raspberry Pi 4, but I feel it is better than the Raspberry Pi 3.

Running Firefox, Chromium, LibreOffice Writer and VLC.

Summary

It’s been a bit of a wait since the March, 2023 release, but this does appear to be a good upgrade. If the base image included Firefox or Chromium and it resized the file system on first boot, it would be a big time saver. That being said, once I had the basics installed, the system seems to work fairly well and I feel I can get work done.

Although there aren’t nearly as many RISC-V packages available as ARM ones, I’m finding many things I try to install with apt install are working. But it will still be awhile before reaching the same level as a Raspberry Pi.

The RISC-V world is getting exciting with all sorts of new processors and computers. Most FPGAs have freely available RISC-V cores, there are lots of microcontrollers, SBCs like the VisionFive 2 coming on the market and now newer RISC-V computers with many cores for server applications. The VisionFive 2 board is a great inexpensive way to play with RISC-V, but you are still at the bleeding edge and some patience and Linux expertise is required.

Written by smist08

June 19, 2023 at 11:14 am

Posted in RiscV

Tagged with , , ,

6 Responses

Subscribe to comments with RSS.

  1. I’m on record as saying that 2023 is the Year of the RISC-V SBC, but I’m minded to go a step further, and say that RISC-V is almost on the cusp of being consumer-device-ready… Day by day the software is becoming available – great to hear that you’ve got Gedit running.

    Get the boot process easier (or just provide devices with OSs already flashed, like Sipeed are doing with their LicheePi) and that puts RISC-V into the hands of the descerning open source enthusiast.

    mark

    June 20, 2023 at 7:38 am

    • Definitely. Especially with the Raspberry Pi 4 getting rather old.

      smist08

      June 20, 2023 at 8:41 am

  2. […] been working with the Starfive Visionfive 2 SBC which is similar to the Raspberry Pi 4. Now I’m playing with an Espressif ESP32-C3 Devkit which […]

  3. Hey man. I am just reaching out to say I got your book programming with 64-bit arm assembly language and I am teaching myself the language. I first learned Assembly about 20 years ago using Kip Irvines book, so registers and other peculiarities are familiar.

    Right now I am working on a function to convert binary to decimal numerical representation I/O to the console. I have bigger plans but first things first. Your discussion of Linux sys calls —like on p. 163–are not enough info for me. I am trying to duplicate getch() or scanf() in C. What’s the documentation for how to use Linux sys calls? On p. 162 you write There are slightly more than 400 Linux service calls; covering all of these is beyond the scope of this book, and more the topic for a book on Linux system programming. Can you suggest a book?

    Thomas Gear

    October 20, 2023 at 12:11 pm

    • Hi Thomas, those two functions are part of the C runtime. There is a section of my book on how to call functions in the C runtime which is quite well documented in all sorts of places. For more details on the Linux kernel, perhaps “Linux System Programming” by Robert Love from O’Reilly.

      smist08

      October 20, 2023 at 3:46 pm


Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.