[Q] kernel source - myTouch 4G Q&A, Help & Troubleshooting

Hi! I would like to try myself in kernel development for MT4G. Where can I download the source code (3.0.X.) ? So far I've found on git 2.6.35 and samsung-kernel-msm7x30-ics-3.0 ... But I not sure if it's compatible... Any help will be appreciated! Thanx

Github.com/THEindian/glacier_kernel

http://github.com/elginsk8r/android_kernel_htc_msm7x30-common

elginsk8r said:
http://github.com/elginsk8r/android_kernel_htc_msm7x30-common
Click to expand...
Click to collapse
WOW. Your back!

thanx
Thanx i'll give it a try!!!!
:victory:

.config
Hi. tried to compile one of the kernel sources with a few light changes - i'm getting an error (drivers related..) from make... Maybe I'm using a wrong config file? Which default config file is preferred???Thanx

error details
make[3]: *** No rule to make target `drivers/input/keyboard/pmic8058-keypad.o', needed by `drivers/input/keyboard/built-in.o'. Stop.
make[2]: *** [drivers/input/keyboard] Error 2
make[1]: *** [drivers/input] Error 2
make: *** [drivers] Error 2
theese are my bugs... help plz!!!

whose kernel are you using?

kernel
i'm using android_kernel_htc_msm7x30-common-jellybean from the link upstairs

themenucha said:
i'm using android_kernel_htc_msm7x30-common-jellybean from the link upstairs
Click to expand...
Click to collapse
I'm no expert on kernel compiling but I have run into problems depending on the toolchain used. For 3.0 kernel I used the Linaro 4.6.2 toolchain from this thread http://forum.xda-developers.com/showthread.php?t=1748297
Cheers

toolchain
well i guess i used the wrong toolchain. (4.3.3)
thanx

Cool, hopefully you can get something running. I have used the 4.3.3 toolchain for GB kernel builds without errors. Good luck!!
Sent from my HTC Glacier using xda premium

Thats a little old. I think linaro is on the 4.8 toolchain, i use 4.7.3 to compile my kernels. I would link you to the source i actually just use the toolchains from the CFX source. Also, i made a kernel compiling script (cause i am lazy ) so i don't really remember where the toolchain is lol

2.6.X.X
So far successfully compiled 2.6.x.x kernel using 4.4.3 toolchain and stock GB kernel from HTCdev site. For training purpose only. Dont have a GB rom to test but it should work. I'll try to compile 3.0.x.x kernel later with a new toolchail. Which one is preferred 4.7 or 4.8?thanx

src
romuloxiii said:
Cool, hopefully you can get something running. I have used the 4.3.3 toolchain for GB kernel builds without errors. Good luck!!
Sent from my HTC Glacier using xda premium
Click to expand...
Click to collapse
Hi! plz link me to the source!!!!

themenucha said:
Hi! plz link me to the source!!!!
Click to expand...
Click to collapse
Hi, I use the CyanogenMod repo for the kernel source. I've been building and tinkering with the kernel for a couple of months now (when time permits) and I've had good luck with it. Here is a link for CM Kernel that is compatible with our device: https://github.com/CyanogenMod/htc-kernel-msm7x30
I hope it helps

Am I understanding correctly that I just need to go to the Linaro site here and download the latest release under the 'toolchain build' tab (currently version 4.8) if I want to mess around with compiling a kernel? Confused by some of the other tabs and links on there.
Also, for the record, is this the only source you'd need to build the most current Glacier 3.0+ based kernel https://github.com/Evervolv/android_kernel_htc_msm7x30-3.0.git?
Looking forward to catastrophic failure and the potential melting of my Glacier...
EDIT: answered my own questions. Yes and yes.

Related

kernel ics

there is' someone who can compile a kernel for beta ics Andrew Garen?
There wont be any custom kernels for those roms till there's source code for ICS
Sent from my Google Nexus S 4G using xda premium
True. "Compiling" is referring to compiling source. As soon as we get source code....we're golden.
You could take the boot.img and unpack it to make minor tweaks but not nearly enough. The real quality tweaks reside in the zImage binary.
A boot.img consists of two major parts;
1. Ramdisk
2. zImage (binary)
Who's Andrew Garen?
Has been the ICS kernel already released? If yes, could please provide the link to the downloading page or git repository, I need to recompile a custom one.
adaimespechip said:
Who's Andrew Garen?
Click to expand...
Click to collapse
He's a dev. His roms work awesome. You should chcek it out. www.drewgaren.com
jlanza said:
Has been the ICS kernel already released? If yes, could please provide the link to the downloading page or git repository, I need to recompile a custom one.
Click to expand...
Click to collapse
It is not.
jlanza said:
Has been the ICS kernel already released? If yes, could please provide the link to the downloading page or git repository, I need to recompile a custom one.
Click to expand...
Click to collapse
I think that the matr1x kernel v11.5 should work on drew garens icy! do a backup and try!
Sent from my Nexus S using XDA App

DREAMteam Froyo source code

