I downloaded the image again, I replaced the micro sd card but the result is the same…
boot_log1.txt (33.5 KB)
I’ve followed these steps a few days ago and it works perfect:
What is the size of your extracted Gentoo Image before you write it to the SD Card? Is it 6442450944
If it is did you follow the instructions to resize the fourth partition of the SD Card?
Try the following copy the first and second partition of the Debian SD card to the first and second partition of the Gentoo Image and see if it boots…
That will have the effect of using the updated firmware that the debian image has.
maybe you can check the md5 of gentoo
The md5sum is 6d57eba271cbc6cf83a7e7e410aa670c
-rw-r–r-- 1 user user 6442450944 May 28 21:08 gentoo.img
I’ll try to copy p1 and p2 from nvme0n1 to p1 and p2 from mmcblk1
user@starfive:/dev$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
mtdblock0 31:0 0 512K 0 disk
mtdblock1 31:1 0 64K 0 disk
mtdblock2 31:2 0 4M 0 disk
mtdblock3 31:3 0 10M 0 disk
mmcblk1 179:0 0 238.3G 0 disk
├─mmcblk1p1 179:1 0 2M 0 part
├─mmcblk1p2 179:2 0 4M 0 part
├─mmcblk1p3 179:3 0 100M 0 part
└─mmcblk1p4 179:4 0 238.2G 0 part /media/user/96d8b859-8606-4312-bc54-e582c37be6f4
nvme0n1 259:0 0 931.5G 0 disk
├─nvme0n1p1 259:1 0 2M 0 part
├─nvme0n1p2 259:2 0 4M 0 part
├─nvme0n1p3 259:3 0 100M 0 part
└─nvme0n1p4 259:4 0 931.4G 0 part /
user@starfive:~/Downloads$ md5sum gentoo.img
6d57eba271cbc6cf83a7e7e410aa670c gentoo.img
I suppose my microsd card is damaged…, but I have no errors for read/write…
May you tell me how I can check my micro sd card ?
What Size is your SD Card?
Lets try again but do NOT expand Partition4 and see if it boots then.
If it boots without expanding Partition4 then something is going wrong with that step or there is a problem with Partition4 on the SD Card.
256 Gb sd card size
I don’t know if it’s a mistake or wrong… but in the procedure is written mmcblk0 and my micro sd card is seen as mmcblk1
I installed the image again
user@starfive:~/Downloads$ sudo dd if=gentoo.img of=/dev/mmcblk1 bs=1024 status=progress
[sudo] password for user:
6440625152 bytes (6.4 GB, 6.0 GiB) copied, 1248 s, 5.2 MB/s
6291456+0 records in
6291456+0 records out
6442450944 bytes (6.4 GB, 6.0 GiB) copied, 1248.26 s, 5.2 MB/s
Same issue again, I attached the boot log
boot_log2.txt (33.4 KB)
Do your DIP Switched look like this
https://forum.rvspace.org/uploads/default/original/2X/4/4db77020da798735769c08c2a8b2f90e5707b37d.jpeg
Try disconnecting the NVME drive, leave it disconnected and then boot up again.
Also what revision is your board? It should be printed on it.
I suceeded to boot from micro sd card but…
done.
Begin: Mounting root file system … Begin: Running /scripts/local-top … done.
Begin: Running /scripts/local-premount … done.
Warning: fsck not present, so skipping root file[ 7.267059] EXT4-fs (mmcblk1p4): bad geometry: block count 62440443 exceeds size of device (1545211 blocks)
system
mount: mounting /dev/mmcblk1p4 on /root failed: Invalid argument
Failed to mount /dev/mmcblk1p4 as root file system.
BusyBox v1.35.0 (Debian 1:1.35.0-4) built-in shell (ash)
Enter ‘help’ for a list of built-in commands.
(initramfs) [ 34.486080] mipi_0p9: disabling
(initramfs)
That indicates a problem with your SD Card.
on another linux system try to run a fsck on partition 4 of the sdcard.
Another option is to re-flash the SDCARD with gentoo and boot using your Debian Image and then run the following commands on the Gentoo SD card
sudo growpart /dev/mmcblk1 4
sudo e2fsck -f /dev/mmcblk1p4
sudo resize2fs /dev/mmcblk1p4
sudo fsck.ext4 /dev/mmcblk1p4
Make sure that no errors are returned.
Failing that I suggest trying with a Brand New SD High Speed Card as not all brands work with the VisionFive 2. I tend to use SanDisk SD Cards.
I succeded. Thanks a lot.
I am using debian usually but I don’t know very much gentoo.
What are next steps for creating a friendly desnktop environment as debian ?
StarFive login: root
Last login: Sat Jun 1 08:50:27 BST 2024 on ttyS0
root@StarFive ~ # df -h
Filesystem Size Used Avail Use% Mounted on
udev 3.7G 0 3.7G 0% /dev
tmpfs 793M 1.8M 792M 1% /run
/dev/mmcblk1p4 235G 5.4G 218G 3% /
tmpfs 3.9G 0 3.9G 0% /dev/shm
tmpfs 3.9G 0 3.9G 0% /tmp
tmpfs 793M 0 793M 0% /run/user/0
root@StarFive ~ # emerge nano
!!! /etc/portage/make.profile is not a symlink and will probably prevent most merges.
!!! It should point into a profile within /var/db/repos/gentoo/profiles/
!!! (You can safely ignore this message when syncing. It’s harmless.)
!!! Your current profile is invalid. If you have just changed your profile
!!! configuration, you should revert back to the previous configuration.
!!! Allowed actions are limited to --help, --info, --search, --sync, and
!!! --version.
root@StarFive ~ #
That is great news.
Make sure to run
emaint -a sync
To sync your system before doing any emerges
I think you would want to run follow the merge-usr - Gentoo wiki
Then suggest running a eselect profile list and selecting a profile.
My current profile is set at [34] default/linux/riscv/23.0/rv64/lp64d/desktop/systemd (dev) *
This is the Desktop I Installed Xfce/Guide - Gentoo wiki However you can follow the gentoo handbook and install any desktop you desire.
Handbook:Main Page - Gentoo wiki
I suggest also reaching out to @maffblaster @bing and others on the forum who run Gentoo.
Gentoo Desktops.
Hi Folks,
Those of you who are running Gentoo on your Visionfive2 Please respond to @ioasiodf with what Desktops you are running on your system
And depending what you’re planning to install/update/upgrade: create a swap file!
One tip: gentoo is a completely new toy for me too. So it is a good idea to invest plenty of time to read gentoo wiki. A lot of things are completely different from other distros.
For some of the recommended settings have a look at the VisionFive2 Gentoo Wiki
https://wiki.gentoo.org/wiki/StarFive_VisionFive_2
It Documents installing Gentoo from Scratch but as you now have it installed you can refer to if for guidance on some of the settings etc specific for the VisionFive2
It has a list of External Resources at the end.
If you look at this list you will see some of the RISCV Gentoo folks who have a VisionFive2
https://wiki.gentoo.org/wiki/RISC-V_hardware_list
Here is a copy of the contents of the script to set the VisionFive2 to performance mode
cat set_performance.sh
#!/bin/bash
echo performance | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor