For those who do not have time to create their own Gentoo Image I have created a basic image that you can experiment with that does not have a GUI installed and only has a limited amount of packages installed.
It is based on the Risc V lp64d systemd image from stage3.
For a limited time I will have it avaiable for download here
The Image has 2 users which are listed below with their passwords
Install the image to a SD Card of at least 32GB
Then extend the tf card rootfs partition if needed.
This could be done on Ubuntu host, need to install the below package:
$ sudo apt install cloud-guest-utils e2fsprogs
Then insert the tf card to Ubuntu host, run the below, note /dev/sdX is the tf card device.
$ sudo growpart /dev/sdX 3 # extend partition 4
$ sudo e2fsck -f /dev/sdX3
$ sudo resize2fs /dev/sdX3 # extend filesystem
$ sudo fsck.ext4 /dev/sdX3
Place the SD card in your Visionfive2 and boot up with an ethernet cable installed.
Check your router to see the IP Address. It may take a few minutes to show up.
Connect using SSH and log on as either root or user and login with the password 1Starfive?
In the folder /root I have a script called system-update.sh which you could run to update the system.
The Image is currently running the stock Visionfive2 Debian Kernel.
In /usr/src I have a copy of the Linux kernel ready to be compiled
In /usr/src/linux I have a file called build-patch.txt which I applied to fix a compile error. You can read the file for details. You can refer to the Visionfive2 Documentation on how to compile and update the kernel.
When comparing Performance of my Visionfive2 running Gentoo with my 8GB Rasperry Pi 4 I found that for the tests I did my Visionfive2 runs faster running Gentoo than my Rasperry Pi 4 does.
The types of tests I did was with commands like
genlop -t gcc
genlop -t glibc
genlop -t bc
Which show the compile times of the programs given as the argument
Additionally running other tests like
time echo “scale=5000; 4*a(1)” | bc -l
was also faster on my Visionfive2