我要评分
获取效率
正确性
完整性
易理解

Applying Kernel Patches

Apply kernel patches into the kernel source code directory to support Kbox.

  1. Create a directory for storing the dependency packages required for environment setup and change the directory permission.
    1
    2
    mkdir ~/dependency
    chmod -R 700 ~/dependency
    
  2. Decompress Kbox-AOSP15.zip and upload the patchForKernel and patchForExagear directories in the Kbox-AOSP15 folder to the ~/dependency directory on the server. Assign appropriate permissions on the uploaded files and directories. You are not advised to assign the write permission for other user groups.
  3. Copy the transcoding patch to the kernel source code directory.
    1
    cp ~/dependency/patchForExagear/hostOS/0001-exagear-kernel-module.patch /usr/src/kernels/kernel-6.6.0-72.0.0
    
  4. Copy the kernel patches to the kernel source code directory.
    1
    cp ~/dependency/patchForKernel/openEuler_24.03/kernel_6.6.0-72.0.0/*.patch /usr/src/kernels/kernel-6.6.0-72.0.0
    
  5. Apply kernel patches.
    1
    2
    cd /usr/src/kernels/kernel-6.6.0-72.0.0
    for patch_name in *.patch; do echo $patch_name; patch -p1 < $patch_name; done