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.
  1. Place the files System.map-5.15.0, config-5.15.0 and vmlinuz-5.15.0 under /boot path:
    Figure 1. Place Files
  2. 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:
    Figure 2. Place Files
  3. (Optional) Place the files under /lib/modules to /lib/modules of VisionFive 2:
    Figure 3. Place Files
  4. (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
    Figure 4. Generate initramfs

    Result:

    Generate an initrd.img file with the corresponding version number under /boot path.
    Figure 5. initrd.img
    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 is 5.15.0).