[solved][beaglebone] linux-uvc driver

Plugging in devices such as LAN adapters, Wi-Fi cards, printers, etc. to Arch Linux ARM.

[solved][beaglebone] linux-uvc driver

Postby mszubart » Mon Aug 27, 2012 7:08 am

Hello,
I have a camera (some kind of digital microscope but connected to a different optics).
It runs flawlessly with ubuntu on my desktop, using uvcvideo driver.
Just like this:
$this->bbcode_second_pass_code('', '== ubuntu == /dev/video0 is present
$ dmesg
[1126611.193784] usb 1-1.4: new high-speed USB device number 50 using ehci_hcd
[1126611.880465] uvcvideo: Found UVC 1.00 device Digital Microscope (21cd:2602)
[1126612.402355] input: Digital Microscope as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4/1-1.4:1.0/input/input20

$ uname -r
3.2.0-29-generic
==')

Also I have beaglebone with Ach Linux (http://archlinuxarm.org/platforms/armv7/beaglebone)
So why not to connect this camera to beagle and make fully automatic microscope with autofocus and all cool stuff you can code in C... right?
I ended up with this:
$this->bbcode_second_pass_code('', '== alarm == no /dev/video0
# dmesg
[148824.383300] usb 1-1: new high-speed USB device number 4 using musb-hdrc
[148825.064788] usb 1-1: New USB device found, idVendor=21cd, idProduct=2602
[148825.064819] usb 1-1: New USB device strings: Mfr=2, Product=1, SerialNumber=3
[148825.064819] usb 1-1: Product: Digital Microscope
[148825.064849] usb 1-1: Manufacturer: Delta Optical
[148825.064849] usb 1-1: SerialNumber: OEM-U602B

# lsmod
Module Size Used by

# uname -r # I just took rootfs from http://archlinuxarm.org/os/ArchLinuxARM-am33x-latest.tar.gz
3.2.18-1

# cat /etc/rc.conf
...
MODULES=(uvcvideo)
...
==')

https://wiki.archlinux.org/index.php/We ... #linux-uvc
$this->bbcode_second_pass_quote('', 'A')s of kernel 2.6.26 linux-uvc is part of the kernel. Just load the uvcvideo module.


ALARM uses 3.2.18 so I can assume that it should have uvc.
But I could guess that ALARM developers don't enable it when compiling kernel, right?

So, my question is: Can I have uvcvideo without getting headache from kernel compilation?

Thanks in advance.

PS. I apologize for my English
Last edited by mszubart on Mon Aug 27, 2012 12:47 pm, edited 1 time in total.
mszubart
 
Posts: 8
Joined: Sat Aug 25, 2012 12:50 pm

Re: [beaglebone] linux-uvc driver

Postby xenoxaos » Mon Aug 27, 2012 11:18 am

Please put in a ticket at https://github.com/archlinuxarm/PKGBUILDs/issues requesting UVC be added to the kernel.
Arch Linux ARM exists and continues to grow through community support, please donate today!
xenoxaos
Developer
 
Posts: 323
Joined: Thu Jan 06, 2011 1:45 am

Re: [beaglebone] linux-uvc driver

Postby hydro » Mon Aug 27, 2012 11:47 am

I think uvcvideo is already included as a module (CONFIG_USB_VIDEO_CLASS=m)
https://github.com/archlinuxarm/PKGBUIL ... 33x/config
http://cateee.net/lkddb/web-lkddb/USB_VIDEO_CLASS.html

Edit: Your device doesn't seem to be supported by uvcvideo:
http://www.ideasonboard.org/uvc/#devices
VDR on DockStar / Pogoplug E02: http://linux.bplaced.net/
hydro
 
Posts: 210
Joined: Wed Jun 15, 2011 2:03 pm
Location: Germany

Re: [beaglebone] linux-uvc driver

Postby mszubart » Mon Aug 27, 2012 12:02 pm

@hydro:
First:
From ubuntu's dmesg
$this->bbcode_second_pass_code('', '[1126611.880465] uvcvideo: Found UVC 1.00 device Digital Microscope (21cd:2602)')
IMO unsupported device should not work with uvc, but this one does.
Maybe ubuntu uses it's own version of this driver.

Second:
From alarm's modinfo
$this->bbcode_second_pass_code('', '# modinfo uvcvideo
ERROR: Module alias uvcvideo not found.')

I wonder if there is something that I've done wrong.
mszubart
 
Posts: 8
Joined: Sat Aug 25, 2012 12:50 pm

Re: [beaglebone] linux-uvc driver

Postby hydro » Mon Aug 27, 2012 12:11 pm

What's the output of $this->bbcode_second_pass_code('', 'ls /lib/modules/') ?
VDR on DockStar / Pogoplug E02: http://linux.bplaced.net/
hydro
 
Posts: 210
Joined: Wed Jun 15, 2011 2:03 pm
Location: Germany

Re: [beaglebone] linux-uvc driver

Postby mszubart » Mon Aug 27, 2012 12:14 pm

$this->bbcode_second_pass_code('', 'ls /lib/modules
ls: nie ma dostępu do /lib/modules: Nie ma takiego pliku ani katalogu
')
$this->bbcode_second_pass_quote('', 'N')o such file or directory
mszubart
 
Posts: 8
Joined: Sat Aug 25, 2012 12:50 pm

Re: [beaglebone] linux-uvc driver

Postby hydro » Mon Aug 27, 2012 12:17 pm

My bad, modules have recently moved from /lib/modules to /usr/lib/modules
$this->bbcode_second_pass_code('', '
ls /usr/lib/modules
')
?

Btw.
$this->bbcode_second_pass_code('', '
$ tar tf ArchLinuxARM-am33x-latest.tar.gz |grep uvcvideo
./lib/modules/3.2.18-1/kernel/drivers/media/video/uvc/uvcvideo.ko.gz
')
VDR on DockStar / Pogoplug E02: http://linux.bplaced.net/
hydro
 
Posts: 210
Joined: Wed Jun 15, 2011 2:03 pm
Location: Germany

Re: [beaglebone] linux-uvc driver

Postby mszubart » Mon Aug 27, 2012 12:29 pm

$this->bbcode_second_pass_code('', '# ls /usr/lib/modules
3.2.21-3-ARCH extramodules-3.2--am33x
')

Improved :)
$this->bbcode_second_pass_code('', '# ls /usr/lib/modules/ -R | grep uvc
uvc
/usr/lib/modules/3.2.21-3-ARCH/kernel/drivers/media/video/uvc:
uvcvideo.ko.gz
')

$this->bbcode_second_pass_code('', '$ tar tf ArchLinuxARM-am33x-latest.tar.gz |grep uvcvideo
./lib/modules/3.2.18-1/kernel/drivers/media/video/uvc/uvcvideo.ko.gz
./usr/src/linux-3.2.18-1/include/linux/uvcvideo.h
./usr/include/linux/uvcvideo.h
')
mszubart
 
Posts: 8
Joined: Sat Aug 25, 2012 12:50 pm

Re: [beaglebone] linux-uvc driver

Postby hydro » Mon Aug 27, 2012 12:33 pm

$this->bbcode_second_pass_code('', '
# uname -r
3.2.18-1
# ls /usr/lib/modules
3.2.21-3-ARCH
')
Running kernel does not match installed kernel (and modules). Reboot to use the new kernel.
VDR on DockStar / Pogoplug E02: http://linux.bplaced.net/
hydro
 
Posts: 210
Joined: Wed Jun 15, 2011 2:03 pm
Location: Germany

Re: [beaglebone] linux-uvc driver

Postby mszubart » Mon Aug 27, 2012 12:47 pm

This makes me wanna cry...
I haven't updated uImage on FAT partition of sdcard.
New kernel in rootfs, old kernel in memory - just perfect connection :)

And obviously camera works perfectly.
Also my feature request on github (#250) is inadequate.

Thank you for solving my problem.
mszubart
 
Posts: 8
Joined: Sat Aug 25, 2012 12:50 pm


Return to Hardware

Who is online

Users browsing this forum: No registered users and 2 guests