StarFive VisionFive 2 SD-card boot errors

Please heed my advice. Stop using balena etcher if you’re getting errors there.

Boot into a linux from a thumb drive on a wintel box. Then do the following:

    • Please ensure your sdcard is unmounted before doing any of the wiping/imaging to the sdcard.
lsblk
umount /run/media/davidm/rootpart
umount /run/media/davidm/root
umount /run/media/davidm/305E-3140
lsblk
  1. Wipe your sdcard,
wipefs --all /dev/sdb
  1. then write the ubuntu image with dd tool
xz -dk ubuntu-23.04-preinstalled-server-riscv64+visionfive2.img.xz
dd if=./ubuntu-23.04-preinstalled-server-riscv64+visionfive2.img of=/dev/sdb bs=4M status=progress conv=fdatasync

Note: then make sure you have your network cable connected to it. Afterwards, power it up. Be very patient. It takes a few minutes to see it on your network. I usually do

ping 192.168.2.79
PING 192.168.2.79 (192.168.2.79) 56(84) bytes of data.
From 192.168.2.16 icmp_seq=1 Destination Host Unreachable
From 192.168.2.16 icmp_seq=2 Destination Host Unreachable
From 192.168.2.16 icmp_seq=3 Destination Host Unreachable

and after a while it echoes a response.

From 192.168.2.16 icmp_seq=55 Destination Host Unreachable
From 192.168.2.16 icmp_seq=56 Destination Host Unreachable
From 192.168.2.16 icmp_seq=57 Destination Host Unreachable
64 bytes from 192.168.2.79: icmp_seq=58 ttl=64 time=1024 ms
64 bytes from 192.168.2.79: icmp_seq=59 ttl=64 time=0.632 ms
64 bytes from 192.168.2.79: icmp_seq=60 ttl=64 time=0.445 ms
64 bytes from 192.168.2.79: icmp_seq=61 ttl=64 time=0.433 ms
64 bytes from 192.168.2.79: icmp_seq=62 ttl=64 time=0.456 ms

--- 192.168.2.79 ping statistics ---
62 packets transmitted, 5 received, +45 errors, 91.9355% packet loss, time 62442ms
rtt min/avg/max/mdev = 0.433/205.274/1024.404/409.565 ms, pipe 4

then I can ssh into it:

 $ ssh ubuntu@192.168.2.79
ubuntu@192.168.2.79's password: 
Welcome to Ubuntu 23.04 (GNU/Linux 6.4.0-rc5+ riscv64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Mon Jun  5 17:47:47 EDT 2023

  System load:  1.62               Temperature:           47.7 C
  Usage of /:   8.9% of 112.73GB   Processes:             118
  Memory usage: 2%                 Users logged in:       0
  Swap usage:   0%                 IPv4 address for end0: 192.168.2.79

 * Strictly confined Kubernetes makes edge and IoT secure. Learn how MicroK8s
   just raised the bar for easy, resilient and secure K8s cluster deployment.

   https://ubuntu.com/engage/secure-kubernetes-at-the-edge

0 updates can be applied immediately.


Last login: Mon Jun  5 17:17:10 2023 from 192.168.2.16
ubuntu@vf2-UbuSrv-YOW 2023-06-05_17:47:51_EDT : ~
 $ uname -a
Linux vf2-UbuSrv-YOW 6.4.0-rc5+ #114 SMP Mon Jun  5 01:37:45 UTC 2023 riscv64 riscv64 riscv64 GNU/Linux
ubuntu@vf2-UbuSrv-YOW 2023-06-06_12:35:44_EDT : ~

after doing this, I shutdown:

sudo shutdown -h now

And all the SBC’s lights are off almost instantly. Please enable the custom repo for the
latest daily ubuntu server kernel builds provided by our superhero @agreenbhm are magical :slight_smile: Thank you again. Can’t praise enough.

2 Likes