Приветствую, установил прошивку WL500gpv2-1.9.2.7-rtn-r2393M.trx на DIR320 для вебки
При старте моя UVC определяется как:
T: Bus=01 Lev=02 Prnt=02 Port=03 Cnt=01 Dev#= 3 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=05c8 ProdID=0318 Rev= 1.36
S: Manufacturer=Ricoh Company Ltd.
S: Product=USB2.0 Camera
S: SerialNumber=145839811AP0B00003KBH65VX
C:* #Ifs= 2 Cfg#= 1 Atr=80 MxPwr=200mA
A: FirstIf#= 0 IfCount= 2 Cls=0e(video) Sub=03 Prot=00
I:* If#= 0 Alt= 0 #EPs= 1 Cls=0e(video) Sub=01 Prot=00 Driver=uvcvideo
E: Ad=81(I) Atr=03(Int.) MxPS= 16 Ivl=16ms
I:* If#= 1 Alt= 0 #EPs= 0 Cls=0e(video) Sub=02 Prot=00 Driver=uvcvideo
I: If#= 1 Alt= 1 #EPs= 1 Cls=0e(video) Sub=02 Prot=00 Driver=uvcvideo
E: Ad=82(I) Atr=05(Isoc) MxPS=3072 Ivl=125us
Но картинку не показывает ни при каких настройках. В то же время на компе и другом роутере с OpenWRT 15 работает нормально. В чем может быть причина? Может что-то обновить в прошивке надо?
Хм, стала показывать когда вручную запустил:
insmod videodev
insmod input-core
insmod v4l2-common
insmod uvcvideo
mjpg_streamer -b -p /var/run/rcamd.pid -i "input_uvc.so -r 1280x720 -f 25" -o "output_http.so -p 7776"
Правда стример ругается в логе но стримит как положено:
Code:
Jan 1 02:00:23 kernel: Linux video capture interface: v2.00
Jan 1 02:00:45 kernel: uvcvideo: Found UVC 1.00 device USB2.0 Camera (05c8:0318)
Jan 1 02:00:45 kernel: input: USB2.0 Camera as /class/input/input0
Jan 1 02:00:45 kernel: usbcore: registered new interface driver uvcvideo
Jan 1 02:00:45 kernel: USB Video Class driver (v0.1.0)
Jan 1 02:01:02 MJPG-streamer [324]: starting application
Jan 1 02:01:02 MJPG-streamer [324]: enabling daemon mode
Jan 1 02:01:02 MJPG-streamer [326]: MJPG Streamer Version.: 2.0
Jan 1 02:01:02 MJPG-streamer [326]: Using V4L2 device.: /dev/video0
Jan 1 02:01:02 MJPG-streamer [326]: Desired Resolution: 1280 x 720
Jan 1 02:01:02 MJPG-streamer [326]: Frames Per Second.: 25
Jan 1 02:01:02 MJPG-streamer [326]: Format............: MJPEG
Jan 1 02:01:02 MJPG-streamer [326]: www-folder-path...: disabled
Jan 1 02:01:02 MJPG-streamer [326]: HTTP TCP port.....: 7776
Jan 1 02:01:02 MJPG-streamer [326]: username:password.: disabled
Jan 1 02:01:02 MJPG-streamer [326]: commands..........: enabled
Jan 1 02:01:02 MJPG-streamer [326]: starting input plugin
Jan 1 02:01:02 MJPG-streamer [326]: starting output plugin: output_http.so (ID: 00)
Jan 1 02:01:02 kernel: mjpg_streamer: page allocation failure. order:5, mode:0x1
Jan 1 02:01:02 kernel: Call Trace:
Jan 1 02:01:02 kernel: [<8000eaa8>] dump_stack+0x8/0x34
Jan 1 02:01:02 kernel: [<80061f88>] __alloc_pages+0x228/0x354
Jan 1 02:01:02 kernel: [<8006213c>] __get_free_pages+0x2c/0xa0
Jan 1 02:01:02 kernel: [<80012eb0>] dma_alloc_coherent+0x60/0xd0
Jan 1 02:01:02 kernel: [<c01fbb8c>] uvc_alloc_urb_buffers+0xbc/0x204 [uvcvideo]
Jan 1 02:01:02 kernel: [<c01fbe48>] uvc_init_video+0x174/0x528 [uvcvideo]
Jan 1 02:01:02 kernel: [<c01fa980>] uvc_v4l2_do_ioctl+0x590/0x13f4 [uvcvideo]
Jan 1 02:01:02 kernel: [<c0162358>] video_usercopy+0x224/0x3fc [videodev]
Jan 1 02:01:02 kernel: [<8009a04c>] vfs_ioctl+0x74/0x37c