Jump to content

USB Camera not working properly on Orange PI PC+


FredrikA

Recommended Posts

Hi 
I managed to get my usb camera taking pictures alright on Orange PI PC+ (VERSION=5.37.180112), 

$uname -a

Linux orangepipcplus 3.4.113-sun8i #4 SMP PREEMPT Wed Nov 22 13:45:28 CET 2017 armv7l armv7l armv7l GNU/Linux

And I even got the GC2035 working sort of with:
$sunxi-pio -m "PG11<1><0><1><1>"
$modprobe gc2035
$modprobe vfe_v4l2
But I have no /dev/media0 or /dev/media1. So I cannot re-focus the web camera (that supports it; Logitec C920).

 

I can re-focus my usb camera on my Orange PI Prime (VERSION=5.37.180120)

using  

$uvcdynctrl -v -d /dev/video0 --set='Focus (absolute)' $COUNT. Where i also have the /dev/media0 (or 1 if I plug in 2 cams)

So why does it not work with Orange Pi PC+? I know it is a different kernel & chipset.

Orange PI Prime says

$uname -a

Linux orangepiprime 4.14.14-sunxi64 #61 SMP Sat Jan 20 03:18:42 CET 2018 aarch64 aarch64 aarch64 GNU/Linux

(did not get a /boot/dtb tree for 4.14.15 or 4.14.16 so I hang around with the old one)

(Actually I find Orange PI Prime more mature than Orange PI PC+, with less number of crashes especially after tuning down ram speed.) 

Both are primary used for controlling 3d printers with octoprint, and taking snapshots with fswebcam.

Link to comment
Share on other sites

Thank you Igor much appreciated. Yes I got /dev/media0 (for the USB camera). 

However I got three small problems left, probably due to this image in naming is for Orange Pi PC, not Orange Pi PC+

1) how do I enable wifi? It was mostly working on the previous kernel (minor hickups a couple of times per day)

2) how do I enable the GC2035 camera? It was working on the previous kernel. Now the module is missing. I haven't compiled kernel since 2.4 but I guess I will have to dive into bitbake/yocto.

3) how do I get my eMMC back? It was working out of the box on the old kernel. (And I got the old kernel on the eMMC)

old kernel gave:

$grep mmcblk1 dmesg.old-kernel
 mmcblk1: mmc2:0001 8WPD3R 7.28 GiB
[    1.315152] mmcblk1boot0: mmc2:0001 8WPD3R partition 1 4.00 MiB
[    1.315384] mmcblk1boot1: mmc2:0001 8WPD3R partition 2 4.00 MiB
[    1.316269]  mmcblk1: p1
[    1.317898]  mmcblk1boot1: unknown partition table
[    1.319265]  mmcblk1boot0: unknown partition table
[    1.319493] mmcblk mmc2:0001: Card claimed for testing.
[    7.509553] EXT4-fs (mmcblk1p1): mounted filesystem with ordered data mode. Opts:                       (null)
[   10.316476] EXT4-fs (mmcblk1p1): re-mounted. Opts: commit=600,errors=remount-ro
but noting now.

$dmesg|grep mmcblk1

$

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines