Arch Linux Image for VisionFive 2

I just update my post for the cwt22.1 release of Arch Linux Image for VisionFive 2.

As the kernel upgraded to version 6.6, the new u-boot firmware is required. However, the u-boot from StarFive’s repo cannot be built using the latest Arch gcc and binutils, so I changed to the mainline u-boot v2024.04 instead.

The u-boot package is already included in the image, please follow the following instruction to flash onboard firmware:

$ sudo pacman -U /root/pkgs/u-boot-starfive-vf2-2024.04-1-riscv64.pkg.tar.zst
$ cat /proc/mtd  # please always check your mtd partition
$ sudo flashcp -v /usr/share/u-boot-starfive-vf2/u-boot-spl.bin.normal.out /dev/mtd0
$ sudo flashcp -v /usr/share/u-boot-starfive-vf2/u-boot.itb /dev/mtd2
2 Likes