Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
cn.fyodor
Old
(Last edited by cn.fyodor; 1st September 2010 at 03:54 AM.) Reason: rewrite the post
#1  
Senior Member - OP
Thanks Meter 204
Posts: 246
Join Date: Dec 2009
Location: Nanjing

 
DONATE TO ME
Default [DEV] First step of reserve engineering libcamera (Work in progress)

Hi all,

I'm working on reserve engineering libcamera for Tattoo, based on libcamera2 by NCommander. Thanks to nopy for many help.

HTC have changed a lot in their kernel, and left LOTS of useless or temporary codes not to be cleaned up. Right now, camera codes in the kernel are very clean and tidy and mainly ported from AOSP-donut kernel. Interfaces of /dev/msm_camera/control0, config0, and frame0 are successfully generated. As you know, HTC kernel implemented the /dev/msm_camera/msm_camera0 interface to communicate with requests from user space. I'm not sure why HTC did such a hack. The reason why I ported camera codes from AOSP-donut relies on the fact that most of camera working ROMs for other headsets like Dream or Sapphire did this, even if these ROMs are powered by 2.6.32 or even 2.6.34 kernels.

I've sticked to HTC camera driver in the kernel. Please check out my github.

Here is the explanation of the relationship between libcamera, libqcamera and the kernel, written by NCommander.

This is my first step to reserver engineering work on libcamera. Camera does NOT work yet.

The current logcat and klogtail have been attached here, Donut version as well. Thanks to MrGland, salva.tejero, and kicmi.

If anyone is interested in hacking for Tattoo, just let know. I'll invite you to cooperate with us.


Regards,
Attached Files
File Type: zip camlogs_20100901.zip - [Click for QR Code] (77.6 KB, 133 views)
The Following 2 Users Say Thank You to cn.fyodor For This Useful Post: [ Click to Expand ]
 
ikxdf
Old
(Last edited by ikxdf; 20th July 2010 at 03:26 PM.)
#2  
Senior Member
Thanks Meter 8
Posts: 661
Join Date: May 2010
Location: Venice

 
DONATE TO ME
do you want try my kernel?
it have a problem with wifi...but the camera and media driver are correctly loaded...
if u want i can send it via pm


i have fix the GL problem on my rom...i haven't a tatto...but if u want i can see again the problem with your rom.

i'm just thinkg to restart my rom from zero. I have already downloaded the froyo source and i'm starting to compile the source and add my personal kernel...


said me if u want collaborate to made a new 2.2 rom
 
speedyracer5
Old
#3  
Senior Member
Thanks Meter 30
Posts: 100
Join Date: May 2010
W/dalvikvm( 613): threadid=10: thread exiting with uncaught exception (group=0x400207d8)
I am by no means a c++ expert, but I started learning it last week. A uncaught exception needs catching so that the whole thread does not terminate, you can deal with them using catch(), unless it is a hardware exception
 
dom_b
Old
#4  
Senior Member
Thanks Meter 28
Posts: 412
Join Date: Feb 2010
I think you two have the best chance of making a working froyo rom if you work together based on using your roms. I use fyodors 1.6 rom daily
 
dancer_69
Old
#5  
Senior Member
Thanks Meter 169
Posts: 1,750
Join Date: Jan 2007
I believe this too.
I prefer fyodor's rom though cause with his roms I never had problems on booting. Ikxdf' s roms from the other side don't boot on my device(except abusu 2.01 and capcake 1.01)
 
carlosac
Old
(Last edited by carlosac; 20th July 2010 at 06:07 PM.)
#6  
Junior Member
Thanks Meter 0
Posts: 3
Join Date: May 2010
you two (ikxdf,cn.fyodor) are supermans make a team mix up your files and your skills, make a great panfyodorcake ROM and we, tattoo users will be so happy Good Luck
E: omg sry kiljacken and HCDR.Jacob ale supermans too
 
kiljacken
Old
#7  
kiljacken's Avatar
Recognized Developer
Thanks Meter 259
Posts: 1,075
Join Date: Feb 2010
Location: Taastrup

 
DONATE TO ME
Quote:
Originally Posted by cn.fyodor View Post
I've dived into the source files, and found there was a __NULL__ "config_defaults" array of structure in egl.cpp file. This array was used in eglChooseConfig function, which is heavily related with my issue. I'm not sure what the codes did since not familiar with C++ programming. I've googled a lot, but no luck.

I need C++ experts to read the opengl codes in Froyo system and find the reason why 'No configs match configSpec' error comes up. Thanks in advance.

Regards,
If you send me that file or gives me the path to it in the Android source code I'll gladly take a look at it...
Galaxy Nexus

"10% Ramesh Babu..."
 
Albenejean
Old
#8  
Member
Thanks Meter 0
Posts: 32
Join Date: Jun 2010
Quote:
If you send me that file or gives me the path to it in the Android source code I'll gladly take a look at it...
Same here...
 
cn.fyodor
Old
#9  
Senior Member - OP
Thanks Meter 204
Posts: 246
Join Date: Dec 2009
Location: Nanjing

 
DONATE TO ME
Quote:
Originally Posted by ikxdf View Post
do you want try my kernel?
it have a problem with wifi...but the camera and media driver are correctly loaded...
if u want i can send it via pm

i have fix the GL problem on my rom...i haven't a tatto...but if u want i can see again the problem with your rom.

i'm just thinkg to restart my rom from zero. I have already downloaded the froyo source and i'm starting to compile the source and add my personal kernel...

said me if u want collaborate to made a new 2.2 rom
Hi, ikxdf

Glad to see you in this dev thread. My kernel can drive the camera correctly, but I haven't verified it yet. Feel free to send yours to me, I'll test it to check whether it works or not.

Quote:
Originally Posted by speedyracer5 View Post
W/dalvikvm( 613): threadid=10: thread exiting with uncaught exception (group=0x400207d8)
I am by no means a c++ expert, but I started learning it last week. A uncaught exception needs catching so that the whole thread does not terminate, you can deal with them using catch(), unless it is a hardware exception
Thanks for the info. If it's a hardware exception, there must be some bugs in my customized kernel. However, to be honest, I really don't know how to debug the C++ codes.

Quote:
Originally Posted by kiljacken View Post
If you send me that file or gives me the path to it in the Android source code I'll gladly take a look at it...
Thanks. The top path is frameworks/base/opengl. This exception error was thrown by the ./java/android/opengl/GLSurfaceView.java and the eglChooseConfig function is defined in ./libagl/egl.cpp. Hope you find something useful to debug it.
 
capito djjkd
Old
#10  
Member
Thanks Meter 1
Posts: 32
Join Date: Apr 2010
My greetings,

are the best in the tattoo improving.

Thanks to all the people who try to improve the tattoo...

letīs go friends

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...