[rom] froyo very beta need help

Search This thread

MichaelAlexanderBull

Senior Member
May 12, 2010
125
0
29
Ok, so i began porting Froyo to the Legend this morning.
So far ok, It boots.
But the touch screen does not respond? I can use the optical pad to select things, i can recieve calls. but that is it. I need to use the touch screen to test if other things work.

Any hints?
 

MichaelAlexanderBull

Senior Member
May 12, 2010
125
0
29
Well i am using the stock rom as a base.
Just using Basic Kitchen to port it, So I'm not too sure if i am meant to add extra things to it, i assumed that the kitchen would extract the drivers from the stock rom into the port one?
I'm not an experienced dev at all, just that no-one seems to interested in the Legend so i thought i would give it a shot.
 

schpinn

Senior Member
May 23, 2010
84
0
Well i am using the stock rom as a base.
Just using Basic Kitchen to port it, So I'm not too sure if i am meant to add extra things to it, i assumed that the kitchen would extract the drivers from the stock rom into the port one?
I'm not an experienced dev at all, just that no-one seems to interested in the Legend so i thought i would give it a shot.

Unfortunately I'm even less experienced than you, so I cannot help you here. Perhaps one of the more experienced chefs can chime in here?

But if you manage to make a working ROM and you need help with testing, I'd be glad to give a hand :)..
 

dirkkuyken

Senior Member
Jul 11, 2009
53
0
Lommel
give me a week (or 2) and I'll join in on the froyo cooking (exams + party time).

I do think you should copy the driver files from the latest available official rom... which one 2 copy and which one not 2, that's a guess, trial and error ?
 
Last edited:

MichaelAlexanderBull

Senior Member
May 12, 2010
125
0
29
Yeah, i've been trying to, just that there are so many different files. (222)
I'm not even sure if i am in the right folder haha!
Is it the System/lib folder where the drivers are?
or the System/bin folder? Or is it somewhere completely different!?
 

Liquid211

Senior Member
Aug 14, 2008
74
1
Aalborg
It looks like the drivers is in /system/lib and in /system/bin the android file system tools. I'm just a n00b so I could be wrong but when I ls /system/lib it contains libcamera.so and other driverlike files. So i'm guessing it's the place to look.
 

crankidiot

Member
Jun 11, 2010
22
0
Well i am using the stock rom as a base.
Just using Basic Kitchen to port it, So I'm not too sure if i am meant to add extra things to it, i assumed that the kitchen would extract the drivers from the stock rom into the port one?
I'm not an experienced dev at all, just that no-one seems to interested in the Legend so i thought i would give it a shot.

Which stock rom do you mean?
 

MichaelAlexanderBull

Senior Member
May 12, 2010
125
0
29
Yeah i will when i have finished, I am making progress but don't expect much as the build i am porting barely works on the G1 atm.
But it will get better :)
I'm also trying to port the G1 Cynanogen rom aswell, but same driver problem! so trying to figure out what the hell to do atm haha

EDIT:
AAAAH, Someone help me... I have the drivers i need for it too work, i got them from the HTC legend kernel source code?
So How am i meant to put these in the new ported kernel? as i cannot open the boot.img in windows?
 
Last edited:

Liquid211

Senior Member
Aug 14, 2008
74
1
Aalborg
Maybe you should contact rodriguez for info. He was able to customize the modaco rom. I think it's nice to see someone trying. Keep up the good work m8 :)
 

MichaelAlexanderBull

Senior Member
May 12, 2010
125
0
29
OK, I contacted Rodriguez.
He says he does not think the Froyo rom i am porting will work :/
So i will hold this rom at the moment, until someone can help me.
But instead i will begin to try and remove sense from MoDaCo r2, should be easyish :)
 

Xoldar

Member
Aug 21, 2009
12
2
arnhem
that's nice a rom without sense I would like that very much:D

good luck with it.
I hope the froyo port will work eventually:D
 

MichaelAlexanderBull

Senior Member
May 12, 2010
125
0
29
I have made a rom without sense (ish)
I stripped the R2 but there are still some sensish things, as the HTC keyboard looks and works much better, and the top bar is still black, but apart from that it is stock 2.1 :D
I had one FC first time i flashed it, but it has not come back.
I will upload tonight, as i have to go to school now.
 

evank418

Senior Member
Feb 19, 2009
222
8
seoul
I have made a rom without sense (ish)
I stripped the R2 but there are still some sensish things, as the HTC keyboard looks and works much better, and the top bar is still black, but apart from that it is stock 2.1 :D
I had one FC first time i flashed it, but it has not come back.
I will upload tonight, as i have to go to school now.

i can't wait for this rom can you please make it with livewallpaper?
 

Liquid211

Senior Member
Aug 14, 2008
74
1
Aalborg
Aargh. I was looking forward to froyo on our legend. Maybe we have to wait for the official release, that is if we will get it. Well thanks for trying :)
 

Xoldar

Member
Aug 21, 2009
12
2
arnhem
I have made a rom without sense (ish)
I stripped the R2 but there are still some sensish things, as the HTC keyboard looks and works much better, and the top bar is still black, but apart from that it is stock 2.1 :D
I had one FC first time i flashed it, but it has not come back.
I will upload tonight, as i have to go to school now.

Can't wait for tonight:D
 

kyosa

Senior Member
Jun 18, 2010
86
1
Ok, so i began porting Froyo to the Legend this morning.
So far ok, It boots.
But the touch screen does not respond? I can use the optical pad to select things, i can recieve calls. but that is it. I need to use the touch screen to test if other things work.

Any hints?


Hello,

You seem to be doing an interesting attempt. :D
In the case of HTC Legend, I think that the touchpanel control-codes are different from other devices. (such as Nexus One :(

----
# getevent &
...
add device 6: /dev/input/event1
name: "synaptics-rmi-touchscreen"
...
/dev/input/event1: 0003 003a 00000001
/dev/input/event1: 0003 0039 8ddb05f5
/dev/input/event1: 0003 003a 00000001
/dev/input/event1: 0003 0039 8de005f3
/dev/input/event1: 0003 003a 00000001
/dev/input/event1: 0003 0039 8df305f3
/dev/input/event1: 0003 003a 00000001
/dev/input/event1: 0003 0039 8df305f5
...
----

Basically, most case of multi-touch-type, touchpanel drivers report 0x35(MT_POSITION_X)/0x36(MT_POSITION_Y) and more.
However, Legend's one reports only 0x3a(MT_AMPLITUDE)/0x39(MT_POSITION).
According to the source code of AOSP, these control codes are NOT DEFINED in RawInputEvent.java.


Therefore, there are two solutions.

1. Modify the kernel driver (synaptics_i2c_rmi.c) and rebuild
with CONFIG_TOUCHSCREEN_COMPATIBLE_REPORT.
# however, i'm afraid that it is enough...

2. Modify RawInputEvent.java and KeyInputQueue.java
to let Android to receive control codes(0x3a/0x39).
# Now it cannot test because FroYo has not been released yet but it is effective in AOSP Eclair on Legend.


Thanks,
k-yosa
 

Top Liked Posts