Applying Kernel Patches
Apply kernel patches into the kernel source code directory to support Kbox.
- 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
- Decompress Kbox-AOSP11.zip and upload the patchForKernel and patchForExagear directories in the Kbox-AOSP11 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.
- Copy the transcoding patch to the kernel source code directory.
1cp ~/dependency/patchForExagear/hostOS/0001-exagear-kernel-module.patch /usr/src/kernels/kernel-5.10.0-136.12.0
- Copy the kernel patches to the kernel source code directory.
- For kernel version 5.10.0-136.12.0, use the kernel patches in the patchForKernel/openEuler_22.03/kernel_5.10.0-136.12.0 directory.
- For kernel version 5.10.0-182.0.0, use the kernel patches in the patchForKernel/openEuler_22.03/kernel_5.10.0-182.0.0 directory.
1cp ~/dependency/patchForKernel/openEuler_22.03/kernel_5.10.0-136.12.0/*.patch /usr/src/kernels/kernel-5.10.0-136.12.0
- Apply kernel patches.
1 2
cd /usr/src/kernels/kernel-5.10.0-136.12.0 for patch_name in *.patch; do echo $patch_name; patch -p1 < $patch_name; done
Parent topic: Procedures