This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Beaglebonebone black USB Camera doesnt work

Hi everyone,

I downloaded AM335x linux software development kit from below link.

http://software-dl.ti.com/processor-sw/esd/PROCESSOR-SDK-LINUX-AM335X/latest/index_FDS.html

Problem is rootfs has v4l2 and other usb modules but when I connected my usb camera to beagle there is no /dev/mouse or /dev/v4l device. How can I load these drivers to handle usb camera?


Not: When I connected the camera, I can see the filesystem mounts it. I guess problem is modules are not loaded.I tried to load them with depmod -a, insmod but actually nothing happened.


Best Regards,

Ümit.

  • Hi,

    You should load the v4l2 & usb drivers with either insmod or modprobe.

    After that refer to the following link for example gst pipelines: processors.wiki.ti.com/.../ARM_Multimedia_Peripheral_Examples

    Best Regards,
    Yordan
  • Thank you for your answer Yordan.

    But my problem is I coulndt install drivers. How can I load them ? 

    I found that drivers are at /lib/modules/'uname -r'/kernel/drivers/media 

    v4l2 and usb drivers are here, but I couldnt load them with insmod or modprobe.

    Best Regards,

    Ümit

  • Hi,

    Can you share the console output, when you try insmod or modprobe?

    Best Regards,
    Yordan
  • Hi,

    Now, I installed modules with insmod and below is my lsmod output. But problem still occurs there is no /dev/video0 or /dev/v4l file.

    root@am335x-evm:/dev# lsmod
    Module Size Used by
    ipv6 305811 24
    gspca_main 23792 0
    uvcvideo 72182 0
    videobuf2_core 40309 1 uvcvideo
    v4l2_common 5582 1 videobuf2_core
    videodev 137302 4 uvcvideo,gspca_main,v4l2_common,videobuf2_core
    media 14819 2 uvcvideo,videodev
    videobuf2_vmalloc 4987 1 uvcvideo
    videobuf2_memops 2084 1 videobuf2_vmalloc
    v4l2_dv_timings 23498 0
    cryptodev 33670 0
    musb_dsps 7797 0
    musb_hdrc 69474 1 musb_dsps
    udc_core 11612 1 musb_hdrc
    usbcore 190489 3 uvcvideo,musb_hdrc,gspca_main
    snd_soc_evm 5106 0
    pm33xx 4633 0
    omapdrm_pvr 336001 0
    omap_rng 4470 0
    rng_core 7728 2 omap_rng
    musb_am335x 1240 0
    rtc_omap 7578 1
    omap_wdt 4479 0
    cpufreq_voltdm 3409 0
    snd_soc_hdmi_codec 2178 1
    leds_gpio 3445 0
    thermal_sys 39523 1 cpufreq_voltdm
    hwmon 3955 1 thermal_sys

    After each reboot, I needed to insmod all modules in /lib/modules.../kernel/drivers/media then I added them to end of /etc/init.d/rc file, is this correct?


    I think linux knows camera.
    Dmesg output:

    [ 8.241166] media: Linux media interface: v0.10
    [ 8.273591] usb 1-1.4: New USB device found, idVendor=0ac8, idProduct=303b
    =0 USB device strings: Mfr=1, Product=2, SerialNumber--More-- (93% of 22021 bytes)
    [ 8.293997] Linux video capture interface: v2.00
    [ 8.301320] usb 1-1.4: Product: PC Camera
    [ 8.310789] usb 1-1.4: Manufacturer: Vimicro Corp.
    [ 8.367591] usbcore: registered new interface driver usbhid
    [ 8.383957] usbhid: USB HID core driver
    [ 8.394585] usbcore: registered new interface driver usbkbd
    input0 usb1/1-1/1-1.3/1-1.3:1.0/0003:0E8F:0040.0001/input/--More-- (95% of 22021 bytes)
    [ 8.455453] usbcore: registered new interface driver uvcvideo
    [ 8.461250] USB Video Class driver (1.1.1)
    [ 8.492679] gspca_main: v2.14.0 registered
    ASIA USB Keyboard] on usb-musb-hdrc.1.auto-1.3/input0: USB HID v1.10 Keyboard [G--More-- (96% of 22021 bytes)
    input1 usb1/1-1/1-1.3/1-1.3:1.1/0003:0E8F:0040.0002/input/--More-- (97% of 22021 bytes)
    IA USB Keyboard] on usb-musb-hdrc.1.auto-1.3/input1ut: USB HID v1.10 Device [GAS--More-- (98% of 22021 bytes)
    [ 8.801310] net eth0: initializing cpsw version 1.12 (0)
    [ 8.809141] net eth0: phy found : id is : 0x7c0f1

    Why this /dev/video0 is not seen?

    Best Regards,
    Ümit.
  • Please check if your camera is supported here: www.ideasonboard.org/.../
  • Hi,

    Ubuntu and internal beaglebone black linux recognize it and creates /dev/video0 . I also disabled uvcvideo and only gspca driver is loaded result is same. I can not understand why linux doesnt recognize usb cam? When I plugged it to board it gives:

    [ 314.840164] usb 1-1: USB disconnect, device number 2
    [ 319.801875] usb 1-1: new full-speed USB device number 3 using musb-hdrc
    [ 319.943626] usb 1-1: New USB device found, idVendor=0ac8, idProduct=303b
    [ 319.950403] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
    [ 319.958294] usb 1-1: Product: PC Camera
    [ 319.962249] usb 1-1: Manufacturer: Vimicro Corp.

    Is it resolved when I build all modules to kernel on menuconfig ?

    Best Regards,
    Ümit.
  • hi,

    All is same with the article, and I think both gspca and uvc was selected on kernel.

    Ümit.
  • I solved problem with rebuilding sdk kernel and add gspca and zc3xx drivers as module. After building I insmod them and now it is working.
    Thank you.

    Best Regards,
    Ümit.