| 3 - Preparation
Tip:
You can refer to the silk print on the board for the version information.
◦
<Mount_Directory>
: The actual mount directory. For example,
/media/<UserName>
.
◦
<Kernel_Version>
: The Linux Kernel version. For example,
5.15.0-starfive
.
Example Command:
sudo cp
arch/riscv/boot/dts/starfive/jh7100-starfive-visionfive-v2.dtb /
media/<UserName>/root/usr/lib/linux-image-5.15.0-starfive/starfive/
2. Enter SD card mount directory:
cd <Mount_Direcotry>/__boot
Tip:
<Mount_Directory>
refers to the actual mount directory. For example,
/media/UserName
.
3. Open the
extlinux.conf
file:
sudo gedit extlinux.conf
4. Added the following lines, save and exit:
slabel l1
menu label Debian GNU/Linux bookworm/sid 5.15.0-starfive (customized)
linux /boot/vmlinuz-<Kernel_Version>
initrd /boot/initrd.img-<Kernel_Version>
fdt /usr/lib/linux-image-<Kernel_Version>/starfive/<DTB_File>
append root=/dev/mmcblk1p3 rw console=tty0 console=ttyS0,115200 earlycon rootwait
stmmaceth=chain_mode:1 selinux=0
label l1r
menu label Debian GNU/Linux bookworm/sid 5.15.0-starfive (customized)(rescue target)
linux /boot/vmlinuz-<Kernel_Version>
initrd /boot/initrd.img-<Kernel_Version>
fdt /usr/lib/linux-image-<Kernel_Version>/starfive/uart_test.dtb
append root=/dev/mmcblk1p3 rw console=tty0 console=ttyS0,115200 earlycon rootwait
stmmaceth=chain_mode:1 selinux=0 single
Tip:
◦
<DTB_File>
:
Different boards use different dtb files:
▪
jh7110-visionfive-v2.dtb
: for version 1.2A board.
▪
jh7110-visionfive-v2-ac108.dtb
: for version 1.2A board with ac108 codec.
▪
jh7110-visionfive-v2-wm8960.dtb
: for version 1.2A board with wm8960 codec.
Tip:
You can refer to the silk print on the board for the version information.
◦
<Kernel_Version>
: The Linux Kernel version. For example,
5.15.0-starfive
.
◦
Debian GNU/Linux bookworm/sid 5.15.0-starfive (customized)
: The configurable menu item name.
13
© 2018-2022 StarFive Technology
All rights reserved
StarFive