[SRC] HTC released Hero ROM source code - Hero, G2 Touch Android Development

Hi guys,
it's my 1st thread started at xda, so if it's in wrong place or anything, let me know and i'm sorry.
As I'm not a developer myself I just follow up stuff here to see all u guys good work... but when I saw this news and noticed that it's not here... I'm sure some of you can make good use of this info.
HTC release the source code for Hero (and some others) on their developer centre, it seems like a straight download which should help the devs get nicer drivers (Froyo ???) and smoother running ROMs.
news via: http://www.androidcentral.com/htc-developer-site-updated-kernel-sources-evo-4g-and-htc-hero
HTC dev site: http://developer.htc.com/

Optimized HTC Sense UI coming?
Go go devs.

Nothing new though. At least not for Hero benefits anyhow.

We've had hacked together kernel sources for 2.6.29 for a while now, so this isn't as big a deal as the original kernel source release. Hopefully the devs here can still make use of it.

Hi
nothing really new ?
IIRC, "Github for the untouched original kernel source: hxxp://github.com/toastcfh/CdMa-HeRoC-2.6.29" is another device kernel src reverse for the Hero from a forgotten patch file in the archive ?
so this "really" original kernel source may be newer with last correction from htc ?
thx help me understand
Az'

from what I understand (After a bit of toying with toast's kernel sources myself) this is what's done:
(correct me if wrong):
They took a supplied 2.6.29 kernel source as the base. Don't know if it's from Nexus, Desire or Legend, but some anroid-2.6.29 base kernel that was already available.
Already having a 2.6.29 base with most HTC-ish hardware available, the hard part was merging in all the cpu centric files (board files, for the MSM720x platform) from the already released 2.6.27-htc sources.
So starting with a htc-ish 2.6.29 base, and slowly and trial-and-error moving stuff over from the 2.6.27-htc sources (which is harder than it looks. 2.6.27 -> 2.6.29 had quite some changes in the linux world) until it boots and until all hardware worked.
He did this for the CDMA hero. From there it wasn't too long (or did it work directly?) until it worked for the gsm hero. Someone just had to notice his work I believe .
_So_, that means that our 'godmode-2.6.29' sources aren't really 'hacked together' that much. The support files are still from HTC, only they are the same as the 2.6.27 (android 1.5) drivers. _Maybe_ HTC updated or optimized some things and thus the official-2.6.29 might contain newer or better working support for the hardware.
The way to check this is out is to compare the **** in the source files (which people are probably doing already) to see the differences HTC did to toast's version.
The other method is to 'try' and feel what's different. This _never_ works in the XDA community because there is a _huge_ placebo effect in what all the users are feeling. The same as compcache, swap, bfs or not, etc... opinions and preferences are all over the place.
Only if benchmarks or other hard numbers make one version better than the other, it remains something of preferences for the users and creators of the roms.
(Is there already a simple recompile somewhere with overclocking enabled of the HTC 2.6.29 sources? Because then the testing can begin ).

so no current roms are built from the official kernel (the 2.6.29 kernel from HTC)?

As far as I can understand the GoDmOdE kernel sources are based on a leak of 2.6.29 kernel sources for multiple HTC devices, including a CDMA hero kernel source. And the sources for all our 2.6.29 GSM hero kernels are based on this.
The official 2.6.29 are very new, but I am sure that now that they are released we will see kernels based on these sources as well.

Related

[Kernel/Drivers]Old 2.1 VS Eris leak

Hi,
I'm playing with ROM building recently and I when building 2.1 ROM, everyone say "We can't fix X issue because we don't have kernel sources".
I was shocked seeing all great hardware support is on the Eris leak based ROMs.
Why thoses ROMs have better hardware support ? I thought when we port a ROM, we take a working boot.img (kernel + drivers) and the new system.img together. So if I'm not wrong, what make thoses ROMs better ?
I'm probably missing some key understanding. If you can help me, I'll really appreciate.
Regards,
mik
Eris is basically Verizons Wireless's re-branded version of Hero.
The hardware and everything is same, just the physical appearance.
So our new kernel base is now this one ?
I'm asking because I'm building AOSP (cyanogenmod) ROMs so if this new kernel+drivers is the way to go, I'll start wirking with this as base and not the old HERO2.1 one
mik- said:
So our new kernel base is now this one ?
I'm asking because I'm building AOSP (cyanogenmod) ROMs so if this new kernel+drivers is the way to go, I'll start wirking with this as base and not the old HERO2.1 one
Click to expand...
Click to collapse
The kernel of the Eris is different to the Hero, they are still using the old kernel on the Eris port
l0st.prophet said:
The kernel of the Eris is different to the Hero, they are still using the old kernel on the Eris port
Click to expand...
Click to collapse
So why the hardware support is so good ?
hardware driver...
Isn't all of this supposed to be open source anyway? Like, if the official kernel has better hardware support, why isn't it in the Android Open Source Project (AOSP), if Android is GPL-licensed Free Software? Is there a violation of the GPL going on here?
FunkTrooper said:
Isn't all of this supposed to be open source anyway? Like, if the official kernel has better hardware support, why isn't it in the Android Open Source Project (AOSP), if Android is GPL-licensed Free Software? Is there a violation of the GPL going on here?
Click to expand...
Click to collapse
Because the official kernel isn't officially available, it's still technically in development. They are under no obligation to release it until they release it to the public, by which point we will have it anyway
FunkTrooper said:
Isn't all of this supposed to be open source anyway? Like, if the official kernel has better hardware support, why isn't it in the Android Open Source Project (AOSP), if Android is GPL-licensed Free Software? Is there a violation of the GPL going on here?
Click to expand...
Click to collapse
Common misconception number 1 - Android is *not* licensed under the GPL, it is licensed under the Apache Software License (ASL). This license is not a copy left license so OEMs who modify the Android source are under absolutely no obligation to make their modified source code available.
However, the Linux kernel upon which Android runs is licensed under the GPL, so HTC must provide the source for any *shipping* software that uses said kernel. Since HTC have not officially released their version of Android 2.1, again they are under no obligation to supply kernel source. The second that they official ship the update, this changes and they are obliged under the terms of the GPL to make the kernel source available.
Regards,
Dave
And I hate to be a complete noob, but are these drivers that provide the nice hardware support part of the kernel?
If not, what difference would it even make if we didn't have the official kernel sources?
Since the Eris has the exact same hardware as the Hero, why can't we use the same kernel as the Eris rom ?
Latoc said:
Since the Eris has the exact same hardware as the Hero, why can't we use the same kernel as the Eris rom ?
Click to expand...
Click to collapse
Because it isn't the same hardware.
The Eris is close, but not identical to the Hero. The major difference is it's CDMA, not GSM. And, it uses touch buttons instead of physical buttons.
Other than those two, I'm not sure if there are any other significant differences. Point being that those differences are enough to warrant a different kernel.
e.japonica said:
hardware driver...
Click to expand...
Click to collapse
So if I understand correctly, the Eris leak based ROM use the old kernel (2.6.29) but newer hardware drivers so my question is correct ... Should we use any Eris based ROM as base to make new AOSP ROMs ?
This way, we will keep the old kernel but new drivers ...
Please correct me if I'm wrong.
mik- said:
So if I understand correctly, the Eris leak based ROM use the old kernel (2.6.29) but newer hardware drivers so my question is correct ... Should we use any Eris based ROM as base to make new AOSP ROMs ?
This way, we will keep the old kernel but new drivers ...
Please correct me if I'm wrong.
Click to expand...
Click to collapse
Really, it's all going to change when we get to official Hero 2.1 ROM (and kernel,) because that's what we'll be using very soon (if we're to believe the hype about 2.1 finally coming this month.)
As for right now, it's up to you. If I were to start working on a ROM, I would use the Eris dump, although you'll have to change to the official kernel in a couple weeks anyway.
I'm not really sure what to say about using "the old kernel but new drivers. I'm not into kernel dev myself, but what's "old" and what's "new" is going to change soon anyway, so I don't think it matters too much at this point.
EDIT: Let me correct myself: If you're going to make an AOSP ROM, you won't use the Eris *ROM* as the base, you'd just use the kernel and drivers. The rest of the system would not have any HTC-ness attached to it (no Sense/HTC Mail/etc), so you'd actually use an AOSP image instead of an Eris/Hero image.
craig0r said:
Really, it's all going to change when we get to official Hero 2.1 ROM (and kernel,) because that's what we'll be using very soon (if we're to believe the hype about 2.1 finally coming this month.)
As for right now, it's up to you. If I were to start working on a ROM, I would use the Eris dump, although you'll have to change to the official kernel in a couple weeks anyway.
I'm not really sure what to say about using "the old kernel but new drivers. I'm not into kernel dev myself, but what's "old" and what's "new" is going to change soon anyway, so I don't think it matters too much at this point.
EDIT: Let me correct myself: If you're going to make an AOSP ROM, you won't use the Eris *ROM* as the base, you'd just use the kernel and drivers. The rest of the system would not have any HTC-ness attached to it (no Sense/HTC Mail/etc), so you'd actually use an AOSP image instead of an Eris/Hero image.
Click to expand...
Click to collapse
Yeah, I know. Sorry to not being clear enough. When we build AOSP build, we take an existing ROM to extract kernel and drivers to make the AOSP code working. When I say take Eris leak based Roms as base, I mean just the kernel/drivers part. I know the whole system will not be taken into account.
Eris and AOSP 2.1 roms
After looking at the previous 2.1 roms that were being used to cook and the Eris now being used by everyone, although both being 2.1 they do appear to be different versions of the same product
The Eris appears to be a cut down version of the ASOP 2.1 version, the mail app is still based around the 1.5 version HTC mail, rather than the mail app that is on ASOP which gives you global address list search etc on exchange, and new features on incoming mail for normal mail accounts.
Are features like this built into the kernel themselves ? or things like mail, dialers just apk files
A few forums are now reporting that the new official version of 2.1 for the hero will be a basic version compared to the versions running on desire and nexus. Which would be a disappointment

2.6.33 kernel development

i'm porting cm-kernel for htc hero. github.com/tmpdo/hero33 here sources, but i have some problems with gpio. anyone can see sources and help us to porting?
what I was trying from home, why not diff'ing and patching with our 2.6.29 kernel as source instead of CM-kernel...
Lol, looks like some ppl think on the same wavelength;
Got issues with usb and gpio related includes from a 2.6.32 base.
:/

What do the different HTC Kernel Versions (QMR, MR, etc) mean?

Guys,
Since I am a noob, I am not allowed to post in the developer forum. I have searched on this all over the XDA-Developer forum and Google/Bing and cannot find out what the different HTC kernel source code versions mean. When I open up the kernel source, it has the generic Linux READMEs in them.
This is what HTC has listed on htcdev.com:
HTC Desire Z – GB MR – 2.6.35 kernel source code 89.6 MB
HTC Desire Z – Froyo QMR – 2.6.32 kernel source code 82.8 MB
HTC Desire Z – Froyo – 2.6.32 kernel source code 82.8 MB
What is the MR and QMR. More importantly, I am trying to make my own ICS realease for this hand set and have plenty of Linux Kernel experience.
I just want to know which kernel to pursue as I have an underpowered system and the compile times are going to be horrendous for the ICS build. I don't want to spend the time building the kernel and trying to tweek it, and then trying to incorporate the ICS build with a bad kernel.
Thank you for your assistance.
*****Edit*****
GB means ginger bread, not Great Britain. I thought it was referring to the UK release. The other acronyms, I cannot figure out.
Good job posting this here. It belongs in this forum anyway, not in the developer section.
Sent from my G2 running Cyanogenmod 7.
Am I the only one!?
No one!?
I just sent an email to HTC to ask them for clarification on the matter.
shorty_boy said:
Hi,
My name is XX and I see that HTC has release the source code to multiple Linux/Android kernels for my device (HTC Vision/Desire Z). unfortunately it looks like HTC will not be bringing the newest flavor of Android to this handset with any carrier so I am looking to build Android 4.0.3 (ICS AOSP) to this device and would like to use one of the released kernel sources as a base part of the build. I am confused though on what the different versions stand for. I know that the 2.6.35 kernel IS the newest for my device.
This is what HTC has listed on htcdev.com:
HTC Desire Z – GB MR – 2.6.35 kernel source code 89.6 MB
HTC Desire Z – Froyo QMR – 2.6.32 kernel source code 82.8 MB
HTC Desire Z – Froyo – 2.6.32 kernel source code 82.8 MB
What is the MR and QMR. More importantly, I am trying to make my own ICS realease for this hand set and have plenty of Linux Kernel experience.
I just want to know which kernel to pursue as I have an underpowered system and the compile times are going to be horrendous for the ICS build. I don't want to spend the time building the kernel and trying to tweek it, and then trying to incorporate the ICS build with a kernel that is missing features that I need.
Click to expand...
Click to collapse
This is their response.
Dear XX,
You were asking for some clarification concerning some information listed on the HTC Developer website for your HTC Desire Z. I would be more than happy to assist you with this software inquiry. You mention something about the MR or QMR listed with several of the kernel source code downloads. I know that the MR stands for maintenance release that is listed with the Gingerbread upgrade. The QMR might be for one of the updates for Android version 2.2 (Froyo).
If you want to use the most up to date kernel source code, I would base my recommendation on the current ROM and kernel versions you have on your Android device. If you have any other questions, you might check some of the additional resource information available on the HTC Developer website.
If you need any further assistance, you are welcome to send another inquiry through the HTC website by going through the Support page then tapping ‘send us an email’. You should input all the necessary information requested on the page.
Let me know if I have successfully answered your question, please click here to complete this.
To send a reply to this message, please click here.
Sincerely,
Danielle
HTC
Want to see what others are saying? Have a question to ask other HTC fans?
Become a fan of HTC facebook.com/htc
Follow us on Twitter twitter.com/htc
Subscribe to our YouTube Channel youtube.com/htc
Explore our development resources developer.htc.com

[Q] Kernel sources

I would like find the freshest available 3.0 kernel for the Desire Z. Where is it hosted? My intention is to make a kernel more stable than others available, as all are undervolted, and unfortunately with those settings I am experiencing random reboots. I've found some sources, tuned voltages to the original ones (as in htc's 2.6.35 kernel), and the reboots disappeared.
Thanks in advance,
The Andromadus 3.x kernel and cn.fyodor's are the most recent, I might say fyodor's might be slightly ahead being as he is the Andromadus kernel guy and his kernel stuff which goes into his ROM probably gets merged into Andromadus later (or maybe he does entirely different things for each, I'm not sure, you'd have to ask him).
By the way if you manage to get either of the above up and running, I'd appreciate some help as I've been trying to compile the Andromadus kernel but have so far not been able to produce a zImage, although compilation seems fairly smooth .
And are these kernel for sense? I always read on forums that there are kernels for sense roms, but actually I dont know the difference.
Last time I compiled from github / ajhavery / htc7x30-3.0.git, and it compiled well for me.
Then two linked to you by htcdreamon are for aosp/cm/aokp etc, you are right that you can not interchange aosp kernels and sense kernels, by and large they are not compatible
Sent from my Nexus 7 using xda premium

GT-I8000 kernel developement project

On 2012.05.28 ipaq3870 uploaded his last version of i8000 android kenrel. a kernel that is based on M910 (s3c6410) phone, modified for our device.
Two years later and after saw gingerbread running on our phone, even with some problems and lacks i decided to contribute, work and continue this project.
i want to modernize this kernel in order to make our froyo ROM faster and make gingerbread ROM with more features to work.
there are many sources over the internet. we only need some volunteers. no need for advanced linux/programming knowledge. some free time and will to study a little is necessary of course.
volunteers can contribute here
https://github.com/argentinos/o2droid (fork from ipaq's job)
sources can be found here
https://github.com/a.../kernel-s5pc100
https://github.com/a..._samsung_omnia2
https://www.kernel.org/
http://opensource.sa...earchValue=m910
http://opensource.sa...earchValue=5800
https://github.com/a..._samsung_omnia2
http://omnia2droid.g....com/svn/trunk/
my last goal is to see latest version of 2.6 kernel on our phone. i do not think our old phone can ever execute 3.X kernel or run properly android ICS, JB etc
for those dreaming about it can conrtibute on erikcas 3.0 kernel for i8000 here
https://github.com/erikcas/spica-3.0

Categories

Resources