Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,740,250 Members 41,361 Now Online
XDA Developers Android and Mobile Development Forum

[DEV] Porting kernel 3.0 for DESIRE

Tip us?
 
noonamer
Old
(Last edited by noonamer; 23rd May 2013 at 06:40 AM.) Reason: change list
#1  
Senior Member - OP
Thanks Meter 746
Posts: 142
Join Date: Aug 2011
Location: Kamenets-Podol's'kiy

 
DONATE TO ME
Wink [DEV] Porting kernel 3.0 for DESIRE

what done(ported folders):
-kernel boot up and work
-touch
-Amoled / LCD
-audio
-camera


need to do:
-pm_init (some sysfs_group_add)
-root (some works)
-some ext probz
-unstable
-etc

MY REPO:
https://github.com/nikez/android_kernel_htc_qsd8k

BIG THANKS:
thoemy - for his source
shaky156 - for his big help
Marc1706 - for his source and fixing alot of errors
Nikez - for the fact that he is raised from the bottom and big work
The Following 174 Users Say Thank You to noonamer For This Useful Post: [ Click to Expand ]
 
theophile2
Old
#2  
Member
Thanks Meter 2
Posts: 78
Join Date: Jul 2010
Location: Mississippi
Why does it need to be ported? Is it not possible to compile the 3.x kernel for this architecture?
 
shawe_ewahs
Old
#3  
Senior Member
Thanks Meter 10
Posts: 300
Join Date: Jun 2009
Quote:
Originally Posted by theophile2 View Post
Why does it need to be ported? Is it not possible to compile the 3.x kernel for this architecture?
The "only problem" is add all dependencies from oficial HTC kernel for HTC Desire, some things can be easly added, but some others can be more hard to do it.

---------- Post added at 03:20 PM ---------- Previous post was at 03:17 PM ----------

noonamer try to compare with meld or any other the oficial kernel and the oficial from htc and extract all diferences for to be added on 3.x, I think that can be a good start.
 
noonamer
Old
#4  
Senior Member - OP
Thanks Meter 746
Posts: 142
Join Date: Aug 2011
Location: Kamenets-Podol's'kiy

 
DONATE TO ME
Quote:
Originally Posted by shawe_ewahs View Post
The "only problem" is add all dependencies from oficial HTC kernel for HTC Desire, some things can be easly added, but some others can be more hard to do it.

---------- Post added at 03:20 PM ---------- Previous post was at 03:17 PM ----------

noonamer try to compare with meld or any other the oficial kernel and the oficial from htc and extract all diferences for to be added on 3.x, I think that can be a good start.
dude it's not easy, i think about this but not...
3.x has new files, new drivers for it architecture...
now i almost complite video driver, and some other, late i write what i made.
The Following 8 Users Say Thank You to noonamer For This Useful Post: [ Click to Expand ]
 
topgeardave
Old
#5  
topgeardave's Avatar
Senior Member
Thanks Meter 402
Posts: 970
Join Date: Aug 2011
Ask texasice as he seems to be familliar with kernel development. Nikez may also help as he is familiar with kernel development too! You might as well ask all of the kernel devs in the Desire/N1 threads to collaborate with developement as it is so difficult with limited dependencies

If I've helped, just press the thank you button

Current Phones:
Nexus 5: Official CM11 with Chaos Kernel
Nexus 7(2013): CM11 with francos Kernel

Old Phones (Still in use):
HTC Sensation: Sultanxda/bilal_liberty cm11
HTC Desire: Own cm7 build

 
noonamer
Old
#6  
Senior Member - OP
Thanks Meter 746
Posts: 142
Join Date: Aug 2011
Location: Kamenets-Podol's'kiy

 
DONATE TO ME
peoples, i said on last time..if u don't stop spamming, i'll ask to close this thread
i need help from people on kernel, i don't want stop this project, because i like my device and want to make it modern
if u know somethink what help me plz said, but not write f***ing spamming post
The Following 8 Users Say Thank You to noonamer For This Useful Post: [ Click to Expand ]
 
af974
Old
#7  
af974's Avatar
Retired Recognized Developer / Retired Forum Moderator
Thanks Meter 1886
Posts: 4,940
Join Date: Jan 2008
Thread has been cleaned from last garbage.

@ OP: i changed a bit your title as this is what we use on XDA when we have a project on going.

@ all: stop to spamming this thread..please
“You have to learn the rules of the game. And then you have to play better than anyone else.” ~ Albert Einstein
The Following 14 Users Say Thank You to af974 For This Useful Post: [ Click to Expand ]
 
noonamer
Old
(Last edited by noonamer; 14th July 2012 at 05:24 PM.)
#8  
Senior Member - OP
Thanks Meter 746
Posts: 142
Join Date: Aug 2011
Location: Kamenets-Podol's'kiy

 
DONATE TO ME
who know how to do kmsg without logcat, phone stuck on HTC logo? thanks

files on repo updated, now trouble on porting yaffs2 to interface...
The Following User Says Thank You to noonamer For This Useful Post: [ Click to Expand ]
 
AndroidJaspie
Old
#9  
Junior Member
Thanks Meter 9
Posts: 23
Join Date: Dec 2010
Quote:
Originally Posted by noonamer View Post
who know how to do kmsg without logcat, phone stuck on HTC logo? thanks

files on repo updated, now trouble on porting yaffs2 to interface...
hey

I am trying to port the kernel too. I had the same problem like you (How to debug? ).
I found out how you can use assembly code to check where you are in the startup process of the kernel(when it executes it the device vibrates).

you can use this code to debug befor the mmu is enabled:
Code:
Select Code
LDR	R6, =0xA9000808
LDR	R5, [R6]
BIC	R4, R5, #0x200000
STR	R5, [R4, #0]
ORR	R5, R5, #0x200000
STR	R5, [R6]
after the mmu is enabled it should be possible to use this code with new addresses(virtual):
Code:
Select Code
LDR	R6, =0xE0003808
LDR	R5, [R6]
BIC	R4, R5, #0x200000
STR	R5, [R4, #0]
ORR	R5, R5, #0x200000
STR	R5, [R6]
but i didn't get this working. because of that i started to insert endless loops into the code. If you put the battery out of the device it turns off when you use loop code. and if the code crashes and you put the battery out the display is still on then you know that the kernel crashed.
(all this works only with usb power supply)

later if you are through the assemply code you can use this c code:
Code:
Select Code
*(volatile uint32_t*)(MSM_GPIO1_BASE + 0x0808) |= 0x200000;
mdelay(200);
*(volatile uint32_t*)(MSM_GPIO1_BASE + 0x0808) &= ~0x200000;
i hope i could help you
Jasper
Device: LG Nexus 4 (mako rev_10)
Software: Cyanogenmod-10.1
The Following 2 Users Say Thank You to AndroidJaspie For This Useful Post: [ Click to Expand ]
 
Chaosz-X
Old
#10  
Chaosz-X's Avatar
Senior Member
Thanks Meter 1806
Posts: 753
Join Date: Jan 2011

 
DONATE TO ME
Quote:
Originally Posted by noonamer View Post
who know how to do kmsg without logcat, phone stuck on HTC logo? thanks

files on repo updated, now trouble on porting yaffs2 to interface...
İf you have to ask this question, my faith in this is already 0, as this is basic stuff. Reboot in recovery, and adb pull /proc/last_kmsg. Oh, first one to say "but İ want the kmsg of the previous boot" gets a chair in his face.

Sent from my HTC Desire using xda app-developers app
HTC HD2 / Nexus 7 / HTC Flyer / HTC Desire

Donations by Paypal: corepwn20@gmail.com

The Following 3 Users Say Thank You to Chaosz-X For This Useful Post: [ Click to Expand ]
Tags
bravo, kernel 3.0, qsd
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes