Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[DEV] Fixing/Updating the HD2 kernel and missing code

OP charnsingh_online

24th April 2011, 10:45 PM   |  #1  
OP Recognized Developer
Flag Amritsar
Thanks Meter: 859
 
1,168 posts
Join Date:Joined: Feb 2009
Donate to Me
More
Please stay ON TOPIC to kernel DEV and missing code. Don't report every bug the Android build your using is having or it will be deleted as OFF TOPIC

As you all might be knowing that hd2 is pretty much a android native device now. Its just like any another snapdragon device. The current kernel code we are using in HD2 is pretty obsolete and missing a lot of things. It more like something working at its minimal efficiency. While i was porting over all the HD2 board files getting it on par with the other snapdragon devices I found out a lot of code was missing and some was obsolete. Eg. The gsensor code from microp was pretty minimal, a lot of things were missing in microp code. I suspect that it isnt the only code, a lot of bluetooth related stuff was missing and much more. I am not really gonna work on backporting the stuff to .32 kernel so i would like the kernel devs here to backport the stuff to the .32 kernel so a lot of bugs can be fixed and stuff can be made more stable until the .37 kernel is ready. All the commits can be found here

https://github.com/charansingh/cm-kernel/tree/master

There might be some bravo or passion instances in there cuz i am comparing the code with these two devices and taking what is necessary and sometimes i have to leave my work due to some other work and forget which file i was working on so would appreciate the more bugs.

Also Mods can we get this a sticky so we can track the progress here
Last edited by noellenchris; 27th May 2011 at 12:02 AM. Reason: Took the word "bugs" out of title :P
The Following 86 Users Say Thank You to charnsingh_online For This Useful Post: [ View ]
24th April 2011, 10:58 PM   |  #2  
white-energy's Avatar
Senior Member
Flag L'viv
Thanks Meter: 217
 
616 posts
Join Date:Joined: Apr 2010
More
Yap.. i'm not a really pro developer but i suspected those bugs before.. finally a real developer suspected that.. eager to see who's going to help fixing them
24th April 2011, 11:03 PM   |  #3  
imfloflo's Avatar
Senior Moderator
Flag Guyancourt/Clermont-Ferrand, France
Thanks Meter: 801
 
3,004 posts
Join Date:Joined: Apr 2007
Donate to Me
More
Quote:
Originally Posted by charnsingh_online

Also Mods can we get this a sticky so we can track the progress here

Ok sticky for the moment to see if it helps.
The Following 7 Users Say Thank You to imfloflo For This Useful Post: [ View ]
24th April 2011, 11:43 PM   |  #4  
Recognized Developer
Flag ┌┐(●_●)┌┐
Thanks Meter: 816
 
1,499 posts
Join Date:Joined: Mar 2010
More
@charnsingh_online

I am really happy that you put so much power in this project big respect for that.
The reason for the missing code is because most of the drivers are reversed engineerd from winmo by cotulla. Wich make it possible to make working android parts but they don't work optimal by that. Also we miss some skilled active coders. After cotulla almost everything is created by markinus he did a incredible part big credit to him but looks like he isn't that active anymore..

Current development are mostly little things a guy who sees a little part from that and a little part from that like : you, tytung, darkstone, gauner,letama, the guy from the bluetooth fix.

We probaly don't have so much real kernel programmers because they buy a native linux / android phone.
Last edited by jan-willem3; 25th April 2011 at 12:27 AM.
The Following 5 Users Say Thank You to jan-willem3 For This Useful Post: [ View ]
25th April 2011, 06:45 AM   |  #5  
Senior Member
Flag Istanbul
Thanks Meter: 202
 
907 posts
Join Date:Joined: Jun 2010
More
The last two major things left with HD2 Android are buggy speakerphone and missing assisted-gps function.

Speakerphone mode is not usable because mic gain does not change when speakerphone is enabled. Info here:
http://forum.xda-developers.com/show...4&postcount=22

GPS works but without assistance so most locks take 1 minute instead of like 15 seconds. Info here: (please read all 25 pages)
http://forum.xda-developers.com/show....php?t=1008252
Last edited by memin1857; 25th April 2011 at 06:47 AM.
The Following 4 Users Say Thank You to memin1857 For This Useful Post: [ View ]
25th April 2011, 07:08 AM   |  #6  
Senior Member
Flag Waterloo, Trinidad
Thanks Meter: 21
 
503 posts
Join Date:Joined: Jan 2009
Quote:
Originally Posted by memin1857

The last two major things left with HD2 Android are buggy speakerphone and missing assisted-gps function.

Speakerphone mode is not usable because mic gain does not change when speakerphone is enabled. Info here:
http://forum.xda-developers.com/show...4&postcount=22

GPS works but without assistance so most locks take 1 minute instead of like 15 seconds. Info here: (please read all 25 pages)
http://forum.xda-developers.com/show....php?t=1008252

actually i think the gpu drivers are kinda unstable when comparing to the performance of other phones that carry the similar gpu...
The Following User Says Thank You to Lizzo For This Useful Post: [ View ]
25th April 2011, 03:13 PM   |  #7  
tytung's Avatar
Senior Member
Thanks Meter: 15,071
 
3,574 posts
Join Date:Joined: Jun 2010
More
@charnsingh_online

Good start.
After reading the github commits, I still don't understand what kernel devs can do so far.
The Following 3 Users Say Thank You to tytung For This Useful Post: [ View ]
25th April 2011, 07:28 PM   |  #8  
OP Recognized Developer
Flag Amritsar
Thanks Meter: 859
 
1,168 posts
Join Date:Joined: Feb 2009
Donate to Me
More
Just see the microp stuff I added to the file. Also I have updated the board files. See wats the difference between the files. A lot of updated code
The Following 2 Users Say Thank You to charnsingh_online For This Useful Post: [ View ]
25th April 2011, 07:52 PM   |  #9  
Member
Flag munich
Thanks Meter: 110
 
68 posts
Join Date:Joined: Apr 2008
Donate to Me
hi charansingh,

i am willing to help, but i think it would be helpfull to define packets to take over.
By looking in the kernelsources it looks good to me, but i know from own expiriences with porting that i have to look deep...

best regards

trilu
25th April 2011, 07:54 PM   |  #10  
tytung's Avatar
Senior Member
Thanks Meter: 15,071
 
3,574 posts
Join Date:Joined: Jun 2010
More
Quote:
Originally Posted by charnsingh_online

Just see the microp stuff I added to the file. Also I have updated the board files. See wats the difference between the files. A lot of updated code

It's better to start/clone from pure CM 2.6.37 kernel, then add new commits when adding any new functions.

Would you please add a new commit when adding a new function?
Otherwise, it's very easy to lost the way in the source code.

A commit "Update some board files" doesn't tell the whole story. I want to know why to change.
Comparing the source code manually and guessing its function is not convenient for any kernel devs.
For me, I won't add any code in my 2.6.32 kernel until I know the meaning of the changes of the source code.
Thanks.
Last edited by tytung; 25th April 2011 at 07:56 PM.

The Following 5 Users Say Thank You to tytung For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes