How to "enable kernel uvcvideo module and load it from init"...?

3,001 views
Skip to first unread message

Wouter Cools

unread,
Jul 6, 2013, 9:06:29 AM7/6/13
to andro...@googlegroups.com
How do I do that?

I'm using build 20130228 on a Samsung N-150 and the camera is working when boot from USB-stick, but it doesn't when installed on HDD.
Loading uvc module from init should fix it, but I don't know how to do it.

Can anyone assist me on how to configure this?





Chih-Wei Huang

unread,
Jul 6, 2013, 10:40:19 AM7/6/13
to Android-x86
Try to add EXTMOD=uvcvideo to cmdline.

But it's more interesting to see why
your camera is not detected by the kernel.
Probably you need to add VID/PID to the driver.


2013/7/6 Wouter Cools <wouter...@gmail.com>:
> --
> 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.
> Visit this group at http://groups.google.com/group/android-x86.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



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

wouter cools

unread,
Jul 6, 2013, 10:47:06 AM7/6/13
to andro...@googlegroups.com
thanks for your reply, but I'm not that technical...

I'm using Ubuntu and can manage to configure GRUB to dual-boot Android.
Can you give more precise where I have to add it.

here?:
menuentry "Android-x86" {
set root='(hd0,0)'
linux /android-4.0-RC1/kernel quiet root=/dev/ram0 androidboot.hardware=eeepc acpi_sleep=s3_bios,s3_mode EXTMOD=uvcvideo SRC=/android-4.0-RC1 SDCARD=/data/sdcard.img 
initrd /android-4.0-RC1/initrd.img}


2013/7/6 Chih-Wei Huang <cwh...@android-x86.org>
You received this message because you are subscribed to a topic in the Google Groups "Android-x86" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-x86/OHwtn6Hg3vs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to android-x86...@googlegroups.com.

Javier Montes

unread,
Jul 1, 2015, 2:40:12 AM7/1/15
to andro...@googlegroups.com
Hi Chih-Wei,

I know that it must be boring to be helping noob people like me but trust me, I do not have idea about where I have to go to enable kernel uvcvideo module and less about where I have to load it from init. I know that the mayority of people here are used with the concepts and the slang but it is not my case. I am just starting on this field.

Must I go to the terminal of the Android x86 or must I load de debug mode when I boot it? In case that I must go to the terminal, which comands should I write? Can you guide me through it?

I will really appreciate if you can help me as I am using a notebook that only can works properly with your incredible Android x86 and my financial status do not allow me to buy a new equipment.


Thank you in advance for your help and sorry for the lenght of this request.

Edgardo Gho

unread,
Jul 1, 2015, 12:07:39 PM7/1/15
to andro...@googlegroups.com
As far as I'm aware of, uvcvideo is loaded on my Android build.
I'm using lollipop 5.0.2 (its an old build I baked with camera fixes) and I see the module on lsmod (go to a terminal with Alt+F1 and run lsmod, you should see uvcvideo listed).

Why do you need uvcvideo? the only reason I can think of is using the camera.

Javier Montes Gomez

unread,
Jul 1, 2015, 9:21:46 PM7/1/15
to andro...@googlegroups.com

Hi Edgardo Gho!

First of all thank you for answer me.

Regarding your question, I am using Android x86 4.4-rc2 on a old laptop and it does not recognize my camera build-on, that's why I was asking for how to fix it. My netbook is a Sony Vaio PCG 4v1M.

I will try to do what you said but I am not sure if that will be enough.

Thanks,
Javier

You received this message because you are subscribed to a topic in the Google Groups "Android-x86" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-x86/OHwtn6Hg3vs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to android-x86...@googlegroups.com.

To post to this group, send email to andro...@googlegroups.com.
Visit this group at http://groups.google.com/group/android-x86.
For more options, visit https://groups.google.com/d/optout.

Javier Montes Gomez

unread,
Jul 1, 2015, 9:21:46 PM7/1/15
to andro...@googlegroups.com

What I should do? I do not know how to even start! I use to know how to write comands on linux, but how I should do here? I wrote Ismod following your advice and it says that does not exist such file.

