UVC video driver

Here for general support for E series TVs, request and problem solve area.

yepp
Posts: 43
Joined: Sat Oct 08, 2011 1:06 pm

Re: UVC video driver

Post by yepp »

g_webcam.ko not working
maybe this can halp: http://www.spinics.net/lists/linux-usb/msg34573.html

Code: Select all

g_webcam: Unknown symbol usb_gadget_register_driver (err 0)
g_webcam: Unknown symbol usb_gadget_unregister_driver (err 0)
VDLinux#> lsmod
pwc 69112 0 - Live 0xbf408000
gspca_main 18112 0 - Live 0xbf3f4000
ir_common 2988 0 - Live 0xbf3df000
ir_core 8324 1 ir_common, Live 0xbf3d7000
uvcvideo 47252 0 - Live 0xbf3c3000
usbvideo 18284 0 - Live 0xbf3bc000
v4l2_int_device 1416 0 - Live 0xbf3b9000
v4l2_common 11756 0 - Live 0xbf3b4000
videodev 32792 5 pwc,gspca_main,uvcvideo,usbvideo,v4l2_common, Live 0xbf3a6000
v4l1_compat 11204 2 uvcvideo,videodev, Live 0xbf3a1000
nfs 120484 0 - Live 0xbf379000
lockd 48936 1 nfs, Live 0xbf368000
sunrpc 139160 3 nfs,lockd, Live 0xbf341000
fuse 46364 0 - Live 0xbf330000
pty 4572 0 [permanent], Live 0xbf31c000
devpts 3440 1 pty, Live 0xbf316000
hid_microsoft 2032 0 - Live 0xbf310000
mousedev 7248 0 - Live 0xbf309000
evdev 5576 2 - Live 0xbf302000
usbhid 12872 0 - Live 0xbf2f9000
hid 31240 2 hid_microsoft,usbhid, Live 0xbf2ec000
rtnet5572sta 31400 2 - Live 0xbf2df000
rt5572sta 1295528 1 rtnet5572sta, Live 0xbf1a0000 (P)
rtutil5572sta 30436 2 rtnet5572sta,rt5572sta, Live 0xbf196000
usb_storage 30272 0 - Live 0xbf189000
ehci_hcd 47852 0 - Live 0xbf178000
usbcore 108904 10 pwc,gspca_main,uvcvideo,usbvideo,usbhid,rtnet5572sta,rtutil5572sta,usb_storage,ehci_hcd, Live 0xbf158000
tntfs 363728 0 - Live 0xbf0fa000 (P)
mdrv_emac 12684 0 - Live 0xbf0f1000 (P)
samsung_mstar 494248 0 - Live 0xbf066000
samsung_mali 83468 18 samsung_mstar, Live 0xbf04c000
rfs_fat 202648 7 - Live 0xbf015000 (P)
rfs_glue 61548 1 rfs_fat, Live 0xbf000000 (P)
UPD: try compile with patch drivers/usb/gadget/Kconfig. the same, can't insmod g_webcam.ko

yepp
Posts: 43
Joined: Sat Oct 08, 2011 1:06 pm

Re: UVC video driver

Post by yepp »

something missing...
pwc module seem to work, but no /dev/video0 device appears

Code: Select all

pwc: Philips webcam module version 10.0.13 loaded.
pwc: Supports Philips PCA645/646, PCVC675/680/690, PCVC720[40]/730/740/750 & PCVC830/840.
pwc: Also supports the Askey VC010, various Logitech Quickcams, Samsung MPC-C10 and MPC-C30,
pwc: the Creative WebCam 5 & Pro Ex, SOTEC Afina Eye and Visionite VCS-UC300 and VCS-UM100.
Philips webcam 1-1.2:1.0: usb_probe_interface
Philips webcam 1-1.2:1.0: usb_probe_interface - got id
pwc: Logitech QuickCam 4000 Pro USB webcam detected.
pwc: Registered as video0.
usb 1-1: clear tt buffer port 2, a3 ep0 t80008d42
usb 1-1: clear tt buffer port 2, a3 ep0 t80008d42
input: PWC snapshot button as /devices/platform/Mstar-ehci-2.1/usb1/1-1/1-1.2/input/input2
Philips webcam 1-1.2:1.1: usb_probe_interface
Philips webcam 1-1.2:1.1: usb_probe_interface - got id
Philips webcam 1-1.2:1.2: usb_probe_interface
Philips webcam 1-1.2:1.2: usb_probe_interface - got id
usbcore: registered new interface driver Philips webcam
pwc mod ld

yepp
Posts: 43
Joined: Sat Oct 08, 2011 1:06 pm

Re: UVC video driver

Post by yepp »

it seems dummy_hcd.ko needed but how to compile it? cant find it in menuconfig.

yepp
Posts: 43
Joined: Sat Oct 08, 2011 1:06 pm

Re: UVC video driver

Post by yepp »

compiled dummy_hcd and now g_webcam on place. but no /dev/video0 device.

Code: Select all

VDLinux#> lsmod
pwc 69112 0 - Live 0xbf444000
g_webcam 16688 0 - Live 0xbf43a000
ir_common 2988 0 - Live 0xbf3f1000
ir_core 8324 1 ir_common, Live 0xbf3e9000
usbvideo 18284 0 - Live 0xbf3e2000
v4l2_int_device 1416 0 - Live 0xbf3df000
v4l2_common 11756 0 - Live 0xbf3da000
uvcvideo 47252 0 - Live 0xbf3c9000
videodev 32792 5 pwc,g_webcam,usbvideo,v4l2_common,uvcvideo, Live 0xbf3bb000
v4l1_compat 11204 2 uvcvideo,videodev, Live 0xbf3b6000
dummy_hcd 10216 1 g_webcam, Live 0xbf3a4000
nfs 120484 0 - Live 0xbf379000
lockd 48936 1 nfs, Live 0xbf368000
sunrpc 139160 3 nfs,lockd, Live 0xbf341000
fuse 46364 0 - Live 0xbf330000
pty 4572 0 [permanent], Live 0xbf31c000
devpts 3440 1 pty, Live 0xbf316000
hid_microsoft 2032 0 - Live 0xbf310000
mousedev 7248 0 - Live 0xbf309000
evdev 5576 2 - Live 0xbf302000
usbhid 12872 0 - Live 0xbf2f9000
hid 31240 2 hid_microsoft,usbhid, Live 0xbf2ec000
rtnet5572sta 31400 2 - Live 0xbf2df000
rt5572sta 1295528 1 rtnet5572sta, Live 0xbf1a0000 (P)
rtutil5572sta 30436 2 rtnet5572sta,rt5572sta, Live 0xbf196000
usb_storage 30272 0 - Live 0xbf189000
ehci_hcd 47852 0 - Live 0xbf178000
usbcore 108904 10 pwc,usbvideo,uvcvideo,dummy_hcd,usbhid,rtnet5572sta,rtutil5572sta,usb_storage,ehci_hcd, Live 0xbf158000
tntfs 363728 0 - Live 0xbf0fa000 (P)
mdrv_emac 12684 0 - Live 0xbf0f1000 (P)
samsung_mstar 494248 0 - Live 0xbf066000
samsung_mali 83468 18 samsung_mstar, Live 0xbf04c000
rfs_fat 202648 7 - Live 0xbf015000 (P)
rfs_glue 61548 1 rfs_fat, Live 0xbf000000 (P)

User avatar
juusso
SamyGO Moderator
Posts: 10124
Joined: Sun Mar 07, 2010 6:20 pm

Re: UVC video driver

Post by juusso »

well, at least compilation is ok on your side :)
LE40B653T5W,UE40D6750,UE65Q8C
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE

yepp
Posts: 43
Joined: Sat Oct 08, 2011 1:06 pm

Re: UVC video driver

Post by yepp »

juuso wrote:well, at least compilation is ok on your side :)
yes. thank you for how to.
could you compile input-core.ko(can't find in menuconfig). on mine openwrt router, lsmod output has

Code: Select all

input_core             20016  2 uvcvideo
maybe on TV input-core.ko needed too.

User avatar
juusso
SamyGO Moderator
Posts: 10124
Joined: Sun Mar 07, 2010 6:20 pm

Re: UVC video driver

Post by juusso »

i can`t find any too. But seems compared to kernel v2.4, for 2.6 here is no input core in menuconfig. We have input devices support and i guess if you chose one of keyboard modules to be compiled, input_core will be compiled in. Check...
LE40B653T5W,UE40D6750,UE65Q8C
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE

VBMek
SamyGO Project Donor
Posts: 1
Joined: Sat Aug 22, 2015 8:28 pm

Re: UVC video driver

Post by VBMek »

Hi,

I'm new here and this thread is a bit old so maybe this can help you if you are sill looking for answer (its part of script from my NAS)

Code: Select all

mknod /dev/video0 c 81 0
chmod 666 /dev/video0
insmod driver/./v4l1-compat.ko
insmod driver/./videodev.ko
insmod driver/./v4l2-common.ko
insmod driver/./v4l2-int-device.ko
insmod driver/./videobuf-core.ko
insmod driver/./uvcvideo.ko
uvccapture -b -v -d/dev/video0 -x640 -y480 -q90 -w -psnap.jpg -t1

Post Reply

Return to “[E] Support”