Replace Kernel
Place the files generated by compiling under compiled/ path onto the Debian running system via a network or removable storage medium, and place each file in the corresponding path.
- Place the files System.map-5.15.0, config-5.15.0 and vmlinuz-5.15.0 under /boot path:
- The device tree file can refer to the default path, creates a new path corresponding to the version (/boot/dtbs performance/5.15.0/starfive in this example ), and place jh7110 visionfive v2.dtb in it:
- (Optional) Place the files under /lib/modules to /lib/modules of VisionFive 2:
- (Optional) Enter the corresponding version of the kernel module path and execute the following command to generate initramfs:
update-initrsmfs -c -k 5.15.0 -b /boot
Result:
Generate an initrd.img file with the corresponding version number under /boot path.Note:update-initramfs
is a command used to generate initramfs (initial memory file system).-xxx
parameter specifies which kernel version to generate initramfs for. You need to replace-xxx
with the actual kernel version number of the initramfs you want to generate (in this example is5.15.0
).