Rate This Document
Findability
Accuracy
Completeness
Readability

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-AOSP11.zip and upload the patchForKernel and patchForExagear directories in the Kbox-AOSP11 folder to the ~/dependency directory on the server. Configure appropriate permissions on the uploaded files and directories. It is not recommended to configure the write permission for other users in the owner group and other owner groups.
  3. Copy the transcoding patch to the kernel source code directory.
    cp ~/dependency/patchForExagear/hostOS/0001-exagear-kernel-module.patch /usr/src/linux-kernel-5.15.98
  4. Copy the following patches to the kernel source code directory.
    1
    cp ~/dependency/patchForKernel/ubuntu_20.04/kernel_5.15.98/*.patch /usr/src/linux-kernel-5.15.98
    
  5. Apply the patches.
     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    cd /usr/src/linux-kernel-5.15.98/
    patch -p1 < 0001-exagear-kernel-module.patch
    patch -p1 < 0001.include_exagear_kconfig.patch
    patch -p1 < 0002.pid_max_limit.patch
    patch -p1 < 0003.5.15.98_mmap.patch
    patch -p1 < 0004.enable_AMD6800_6600_5.15.98.patch
    patch -p1 < 0005.enable_binderfs.patch
    patch -p1 < 0006.add_a_field_to_store_names_for_private_anonymous_mem.patch
    patch -p1 < 0007.add_android_alarm_driver.patch
    patch -p1 < 0008.hide_cgroup_dockerinfo_in_docker.patch
    patch -p1 < 0009.fix_meminfo_in_docker.patch
    patch -p1 < 0010.enable_cgroup.patch