[問題] htc Dev src kernel compile

作者: hardware (哈味)   2016-07-19 12:08:52
你好,我下載你們提供的HTC desire 826的kernel,我按照裡面的readme
defconfig file: a52dtul_defconfig (arm-eabi-4.9)
Download:
=========
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:
git clone
https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/
for 4.9
(use darwin-x86 in place of linux-x86 for mac)
Build the kernel:
=================
set the following environment variables:
export TOP= [where you installed the toolchain or top of android AOSP code
base]
export
PATH=$TOP/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin:$PATH
(use corresponding arm-eabi bin path)
export ARCH=arm64
export SUBARCH=arm64
export CROSS_COMPILE=aarch64-linux-android-4.9
make [the defconfig file for this device above]
make clean (for subsequent builds)
make -j4 (in this example 4 is the number of processors of your build
machine)
Output Binary Files:
====================
After the build process is finished, there should be a file named "Image"
found in arch/arm64/boot/
If you are building a rom with this kernel ZImage, copy it into your build's
output folder and rename it to "kernel".
You will also need the following kernel modules. These will eventually be
installed into /system/lib/modules on the device.
kernel modules:
./driver/*.ko
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"
For additional information:
===========================
http://htcdev.com
先下載aarch64的編譯器,並且先改修改在/etc/profile檔案最底下加入需要加的環境變

export TOP=/home/yuan
export PATH=$TOP/aarch64-linux-android-4.9/bin:$PATH
export ARCH=arm64
export SUBARCH=arm64
export CROSS_COMPILE=aarch64-linux-android-4.9
,我先make a53dtul_defconfig,有出現警告,但我先make clean就出現問題了
[email protected]/*
作者: HamalAri (哈馬‧阿里)   2016-07-19 21:06:00
你根本連編都沒編啊, 你知道自己在幹嘛嗎
作者: soem (流水)   2016-07-20 00:31:00
你要不要先說明一下你gedit /etc/profile跟reboot是想幹麻?
繼續閱讀

Links booklink

Contact Us: admin [ a t ] ucptt.com