Edgardo Gho

unread,
Jul 2, 2015, 9:31:42 AM7/2/15
to andro...@googlegroups.com
Boot your Android-x86 computer, and then go to a Shell (Alt+F1). Type:
cd /storage/sdcard0
dmesg > dmesg.txt
lsmod > lsmod.txt
logcat -d > logcat.txt

That will leave 3 files (dmesg.txt, lsmod.txt, logcat.txt) on you virtual SD card. You can upload them here.

Have you try running an Ubuntu Live CD? You can run that without installing it and see if the camera works in there.

Javier Montes Gomez

unread,
Jul 2, 2015, 11:31:07 PM7/2/15
to andro...@googlegroups.com

Hi again!

I have followed your instructions and on the lsmod.txt file I can see this line:

" uvcvideo 55156 0 - Live 0x00000000 "

Therefore, If it appears, I don't know why it doesn't work. I have try it with different apks.

Thanks,
Javier

El 02/07/2015 16:37, "Javier Montes Gomez" <javier.mo...@gmail.com> escribió:
Hi Edgardo!

As soon as I come back home I will try it. 

Regarding your question, I already have ubuntu and windows working on the notebook and the camera works without problems. My request comes from my need to only use Android x86, as it is the only one that works properly.

Getting to the point, once I create this three files, what should I do? Can you guide me?

Thanks for all your help and sorry for keep disturbing you.


Have  a good day,
Javier

Javier Montes Gomez

unread,
Jul 2, 2015, 11:31:07 PM7/2/15
to andro...@googlegroups.com
Hi Edgardo!

As soon as I come back home I will try it. 

Regarding your question, I already have ubuntu and windows working on the notebook and the camera works without problems. My request comes from my need to only use Android x86, as it is the only one that works properly.

Getting to the point, once I create this three files, what should I do? Can you guide me?

Thanks for all your help and sorry for keep disturbing you.


Have  a good day,
Javier

2015-07-02 16:31 GMT+03:00 Edgardo Gho <edgar...@gmail.com>:

Edgardo Gho

unread,
Jul 3, 2015, 12:44:43 AM7/3/15
to andro...@googlegroups.com
I only need logcat, now that you have confirm uvcvideo is there.
Can you try a build with the camera patches i submitted a few months ago?

Javier Montes Gomez

unread,
Jul 5, 2015, 9:37:57 AM7/5/15
to andro...@googlegroups.com

Ok, tell me what I should do step by step and I will tell you if it works. Thanks for your help!

El 03/07/2015 07:44, "Edgardo Gho" <edgar...@gmail.com> escribió:
I only need logcat, now that you have confirm uvcvideo is there.
Can you try a build with the camera patches i submitted a few months ago?

Edgardo Gho

unread,
Jul 5, 2015, 2:07:12 PM7/5/15
to andro...@googlegroups.com
I posted instructions on how to get the files, just upload here logcat.txt.

Javier Montes Gomez

unread,
Jul 7, 2015, 11:52:58 PM7/7/15
to andro...@googlegroups.com

I am not able to find this instructions. Anyway, please find attached the logcat.txt file. Thanks as usal.

logcat.txt

Edgardo Gho

unread,
Jul 8, 2015, 9:36:39 AM7/8/15
to andro...@googlegroups.com
All the start up stuff is missing in that logfile. Did you get the  logfile while not being root? (did you start a terminal and echoed logcat to a file?).
If you did so, please become root first by typing su
And then capture logcat
Or after start do:
[ALT]+[F1] (This should move you into a text terminal)
type: cd /storage/sdcard0
type: logcat -d > logcat.txt
You should have a logcat.txt file on your virtual sdcard0.

Javier Montes Gomez

unread,
Jul 15, 2015, 5:37:04 AM7/15/15
to andro...@googlegroups.com

Sorry for the delay, please tell me if this is the logcat file that you were asking me for ;)

logcat.txt

Edgardo Gho

unread,
Jul 15, 2015, 10:13:23 AM7/15/15
to andro...@googlegroups.com
I can't get anything useful out of that. Are you using an eng build?.
Reply all
Reply to author
Forward
0 new messages