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:Figure 1. Directory StructureFigure 2. Directory StructureFigure 3. Directory Structure
After installation, add the following files to /boot path:Figure 4. Added Files
At the same time, the extLinux/extlinux.conf file has been modified, as shown in the following figure:Figure 5. extlinux/extlinux.confFigure 6. extlinux/extlinux.conf
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, and label l1r should be modified to the state before installing the Debian package:Figure 7. Modify fdtdir
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:Figure 8. Place kernel source code
Modify the fdtdir configuration in label l2 and label 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:Figure 9. Modify fdtdir Configuration
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:Figure 10. Kernel Boot Option-1Figure 11. Kernel Boot Option-5
After logging in with power on, enter the following command to view system information: