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

Applying Kernel Patches

  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.
    1
    cp ~/dependency/patchForExagear/hostOS/ubuntu_20.04/0001-exagear-adapt-kernel-5.15.98.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
    cd /usr/src/linux-kernel-5.15.98/
    patch -p1 < 0001-exagear-adapt-kernel-5.15.98.patch
    patch -p1 < 0001.pid_max_limit.patch
    patch -p1 < 0002.5.15.98_mmap.patch
    patch -p1 < 0003.enable_AMD6800_6600_5.15.98.patch
    patch -p1 < 0004.enable_binderfs.patch
    patch -p1 < 0005.add_a_field_to_store_names_for_private_anonymous_mem.patch
    patch -p1 < 0006.add_android_alarm_driver.patch
    patch -p1 < 0007.fix_cgroup_in_docker.patch
    patch -p1 < 0008.fix_meminfo_in_docker.patch