A13 OlinuXino-Micro CSI driver

Started by elijah, January 14, 2015, 02:37:01 PM

Previous topic - Next topic

elijah

hello!
I would use a CSI camera ov7670 on debian
then I activate the CSI script.fex

but when I load the module sun4i_csi0

he returns


elijah@a13om:~$ sudo modprobe videobuf-core
elijah@a13om:~$ sudo modprobe videobuf-dma-contig
elijah@a13om:~$ sudo modprobe ov7670
elijah@a13om:~$ sudo modprobe sun4i_csi0
elijah@a13om:~$ dmesg
...
[ 2345.115164] [CSI]Welcome to CSI driver
[ 2345.120523] [CSI]csi_init
[ 2345.144454] incomplete xfer (0x20)
[ 2345.164460] ov7670: probe of 2-0021 failed with error -70
[ 2345.177166] [CSI_ERR]Error registering v4l2 subdevice,input_num = 0
[ 2345.186760] [CSI_ERR]failed to install


camera works on cubiebord 2

JohnS


elijah

#2
Quote from: JohnS on January 14, 2015, 03:24:24 PM
fex may be wrong

John

Thanks for your reply.

this is my csi section of fex


[csi0_para]
csi_used = 1
csi_mode = 0
csi_dev_qty = 1
csi_stby_mode = 1
csi_mname = "ov7670"
csi_twi_id = 2
csi_twi_addr = 0x42
csi_if = 0
csi_vflip = 0
csi_hflip = 1
csi_iovdd = ""
csi_avdd = ""
csi_dvdd = ""
csi_flash_pol = 1
csi_mname_b = ""
csi_twi_id_b = 1
csi_twi_addr_b = 0x78
csi_if_b = 0
csi_vflip_b = 1
csi_hflip_b = 0
csi_iovdd_b = ""
csi_avdd_b = ""
csi_dvdd_b = ""
csi_flash_pol_b = 1
csi_pck = port:PE00<3><default><default><default>
csi_ck = port:PE01<3><default><default><default>
csi_hsync = port:PE02<3><default><default><default>
csi_vsync = port:PE03<3><default><default><default>
csi_d0 = port:PE04<3><default><default><default>
csi_d1 = port:PE05<3><default><default><default>
csi_d2 = port:PE06<3><default><default><default>
csi_d3 = port:PE07<3><default><default><default>
csi_d4 = port:PE08<3><default><default><default>
csi_d5 = port:PE09<3><default><default><default>
csi_d6 = port:PE10<3><default><default><default>
csi_d7 = port:PE11<3><default><default><default>
csi_reset = port:power3<1><default><default><0>
csi_power_en = ""
csi_stby = port:PB10<1><default><default><1>
csi_flash = ""
csi_af_en = ""
csi_reset_b = ""
csi_power_en_b = ""
csi_stby_b = ""
csi_flash_b = ""
csi_af_en_b = ""

[csi1_para]
csi_used = 0
csi_mode = 0
csi_dev_qty = 1
csi_stby_mode = 1
csi_mname = ""
csi_twi_id = 1
csi_twi_addr = 0xba
csi_if = 0
csi_vflip = 0
csi_hflip = 0
csi_iovdd = ""
csi_avdd = ""
csi_dvdd = ""
csi_flash_pol = 1
csi_mname_b = ""
csi_twi_id_b = 1
csi_twi_addr_b = 0x78
csi_if_b = 0
csi_vflip_b = 1
csi_hflip_b = 0
csi_iovdd_b = ""
csi_avdd_b = ""
csi_dvdd_b = ""
csi_flash_pol_b = 1
csi_reset = ""
csi_power_en = ""
csi_stby = ""
csi_flash = ""
csi_af_en = ""
csi_reset_b = ""
csi_power_en_b = ""
csi_stby_b = ""
csi_flash_b = ""
csi_af_en_b = ""

Croomch

Quote from: elijah on January 14, 2015, 03:44:53 PM
Quote from: JohnS on January 14, 2015, 03:24:24 PM
fex may be wrong

John

Thanks for your reply.

this is my csi section of fex


[csi0_para]
csi_used = 1
csi_mode = 0
csi_dev_qty = 1
csi_stby_mode = 1
csi_mname = "ov7670"
csi_twi_id = 2
csi_twi_addr = 0x42
csi_if = 0
csi_vflip = 0
csi_hflip = 1
csi_iovdd = ""
csi_avdd = ""
csi_dvdd = ""
csi_flash_pol = 1
csi_mname_b = ""
csi_twi_id_b = 1
csi_twi_addr_b = 0x78
csi_if_b = 0
csi_vflip_b = 1
csi_hflip_b = 0
csi_iovdd_b = ""
csi_avdd_b = ""
csi_dvdd_b = ""
csi_flash_pol_b = 1
csi_pck = port:PE00<3><default><default><default>
csi_ck = port:PE01<3><default><default><default>
csi_hsync = port:PE02<3><default><default><default>
csi_vsync = port:PE03<3><default><default><default>
csi_d0 = port:PE04<3><default><default><default>
csi_d1 = port:PE05<3><default><default><default>
csi_d2 = port:PE06<3><default><default><default>
csi_d3 = port:PE07<3><default><default><default>
csi_d4 = port:PE08<3><default><default><default>
csi_d5 = port:PE09<3><default><default><default>
csi_d6 = port:PE10<3><default><default><default>
csi_d7 = port:PE11<3><default><default><default>
csi_reset = port:power3<1><default><default><0>
csi_power_en = ""
csi_stby = port:PB10<1><default><default><1>
csi_flash = ""
csi_af_en = ""
csi_reset_b = ""
csi_power_en_b = ""
csi_stby_b = ""
csi_flash_b = ""
csi_af_en_b = ""

[csi1_para]
csi_used = 0
csi_mode = 0
csi_dev_qty = 1
csi_stby_mode = 1
csi_mname = ""
csi_twi_id = 1
csi_twi_addr = 0xba
csi_if = 0
csi_vflip = 0
csi_hflip = 0
csi_iovdd = ""
csi_avdd = ""
csi_dvdd = ""
csi_flash_pol = 1
csi_mname_b = ""
csi_twi_id_b = 1
csi_twi_addr_b = 0x78
csi_if_b = 0
csi_vflip_b = 1
csi_hflip_b = 0
csi_iovdd_b = ""
csi_avdd_b = ""
csi_dvdd_b = ""
csi_flash_pol_b = 1
csi_reset = ""
csi_power_en = ""
csi_stby = ""
csi_flash = ""
csi_af_en = ""
csi_reset_b = ""
csi_power_en_b = ""
csi_stby_b = ""
csi_flash_b = ""
csi_af_en_b = ""


So did you get your camera to work? and if so, what else did you exactly do to make it work?
I am currently struggling to get my ov7670 work on the Lime-A20, but without success :( some tips to lead me in the right direction would be nice...