Trying to install mjpegstreamer on Flint

I am trying to install mjpegstreamer:

But when installing kmod-video-uvc I am getting an error:

root@GL-AX1800:~# opkg install kmod-video-uvc
Installing kmod-video-uvc (4.4.60-1) to root...
Downloading http://download.gl-inet.com/releases/qsdk_v11/kmod-3.6/ipq60xx/kmod-video-uvc_4.4.60-1_ipq.ipk
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-video-uvc:
 *      kmod-dma-buf
 * opkg_install_cmd: Cannot install package kmod-video-uvc.

Router has v3.213. opkg update was done. Any idea?

Firstly try running opkg update again as they might have added new packages.
Else you will have to compile the package yourself.

opkg update was done multiple times.

@alzhao or @hansome wondering if it would be possible to include this missing package?

Just forge a ipk named kmod-dma-buf for dependency issue. CONFIG_DMA_SHARED_BUFFER is enabled by default, so actually the kmod-dma-buf ipk is a meta ipk without any .ko inside.
Please use opkg update again.

Cool worked now. However I don’t have /dev/video0, maybe something is still missing?

Here is dmesg after I tried to plug/unplug the webcam couple of times:

[1284999.676383] br-lan: port 1(eth1) entered disabled state
[1285494.581328] usb 1-1: USB disconnect, device number 2
[1285570.199331] usb 1-1: new high-speed USB device number 3 using xhci-hcd
[1351522.493789] eth1: PHY Link up speed: 10
[1351522.494177] br-lan: port 1(eth1) entered forwarding state
[1351522.496824] br-lan: port 1(eth1) entered forwarding state
[1351524.493349] br-lan: port 1(eth1) entered forwarding state
[1351524.493734] eth1: PHY Link is down
[1351524.498348] br-lan: port 1(eth1) entered disabled state
[1351526.493989] eth1: PHY Link up speed: 1000
[1351526.494072] br-lan: port 1(eth1) entered forwarding state
[1351526.497023] br-lan: port 1(eth1) entered forwarding state
[1351528.493315] br-lan: port 1(eth1) entered forwarding state
[1351712.007956] Linux video capture interface: v2.00
[1352834.254438] usb 1-1: USB disconnect, device number 3
[1352850.701482] usb 1-1: new high-speed USB device number 5 using xhci-hcd
[1353410.679686] usb 1-1: USB disconnect, device number 5
[1353417.766410] usb 1-1: new high-speed USB device number 6 using xhci-hcd
[1353421.333433] usb 1-1: USB disconnect, device number 6
[1353443.036210] usb 1-1: new high-speed USB device number 7 using xhci-hcd
[1354122.110814] usb 1-1: USB disconnect, device number 7
[1354142.829348] usb 1-1: new high-speed USB device number 8 using xhci-hcd

Seems that the video camera cannot be mounted.

Strange, I tried it with two different cameras. These are working on laptops, NAS with mjpeg streamer etc. Anything can be done?

Please remove kmod-video-uvc related driver, connect the cameras, what’s the dmesg like?
And please print this

cat /sys/kernel/debug/usb/devices

dmesg is the same after removing the driver and unplug/plug:

[1351526.494072] br-lan: port 1(eth1) entered forwarding state
[1351526.497023] br-lan: port 1(eth1) entered forwarding state
[1351528.493315] br-lan: port 1(eth1) entered forwarding state
[1351712.007956] Linux video capture interface: v2.00
[1352834.254438] usb 1-1: USB disconnect, device number 3
[1352850.701482] usb 1-1: new high-speed USB device number 5 using xhci-hcd
[1353410.679686] usb 1-1: USB disconnect, device number 5
[1353417.766410] usb 1-1: new high-speed USB device number 6 using xhci-hcd
[1353421.333433] usb 1-1: USB disconnect, device number 6
[1353443.036210] usb 1-1: new high-speed USB device number 7 using xhci-hcd
[1354122.110814] usb 1-1: USB disconnect, device number 7
[1354142.829348] usb 1-1: new high-speed USB device number 8 using xhci-hcd
[1358778.810505] usb 1-1: USB disconnect, device number 8
[1358781.856316] usb 1-1: new high-speed USB device number 9 using xhci-hcd
root@GL-AX1800:~# cat /sys/kernel/debug/usb/devices

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=5000 MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 3.00 Cls=09(hub  ) Sub=00 Prot=03 MxPS= 9 #Cfgs=  1
P:  Vendor=1d6b ProdID=0003 Rev= 4.04
S:  Manufacturer=Linux 4.4.60 xhci-hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=xhci-hcd.0.auto
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 4.04
S:  Manufacturer=Linux 4.4.60 xhci-hcd
S:  Product=xHCI Host Controller
S:  SerialNumber=xhci-hcd.0.auto
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  9 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=046d ProdID=0823 Rev= 0.10
S:  SerialNumber=420D22A0
C:* #Ifs= 4 Cfg#= 1 Atr=80 MxPwr=500mA
A:  FirstIf#= 0 IfCount= 2 Cls=01(audio) Sub=02 Prot=00
A:  FirstIf#= 2 IfCount= 2 Cls=0e(video) Sub=03 Prot=00
I:* If#= 0 Alt= 0 #EPs= 0 Cls=01(audio) Sub=01 Prot=00 Driver=(none)
I:* If#= 1 Alt= 0 #EPs= 0 Cls=01(audio) Sub=02 Prot=00 Driver=(none)
I:  If#= 1 Alt= 1 #EPs= 1 Cls=01(audio) Sub=02 Prot=00 Driver=(none)
E:  Ad=86(I) Atr=05(Isoc) MxPS=  68 Ivl=1ms
I:  If#= 1 Alt= 2 #EPs= 1 Cls=01(audio) Sub=02 Prot=00 Driver=(none)
E:  Ad=86(I) Atr=05(Isoc) MxPS= 100 Ivl=1ms
I:  If#= 1 Alt= 3 #EPs= 1 Cls=01(audio) Sub=02 Prot=00 Driver=(none)
E:  Ad=86(I) Atr=05(Isoc) MxPS= 132 Ivl=1ms
I:* If#= 2 Alt= 0 #EPs= 1 Cls=0e(video) Sub=01 Prot=00 Driver=(none)
E:  Ad=87(I) Atr=03(Int.) MxPS=  16 Ivl=16ms
I:* If#= 3 Alt= 0 #EPs= 0 Cls=0e(video) Sub=02 Prot=00 Driver=(none)
I:  If#= 3 Alt= 1 #EPs= 1 Cls=0e(video) Sub=02 Prot=00 Driver=(none)
E:  Ad=81(I) Atr=05(Isoc) MxPS= 192 Ivl=125us
I:  If#= 3 Alt= 2 #EPs= 1 Cls=0e(video) Sub=02 Prot=00 Driver=(none)
E:  Ad=81(I) Atr=05(Isoc) MxPS= 384 Ivl=125us
I:  If#= 3 Alt= 3 #EPs= 1 Cls=0e(video) Sub=02 Prot=00 Driver=(none)
E:  Ad=81(I) Atr=05(Isoc) MxPS= 512 Ivl=125us
I:  If#= 3 Alt= 4 #EPs= 1 Cls=0e(video) Sub=02 Prot=00 Driver=(none)
E:  Ad=81(I) Atr=05(Isoc) MxPS= 640 Ivl=125us
I:  If#= 3 Alt= 5 #EPs= 1 Cls=0e(video) Sub=02 Prot=00 Driver=(none)
E:  Ad=81(I) Atr=05(Isoc) MxPS= 800 Ivl=125us
I:  If#= 3 Alt= 6 #EPs= 1 Cls=0e(video) Sub=02 Prot=00 Driver=(none)
E:  Ad=81(I) Atr=05(Isoc) MxPS= 944 Ivl=125us
I:  If#= 3 Alt= 7 #EPs= 1 Cls=0e(video) Sub=02 Prot=00 Driver=(none)
E:  Ad=81(I) Atr=05(Isoc) MxPS=1280 Ivl=125us
I:  If#= 3 Alt= 8 #EPs= 1 Cls=0e(video) Sub=02 Prot=00 Driver=(none)
E:  Ad=81(I) Atr=05(Isoc) MxPS=1600 Ivl=125us
I:  If#= 3 Alt= 9 #EPs= 1 Cls=0e(video) Sub=02 Prot=00 Driver=(none)
E:  Ad=81(I) Atr=05(Isoc) MxPS=1984 Ivl=125us
I:  If#= 3 Alt=10 #EPs= 1 Cls=0e(video) Sub=02 Prot=00 Driver=(none)
E:  Ad=81(I) Atr=05(Isoc) MxPS=3060 Ivl=125us
I:  If#= 3 Alt=11 #EPs= 1 Cls=0e(video) Sub=02 Prot=00 Driver=(none)
E:  Ad=81(I) Atr=05(Isoc) MxPS=3060 Ivl=125us

And here it is the Logitech webcam:

root@GL-AX1800:~# lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 009: ID 046d:0823 Logitech, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@GL-AX1800:~# lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
    |__ Port 1: Dev 9, If 0, Class=Audio, Driver=, 480M
    |__ Port 1: Dev 9, If 1, Class=Audio, Driver=, 480M
    |__ Port 1: Dev 9, If 2, Class=Video, Driver=, 480M
    |__ Port 1: Dev 9, If 3, Class=Video, Driver=, 480M

the driver kmod-video-uvc is broken, need some time to backport.

2 Likes

thanks for working on this! wondering if you know when this will be backported?

Just backported kmod-video-uvc, please do “opkg update & opkg install kmod-video-uvc” to have a try, not sure if it works with your camera.