Advertisement
DogCircle

Readme

Jul 18th, 2016
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. defconfig file: a52dtul_defconfig (arm-eabi-4.9)
  2.  
  3.  
  4.  
  5. Download:
  6.  
  7. =========
  8.  
  9. If you are not already using an AOSP toolchain (included in an AOSP build tree), download the corresponding official android toolchain for the arm-eabi specified above for this device:
  10.  
  11.  
  12.  
  13. git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/ for 4.9
  14.  
  15. (use darwin-x86 in place of linux-x86 for mac)
  16.  
  17.  
  18.  
  19. Build the kernel:
  20.  
  21. =================
  22.  
  23. set the following environment variables:
  24.  
  25.  
  26.  
  27. export TOP= [where you installed the toolchain or top of android AOSP code base]
  28.  
  29. export PATH=$TOP/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin:$PATH (use corresponding arm-eabi bin path)
  30.  
  31. export ARCH=arm64
  32.  
  33. export SUBARCH=arm64
  34.  
  35. export CROSS_COMPILE=aarch64-linux-android-4.9
  36.  
  37.  
  38.  
  39. make [the defconfig file for this device above]
  40.  
  41. make clean (for subsequent builds)
  42.  
  43. make -j4 (in this example 4 is the number of processors of your build machine)
  44.  
  45.  
  46.  
  47. Output Binary Files:
  48.  
  49. ====================
  50.  
  51. After the build process is finished, there should be a file named "Image" found in arch/arm64/boot/
  52.  
  53. If you are building a rom with this kernel ZImage, copy it into your build's output folder and rename it to "kernel".
  54.  
  55.  
  56.  
  57. You will also need the following kernel modules. These will eventually be installed into /system/lib/modules on the device.
  58.  
  59.  
  60.  
  61. kernel modules:
  62.  
  63. ./driver/*.ko
  64.  
  65.  
  66.  
  67. If you have already built and installed a boot.img with root access you can also install the modules directly into the device using "adb remount" and "apb push [file] system/lib/modules/" for each file listed above. After installing files set permissions with "adb shell chmod 0644 system/lib/modules/*" and "adb reboot"
  68.  
  69.  
  70.  
  71. For additional information:
  72.  
  73. ===========================
  74.  
  75. http://htcdev.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement