htc Dev src kernel compile - Linux

Linda avatar
By Linda
at 2016-07-19T12:08

Table of Contents

你好,我下載你們提供的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就出現問題了

yuan@yuan:~$ cd kernel/80_kernel_a52tuhl-3.10.49-gccc14c2/
yuan@yuan:~/kernel/80_kernel_a52tuhl-3.10.49-gccc14c2$ make a52dtul_defconfig
arch/arm64/configs/a52dtul_defconfig:570:warning: unexpected data
arch/arm64/configs/a52dtul_defconfig:581:warning: override: reassigning to
symbol KEYS
arch/arm64/configs/a52dtul_defconfig:721:warning: override: reassigning to
symbol SECURITY
arch/arm64/configs/a52dtul_defconfig:749:warning: override: reassigning to
symbol PPP_MPPE
arch/arm64/configs/a52dtul_defconfig:750:warning: override: reassigning to
symbol PPPOPNS
arch/arm64/configs/a52dtul_defconfig:751:warning: override: reassigning to
symbol PPPOLAC
warning: (LEDS_LP5521 && LEDS_LP5521_HTC && LEDS_LP5523 && LEDS_LP5562)
selects LEDS_LP55XX_COMMON which has unmet direct dependencies (NEW_LEDS &&
(LEDS_LP5521 || LEDS_LP5523 || LEDS_LP5562))
warning: (SND_SOC_QDSP6V2) selects SND_SOC_MSM_QDSP6V2_INTF which has unmet
direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC &&
MSM_QDSP6_APRV2)
warning: (SND_SOC_APQ8084 && SND_SOC_MSM8X16 && SND_SOC_MSM8994) selects
SND_SOC_CPE which has unmet direct dependencies (SOUND && !M68K && !UML &&
SND && SND_SOC && SND_SOC_WCD_CPE)
warning: (ARCH_MSM) selects DEVFREQ_GOV_MSM_BW_HWMON which has unmet direct
dependencies (PM_DEVFREQ && (ARCH_MSM_KRAIT || ARCH_MSM_BIMC_BWMON))
warning: (LEDS_LP5521 && LEDS_LP5521_HTC && LEDS_LP5523 && LEDS_LP5562)
selects LEDS_LP55XX_COMMON which has unmet direct dependencies (NEW_LEDS &&
(LEDS_LP5521 || LEDS_LP5523 || LEDS_LP5562))
warning: (SND_SOC_QDSP6V2) selects SND_SOC_MSM_QDSP6V2_INTF which has unmet
direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC &&
MSM_QDSP6_APRV2)
warning: (SND_SOC_APQ8084 && SND_SOC_MSM8X16 && SND_SOC_MSM8994) selects
SND_SOC_CPE which has unmet direct dependencies (SOUND && !M68K && !UML &&
SND && SND_SOC && SND_SOC_WCD_CPE)
warning: (ARCH_MSM) selects DEVFREQ_GOV_MSM_BW_HWMON which has unmet direct
dependencies (PM_DEVFREQ && (ARCH_MSM_KRAIT || ARCH_MSM_BIMC_BWMON))
#
# configuration written to .config
#
yuan@yuan:~/kernel/80_kernel_a52tuhl-3.10.49-gccc14c2$ make clean
Makefile:791: *** multiple target patterns. Stop.
yuan@yuan:~/kernel/80_kernel_a52tuhl-3.10.49-gccc14c2$

,想請問要怎麼解決??我是在ubuntu14.04 64bits下做的

附上makefile(http://pastebin.com/PUqz859C)


--
Tags: Linux

All Comments

Daph Bay avatar
By Daph Bay
at 2016-07-19T15:12
你根本連編都沒編啊, 你知道自己在幹嘛嗎
Poppy avatar
By Poppy
at 2016-07-23T07:25
你要不要先說明一下你gedit /etc/profile跟reboot是想幹麻?

你如何管理你的密碼?

Jacky avatar
By Jacky
at 2016-07-19T11:11
上次的密碼管理習慣調查出來了, https://goo.gl/mfz1h7 (圖表摘要) https://goo.gl/8vILVw (回應詳細內容) 不意外的是大多數人都還是用大腦記憶密碼,而用瀏覽器記憶密碼則是第二名,意外的是 沒想到有 37.7% 的人每個網站都設定不一樣的密碼。然後也意外的發現了不少特 ...

低耗電上網版本選擇?

Jacob avatar
By Jacob
at 2016-07-18T20:52
※ 引述《dog218 (憤青龜)》之銘言: : 本魯是初學者 : 未來想買CJS hs-210自己裝linux : (Celeron N3160 / 4GB DDR3L-1600 / 128GB CooMe X750) : 因為大部分只上網 加上這台電池很小 : 所以只想選擇耗電比較低的版本 : 未來暫時不 ...

你如何管理你的密碼?

Dorothy avatar
By Dorothy
at 2016-07-17T12:52
做個小小的調查 你如何管理你的密碼? 這是一份 google 表單,不會要求你的密碼與個人資料,只有三題而已,只是個小調查 http://goo.gl/forms/e3FWiVoY6Hsv6TQT2 ----- Sent from JPTT on my LGE Nexus 5. - ...

公視改 HD 之後,電視棒不能用?

Barb Cronin avatar
By Barb Cronin
at 2016-07-17T11:16
不太確定是不是應該在這個版問, 如果有更適合的版, 請告訴我. 多謝~~ 我一直是用電腦(Ubuntu)外接到 LCD 上看電視, 收公視(1,2台)一直都沒問題, 公視HD則看很勉強 (mplayer 完全不行, vlc 有點方格 ) 其它台最初測是時好時壞, 不過我也沒在看, 所以不知道近幾年的狀況 ...

crontab 一定要登入過才會啟動?

Necoo avatar
By Necoo
at 2016-07-17T00:16
系統是剛裝好的Ubuntu 16.04 $ crontab -e加入45 23 * * * /home/user/date.sh date.sh內容只有: #!/bin/bash date and#34;+%H%M%Sand#34; andgt; /home/user/date.txt 但是在23 ...