DigY Posted February 23, 2017 Posted February 23, 2017 Hi, I am trying to install and run the dedicated camera on OP Lite with Legacy 3.4.113 as written here: http://www.cnx-software.com/2015/09/26/how-to-use-orange-pi-camera-in-linux-with-motion/ Unfortunately /dev/video0 is not present (checked by "ls /dev/video*"). Any one got the same issue? What could be the problem?
Nikolai Asparuhov Posted February 24, 2017 Posted February 24, 2017 Could you give some more information, run: lsusb dmesg | grep usb sudo apt-get install v4l-utils, after that run v4l2-ctl --all
IgZero Posted February 24, 2017 Posted February 24, 2017 Could you give some more information, run: lsusb dmesg | grep usb sudo apt-get install v4l-utils, after that run v4l2-ctl --all ... /dev/video0 is not present ... v4l2-ctl won't help as there is no video4linux device IMHO: A problem in the vfe_v4l2 module. I created a topic with a similar problem (OS Armbian5.25), the solution isn't found yet
DigY Posted February 24, 2017 Author Posted February 24, 2017 I have downgraded (via cmd apt-get install linux-image-sun8i=5.20)to 3.4.112 as suggested by some ppl suggested root@orangepilite:~# uname -aLinux orangepilite 3.4.112-sun8i #14 SMP PREEMPT Wed Sep 14 20:29:31 CEST 2016 Now /dev/video0 is present however, altough camera is connected I' getting sensor error: root@orangepilite:~# dmesg | grep GC2035[ 44.418232] [CSI_ERR][GC2035]sensor_read err at sensor_detect![ 44.418241] [CSI_ERR][GC2035]chip found is not an target chip.
DigY Posted February 25, 2017 Author Posted February 25, 2017 Maybe it's not a fix. but solved my problem: 1. download https://dl.armbian.com/orangepilite/archive/Armbian_5.20_Orangepilite_Debian_jessie_3.4.112.7z 2. add WiFI connection: wpa_passphrase "ssid" "wirelesskey" >/etc/wpa_supplicant.conf 3. make autconnect on start-up: - nano /etc/rc.local - add line before "exit 0": sudo wpa_supplicant -B -D nl80211 -i wlan0 -c wpa_supplicant.conf - add line before "exit 0": sudo dhclient wlan0 4. reboot 5. after login run: apt-get update 6. reboot 7. after login install drivers: - sudo modprobe gc2035 - sudo modprobe vfe_v4l2 8. instal your camera program, ie: sudo apt-get install fswebcam 9. grab the pic, ie: fswebcam -r 1280x720 --no-banner image.jpg Enjoy!
IgZero Posted February 26, 2017 Posted February 26, 2017 Maybe it's not a fix. but solved my problem: 1. download https://dl.armbian.com/orangepilite/archive/Armbian_5.20_Orangepilite_Debian_jessie_3.4.112.7z 2. add WiFI connection: wpa_passphrase "ssid" "wirelesskey" >/etc/wpa_supplicant.conf 3. make autconnect on start-up: - nano /etc/rc.local - add line before "exit 0": sudo wpa_supplicant -B -D nl80211 -i wlan0 -c wpa_supplicant.conf - add line before "exit 0": sudo dhclient wlan0 4. reboot 5. after login run: apt-get update 6. reboot 7. after login install drivers: - sudo modprobe gc2035 - sudo modprobe vfe_v4l2 8. instal your camera program, ie: sudo apt-get install fswebcam 9. grab the pic, ie: fswebcam -r 1280x720 --no-banner image.jpg Enjoy! The camera ceased to work from the Armbian 5.25 version. Now I will try the 5.26 version collected from source codes
IgZero Posted February 26, 2017 Posted February 26, 2017 In version 5.26 same problem. The camera doesn't work. root@orangepipc:~# modprobe gc2035 root@orangepipc:~# modprobe vfe_v4l2 root@orangepipc:~# dmesg ...SKIP... [ 157.331945] [iSP] isp platform_id = 5! [ 157.408206] [CSI_ERR][GC2035]sensor_read err at sensor_detect! [ 157.408223] [CSI_ERR][GC2035]chip found is not an target chip. root@orangepipc:~# uname -a Linux orangepipc 3.4.113-sun8i #16 SMP PREEMPT Sat Feb 25 18:46:40 +07 2017 armv7l armv7l armv7l GNU/Linux root@orangepipc:~# cat /etc/armbian-release # PLEASE DO NOT EDIT THIS FILE BOARD=orangepipc BOARD_NAME="Orange Pi PC" VERSION=5.26 LINUXFAMILY=sun8i BRANCH=default ARCH=arm IMAGE_TYPE=stable
DigY Posted February 26, 2017 Author Posted February 26, 2017 UPDATE: autoconnect unfortunattely does not work as I thought it will. So either you need to type the lines everytime after boot or use a network manager: http://forum.odroid.com/viewtopic.php?f=52&t=25472& in terms of camera: I found that although images/photos are taken, in fact they are blank (or actually solid black)... Solution of the black image is the file format. the command can capture a good image: fswebcam -r 1600x1200 -p YUV420P --jpeg 100 --save image.jpg
IgZero Posted February 27, 2017 Posted February 27, 2017 My problem with camera is solved. See https://forum.armbian.com/index.php/topic/3613-armbian-525-on-orangepi-pc-the-gc2035-video-camera-doesnt-work/
Recommended Posts