Debian202403
Update Configuration Files
Follow the steps below to update the configuration file of the Debian202403 version image:
- Before installing the compiled files, the structures of extlinux/extlinux.cnf, uEnv.txt, and dtbs/ under /boot path are as follows:
- After installation, add the following files to /boot path:At the same time, the extLinux/extlinux.conf file has been modified, as shown in the following figure:
- It can be seen that the fdtdir in each startup item is set to /dtbs. Combined with the configuration in uEnv.txt, it can be seen that after powering on, the device tree file will be loaded according to the path of /boot/dtbs/starfive/jh7110-visionfive-v2.dtb, which obviously does not match the directory structure under the dtbs/ path. Therefore, the fdtdir for the startup options of
label l0
,label l0r
,label l1
, andlabel l1r
should be modified to the state before installing the Debian package: - Execute the following command to set a new dtb addressing path for the new kernel boot option:
$ mkdir -p /boot/dtbs-performance/5.15.0/starfive
And place the device tree file under the compiled kernel source code in this path: - Modify the fdtdir configuration in
label l2
andlabel l2r
in extlinux/extlinux.conf so that when starting a new kernel, the device tree file will be loaded from the /boot/dtbs-performance/5.15.0/starfive/jh7110-visionfive-v2.dtb path:
Verfication
After replacing the kernel of Debian202403 image and powering it on, select the newly added kernel option in the U-Boot menu. As shown in the following two images, select the kernel boot options for 1 and 5 respectively to see that the corresponding device tree files have been correctly loaded:
After logging in with power on, enter the following command to view system information:
$ cat /proc/version