Hi there,
I'm trying to build some froyo rom for g1 from source. The problem is that lot of stuff lying here is old, unusable slow or hopelessly broken. The only rom that seems to work is hxxp://forum.xda-developers.com/showthread.php?t=1273549
[Rom][2.2.3 AOSP] DREAMteam Froyo v2.0.0 [9/3/2012]
The kernel source can be easy found by Ezterry
hxxps://github.com/ezterry/kernel-biff-testing/tree/ezgb-2636-v1.5.2-20111106
but I can't find any (git) repo or hint how the "DREAMteam" guys built it. :crying:
Thanks in advance for any hints,
ptau
pm the devs
Sent from my HTC Vision using xda premium
All you need for building the kernel is here at this url:
https://github.com/ezterry/manifest-gingerbread-DS/blob/gingerbread/README.mkdn
It used to be on the ezgingerbread rom thread but seems he has a link to the guide which is now on github ^_^
Sent from my GT-I9300 using xda app-developers app
xillius200 said:
All you need for building the kernel is here at this url:
https://github.com/ezterry/manifest-gingerbread-DS/blob/gingerbread/README.mkdn
It used to be on the ezgingerbread rom thread but seems he has a link to the guide which is now on github ^_^
Click to expand...
Click to collapse
Building the kernel for froyo or building the ezgingerbread rom is no problem:
http://forum.xda-developers.com/showthread.php?t=882356
Unfortunately (Ez)gingerbread is an overkill for the tiny G1
My problem is to find out how to build a froyo rom that is not
broken (e.g. cm6). The DREAMteam's
http://forum.xda-developers.com/showthread.php?t=1273549
rom seems to have the most bugs fixed, but again I don't know
how to build it. I need the right android manifest, git repo, etc.
The DREAMteam changelog is astonishingly sparse:
V2.0.0 - 2012-03-09
Update to android 2.2.3. Some changes from 1.9.2 included.
Thanks ptau
ptau said:
Building the kernel for froyo or building the ezgingerbread rom is no problem:
http://forum.xda-developers.com/showthread.php?t=882356
Unfortunately (Ez)gingerbread is an overkill for the tiny G1
My problem is to find out how to build a froyo rom that is not
broken (e.g. cm6). The DREAMteam's
http://forum.xda-developers.com/showthread.php?t=1273549
rom seems to have the most bugs fixed, but again I don't know
how to build it. I need the right android manifest, git repo, etc.
The DREAMteam changelog is astonishingly sparse:
V2.0.0 - 2012-03-09
Update to android 2.2.3. Some changes from 1.9.2 included.
Thanks ptau
Click to expand...
Click to collapse
Well I got in touch with tval aint spoke to him for a while. He said a repo was never made for DREAMteam froyo and the way in which it was created some by pushing files not everything was coding, there was not much point in a repo and he has not got around to it lol and I totally agree with him. So best thing would be to compile a rom from plain AOSP and begin to modify it yourself, this way you learn and better understand rom creation. Plus doing it straight from AOSP will give you the updates you want and in most ways will actually be better ^^ If you want any help I could always introduce you to a few devs see if they would be willing to help ^^
PS: From how you worded your first post it sounded like you were trying to compile just the ezterry kernel xD so I apologise that I misunderstood ^^
99%
xillius200 said:
As far as I remember when it was first started they never had a repository and unless it has changed they still do not lol ill email tvall later lol seems Ldrifta is gone.... :'( if not you can always just compile a normal aosp and then customize it to your liking and speed helps you learn on how to speed up roms that way unlike having an already fast rom of which you learn less from.
Click to expand...
Click to collapse
Thanks. After I looked in the zip, I thought something like that.
Seriously, you don't need speed with this hardware.
Think of cheap, stable, not battery eating
and hackable ARM11 development platform
After that incident with kernel.org they removed all the old android repos
so I have hard times to find the G1 pieces again. ezterry rocks. The kernel
changes are in his git, I could tweak+build the kernel with all the
modules I needed.
Let's see how to get the aosp together ...
(any hints greatly appreciated
PS: From how you worded your first post it sounded like you were trying to compile just the ezterry kernel xD so I apologise that I misunderstood ^^
Click to expand...
Click to collapse
I know, but my German is much better, I swear :angel:
Well.. I'd be happy to help rebuild my rom. Been wanting to set up a repo, but I'm lazy..
tvall said:
Well.. I'd be happy to help rebuild my rom. Been wanting to set up a repo, but I'm lazy..
Click to expand...
Click to collapse
Thanks for the email with tips.
I try to document the building process here:
hxxps://sites.google.com/site/aospdream/
As always, any hints or help from anybody are greatly appreciated ...
Thanks,
ptau

[DEV]Huawei U8800Por Device Tree For CyanogenMod 10.2 By Ivan [2013-08-16]

Github Link
https://github.com/legacy-dev
Click to expand...
Click to collapse
project:
Code:
proprietary_vendor_huawei branch :cm-10.1
android_device_huawei_msm7x30-common branch :cm-10.2
android_device_huawei_u8800pro branch :cm-10.2
android_hardware_qcom_display-legacy branch :cm-10.2
android_hardware_qcom_media-legacy branch :cm-10.2
I use prebuilt kernel & bcm4329.ko , if you want to update kernel ,use this android_kernel_huawei_honor
Code:
change log:
Fix compile faild with cm-10.2
Maybe un bootable
because there is a issus with mountservices
but it is very easy to fix.
i have not time to do it , who can fix this ?
if you compile faild with audio , then you must use this
https://github.com/Legacy-dev/android_device_huawei_u8800pro/blob/cm-10.2/patch/qcom_audio-caf/0001-audio-msm7x30-Updates-for-MR2.patch
Anyone can compile this?
Sent with my Huawei S4 running Android 5.0.1 KLP
NickVXD said:
Anyone can compile this?
Sent with my Huawei S4 running Android 5.0.1 KLP
Click to expand...
Click to collapse
Nick you try.
macros95 said:
Nick you try.
Click to expand...
Click to collapse
I would but in 5-7 hours I leave for camp and I have to sleep now
qiwu said:
Github Link
project:
Code:
proprietary_vendor_huawei
android_device_huawei_msm7x30-common
android_device_huawei_u8800pro
android_hardware_qcom_display-legacy
android_hardware_qcom_media-legacy
I use prebuilt kernel & bcm4329.ko , if you want to update kernel ,use this android_kernel_huawei_honor
Code:
change log:
Fixed send fail over 160 char when you sent sms
Fixed get mac address (all u8800pro)
Smooth better than old version
Fixed Bluetooth
Tweak Audio (Thanks dzo & ShenDuOS)
Click to expand...
Click to collapse
Thank you! Will need to restart my compiling !
Sent from my SGH-T769 using Tapatalk 4 Beta
Thank You ivan. We will be restarting all our projects with this new tree. People please expect a few more time for the releases. We are pausing all lf them at the moment. We will recompile them a from scratch and release them.
Ivan thanks a lot and a lot of respect to you from me and from whole of my team. #TeamTaurus.
-Rik[Rittik],
Team Taurus Founder.
Great news!!!
Thank you Ivan/qiwu !!!
You are the best!
I'm compiling it right now. I'll push it here. Thanks Ivan.
What are you gonna put here? THAT ROM IS RELEASED STILL: here is the link http://pan.baidu.com/share/link?shareid=3784179439&uk=3926100596
if it ask you for password use that: 9fg4
forumber2 said:
I'm compiling it right now. I'll push it here. Thanks Ivan.
Click to expand...
Click to collapse
Could it used for u8800(not pro)?
You have good Devs on u880, I know blefish is gonna release CM 10.1 compiled from source so soon.
Well,
I have CM10.1 Device tree by ivan! I still don't know how to make Vendor Trees
AFAIK, In CM10.1 only RIL is not working
I will try to give my best
(Btw, I am a source builder )
@nolinuxnoparty Ivan CM 10.1 trees are totally fixed, what you mean guy? I cannot understand you... That is a thread made by IVAN! where he uploaded him sources for build Cm 10.1 , so I don't understand what you say. Also we have enoughs u8800pro DEVs who knows about compiling. Ivan is called qiwu here, and also there is him CM10.1 built from that souces uploaded by me.
herna said:
@nolinuxnoparty Ivan CM 10.1 trees are totally fixed, what you mean guy? I cannot understand you... That is a thread made by IVAN! where he uploaded him sources for build Cm 10.1 , so I don't understand what you say. Also we have enoughs u8800pro DEVs who knows about compiling. Ivan is called qiwu here, and also there is him CM10.1 built from that souces uploaded by me.
Click to expand...
Click to collapse
I am talking about U8860 Sorry
In U8860 RIL is not working :/
Oh so search for Huawei Honor, that is not the correct thread )
Enviado desde mi U8800Pro usando Tapatalk 4 Beta
up up
update
all u8800pro sources have dispparead from git
what is wrong here ? all source for u8800pro have disappeard...in legacy github.? what is the problem.not sharing source any more? why?
desalesouche said:
what is wrong here ? all source for u8800pro have disappeard...in legacy github.? what is the problem.not sharing source any more? why?
Click to expand...
Click to collapse
Perhaps a copy is on https://github.com/CMu8800pro ?!?
dpeddi said:
Perhaps a copy is on https://github.com/CMu8800pro ?!?
Click to expand...
Click to collapse
That github doesn't exist...
Sent from my iPhone using Tapatalk - now Free
herna said:
That github doesn't exist...
Sent from my iPhone using Tapatalk - now Free
Click to expand...
Click to collapse
I can't figure out why.... I'm pretty sure it exists before....
boh

