Post Reply Subscribe to Thread Email Thread

[Dev][OV5693] Backcam fix

16th January 2015, 12:45 PM   |  #1  
OP Senior Member
Flag Göttingen
Thanks Meter: 383
 
335 posts
Join Date:Joined: Sep 2010
Donate to Me
More
So,
the G Pad (v500) comes with in two versions.
One version has the S5K4E5YA as back camera.
Other version hast the OV5693 as back camera.
As we know the S5K4E5YA already has support in AOSP and CM ROMs and kernels.

So I tried to add the missing files and references to the CM kernel.

https://github.com/drbeat/kernel_lge...966e53632dfc5d

These are changes I picked out from the "V50020D" kernel sources.
In compiling I get this error
Code:
drivers/media/video/msm/eeprom/ov5693_eeprom.c:68:2: error: extra brace group at end of initializer
  {FALSE, 0, 0, 1},
  ^
drivers/media/video/msm/eeprom/ov5693_eeprom.c:68:2: error: (near initialization for ‘ov5693_calib_supp_info’)
drivers/media/video/msm/eeprom/ov5693_eeprom.c:68:2: warning: excess elements in struct initializer
drivers/media/video/msm/eeprom/ov5693_eeprom.c:68:2: warning: (near initialization for ‘ov5693_calib_supp_info’)
drivers/media/video/msm/eeprom/ov5693_eeprom.c:82:27: error: invalid application of ‘sizeof’ to incomplete type ‘struct msm_calib_id’
  {&ov5693_id_data, sizeof(struct msm_calib_id)}, /*                                                                                                       */
                           ^
drivers/media/video/msm/eeprom/ov5693_eeprom.c: In function ‘ov5693_format_iddata’:
drivers/media/video/msm/eeprom/ov5693_eeprom.c:88:2: error: invalid use of undefined type ‘struct msm_calib_id’
  ov5693_id_data.sensor_id= (uint16_t)ov5693_idcalib_data;
  ^
drivers/media/video/msm/eeprom/ov5693_eeprom.c:88:2: warning: statement with no effect [-Wunused-value]
make[5]: *** [drivers/media/video/msm/eeprom/ov5693_eeprom.o] Error 1
make[4]: *** [drivers/media/video/msm/eeprom] Error 2
make[4]: *** Waiting for unfinished jobs....
  LD      drivers/media/video/msm/gemini/built-in.o
make[3]: *** [drivers/media/video/msm] Error 2
make[2]: *** [drivers/media/video] Error 2
make[1]: *** [drivers/media] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [drivers] Error 2
Am I missing some changes?
Maybe someone know how this can be fixed so everyone gets the same experience.

EDIT:
OK I got it compiling.
https://github.com/drbeat/kernel_lge...db4d6703f1c436

Now I need someone with OV5693 to test it out

EDIT 2:
The binaries may be lacking.
I will look into that

EDIT 3:
So I have made a ZIP containing binaries and a kernel with ov5693 drivers
I need someone to test it out
DOWNLOAD: removed!
will upload a new version soon

EDIT 4:
DOWNLOAD: https://www.androidfilehost.com/?fid=95897840722648539
Last edited by ckret; 23rd January 2015 at 02:42 PM.
The Following 12 Users Say Thank You to ckret For This Useful Post: [ View ]
16th January 2015, 10:06 PM   |  #2  
Deltadroid's Avatar
Senior Member
Thanks Meter: 773
 
802 posts
Join Date:Joined: Apr 2013
I thought ov5663 was the one that does not work. Here is a log for a ov5693 working with stock AOSP.

http://forum.xda-developers.com/show...03&postcount=5
17th January 2015, 10:38 AM   |  #3  
OP Senior Member
Flag Göttingen
Thanks Meter: 383
 
335 posts
Join Date:Joined: Sep 2010
Donate to Me
More
Quote:
Originally Posted by Deltadroid

I thought ov5663 was the one that does not work. Here is a log for a ov5693 working with stock AOSP.

http://forum.xda-developers.com/show...03&postcount=5

there is no "ov5663"
the back camera which is not working is "ov5693"
17th January 2015, 11:34 AM   |  #4  
Deltadroid's Avatar
Senior Member
Thanks Meter: 773
 
802 posts
Join Date:Joined: Apr 2013
Then I'm curious why the person who posted that log says his cameras are working.
17th January 2015, 12:07 PM   |  #5  
OP Senior Member
Flag Göttingen
Thanks Meter: 383
 
335 posts
Join Date:Joined: Sep 2010
Donate to Me
More
Quote:
Originally Posted by Deltadroid

Then I'm curious why the person who posted that log says his cameras are working.

so to clear it up for you
front cam is always "IMX119"
back camera is either "S5K4E5YA" or "OV5693"
there is no "OV5663"
that guy posted dmesg before he flashed AOSP
since his back camera is working he has a "S5K4E5YA" module
just ask him to do another dmesg now. you will see that his results will be IMX119 and S5K4E5YA since AOSP and CM dont support OV5693
The Following 3 Users Say Thank You to ckret For This Useful Post: [ View ]
17th January 2015, 12:16 PM   |  #6  
Deltadroid's Avatar
Senior Member
Thanks Meter: 773
 
802 posts
Join Date:Joined: Apr 2013
Thanks for clearing that up. I'm sure lots of others were/are confused too.
18th January 2015, 07:36 PM   |  #7  
Deltadroid's Avatar
Senior Member
Thanks Meter: 773
 
802 posts
Join Date:Joined: Apr 2013
I bet of you changed the title of this thread to something like "fix for back camera" then people would understand the purpose of this thread better and offer to test.
19th January 2015, 11:44 AM   |  #8  
OP Senior Member
Flag Göttingen
Thanks Meter: 383
 
335 posts
Join Date:Joined: Sep 2010
Donate to Me
More
Quote:
Originally Posted by Deltadroid

I bet of you changed the title of this thread to something like "fix for back camera" then people would understand the purpose of this thread better and offer to test.

i still have to find the right binaries to make a working zip
The Following User Says Thank You to ckret For This Useful Post: [ View ]
20th January 2015, 07:23 PM   |  #9  
Munszu's Avatar
Member
Flag Hatfield
Thanks Meter: 5
 
58 posts
Join Date:Joined: Sep 2010
Donate to Me
More
I have a 50020D, I'll take it for a spin and report back later.

UPDATE: I got stuck at boot logo after flashing, but I managed to restore from my backup.
To tell the truth I'm not using stock CM, but a Team Vanir/Commotio ROM. Although they supposed to be using the same kernel and device tree as CM.
Last edited by Munszu; 20th January 2015 at 07:43 PM.
21st January 2015, 08:40 AM   |  #10  
OP Senior Member
Flag Göttingen
Thanks Meter: 383
 
335 posts
Join Date:Joined: Sep 2010
Donate to Me
More
Quote:
Originally Posted by Munszu

I have a 50020D, I'll take it for a spin and report back later.

UPDATE: I got stuck at boot logo after flashing, but I managed to restore from my backup.
To tell the truth I'm not using stock CM, but a Team Vanir/Commotio ROM. Although they supposed to be using the same kernel and device tree as CM.

thx for reporting
do you have a backcam which is not working?

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes