WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: USB WEBCAM  (Read 3040 times)

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 709
USB WEBCAM
« on: January 15, 2017, 02:59:59 PM »
Hello community, this is my first attempt to get some webcam to work with picore.
I am not an expert on compiling modules to kernels.

piCore-8.1.3.zip

uname -a
Linux box 4.4.39-piCore+ #1 Mon Dec 26 11:48:10 UTC 2016 armv6l GNU/Linux

Have seen that this file could help but can't find any of these files with in this archive.
http://tinycorelinux.net/8.x/armv6/releases/RPi/src/kernel/4.4.39-piCore%2B_modules.tar.xz

lsusb
Bus 001 Device 008: ID 090c:937b Silicon Motion, Inc. - Taiwan (formerly Feiya Technology Corp.) Silicon Motion Camera

I have my arch linux laptop and when i insert the webcam, and can see what the driver loads.
filename:       /lib/modules/4.8.13-1-ARCH/kernel/drivers/media/usb/uvc/uvcvideo.ko.gz
depends:        videodev,videobuf2-core,usbcore,videobuf2-v4l2,videobuf2-vmalloc,media

http://www.ideasonboard.org/uvc/

If some one could just direct me to the right path to some solution i will be very happy.
I have also attached one stepper motor to the gpio pins and have compiled my own program to
rotate the stepper motor. Works very well. Now i have to make an extension of the library and my program.

Thinking of using ffmpeg ffserver to serve the new /dev/video0 device when i see it in my picore.

Thanks a lot in advance.
//Patrik
« Last Edit: January 15, 2017, 03:18:49 PM by patrikg »

Offline tatemono

  • Newbie
  • *
  • Posts: 18
Re: USB WEBCAM
« Reply #1 on: January 17, 2017, 10:47:34 AM »
Hello community, this is my first attempt to get some webcam to work with picore.
I am not an expert on compiling modules to kernels.

piCore-8.1.3.zip

uname -a
Linux box 4.4.39-piCore+ #1 Mon Dec 26 11:48:10 UTC 2016 armv6l GNU/Linux

Have seen that this file could help but can't find any of these files with in this archive.
http://tinycorelinux.net/8.x/armv6/releases/RPi/src/kernel/4.4.39-piCore%2B_modules.tar.xz

lsusb
Bus 001 Device 008: ID 090c:937b Silicon Motion, Inc. - Taiwan (formerly Feiya Technology Corp.) Silicon Motion Camera

I have my arch linux laptop and when i insert the webcam, and can see what the driver loads.
filename:       /lib/modules/4.8.13-1-ARCH/kernel/drivers/media/usb/uvc/uvcvideo.ko.gz
depends:        videodev,videobuf2-core,usbcore,videobuf2-v4l2,videobuf2-vmalloc,media

http://www.ideasonboard.org/uvc/

If some one could just direct me to the right path to some solution i will be very happy.
I have also attached one stepper motor to the gpio pins and have compiled my own program to
rotate the stepper motor. Works very well. Now i have to make an extension of the library and my program.

Thinking of using ffmpeg ffserver to serve the new /dev/video0 device when i see it in my picore.

Thanks a lot in advance.
//Patrik

@patrikg

I found "uvcvideo.ko" in 4.4.39-piCore+_modules.tar.xz.  Its pathname is "modules/4.4.39-piCore+/kernel/drivers/media/usb/uvc/uvcvideo.ko" after un-archiving 4.4.39-piCore+_modules.tar.xz.
Please put the driver, uvcvideo.ko, to the appropriate directory, "/usr/local/lib/modules/4.4.39-piCore+/kernel/drivers/media/usb/uvc/", by making TCZ extension file and update onboot.lst accordingly.

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 709
Re: USB WEBCAM
« Reply #2 on: January 18, 2017, 02:19:01 PM »
Thx a lot,

My Linux eye didn't catch that.

No I have made an tcz file with the file media.ko and uvcvideo.ko and directory video4linux.
And it's working... but it's not fast...i using the 256M First REV PI.
Using ffmpeg and ffserver.
But tweaking the ffserver.conf.

Have to investigate little more to think a getting it right...with bitrate and so on.
« Last Edit: January 18, 2017, 02:22:50 PM by patrikg »