[Q] Any alternate Kernel for stock 4.4.4?

Hello!
I am new here and I tried searching but couldn't find an answer.
Is there any Kernel available that allows for undevolting and can be used with stock 4.4.4 the .167 build?
Any help or guidance will be appreciated.
Cheers
Hi,
You should use the Q&A, Help and Troubleshooting section for questions.
Cheers
I was planning to do one this week (without any guaranty). It will have undervolting but probably not many other features. Maybe a couple of governors. If you want I can pm it to you when I've done it.
pec0ra said:
I was planning to do one this week (without any guaranty). It will have undervolting but probably not many other features. Maybe a couple of governors. If you want I can pm it to you when I've done it.
Click to expand...
Click to collapse
Hmm i was working on a kernel for my self and i had added voltage control but i cant get past the compiling error
Could you help me perhaps?
Im no dev so i know extremly basic things.
Envious_Data said:
Hmm i was working on a kernel for my self and i had added voltage control but i cant get past the compiling error
Could you help me perhaps?
Im no dev so i know extremly basic things.
Click to expand...
Click to collapse
Of course !
In I'm at a wine degustation at the moment but send me a message and I'll answer tomorrow morning.
Envious_Data said:
Hmm i was working on a kernel for my self and i had added voltage control but i cant get past the compiling error
Could you help me perhaps?
Im no dev so i know extremly basic things.
Click to expand...
Click to collapse
Seems like you blocked private messages... so sorry for the off topic but here is my answer :
Are you using linaro greater than 4.8 ?
If so I think adding a Wno-sizeof-pointer-memaccess to your compile flags should do it. Yo be sure, look at my github in the abricot repository (abricot branch) and one of the first commits is for compatibility with linaro >= 4.8. Look at the changes in the Makefile.
By the way, maybe I'm just blocked by tapatalk in this case tell me and I'll find a way to send you pms
pec0ra said:
Seems like you blocked private messages... so sorry for the off topic but here is my answer :
Are you using linaro greater than 4.8 ?
If so I think adding a Wno-sizeof-pointer-memaccess to your compile flags should do it. Yo be sure, look at my github in the abricot repository (abricot branch) and one of the first commits is for compatibility with linaro >= 4.8. Look at the changes in the Makefile.
By the way, maybe I'm just blocked by tapatalk in this case tell me and I'll find a way to send you pms
Click to expand...
Click to collapse
Odd i could have sworn i disabled that...
Anywhoo i am trying to compile with 4.8
I have added the makefile fix both for GCC 4.6 and 4.7 but i was having a very odd error where it said the toolchain didnt exist even with the correct directory
I cant remember if im trying to compile with 4.8 or 4.8.2 linaro, in quite sure its just 4.8 arm-eabi-linux(something like that)
Ill disable(or try) the messaging thing and ill get back to you on this tomorow
Abricot kernel
I got a 4.4.4 kernel working with some extra governors, recovery (I think reboot to recovery doesn't work yet but you can access it with volume down button) and undervolting.
I'll send you a link via PM and maybe I'll also make a thread for it in the following weeks. In the mean time you can check it's sources at my github

[Kernel][Linaro] Stock KK kernel for Falcon

This is a near stock falcon 4.4.4 kernel built with the latest Linaro toolchain (Linaro GCC 4.9-2014.12) for all of those who prefer stock kernels and absolutely need those 10 extra points in Antutu
Differences from stock are just a few Cortex-A7 optimizations, F2FS patches from mainline 3.18 and linaro toolchain.
All credit goes to @bedalus, who started his kernel thread for Peregrine, fixed all the small bugs that made compiling with newer Linaro toolchains impossible and cherry picked all those F2FS patches.
Sources and tools used:
MotorolaMobilityLLC/kernel-msm
MotorolaMobilityLLC/vendor-qcom-opensource-wlan-prima
bedalus' patches
Christopher83's Linaro Toolchain
My repo, where all sources are merged
Changelog:
falcon_stock_4.4.4_linaro_4.9.3.zip
- stock kernel
- added necessary patches to make it compile with linaro
- some Cortex-A7 optimizations
falcon_kernel_4.4.4_v2.zip
- same as falcon_stock_4.4.4_linaro_4.9.3.zip
- filesystem patches in line with mainline linux 3.18
- removed some debug info
The zip can be flashed with TWRP or CWM. Not flashable through fastboot.
Thanks @knizmi. I think stock users will appreciate this
Anyone tested? How the battery?
Wysłane z MOTO G
Dizzyrul3z said:
Anyone tested? How the battery?
Click to expand...
Click to collapse
This is the stock kernel, so the batttery is as good as with stock kernel (you really can´t make it much better in any way). These screenshots are taken after some 7 hours of sleep.
Works pretty good on XT1031. Nice work! Any chance you could make a build with the kexec hardboot patch to use it with multirom?
I immediately noticed a performance improvement after flashing this kernel. Thanks!
Hi @knizmi
I said wait til I push a new branch, but I figure it's easier if you pull just a patch with
Code:
wget https://github.com/bedalus/moggy/commit/ead900a02071506c267fdebd292cbb2cdb31f4bd.patch
then you can apply it with
Code:
git am ead900a02071506c267fdebd292cbb2cdb31f4bd.patch
This is my preferred way to grab commits. Did you add my repo as a remote?
Battery life is really good on this kernel thank u dev
Sent from my XT1032 using XDA Free mobile app
bedalus said:
Hi @knizmi
I said wait til I push a new branch, but I figure it's easier if you pull just a patch with
Code:
wget https://github.com/bedalus/moggy/commit/ead900a02071506c267fdebd292cbb2cdb31f4bd.patch
then you can apply it with
Code:
git am ead900a02071506c267fdebd292cbb2cdb31f4bd.patch
Click to expand...
Click to collapse
Thanks a bunch, this should really make merging those patches easy!
bedalus said:
This is my preferred way to grab commits. Did you add my repo as a remote?
Click to expand...
Click to collapse
I have added your repo as a remote now. I was fighting with git last week quite a bit (never used that devil's tool before), but now I think I am getting used to it. For my first build I've just "patched" those files with gedit...
syrkles said:
Battery life is really good on this kernel thank u dev
Sent from my XT1032 using XDA Free mobile app
Click to expand...
Click to collapse
Thanks for the heads up, but compiling someone else's sources doesn't make me a dev
New version uploaded.
falcon_kernel_4.4.4_v2.zip
- same as falcon_stock_4.4.4_linaro_4.9.3.zip
- filesystem patches in line with mainline linux 3.18
- removed some debug info
Thanks @bedalus.
amarc78 said:
Any chance you could make a build with the kexec hardboot patch to use it with multirom?
Click to expand...
Click to collapse
Sorry, the aim of this is to stay as close to stock as possible and only add optimizations/update drivers.
knizmi said:
For my first build I've just "patched" those files with gedit...
Click to expand...
Click to collapse
If you've got my repo as a remote you should be able to see my commits with
Code:
git log -- bedalus/moggy
depending on what you named your remote.
Once you see what commits you want, copy their hashes (the long string of letters/numbers) then
Code:
git cherry-pick *hash*
If there's a problem with the cherry-pick you can fix it manually with
Code:
git mergetool
or abort with [git cherry-pick --abort[/code]
I've installed meld as my mergetool. I'm using a debian derivative so I did
Code:
sudo apt-get install meld
That's a pretty comprehensive quick-start guide to cherry-picking from any remotes you've fetched.
Cannot downgrade to default stock.
can you make a zip with libs to go back.
everb00b said:
Cannot downgrade to default stock.
can you make a zip with libs to go back.
Click to expand...
Click to collapse
Here you go: http://forum.xda-developers.com/showthread.php?t=2649763
That zip doesn't have libs. I made a zip for this a while ago, but it doesn't completely put everything back to stock. The best way seems to be to reflash stock ROM zip.
amarc78 said:
That zip doesn't have libs. I made a zip for this a while ago, but it doesn't completely put everything back to stock. The best way seems to be to reflash stock ROM zip.
Click to expand...
Click to collapse
You mean in the thread I've posted. I've thought that too at the beginning, but they are there separately, look for Stock Kernel Modules: [XT1032] - 4.4.2 | 4.4.3 | 4.4.4 | 4.4.4 (GPE) | 5.0.1 (GPE) | [XT1033] (Dual-SIM) - 4.4.4. You just have to flash two zips instead of one.
Ahh, I forgot that was there. I have XT1031. Are the 1032 libs the same?
Edit: never mind. They look the same.
amarc78 said:
Ahh, I forgot that was there. I have XT1031. Are the 1032 libs the same?
Click to expand...
Click to collapse
Not sure, you can try. If there is a problem you can always reflash stock /system, backup those modules and perhaps send them to @lost101
bedalus said:
If you've got my repo as a remote you should be able to see my commits
Click to expand...
Click to collapse
Thank you for the info again. You are very helpful.
Do I understand it correctly that I need to fetch your repo before I can start cherry-picking? Searching around the internet , it looks like it. I may give it a try one day, but for now I will stick with git am, which seems like the perfect tool to pick single commits from many repos.

Categories

Resources