[Q] Please suggest me on how to compile UVC driver (external usb camera) for my A500 - Acer Iconia A500

I need to use usb microscope (which use general linux UVC driver on my natty ubuntu) on a500 to capture magnified image for my daily work.
However, I couldn't get it to work in every possible camera app that I could try. (After i plugged in then dmesg, it shows that UVC 1.0 device USB2.0 camera (1871:7670) found.)
After reading on many forum for a week, i have been convinced that I should try compiling my own driver first. It should work fine with default android camera app. The only place I that seems to be able to use external usb camera on their device is advent vega at Modaco.
I also found a good step by step in building UVC driver module for arm based device such as android here. But I have very limited linux knowledge so I couldn't apply it to my need.
Can someone please enlighten me by providing steps for a complete noob, like me to be able to build my own driver?
Information on the UVC driver sources can be found here at linuxtv.org.
I'm currently using richardtrip kernel which can be found here.

I would also be interested in a UVC driver for android!

Related

Driver suggestion for Tiamat kernel

I normally would post this in the Tiamat thread, but I don't have enough posts to do that (maybe someone else could if they think this is a good idea). I have read that since 1.4.4 Tiamat has supported Realtek 8150 USB Ethernet adapters, simply by building the kernel driver module. This is a wonderful feature, however, that adapter is not readily available for everyone. I myself am able to purchase a dm9601 based device for around $10 at a local store. I would normally build the driver/kernel myself, but setting up a cross-build environment in Linux is a bit tricky (maybe I'm missing something). I haven't yet had a successful build (so close!).
So, to the suggestion: it would be nice to have some modules pre-built so users could download and install drivers that they need. Any monkey can copy a file and run a script to install a driver, but it takes a Linux programmer to be able to cross-build.

ADVICE/SUPPORT : UVC Camera on Samsung Galaxy Tab 10.1- No device Node??

HI,
I am trying to interface the UVC Camera to the Samsung Galaxy Tab 10.1(GT-7510) , but I am not able to see the device node getting created in the shell( I have installed the Linux terminal Shell Application) and rooted the device using this Video .Can somebody plz tell/advice how I can achieve it and access the device Node or at-least get it created.
Following is the log on dmesg :
usb 1-1 new high speed USB device using tegra-ehci and address 97
hub 1-0:1.0 unable to enumerate USB device on port 1 ,
usb 1-1:device v0ac8 p3420 is not supported
On My Laptop I get this output on Dmesg :
[12307.364237] uvcvideo: Found UVC 1.00 device Venus USB2.0 Camera (0ac8:3420)
[12307.366108] input: Venus USB2.0 Camera as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.0/input/input14
[12308.537059] usbcore: registered new interface driver snd-usb-audio
also i can see the camera getting blinked on connection which proves that it is getting the power-supply and getting connected with the system.
I think there is a support for UVC USB devices in the kernel (not sure) otherwise I am ready with the Kernel For Samsung Tab 10.1 (GT-7500 (Higher Version: GT-7510)) from here .(GT-P7500_MEA_Opensource.zip (requires Login).
Plz assist.
Rgds,
Softy
You seem to know a bit about what you're doing. I'm not really familiar with this device. I did a search and did not find anyone who has don't this yet. The first priority is to get a Linux device in /dev/ folder. This is generally handled by a device driver and a udev rule. Try the newer kernel if you can. The android 4.0 ics has a Linux 3.x kernel. See if switching to ics helps. Try compiling a custom kernel with all modules. Once you have a device, try using SSH or sftp from your desktop under Linux to stream from that device with vlc or another media player.
Do you have any examples of this device in use on mobile Linux? It may require writing an entire kernel driver.
HI,
Yes that is the same line of thinking for us as well.We are trying to compile the kernel and load it .- Ongoing
I believe only the zImage is the one which is to be flashed.But I am little scared to do this.Couldn't find the instructions to loading the Zimage even though I can compile one.
Rgds,
Saurabh
softy007 said:
HI,
Yes that is the same line of thinking for us as well.We are trying to compile the kernel and load it .- Ongoing
I believe only the zImage is the one which is to be flashed.But I am little scared to do this.Couldn't find the instructions to loading the Zimage even though I can compile one.
Rgds,
Saurabh
Click to expand...
Click to collapse
Flash it with Heimdall, even if it won't work you will be still able to get into download mode of bootloader (which you aren't supposed to flash) and reflash the kernel with stock one.

[Q] USB host mode in CyanogenMod 10.1.2

I am running CyanogenMod version 10.1.2 on a Nook Color via micro SD card. I can not get any USB devices (eg. thumb drives) to work. Nothing happens when I plug a USB device in, so it appears that the Nook Color does not recognize the device. To troubleshoot the problem, I ran a program called "USB Host Diagnostics," and received the following message:
USB Host Controller: version number 0.44
S3C USB Host Driver NOT found!
Root hub present, USB Host Mode is active.
What is the "S3C USB Host Driver? Where can I download it? How do I install the driver on the Nook Color? What steps do I need to take to get USB hosting to work? Thanks for any help you can give me to help me solve the problem!
CM 10.1.2 with USB Host / OTG
nuprps said:
I am running CyanogenMod version 10.1.2 on a Nook Color via micro SD card. I can not get any USB devices (eg. thumb drives) to work. Nothing happens when I plug a USB device in, so it appears that the Nook Color does not recognize the device. To troubleshoot the problem, I ran a program called "USB Host Diagnostics," and received the following message:
USB Host Controller: version number 0.44
S3C USB Host Driver NOT found!
Root hub present, USB Host Mode is active.
What is the "S3C USB Host Driver? Where can I download it? How do I install the driver on the Nook Color? What steps do I need to take to get USB hosting to work? Thanks for any help you can give me to help me solve the problem!
Click to expand...
Click to collapse
Good question.
This is the best I could dig up:
http://forum.xda-developers.com/showthread.php?p=40043731
Please let us know what you figure out!
nuprps said:
I am running CyanogenMod version 10.1.2 on a Nook Color via micro SD card. I can not get any USB devices (eg. thumb drives) to work. Nothing happens when I plug a USB device in, so it appears that the Nook Color does not recognize the device. To troubleshoot the problem, I ran a program called "USB Host Diagnostics," and received the following message:
USB Host Controller: version number 0.44
S3C USB Host Driver NOT found!
Root hub present, USB Host Mode is active.
What is the "S3C USB Host Driver? Where can I download it? How do I install the driver on the Nook Color? What steps do I need to take to get USB hosting to work? Thanks for any help you can give me to help me solve the problem!
Click to expand...
Click to collapse
Cyanogenmod 10.1.2 can't use USB host mode, if you need to use USB host mode use Cyanogenmod 7 and the nook color tools app to enable it
Sent from my NookColor using xda app-developers app
dombeef said:
Cyanogenmod 10.1.2 can't use USB host mode, if you need to use USB host mode use Cyanogenmod 7 and the nook color tools app to enable it
Click to expand...
Click to collapse
To expand on this: CM7 was based on top of an older Linux kernel version (2.6.32), on top of which a lot of hard work was done to enable USB host mode. In porting to CM9/10/10.1, we moved to a newer kernel version (3.0), and some of that work wasn't brought over. There aren't any technical barriers to enabling USB host mode on newer kernels -- someone "just" needs to spend the time to go through the patches for host mode in 2.6.32 and figure out what bits need to be forward ported to 3.0. (In case you haven't figured out yet, time is the scarcest asset in a volunteer project like this one ...)
nuprps said:
What is the "S3C USB Host Driver? Where can I download it? How do I install the driver on the Nook Color?
Click to expand...
Click to collapse
"S3C USB Host" refers to the USB OTG hardware included in Samsung S5PC110 ("Exynos3") devices, including the Nexus S and most Galaxy S series phones. It's not applicable to OMAP devices like the Nook Color, which use different, much more mature USB OTG hardware and drivers from Mentor Graphics and TI (musb_hdrc).
USB Host Mode with CM10
steven676 said:
To expand on this: CM7 was based on top of an older Linux kernel version (2.6.32), on top of which a lot of hard work was done to enable USB host mode. In porting to CM9/10/10.1, we moved to a newer kernel version (3.0), and some of that work wasn't brought over. There aren't any technical barriers to enabling USB host mode on newer kernels -- someone "just" needs to spend the time to go through the patches for host mode in 2.6.32 and figure out what bits need to be forward ported to 3.0. (In case you haven't figured out yet, time is the scarcest asset in a volunteer project like this one ...)
"S3C USB Host" refers to the USB OTG hardware included in Samsung S5PC110 ("Exynos3") devices, including the Nexus S and most Galaxy S series phones. It's not applicable to OMAP devices like the Nook Color, which use different, much more mature USB OTG hardware and drivers from Mentor Graphics and TI (musb_hdrc).
Click to expand...
Click to collapse
THANKS to EVERYONE for responding and clarifying the situation with USB Hosting mode on CM 10. The information saves me a lot of frustration in trying to get my Nook Color to recognize my USB devices. At least I can get USB Hosting working if I use CM7; that's an option, so thanks a lot for pointing it out. I'm a newbie and struggling to learn Android related stuff. If I had the technical know-how, I'd love to help solve the USB Host issue with CM10. For me at least, USB hosting would be a valuable feature in CM10 and beyond. I really like how well CM10 runs on my device with a SanDisk 8Gb micro SDHC card.
To get some of my devices (eg. keyboard) working on CM10, I may try the bluetooth capability in CM 10. However, I read somewhere that the range of bluetooth was limited on the Nook Color. I think that was awhile ago when developers initially unlocked bluetooth on the Nook Color. Is bluetooth range still a significant issue?
THANKS AGAIN!!!
nuprps said:
THANKS to EVERYONE for responding and clarifying the situation with USB Hosting mode on CM 10. The information saves me a lot of frustration in trying to get my Nook Color to recognize my USB devices. At least I can get USB Hosting working if I use CM7; that's an option, so thanks a lot for pointing it out. I'm a newbie and struggling to learn Android related stuff. If I had the technical know-how, I'd love to help solve the USB Host issue with CM10. For me at least, USB hosting would be a valuable feature in CM10 and beyond. I really like how well CM10 runs on my device with a SanDisk 8Gb micro SDHC card.
To get some of my devices (eg. keyboard) working on CM10, I may try the bluetooth capability in CM 10. However, I read somewhere that the range of bluetooth was limited on the Nook Color. I think that was awhile ago when developers initially unlocked bluetooth on the Nook Color. Is bluetooth range still a significant issue?
THANKS AGAIN!!!
Click to expand...
Click to collapse
There is a limited range for bluetooth, it was actually hidden in the official rom and not enabled until some developers found it out.
IF you really want USB host on a newish android version, you might want to use CM9, it still has usb host and I was able to use it a few months ago for a project. But there is limited opengl support and it might have a few minor bugs in it.
USB Host Mode with CM10
dombeef said:
There is a limited range for bluetooth, it was actually hidden in the official rom and not enabled until some developers found it out.
IF you really want USB host on a newish android version, you might want to use, it still has usb host and I was able to use it a few months ago for a project. But there is limited opengl support and it might have a few minor bugs in it.
Click to expand...
Click to collapse
Thanks for the tip about USB hosting mode and CM9. I'll download CM9 and see how it works with my Nook Color and USB peripherals.
USB Hosting with CM9?
dombeef said:
There is a limited range for bluetooth, it was actually hidden in the official rom and not enabled until some developers found it out.
IF you really want USB host on a newish android version, you might want to use, it still has usb host and I was able to use it a few months ago for a project. But there is limited opengl support and it might have a few minor bugs in it.
Click to expand...
Click to collapse
Please provide more detail about how you enabled USB hosting mode in CM9. I downloaded and installed CM9, but I can't figure out how to enable USB mode. I tried an app called "Nook Color Tweaks," but the app clearly states that it does not work with CM9. What steps did you take to get USB hosting on your device running CM9? Please clarify. Thank you!
nuprps said:
Please provide more detail about how you enabled USB hosting mode in CM9. I downloaded and installed CM9, but I can't figure out how to enable USB mode. I tried an app called "Nook Color Tweaks," but the app clearly states that it does not work with CM9. What steps did you take to get USB hosting on your device running CM9? Please clarify. Thank you!
Click to expand...
Click to collapse
I'm sorry,the app I was referring to was Nook Color Tweaks. Whoops :laugh:
A few of the options will not work on CM9 but the USB host will/should work.
I haven't used CM9 in a while now but if usb host doesn't work on the rom I linked to then you may want to use a ROM from eyeballer's unofficial CM9 nightly builds and try the latest opengl build. I had used eyeballer's rom in the past and it did work with USB host.
USB Host mode in CM11
steven676 said:
To expand on this: CM7 was based on top of an older Linux kernel version (2.6.32), on top of which a lot of hard work was done to enable USB host mode. In porting to CM9/10/10.1, we moved to a newer kernel version (3.0), and some of that work wasn't brought over. There aren't any technical barriers to enabling USB host mode on newer kernels -- someone "just" needs to spend the time to go through the patches for host mode in 2.6.32 and figure out what bits need to be forward ported to 3.0. (In case you haven't figured out yet, time is the scarcest asset in a volunteer project like this one ...)
Click to expand...
Click to collapse
I think the changes need to be made in encore_defconfig (or encore _cm11_defconfig). I can try to make the changes but these files are automatically generated in the make process. Could you point me to the configuration files where this happens? I think it must be in device/bn/encore.

[Q] RT2800 USB vs Monitor Mode

Hi,
I have just picked up a Note 3 on Three UK.
Am I right in assuming that the wireless chipset BCM4339 which is the same as on the Nexus 5 is still not able to use bcmon mode to allow us to enable monitor mode?
Would a specific ROM be necessary to allow a TP-Link WN722n (RT2800usb) to work on OTG cable?
I have tried both bcmon on my note 3 and also my TP-Link via USB OTG cable and neither have had any results.
Thanks
Toby
I've installed USB Host Check to confirm that USB host support is enabled on my note 3.
(android.hardware.usb.host.xml OK)
(handheld_core_hardware.xml OK)
I then installed USB Host Controller.
Both devices recognised but obviously not working. (Atheros USB 2.0 WLAN for TP-WN772n) and (ASIX Elec Corp AX88x72A) for USB ethernet.
When I run USB Host Controller I get the following error message:
"s3c usb host driver not found".
Another member on XDA posted a link to the Halaszk Kernel on the N9000 apparantly having OTG USB host support for S3C
(Original post http://forum.xda-developers.com/showthread.php?t=2599045)
Halaszk Kernel for the N9000
http://forum.xda-developers.com/showthread.php?t=2590320
Toby
I'm still hitting a brick wall on this one search wise.
Would stil love to be able to use my WN722N on my Note 3.
Has anyone any experience in modifying the Kernel Module to allow the ath9k to work on Note 3?
Getting a wireless adapter to work on Ubuntu or any form of Linux can be difficult if the manufacturer doesn't provide direct driver support or at the very least a "Tar" which would allow an end user (with sufficient skill) to compile the drivers them self. My understanding of this is limited but from what I can remember Android is JavaScript VM running on a Linux kernel. So you need the Linux source code for the driver which usually comes in a "Tar". Feel free to correct me if I am wrong.

[Help] I need install Wireless Dongle driver on Huawei nove 2i with [RTL88x2BU]

Ask for help I want to install Wireless Dongle driver on android device. I have a driver file. But I can't install it. I want a simple guide step by step on linux
I have a picture preview. Have driver file Please check it for me About how I can install as easily as possible. Thank you very much
My devices
huawei nova 2i android 8.0 (Oreo)
android box CS918 Rockchip android 4.4 (KitKat)
Equipment is not the same But I think the driver installation method should be the same.
Driver Link + Guide [RTL88x2BU_WiFi_linux_v5.2.4.4]
https://www.mediafire.com/file/94b5wkvj41g1bla/RTL88x2BU_WiFi_linux_v5.2.4.4.rar/file
surathus said:
Ask for help I want to install Wireless Dongle driver on android device. I have a driver file. But I can't install it. I want a simple guide step by step on linux
I have a picture preview. Have driver file Please check it for me About how I can install as easily as possible. Thank you very much
My devices
huawei nova 2i android 8.0 (Oreo)
android box CS918 Rockchip android 4.4 (KitKat)
Equipment is not the same But I think the driver installation method should be the same.
Driver Link + Guide [RTL88x2BU_WiFi_linux_v5.2.4.4]
https://www.mediafire.com/file/94b5wkvj41g1bla/RTL88x2BU_WiFi_linux_v5.2.4.4.rar/file
Click to expand...
Click to collapse
You'd need to add support to kernel if you want to use the dongle on your phone over OTG.
There is a experimental entry in Kconfig for Realtek devices which have not been tested, enabling that might work. Else you will have to add support yourself.
Either way you'll need to compile your own kernel for it.
Have you tested by simply inserting OTG and dongle and see what happens?
Since phone has wifi already (I guess) it might not work if internal is interfering with external.
ante0 said:
You'd need to add support to kernel if you want to use the dongle on your phone over OTG.
There is a experimental entry in Kconfig for Realtek devices which have not been tested, enabling that might work. Else you will have to add support yourself.
Either way you'll need to compile your own kernel for it.
Have you tested by simply inserting OTG and dongle and see what happens?
Since phone has wifi already (I guess) it might not work if internal is interfering with external.
Click to expand...
Click to collapse
Thanks for the info
repeatedly
Who can get the files that I posted? Can be created as a driver Thank you very much
surathus said:
Who can get the files that I posted? Can be created as a driver Thank you very much
Click to expand...
Click to collapse
I had to add that driver to several linux kernels that i use on my machines (Ubuntu and OpenElec).
Never tested on my Mate 10 Pro, or any other Android device.
However, adding that to the kernel would require some work and i'm not even sure it works fine on android.
Here's a link to my github - > https://github.com/pretoriano80/RTL8822BU
Pretoriano80 said:
I had to add that driver to several linux kernels that i use on my machines (Ubuntu and OpenElec).
Never tested on my Mate 10 Pro, or any other Android device.
However, adding that to the kernel would require some work and i'm not even sure it works fine on android.
Here's a link to my github - > https://github.com/pretoriano80/RTL8822BU
Click to expand...
Click to collapse
thank alot for your help..
...Oh, I forgot to say that My device The model name really is named Realtek 8811CU Wireless Lan 802.11ac USB NIC.
I use the 8811CU driver installed on linux. It can connect and use normally. But the driver that came with the device The name is back. This model is RTL88x2BU. Will it work as well with the links you recommend?
surathus said:
thank alot for your help..
...Oh, I forgot to say that My device The model name really is named Realtek 8811CU Wireless Lan 802.11ac USB NIC.
I use the 8811CU driver installed on linux. It can connect and use normally. But the driver that came with the device The name is back. This model is RTL88x2BU. Will it work as well with the links you recommend?
Click to expand...
Click to collapse
Then probably this - > https://github.com/brektrou/rtl8821CU <- should work for your device.
Pretoriano80 said:
Then probably this - > https://github.com/brektrou/rtl8821CU <- should work for your device.
Click to expand...
Click to collapse
What do I have to do? help guide step-by-step That can help teach me
Right now it works great on linux & windows 10 but can not running on adroid devices.
surathus said:
What do I have to do? help guide step-by-step That can help teach me
Right now it works great on linux & windows 10 but can not running on adroid devices.
Click to expand...
Click to collapse
There is no easy way to do that. First you will have to check if your kernel has support for that Realtek driver and it it does, enable it (as ante0 said).
If it doesn't have support for that driver, then first compile the kernel from sources (without any modification to the source) and check if your device will boot, if it doesn't, then you can stop here and forget about adding that driver to the kernel.
If it does boot with the compiled kernel, then you will have to add the driver to the source code and here, again, there's no guarantee it will work. (compilation might fail or simply, the kernel builds just fine but the driver won't work... like i said, there's no easy way for this).
In my opinion, you better start searching on GitHub for an android kernel that already has support for that driver, but you will also have to check the kernel version (if it matches yours, then you have higher chances to port it for your device's kernel).
Best option : Buy a Wi-Fi adapter that have in-kernel support already.
Pretoriano80 said:
There is no easy way to do that. First you will have to check if your kernel has support for that Realtek driver and it it does, enable it (as ante0 said).
If it doesn't have support for that driver, then first compile the kernel from sources (without any modification to the source) and check if your device will boot, if it doesn't, then you can stop here and forget about adding that driver to the kernel.
If it does boot with the compiled kernel, then you will have to add the driver to the source code and here, again, there's no guarantee it will work. (compilation might fail or simply, the kernel builds just fine but the driver won't work... like i said, there's no easy way for this).
In my opinion, you better start searching on GitHub for an android kernel that already has support for that driver, but you will also have to check the kernel version (if it matches yours, then you have higher chances to port it for your device's kernel).
Best option : Buy a Wi-Fi adapter that have in-kernel support already.
Click to expand...
Click to collapse
Thanks again

Categories

Resources