ICS-X86 - How to make camera work?

1,754 views
Skip to first unread message

anhkhoa738

unread,
Jan 27, 2012, 9:26:06 AM1/27/12
to andro...@googlegroups.com
I want to make camera work but I with ICS build form src x86 (generic_x86) but no success :(.

I find the note Chih-Wei
#Here is a note from Chih-Wei

"I've made it work. Exce the changes I mentioned, the steps are necessary:

  • enable camera from BIOS
  • enable kernel uvcvideo module and load it from init"
The BOIS no option enable camera so I think it enable by default.
The uvcvideo module load by default by generic_x86. (in debug mode with "lsmod" I see it ).
but "load it form init " how can I do :-?

My camera works with Android Emulator 4.0.3 ( in Linux ) after install driver for it. "https://bitbucket.org/ahixon/r5u87x/" . I think it can work with ICS-X86, too.
This driver using udev rules (/etc/udev/rule.d/...) for call loader (r5u87x-loader) to load camera firmware. (for uvcvideo module interface, I think that).

# 90-r5u87x-loader.rules - udev rules for loading firmware into Ricoh R5U87x USB video devices

ACTION!="add", GOTO="r5u87x_rules_end"
SUBSYSTEM!="usb", GOTO="r5u87x_rules_end"

ATTRS{idVendor}=="05ca", ATTRS{idProduct}=="1839", RUN+="/usr/sbin/r5u87x-loader --reload"
ATTRS{idVendor}=="05ca", ATTRS{idProduct}=="183a", RUN+="/usr/sbin/r5u87x-loader --reload"
ATTRS{idVendor}=="05ca", ATTRS{idProduct}=="183b", RUN+="/usr/sbin/r5u87x-loader --reload"
ATTRS{idVendor}=="05ca", ATTRS{idProduct}=="183e", RUN+="/usr/sbin/r5u87x-loader --reload"
ATTRS{idVendor}=="05ca", ATTRS{idProduct}=="1841", RUN+="/usr/sbin/r5u87x-loader --reload"
ATTRS{idVendor}=="05ca", ATTRS{idProduct}=="1870", RUN+="/usr/sbin/r5u87x-loader --reload"

LABEL="r5u87x_rules_end"
# vim: ft=conf

But in system folder of ICS-X86 I can't find udev rules folder. How android intialize for hardware like camera ...?
Sorry for my bad english. :P, not my primary languge.
Thanks for all helps.

Chih-Wei Huang

unread,
Jan 28, 2012, 11:53:11 AM1/28/12
to andro...@googlegroups.com
2012/1/27 anhkhoa738 <anhkh...@gmail.com>:

> I want to make camera work but I with ICS build form src x86 (generic_x86)
> but no success :(.
> I find the note Chih-Wei
> #Here is a note from Chih-Wei
> "I've made it work. Exce the changes I mentioned, the steps are necessary:
> enable camera from BIOS
> enable kernel uvcvideo module and load it from init"

Seems you read a very old doc, probably for donut-x86?

Unfortunately, since froyo-x86 we never have a reliable camera support.
Any camera expert?

> The BOIS no option enable camera so I think it enable by default.
> The uvcvideo module load by default by generic_x86. (in debug mode with
> "lsmod" I see it ).
> but "load it form init " how can I do :-?
>
> My camera works with Android Emulator 4.0.3 ( in Linux ) after install
> driver for it. "https://bitbucket.org/ahixon/r5u87x/" . I think it can work
> with ICS-X86, too.

Really? Sounds interesting.
The emulator can emulate a fake camera.
However, I never expect it can work with a real camera.
How did you do it? Could you provide detailed procedure?

> This driver using udev rules (/etc/udev/rule.d/...) for call loader
> (r5u87x-loader) to load camera firmware. (for uvcvideo module interface, I
> think that).

[deleted]


> But in system folder of ICS-X86 I can't find udev rules folder. How android
> intialize for hardware like camera ...?

Android only uses linux kernel.
Don't expect it contains any userland tools
of traditional linux.

For your issue, I guess you need to port the loader to Android
(should be very easy) and run it from init.rc.
However, this is just the first step.
We still need a camera hal for ics-x86.
I remember someone pointed a link of v4l2 camera hal
for ics recently. That could be a good start point.
Anyone has progress?


--
Chih-Wei
Android-x86 project
http://www.android-x86.org

venky6 babu

unread,
Jan 31, 2012, 7:28:41 AM1/31/12
to andro...@googlegroups.com

Hi Chih-Wei,




--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-x86...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-x86?hl=en.


First of all thank you for your support to android-x86.

I am using gingerbread-2.3.7 on my device.
When i downloaded and start testing interfaces.
I do have a problem with Camera.
Its not registering to EventHub. and giving an errors like..ANR in com.android.camera...
When i kept some log messages in camera framework. am not getting. so i am thinking of binding application and driver through HAL is not happening. So can you please prove any input to resolve this issue....

Thanks,
Venky.


Coldsteel Cohen

unread,
Sep 7, 2015, 8:24:22 AM9/7/15
to Android-x86
OK. Chih. Disregard last message. I was able to load grub and run android 4.4-r3 on my t100TAR. Only issue now is my Camera doesnt work. I have looked at a few suggestions. Dont see any replicating my issue. Where I stand is I have deleted the "2.0" camera.apk. I was suggested to do so and then install Google camera. still no luck. Any ideas?

Povilas Staniulis

unread,
Sep 7, 2015, 1:00:24 PM9/7/15
to andro...@googlegroups.com
Camera doesn't work on Baytrail yet. No kernel driver.
--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-x86...@googlegroups.com.

To post to this group, send email to andro...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages