jesusqs4 reacted to
IgZero in Armbian 5.25 on OrangePI PC: The gc2035 video camera doesn't work
After update from armbian5.23 to armbian5.25 driver for gc2035 not work. The device isn't defined.
=========== Armbian 5.25 ==============
root@orangepipc:~# ls /dev/video*
/dev/video0 /dev/video1
Where: /dev/video0 and /dev/video1 - v4l2loopback
root@orangepipc:~# cat /etc/modules
#8189es
#rfcomm
#w1-sunxi
#w1-gpio
#w1-therm
gc2035
vfe_v4l2
#sunxi-cir
v4l2loopback
root@orangepipc:~# modinfo vfe_v4l2
filename: /lib/modules/3.4.113-sun8i/kernel/drivers/media/video/sunxi-vfe/vfe_v4l2.ko
description: Video front end driver for sunxi
license: Dual BSD/GPL
author: raymonxiu
depends: videobuf-core,vfe_os,vfe_subdev,videobuf-dma-contig,cci
intree: Y
vermagic: 3.4.113-sun8i SMP preempt mod_unload modversions ARMv7 p2v8
parm: ccm:string
parm: i2c_addr:uint
parm: act_name:string
parm: act_slave:uint
parm: define_sensor_list:uint
parm: vfe_i2c_dbg:uint
parm: isp_log:uint
parm: vips:uint
root@orangepipc:~# modinfo gc2035
filename: /lib/modules/3.4.113-sun8i/kernel/drivers/media/video/sunxi-vfe/device/gc2035.ko
license: GPL
description: A low-level driver for GalaxyCore gc2035 sensors
author: @lex
author: leonardo lontra
author: raymonxiu
alias: i2c:gc2035
depends: cci,vfe_subdev
intree: Y
vermagic: 3.4.113-sun8i SMP preempt mod_unload modversions ARMv7 p2v8
parm: hres:hres=0 (640x480|1280x720|1600x1200 - 15 FPS), hres=1 (800x600|1600x1200 - 10 FPS), hres=2 (320x240|640x480|800x600 - 20 FPS), hres=3 (320x240|352x288|640x480 - 15 FPS) (default=0) (uint)
parm: mclk:mclk override (default=0) (uint)
parm: frate:frate override (default=0) (uint)
root@orangepipc:~# dmesg | grep GC2035
[ 5.938267] [CSI_ERR][GC2035]sensor_read err at sensor_detect!
[ 5.938289] [CSI_ERR][GC2035]chip found is not an target chip.
root@orangepipc:~# uname -a
Linux orangepipc 3.4.113-sun8i #28 SMP PREEMPT Thu Feb 2 02:01:28 CET 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.25
LINUXFAMILY=sun8i
BRANCH=default
ARCH=arm
IMAGE_TYPE=stable
root@orangepipc:~#
================================
Under armbian5.23 the gc2035 driver works. The device is defined.
=========== Armbian 5.23 ==============
root@orangepipc:~# ls /dev/video*
/dev/video0 /dev/video1 /dev/video2
Where: /dev/video0 and /dev/video1 - v4l2loopback, /dev/video2 - gc2035
root@orangepipc:~# cat /etc/modules
#8189es
#gpio_sunxi
#w1-sunxi
#w1-gpio
#w1-therm
gc2035
vfe_v4l2
#sunxi-cir
v4l2loopback
root@orangepipc:~# modinfo vfe_v4l2
filename: /lib/modules/3.4.112-sun8i/kernel/drivers/media/video/sunxi-vfe/vfe_v4l2.ko
description: Video front end driver for sunxi
license: Dual BSD/GPL
author: raymonxiu
depends: videobuf-core,vfe_os,vfe_subdev,videobuf-dma-contig,cci
intree: Y
vermagic: 3.4.112-sun8i SMP preempt mod_unload modversions ARMv7 p2v8
parm: ccm:string
parm: i2c_addr:uint
parm: act_name:string
parm: act_slave:uint
parm: define_sensor_list:uint
parm: vfe_i2c_dbg:uint
parm: isp_log:uint
parm: vips:uint
root@orangepipc:~# modinfo gc2035
filename: /lib/modules/3.4.112-sun8i/kernel/drivers/media/video/sunxi-vfe/device/gc2035.ko
license: GPL
description: A low-level driver for GalaxyCore gc2035 sensors
author: @lex
author: leonardo lontra
author: raymonxiu
alias: i2c:gc2035
depends: cci,vfe_subdev
intree: Y
vermagic: 3.4.112-sun8i SMP preempt mod_unload modversions ARMv7 p2v8
parm: hres:hres=0 (640x480|1280x720|1600x1200 - 15 FPS), hres=1 (800x600|1600x1200 - 10 FPS), hres=2 (320x240|640x480|800x600 - 20 FPS), hres=3 (320x240|352x288|640x480 - 15 FPS) (default=0) (uint)
parm: mclk:mclk override (default=0) (uint)
parm: frate:frate override (default=0) (uint)
root@orangepipc:~# dmesg | grep GC2035
[ 5.353480] [CSI][GC2035]V4L2_IDENT_SENSOR=2035
[ 5.780057] [CSI][GC2035]disalbe oe!
root@orangepipc:~# uname -a
Linux orangepipc 3.4.112-sun8i #10 SMP PREEMPT Sun Oct 23 16:06:55 CEST 2016 armv7l GNU/Linux
root@orangepipc:~# cat /etc/armbian-release
# PLEASE DO NOT EDIT THIS FILE
BOARD=orangepipc
BOARD_NAME="Orange Pi PC"
VERSION=5.23
LINUXFAMILY=sun8i
BRANCH=default
ARCH=arm
root@orangepipc:~#
================================
P.S.: Settings of parameters in section [csi0] are identical in both versions of the orangepipc.fex file