I got the solution from my posted issue Boot
from eMMC or NVME? Existing Doubts on the official RVspace forum.
The solution is just hidden in the file
/boot/extlinux/extlinux.conf. Well, to modify this file
correspondingly, you need to:
mount /boot using
sudo mount /dev/sdc3 /mnt
take a look at the file
/boot/extlinux/extlinux.conf
➜ extlinux cat extlinux.conf ## /extlinux/extlinux.conf ## ## IMPORTANT WARNING ## ## The configuration of this file is generated automatically. ## Do not edit this file manually, use: u-boot-update
default l1 menu title U-Boot menu prompt 0 timeout 50
label l1r menu label Debian GNU/Linux bookworm/sid 5.15.0-starfive (rescue target) linux /vmlinuz-5.15.0-starfive initrd /initrd.img-5.15.0-starfive fdtdir /dtbs append root=/dev/nvme0n1p4 rw console=tty0 console=ttyS0,115200 earlycon rootwait stmmaceth=chain_mode:1 selinux=0 single
Now, I'm able to boot from both SD card or
NVME, however, there seems to be NO
such a thing similar to grub? And I'll have to
manually edit the value of default l1 accordingly whenever
I want to boot from a different device.
Anyway, I've got to stop here for now. I'll talk about how to build a
fresh distro for VisionFive2
from scratch in my next post.