系统已经按照教程 http://zero.lichee.pro/%E7%B3%BB%E7%BB%9F%E5%BC%80%E5%8F%91/bsp_cam.html#bsp 配置了,但是上电没注册,
尝试修改了几次sys_config.fex 文件都不能注册到设备,恳求有相关经验的大佬指点一下!
下面是启动信息
[ 6.097238] [VFE]cci probe start cci_sel = 0!
[ 6.102251] [VFE]cci probe end cci_sel = 0!
[ 6.107151] [VFE]cci_init end
[ 6.110592] [VFE]Welcome to Video Front End driver
[ 6.116272] [VFE]pdev->id = 0
[ 6.119799] [VFE]dev->mipi_sel = 0
[ 6.123716] [VFE]dev->vip_sel = 0
[ 6.127511] [VFE]dev->isp_sel = 0
[ 6.137532] [VFE_WARN]vfe vpu clock is null
[ 6.148936] [VFE]vfe_init end
[ 6.152417] [VFE]probe_work_handle start!
[ 6.157100] [VFE]..........................vfe clk open!.......................
[ 6.166271] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[ 6.175285] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[ 6.184440] [VFE]v4l2 subdev register input_num = 0
[ 6.189975] [VFE_ERR]get regulator csi_avdd error!
[ 6.195421] [VFE_ERR]vfe_device_regulator_get error at input_num = 0
[ 6.202848] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[ 6.211612] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[ 6.220377] [VFE]V4L2 device registered as video0
[ 6.225868] [VFE]..........................vfe clk close!.......................
[ 6.234378] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[ 6.243053] [VFE]probe_work_handle end!
我尝试修改的fex文件的内容
[csi1]
vip_used = 1
vip_mode = 0
vip_dev_qty = 1
vip_define_sensor_list = 0
vip_csi_pck = port:PE00<2><default><default><default>
vip_csi_mck = port:PE01<2><default><default><default>
vip_csi_hsync = port:PE02<2><default><default><default>
vip_csi_vsync = port:PE03<2><default><default><default>
vip_csi_d0 = port:PE04<2><default><default><default>
vip_csi_d1 = port:PE05<2><default><default><default>
vip_csi_d2 = port:PE06<2><default><default><default>
vip_csi_d3 = port:PE07<2><default><default><default>
vip_csi_d4 = port:PE08<2><default><default><default>
vip_csi_d5 = port:PE09<2><default><default><default>
vip_csi_d6 = port:PE10<2><default><default><default>
vip_csi_d7 = port:PE11<2><default><default><default>
vip_csi_d8 = port:PE12<2><default><default><default>
;vip_csi_d9 = port:PE13<2><default><default><default>
vip_csi_d10 = port:PE14<2><default><default><default>
vip_csi_d11 = port:PE15<2><default><default><default>
vip_csi_sck = port:PE21<2><default><default><default>
vip_csi_sda = port:PE22<2><default><default><default>
vip_dev0_mname = "ov2640"
vip_dev0_pos = "front"
vip_dev0_twi_id = 1
vip_dev0_twi_addr = 0x60
vip_dev0_isp_used = 0
vip_dev0_fmt = 0
vip_dev0_stby_mode = 0
vip_dev0_vflip = 0
vip_dev0_hflip = 0
vip_dev0_iovdd = ""
vip_dev0_iovdd_vol = 2800000
vip_dev0_avdd = ""
vip_dev0_avdd_vol = 2800000
vip_dev0_dvdd = ""
vip_dev0_dvdd_vol = 1500000
vip_dev0_afvdd = ""
vip_dev0_afvdd_vol = 2800000
vip_dev0_power_en =
vip_dev0_reset =
vip_dev0_pwdn =
vip_dev0_flash_en =
vip_dev0_flash_mode =
vip_dev0_af_pwdn =
vip_dev0_act_used = 0
vip_dev0_act_name = "ad5820_act"
vip_dev0_act_slave = 0x18
vip_dev1_mname = "gc2035"
vip_dev1_pos = "front"
vip_dev1_lane = 1
vip_dev1_twi_id = 4
vip_dev1_twi_addr = 0x78
vip_dev1_isp_used = 0
vip_dev1_fmt = 1
vip_dev1_stby_mode = 0
vip_dev1_vflip = 0
vip_dev1_hflip = 0
vip_dev1_iovdd = ""
vip_dev1_iovdd_vol = 2800000
vip_dev1_avdd = ""
vip_dev1_avdd_vol = 2800000
vip_dev1_dvdd = ""
vip_dev1_dvdd_vol = 1500000
vip_dev1_afvdd = ""
vip_dev1_afvdd_vol = 2800000
vip_dev1_power_en =
vip_dev1_reset =
vip_dev1_pwdn =
vip_dev1_flash_en =
vip_dev1_flash_mode =
vip_dev1_af_pwdn =
离线
我也遇到相同的问题,请问您解决了吗
离线
我也遇到相同的问题,请问您解决了吗
没有呀,教程里没有说怎么配FEX文件,我也是今天才调到这里的,然后就卡着了,所有才上论坛问的 0 0
离线
太一酱鸭 说:我也遇到相同的问题,请问您解决了吗
没有呀,教程里没有说怎么配FEX文件,我也是今天才调到这里的,然后就卡着了,所有才上论坛问的 0 0
我连vfe启动信息都没有打印出来
离线
这个问题,我这边也之前花了点时间搞这个,我配置DVP也正确,fex文件也正确,就是始终无法读取到I2C的数据, CCI接口的问题、
但是现在看到有老兄,在主线内核里面,搞定了。就没再弄。
怀疑是BSP 内核的寄存器配置不正确,哪个出来帮忙指点一下?
谢谢
离线
据说 bsp linux 摄像头驱动程序的 i2c 那组口没有初始化。
离线
6楼 的老兄,具体点拨一下,怎么没有初始化?
谢谢
离线
DVP和LCD公用了引脚,BSP内的引脚默认配置成LCD,要使用DVP得自己进行引脚初始化,fex配了没有相关代码进行初始化,不信在linux下直接读相关寄存器就知道了,然后ov2640的寄存器得自己调下,不然拍出来的效果是很暗的
离线
DVP和LCD公用了引脚,BSP内的引脚默认配置成LCD,要使用DVP得自己进行引脚初始化,fex配了没有相关代码进行初始化,不信在linux下直接读相关寄存器就知道了,然后ov2640的寄存器得自己调下,不然拍出来的效果是很暗的
只要把 ov2640.c 里面把 引脚的 lcd 复用改为 dvp 就可以了吗?
离线
nothing 说:DVP和LCD公用了引脚,BSP内的引脚默认配置成LCD,要使用DVP得自己进行引脚初始化,fex配了没有相关代码进行初始化,不信在linux下直接读相关寄存器就知道了,然后ov2640的寄存器得自己调下,不然拍出来的效果是很暗的
只要把 ov2640.c 里面把 引脚的 lcd 复用改为 dvp 就可以了吗?
具体查看寄存器手册对应的几个寄存器,对比下值,之前我们做V3S的方案有遇到这个问题
离线
@nothing 谢谢, 晚点我试一试
离线
@nothing 谢谢, 晚点我试一试
请问你尝试成功了吗
离线
DVP和LCD公用了引脚,BSP内的引脚默认配置成LCD,要使用DVP得自己进行引脚初始化,fex配了没有相关代码进行初始化,不信在linux下直接读相关寄存器就知道了,然后ov2640的寄存器得自己调下,不然拍出来的效果是很暗的
“要使用DVP得自己进行引脚初始化,fex配了没有相关代码进行初始化”,这句话,我能理解为 1. 自己要在fex分配dvp引脚。 2. 请问第二句“fex配了没有相关代码进行初始化”怎么在理解,麻烦解释下。
离线
我思故我在 说:@nothing 谢谢, 晚点我试一试
请问你尝试成功了吗
这段时间太忙, 没来得及试呢
离线
nothing 说:DVP和LCD公用了引脚,BSP内的引脚默认配置成LCD,要使用DVP得自己进行引脚初始化,fex配了没有相关代码进行初始化,不信在linux下直接读相关寄存器就知道了,然后ov2640的寄存器得自己调下,不然拍出来的效果是很暗的
“要使用DVP得自己进行引脚初始化,fex配了没有相关代码进行初始化”,这句话,我能理解为 1. 自己要在fex分配dvp引脚。 2. 请问第二句“fex配了没有相关代码进行初始化”怎么在理解,麻烦解释下。
fex本质上就是一个config文件,驱动在初始化的时候会去读这个文件,解析对应的管脚进行寄存器配置,具体见fetch_config函数,里面只配置了fex里面的部分引脚,对着fex配置内容进行代码阅读就知道了
离线
全志fex guide: http://linux-sunxi.org/Fex_Guide#.5Bcsi0_para.5D
离线
全志fex guide:http://linux-sunxi.org/Fex_Guide#.5Bcsi0_para.5D
可以详细说说怎么进行引脚初始化吗大佬
离线
U-Boot SPL 2017.01-rc2 (Jul 23 2019 - 05:11:06)
DRAM: 64 MiB
Trying to boot from MMC1
U-Boot 2017.01-rc2 (Jul 23 2019 - 05:11:06 -0700) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
MMC: SUNXI SD/MMC: 0
SF: unrecognized JEDEC id bytes: 00, 00, 00
*** Warning - spi_flash_probe() failed, using default environment
In: serial@01c28000
Out: serial@01c28000
Err: serial@01c28000
U-Boot 2017.01-rc2 (Jul 23 2019 - 05:11:06 -0700) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
MMC: SUNXI SD/MMC: 0
SF: unrecognized JEDEC id bytes: 00, 00, 00
*** Warning - spi_flash_probe() failed, using default environment
In: serial@01c28000
Out: serial@01c28000
Err: serial@01c28000
Net: No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
reading /boot.scr
290 bytes read in 14 ms (19.5 KiB/s)
## Executing script at 41900000
reading uImage
3881024 bytes read in 239 ms (15.5 MiB/s)
reading script.bin
29956 bytes read in 28 ms (1 MiB/s)
## Booting kernel from Legacy Image at 41000000 ...
Image Name: Linux-3.4.39
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3880960 Bytes = 3.7 MiB
Load Address: 40008000
Entry Point: 40008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
Using machid 0x1029 from environment
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0
[ 0.000000] Linux version 3.4.39 (kerson@ubuntu) (gcc version 4.8.3 20140320 (prerelease) (Sourcery CodeBench Lite 2014.05-29) ) #17 Mon Aug 26 05:47:26 PDT 2019
[ 0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Memory: 64MB = 64MB total
[ 0.000000] Memory: 19272k/19272k available, 46264k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xc4800000 - 0xff000000 ( 936 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc4000000 ( 64 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc071c000 (7248 kB)
[ 0.000000] .init : 0xc071c000 - 0xc0745000 ( 164 kB)
<5[ 0.000000] .bss : 0xc080607c - 0xc088be3c ( 536 kB)
[ 0.000000] NR_IRQS:544
[ 0.000000] Architected local timer running at 24.00MHz.
[ 0.000000] Switching to timer-based delay loop
[ 0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
[ 0.000000] Console: colour dummy device 80x30
[ 0.000153] Calibrating delay loop (skipped), value calculated using timer frequency.. 4800.00 BogoMIPS (lpj=24000000)
[ 0.000174] pid_max: default: 32768 minimum: 301
[ 0.000313] Mount-cache hash table entries: 512
[ 0.000841] CPU: Testing write buffer coherency: ok
[ 0.001098] Setting up static identity map for 0x4051ae90 - 0x4051aee8
[ 0.001755] devtmpfs: initialized
[ 0.003559] pinctrl core: initialized pinctrl subsystem
[ 0.004096] NET: Registered protocol family 16
[ 0.004454] DMA: preallocated 128 KiB pool for atomic coherent allocations
[ 0.004509] script_sysfs_init success
[ 0.005309] gpiochip_add: registered GPIOs 0 to 223 on device: sunxi-pinctrl
[ 0.006037] sunxi-pinctrl sunxi-pinctrl: initialized sunXi PIO driver
[ 0.006385] gpiochip_add: registered GPIOs 1024 to 1031 on device: axp-pinctrl
[ 0.007904] Not Found clk pll_isp in script
[ 0.007917] Not Found clk pll_video in script
[ 0.007925] Not Found clk pll_ve in script
[ 0.007933] Not Found clk pll_periph0 in script
[ 0.007940] Not Found clk pll_de in script
[ 0.014483] bio: create slab <bio-0> at 0
[ 0.014749] pwm module init!
[ 0.016925] SCSI subsystem initialized
[ 0.017172] usbcore: registered new interface driver usbfs
[ 0.017245] usbcore: registered new interface driver hub
[ 0.017388] usbcore: registered new device driver usb
[ 0.017525] twi_chan_cfg()340 - [twi0] has no twi_regulator.
[ 0.017537] twi_chan_cfg()340 - [twi1] has no twi_regulator.
[ 0.018219] twi_stop()471 - [i2c0] i2c state isn't idle(0xf8)
[ 0.018219] sunxi_i2c_core_process()833 - [i2c0] STOP failed!
[ 0.018219] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x38, dev addr: 0x34)
[ 0.018219] axp20_board 0-0034: failed reading at 0x03
[ 0.018219] axp20_board: probe of 0-0034 failed with error -70
[ 0.018219] Linux video capture interface: v2.00
[ 0.018219] gpiochip_add: gpios 1024..1028 (axp_pin) failed to register
[ 0.018219] Advanced Linux Sound Architecture Driver Version 1.0.25.
[ 0.018219] cfg80211: Calling CRDA to update world regulatory domain
[ 0.020826] Switching to clocksource arch_sys_counter
[ 0.029648] NET: Registered protocol family 2
[ 0.029648] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.030131] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.030175] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.030204] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.030214] TCP: reno registered
[ 0.030226] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.030245] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.030507] NET: Registered protocol family 1
[ 0.030879] RPC: Registered named UNIX socket transport module.
[ 0.030893] RPC: Registered udp transport module.
[ 0.030901] RPC: Registered tcp transport module.
[ 0.030909] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.031193] standby_mode = 1.
[ 0.031201] wakeup src cnt is : 3.
[ 0.031229] pmu1_enable = 0x1.
[ 0.031236] pmux_id = 0x1.
[ 0.031252] config_pmux_para: script_parser_fetch err.
[ 0.031260] pmu2_enable = 0x0.
[ 0.031271] add_sys_pwr_dm: get ldo name failed
[ 0.031279] add_sys_pwr_dm: get ldo name failed
[ 0.031286] add_sys_pwr_dm: get ldo name failed
[ 0.031294] add_sys_pwr_dm: get ldo name failed
[ 0.031301] add_sys_pwr_dm: get ldo name failed
[ 0.031309] add_sys_pwr_dm: get ldo name failed
[ 0.031317] add_sys_pwr_dm: get ldo name failed
[ 0.031324] add_sys_pwr_dm: get ldo name failed
[ 0.031332] add_sys_pwr_dm: get ldo name failed
[ 0.031341] add_sys_pwr_dm: get ldo name failed
[ 0.031348] after inited: sys_mask config = 0x0.
[ 0.031356] dynamic_standby enalbe = 0x0.
[ 0.031414] sunxi_reg_init enter
[ 0.032931] VFS: Disk quotas dquot_6.5.2
[ 0.033437] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.033782] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[ 0.034203] NTFS driver 2.1.30 [Flags: R/W].
[ 0.034342] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 0.034578] msgmni has been set to 37
[ 0.036000] io scheduler noop registered
[ 0.036014] io scheduler deadline registered
[ 0.036112] io scheduler cfq registered (default)
[ 0.036220] [DISP]disp_module_init
[ 0.036661] cmdline,disp=
[ 0.036889] [DISP] disp_get_rotation_sw,line:68:disp 0 out of range? g_rot_sw=0
[ 0.036905] [DISP] disp_init_connections,line:289:NULL pointer: 0, 0
[ 0.036998] [DISP] display_fb_request,line:1142:invalid paras xres(0), yres(0) bpp(16)
[ 0.038985] [DISP] lcd_clk_config,line:886:disp 0, clk: pll(0),clk(0),dclk(0) dsi_rate(0)
[ 0.040246] [DISP]disp_module_init finish
[ 0.040521] sw_uart_get_devinfo()1503 - uart0 has no uart_regulator.
[ 0.040860] uart0: ttyS0 at MMIO 0x1c28000 (irq = 32) is a SUNXI
[ 0.040875] sw_uart_pm()890 - uart0 clk is already enable
[ 0.040896] sw_console_setup()1233 - console setup baud 115200 parity n bits 8, flow n
[ 0.154559] console [ttyS0] enabled
[ 0.695759] sunxi_spi_chan_cfg()1376 - [spi-0] has no spi_regulator.
[ 0.703519] spi spi0: master is unqueued, this is deprecated
[ 0.709930] m25p_probe()982 - Use the Dual Mode Read.
[ 0.715684] m25p80 spi0.0: found m25p05-nonjedec, expected w25q128
[ 0.722566] m25p80 spi0.0: m25p05-nonjedec (64 Kbytes)
[ 0.729762] partitions_register()865 - m25p80_read() ret 0, PartCnt: 0
[ 0.737042] m25p80: probe of spi0.0 failed with error -22
[ 0.743999] usbcore: registered new interface driver rtl8192cu
[ 0.750594] usbcore: registered new interface driver rt2500usb
[ 0.757120] usbcore: registered new interface driver rt73usb
[ 0.763478] usbcore: registered new interface driver rt2800usb
[ 0.769951] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.797284] sunxi-ehci sunxi-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.806204] [DISP] disp_lcd_pwm_enable,line:1021:pwm device hdl is NULL
[ 0.813606] sunxi-ehci sunxi-ehci.1: new USB bus registered, assigned bus number 1
[ 0.822129] sunxi-ehci sunxi-ehci.1: irq 104, io mem 0xf1c1a000
[ 0.840047] sunxi-ehci sunxi-ehci.1: USB 0.0 started, EHCI 1.00
[ 0.847326] hub 1-0:1.0: USB hub found
[ 0.851547] hub 1-0:1.0: 1 port detected
[ 0.856316] sunxi-ehci sunxi-ehci.1: remove, state 1
[ 0.861867] usb usb1: USB disconnect, device number 1
[ 0.868761] sunxi-ehci sunxi-ehci.1: USB bus 1 deregistered
[ 0.885066] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.912027] sunxi-ohci sunxi-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver
[ 0.920550] sunxi-ohci sunxi-ohci.1: new USB bus registered, assigned bus number 1
[ 0.928985] sunxi-ohci sunxi-ohci.1: irq 105, io mem 0xf1c1a400
[ 0.994646] hub 1-0:1.0: USB hub found
[ 0.998824] hub 1-0:1.0: 1 port detected
[ 1.003599] sunxi-ohci sunxi-ohci.1: remove, state 1
[ 1.009118] usb usb1: USB disconnect, device number 1
[ 1.015282] sunxi-ohci sunxi-ohci.1: USB bus 1 deregistered
[ 1.031583] Initializing USB Mass Storage driver...
[ 1.037076] usbcore: registered new interface driver usb-storage
[ 1.043766] USB Mass Storage support registered.
[ 1.049094] usbcore: registered new interface driver ums-cypress
[ 1.055829] usbcore: registered new interface driver ums_eneub6250
[ 1.062733] usbcore: registered new interface driver ums-freecom
[ 1.069430] usbcore: registered new interface driver ums-isd200
[ 1.076040] usbcore: registered new interface driver ums-jumpshot
[ 1.082856] usbcore: registered new interface driver ums-realtek
[ 1.089550] usbcore: registered new interface driver ums-sddr09
[ 1.096178] usbcore: registered new interface driver ums-sddr55
[ 1.102789] usbcore: registered new interface driver ums-usbat
[ 1.109598] mousedev: PS/2 mouse device common for all mice
[ 1.115893] sunxikbd_script_init: key para not found, used default para.
[ 1.124028] [RTC] WARNING: Rtc time will be wrong!!
[ 1.129711] sunxi-rtc sunxi-rtc: rtc core: registered sunxi-rtc as rtc0
[ 1.137140] i2c /dev entries driver
[ 1.141744] usbcore: registered new interface driver uvcvideo
[ 1.148119] USB Video Class driver (v1.0.8_SONiX_v2.6.36.04)
[ 1.154667] [VFE]cci probe start cci_sel = 0!
[ 1.159534] [VFE]cci probe end cci_sel = 0!
[ 1.164227] [VFE]cci_init end
[ 1.167529] [VFE]Welcome to Video Front End driver
[ 1.173194] [VFE]pdev->id = 0
[ 1.176485] [VFE]dev->mipi_sel = 0
[ 1.180277] [VFE]dev->vip_sel = 0
[ 1.183949] [VFE]dev->isp_sel = 0
[ 1.193734] [VFE_WARN]vfe vpu clock is null
[ 1.204994] [VFE]pdev->id = 1
[ 1.208283] [VFE]dev->mipi_sel = 1
[ 1.212096] [VFE]dev->vip_sel = 1
[ 1.215769] [VFE]dev->isp_sel = 0
[ 1.219451] [VFE]probe_work_handle start!
[ 1.223912] [VFE]..........................vfe clk open!.......................
[ 1.232422] [VFE]v4l2 subdev register input_num = 0
[ 1.237848] deviceless supply csi-avdd not found, using dummy regulator
[ 1.245210] [VFE_WARN]vfe vpu clock is null
[ 1.250096] deviceless supply csi-dvdd not found, using dummy regulator
[ 1.257452] [VFE]vfe sensor detect start! input_num = 0
[ 1.263283] [VFE]Sub device register "ar0330_mipi" i2c_addr = 0x20 start!
[ 1.270829] [VFE_ERR]Error registering v4l2 subdevice No such device!
[ 1.277973] [VFE_ERR]vfe sensor register check error at input_num = 0
[ 1.285177] [VFE_ERR]vip1 request pinctrl handle for device [csi1] failed!
[ 1.292972] [VFE]vfe_init end
[ 1.297198] deviceless supply axp20_dcdc2 not found, using dummy regulator
[ 1.305115] deviceless supply axp20_dcdc3 not found, using dummy regulator
[ 1.312956] deviceless supply axp20_ldo1 not found, using dummy regulator
[ 1.320550] [VFE]Check open /system/etc/hawkview/ar0330_mipi/isp_test_param.ini failed!
[ 1.320559] Match isp cfg start!
[ 1.333204] [VFE]Match isp cfg ok
[ 1.337154] deviceless supply axp20_ldo2 not found, using dummy regulator
[ 1.344906] deviceless supply axp20_ldo3 not found, using dummy regulator
[ 1.352691] [VFE]V4L2 device registered as video0
[ 1.357955] [VFE]..........................vfe clk close!.......................
[ 1.366418] deviceless supply axp20_ldo4 not found, using dummy regulator
[ 1.374146] deviceless supply axp20_ldoio0 not found, using dummy regulator
[ 1.381912] [VFE]probe_work_handle end!
[ 1.386180] [VFE]probe_work_handle start!
[ 1.390639] [VFE]..........................vfe clk open!.......................
[ 1.398810] sunxi_wdt_init_module: sunxi WatchDog Timer Driver v1.0
[ 1.406046] sunxi_wdt_probe: devm_ioremap return wdt_reg 0xf1c20ca0, res->start 0x01c20ca0, res->end 0x01c20cbf
[ 1.417370] [VFE]v4l2 subdev register input_num = 0
[ 1.422988] [VFE]vfe sensor detect start! input_num = 0
[ 1.428797] [VFE]Find sensor name is "gc0312", i2c address is 42, type is "YUV" !
[ 1.437107] [VFE]Sub device register "gc0312" i2c_addr = 0x42 start!
[ 1.444167] [VFE]v4l2_device_register_subdev return 0
[ 1.449769] [VFE]registered sensor subdev is OK!
[ 1.454892] [VFE]Check sensor!
[ 1.458274] [VFE]Sub device register "gc0312" is OK!
[ 1.463967] sunxi_wdt_probe: initialized (g_timeout=16s, g_nowayout=0)
[ 1.471235] wdt_enable, write reg 0xf1c20cb8 val 0x00000000
[ 1.477420] wdt_set_tmout, write 0x000000b0 to mode reg 0xf1c20cb8, actual timeout 16 sec
[ 1.491865] [VFE]V4L2 device registered as video1
[ 1.497234] sunxi_leds_fetch_sysconfig_para script_parser_fetch "leds_para" leds_used = -1052631212
[ 1.507309] =========script_get_err============
[ 1.512558] [VFE]..........................vfe clk close!.......................
[ 1.520803] [VFE]probe_work_handle end!
[ 1.525320] usbcore: registered new interface driver usbhid
[ 1.531541] usbhid: USB HID core driver
[ 1.536373] usbcore: registered new interface driver snd-usb-audio
[ 1.543505] Netfilter messages via NETLINK v0.30.
[ 1.549954] nfnl_acct: registering with nfnetlink.
[ 1.557537] nf_conntrack version 0.5.0 (301 buckets, 1204 max)
[ 1.564048] *******************Try sdio*******************
[ 1.570559] ctnetlink v0.93: registering with nfnetlink.
[ 1.576556] NF_TPROXY: Transparent proxy support initialized, version 4.1.0
[ 1.584315] NF_TPROXY: Copyright (c) 2006-2007 BalaBit IT Ltd.
[ 1.591142] xt_time: kernel timezone is -0000
[ 1.596042] ip_set: protocol 6
[ 1.599685] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 1.605654] *******************Try sd *******************
[ 1.611868] arp_tables: (C) 2002 David S. Miller
[ 1.617069] TCP: cubic registered
[ 1.620995] NET: Registered protocol family 10
[ 1.630502] IPv6 over IPv4 tunneling driver
[ 1.635817] NET: Registered protocol family 17
[ 1.641084] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 1.649627] ThumbEE CPU extension supported.
[ 1.654427] Registering SWP/SWPB emulation handler
[ 1.661282] sunxi-rtc sunxi-rtc: hctosys: unable to read the hardware clock
[ 1.773640] mmc0: new high speed SD card at address 21f5
[ 1.779939] mmcblk0: mmc0:21f5 XTSDA 122 MiB
[ 1.786076] mmcblk0: p1 p2
[ 1.789922] mmcblk mmc0:21f5: Card claimed for testing.
[ 1.795784] mmc0:21f5: XTSDA 122 MiB
[ 1.799907] *******************sd init ok*******************
[ 1.847650] *******************Try sdio*******************
[ 1.874606] mmc1: queuing unknown CIS tuple 0x01 (3 bytes)
[ 1.887781] mmc1: queuing unknown CIS tuple 0x1a (5 bytes)
[ 1.896951] mmc1: queuing unknown CIS tuple 0x1b (8 bytes)
[ 1.905071] mmc1: queuing unknown CIS tuple 0x80 (1 bytes)
[ 1.911209] mmc1: queuing unknown CIS tuple 0x81 (1 bytes)
[ 1.917328] mmc1: queuing unknown CIS tuple 0x82 (1 bytes)
[ 1.923440] mmc1: new high speed SDIO card at address 0001
[ 1.929933] *******************sdio init ok*******************
[ 2.594627] mmc1: card 0001 removed
[ 2.700096] ALSA device list:
[ 2.703388] No soundcards found.
[ 2.708230] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[ 2.719147] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[ 2.759577] *******************Try sdio*******************
[ 2.784643] mmc1: queuing unknown CIS tuple 0x01 (3 bytes)
[ 2.797940] mmc1: queuing unknown CIS tuple 0x1a (5 bytes)
[ 2.807165] mmc1: queuing unknown CIS tuple 0x1b (8 bytes)
[ 2.815850] mmc1: queuing unknown CIS tuple 0x80 (1 bytes)
[ 2.822058] mmc1: queuing unknown CIS tuple 0x81 (1 bytes)
[ 2.828185] mmc1: queuing unknown CIS tuple 0x82 (1 bytes)
[ 2.834308] mmc1: new high speed SDIO card at address 0001
[ 2.999814] EXT4-fs (mmcblk0p2): recovery complete
[ 3.009465] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 3.020596] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 3.030648] devtmpfs: mounted
[ 3.034145] Freeing init memory: 164K
[ 3.191125] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Starting logging: OK
Initializing random number generator... [ 3.269483] *******************sdio init ok*******************
done.
Starting network: OK
Starting DHCP server: FAIL
Starting motion: OK
Welcome to Buildroot
buildroot login: root
Password:
# ls
auto_wifi.sh nfs
以上是我的启动过程,感觉gc0312注册成功了。但是在我执行fswebcam的时候,提示超时:
# fswebcam --no-banner -d /dev/video1 -r 640x480 image3.jpg
[ 779.011808] [VFE]vfe_open
--- Opening /dev/video1...
[ 779.014854] [VFE]..........................vfe clk open!.......................
Trying source module v4l2...[ 779.026607] [VFE]vfe_open ok
/dev/video1 opened.
[ 779.032374] [VFE]Set vfe core clk = 108000000, after Set vfe core clk = 99000000
No input was specified, using the first.
[ 779.101325] [VFE]mclk on
[ 779.221044] [VFE_WARN]v4l2 sub device queryctrl (null) unsuccess!
[ 779.228071] [VFE]buffer_setup, buffer count=4, size=307200
--- Capturing frame...
[ 789.258406] [VFE]vfe_close
Timed out waiting for frame!
[ 789.285782] [VFE]mclk off
[ 789.336852] [VFE]..........................vfe clk close!.......................
[ 789.345308] [VFE]vfe_close end
No frames captured.
#
但是从fswebcam的时候,提示 [VFE_WARN]v4l2 sub device queryctrl (null) unsuccess!。 但是我能通过逻辑分析仪和示波器,能抓取到大量的iic初始化数据,mclk,pclk,hs,vs信号。应该说fex配置和时初始化是成功的。麻烦指点下,感谢感谢。
离线
全志fex guide: http://linux-sunxi.org/Fex_Guide#.5Bcsi0_para.5D
麻烦帮我看看楼上的log信息和提示信息,指点下,多谢多谢
离线
nothing 说:全志fex guide: http://linux-sunxi.org/Fex_Guide#.5Bcsi0_para.5D
麻烦帮我看看楼上的log信息和提示信息,指点下,多谢多谢
你试试dmesg查看错误信息,顺便问一下你怎么改的
离线
# dmesg
1.141396] uvcvideo: Adding mapping Gamma to control 00000000-0000-0000-0000-000000000101/9.
[ 1.141409] uvcvideo: Adding mapping Backlight Compensation to control 00000000-0000-0000-0000-000000000101/1.
[ 1.141424] uvcvideo: Adding mapping Gain to control 00000000-0000-0000-0000-000000000101/4.
[ 1.141437] uvcvideo: Adding mapping Power Line Frequency to control 00000000-0000-0000-0000-000000000101/5.
[ 1.141452] uvcvideo: Adding mapping Hue, Auto to control 00000000-0000-0000-0000-000000000101/16.
[ 1.141466] uvcvideo: Adding mapping Exposure, Auto to control 00000000-0000-0000-0000-000000000001/2.
[ 1.141482] uvcvideo: Adding mapping Exposure, Auto Priority to control 00000000-0000-0000-0000-000000000001/3.
[ 1.141498] uvcvideo: Adding mapping Exposure (Absolute) to control 00000000-0000-0000-0000-000000000001/4.
[ 1.141513] uvcvideo: Adding mapping White Balance Temperature, Auto to control 00000000-0000-0000-0000-000000000101/11.
[ 1.141528] uvcvideo: Adding mapping White Balance Temperature to control 00000000-0000-0000-0000-000000000101/10.
[ 1.141543] uvcvideo: Adding mapping White Balance Component, Auto to control 00000000-0000-0000-0000-000000000101/13.
[ 1.141558] uvcvideo: Adding mapping White Balance Blue Component to control 00000000-0000-0000-0000-000000000101/12.
[ 1.141573] uvcvideo: Adding mapping White Balance Red Component to control 00000000-0000-0000-0000-000000000101/12.
[ 1.141589] uvcvideo: Adding mapping Focus (absolute) to control 00000000-0000-0000-0000-000000000001/6.
[ 1.141606] uvcvideo: Adding mapping Focus, Auto to control 00000000-0000-0000-0000-000000000001/8.
[ 1.141622] uvcvideo: Adding mapping Zoom, Absolute to control 00000000-0000-0000-0000-000000000001/11.
[ 1.141638] uvcvideo: Adding mapping Zoom, Continuous to control 00000000-0000-0000-0000-000000000001/12.
[ 1.141655] uvcvideo: Adding mapping Privacy to control 00000000-0000-0000-0000-000000000001/17.
[ 1.141744] usbcore: registered new interface driver uvcvideo
[ 1.148119] USB Video Class driver (v1.0.8_SONiX_v2.6.36.04)
[ 1.154667] [VFE]cci probe start cci_sel = 0!
[ 1.159534] [VFE]cci probe end cci_sel = 0!
[ 1.164227] [VFE]cci_init end
[ 1.167529] [VFE]Welcome to Video Front End driver
[ 1.173194] [VFE]pdev->id = 0
[ 1.176485] [VFE]dev->mipi_sel = 0
[ 1.180277] [VFE]dev->vip_sel = 0
[ 1.183949] [VFE]dev->isp_sel = 0
[ 1.193734] [VFE_WARN]vfe vpu clock is null
[ 1.204798] [ISP] isp platform_id = 6!
[ 1.204994] [VFE]pdev->id = 1
[ 1.208283] [VFE]dev->mipi_sel = 1
[ 1.212096] [VFE]dev->vip_sel = 1
[ 1.215769] [VFE]dev->isp_sel = 0
[ 1.219451] [VFE]probe_work_handle start!
[ 1.223912] [VFE]..........................vfe clk open!.......................
[ 1.232422] [VFE]v4l2 subdev register input_num = 0
[ 1.237848] deviceless supply csi-avdd not found, using dummy regulator
[ 1.245210] [VFE_WARN]vfe vpu clock is null
[ 1.250096] deviceless supply csi-dvdd not found, using dummy regulator
[ 1.257452] [VFE]vfe sensor detect start! input_num = 0
[ 1.263268] [VFE_WARN]NOT found this item: ar0330_mipi, you can add this sensor in the sensor_list_t!
[ 1.263283] [VFE]Sub device register "ar0330_mipi" i2c_addr = 0x20 start!
[ 1.270829] [VFE_ERR]Error registering v4l2 subdevice No such device!
[ 1.277973] [VFE_ERR]vfe sensor register check error at input_num = 0
[ 1.285177] [VFE_ERR]vip1 request pinctrl handle for device [csi1] failed!
[ 1.292878] [ISP] isp platform_id = 6!
[ 1.292972] [VFE]vfe_init end
[ 1.296400] sunxi cedar version 0.1
[ 1.296462] [cedar]: install start!!!
[ 1.296764] [cedar]: install end!!!
[ 1.297198] deviceless supply axp20_dcdc2 not found, using dummy regulator
[ 1.305115] deviceless supply axp20_dcdc3 not found, using dummy regulator
[ 1.312956] deviceless supply axp20_ldo1 not found, using dummy regulator
[ 1.320550] [VFE]Check open /system/etc/hawkview/ar0330_mipi/isp_test_param.ini failed!
[ 1.320559] Match isp cfg start!
[ 1.333204] [VFE]Match isp cfg ok
[ 1.337154] deviceless supply axp20_ldo2 not found, using dummy regulator
[ 1.344906] deviceless supply axp20_ldo3 not found, using dummy regulator
[ 1.352691] [VFE]V4L2 device registered as video0
[ 1.357955] [VFE]..........................vfe clk close!.......................
[ 1.366418] deviceless supply axp20_ldo4 not found, using dummy regulator
[ 1.374146] deviceless supply axp20_ldoio0 not found, using dummy regulator
[ 1.381912] [VFE]probe_work_handle end!
[ 1.386180] [VFE]probe_work_handle start!
[ 1.390639] [VFE]..........................vfe clk open!.......................
[ 1.398810] sunxi_wdt_init_module: sunxi WatchDog Timer Driver v1.0
[ 1.406046] sunxi_wdt_probe: devm_ioremap return wdt_reg 0xf1c20ca0, res->start 0x01c20ca0, res->end 0x01c20cbf
[ 1.417370] [VFE]v4l2 subdev register input_num = 0
[ 1.422988] [VFE]vfe sensor detect start! input_num = 0
[ 1.428797] [VFE]Find sensor name is "gc0312", i2c address is 42, type is "YUV" !
[ 1.437107] [VFE]Sub device register "gc0312" i2c_addr = 0x42 start!
[ 1.444167] [VFE]v4l2_device_register_subdev return 0
[ 1.449769] [VFE]registered sensor subdev is OK!
[ 1.454892] [VFE]Check sensor!
[ 1.458274] [VFE]Sub device register "gc0312" is OK!
[ 1.463967] sunxi_wdt_probe: initialized (g_timeout=16s, g_nowayout=0)
[ 1.471235] wdt_enable, write reg 0xf1c20cb8 val 0x00000000
[ 1.477420] wdt_set_tmout, write 0x000000b0 to mode reg 0xf1c20cb8, actual timeout 16 sec
[ 1.486733] [mmc]: SD/MMC/SDIO Host Controller Driver(v1.114 2015-6-2 10:21) Compiled in Aug 11 2019 at 20:05:56
[ 1.486777] [mmc]: get mmc0's sdc_power failed
[ 1.486805] [mmc]: get mmc1's sdc_power failed
[ 1.486822] [mmc]: MMC host used card: 0x3, boot card: 0x1, io_card 2
[ 1.487565] [mmc]: sdc0 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[ 1.488700] [mmc]: sdc0 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[ 1.489185] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[ 1.490293] [mmc]: sdc0 power_supply is null
[ 1.491865] [VFE]V4L2 device registered as video1
[ 1.497234] sunxi_leds_fetch_sysconfig_para script_parser_fetch "leds_para" leds_used = -1052631212
[ 1.507309] =========script_get_err============
[ 1.512362] [mmc]: sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[ 1.512558] [VFE]..........................vfe clk close!.......................
[ 1.520803] [VFE]probe_work_handle end!
[ 1.525320] usbcore: registered new interface driver usbhid
[ 1.531541] usbhid: USB HID core driver
[ 1.536373] usbcore: registered new interface driver snd-usb-audio
[ 1.543287] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 52, RTO !!
[ 1.543505] Netfilter messages via NETLINK v0.30.
[ 1.548738] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 52, RTO !!
[ 1.548777] [mmc]: sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[ 1.549954] nfnl_acct: registering with nfnetlink.
[ 1.556325] [mmc]: sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[ 1.557537] nf_conntrack version 0.5.0 (301 buckets, 1204 max)
[ 1.564048] *******************Try sdio*******************
[ 1.570559] ctnetlink v0.93: registering with nfnetlink.
[ 1.576474] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 5, RTO !!
[ 1.576556] NF_TPROXY: Transparent proxy support initialized, version 4.1.0
[ 1.584315] NF_TPROXY: Copyright (c) 2006-2007 BalaBit IT Ltd.
[ 1.591142] xt_time: kernel timezone is -0000
[ 1.595994] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 5, RTO !!
[ 1.596042] ip_set: protocol 6
[ 1.599430] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 5, RTO !!
[ 1.599685] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 1.605622] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 0 err, cmd 5, RTO !!
[ 1.605654] *******************Try sd *******************
[ 1.611868] arp_tables: (C) 2002 David S. Miller
[ 1.617069] TCP: cubic registered
[ 1.620995] NET: Registered protocol family 10
[ 1.625962] [mmc]: sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[ 1.626129] [mmc]: sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[ 1.628657] [mmc]: sdc0 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[ 1.630502] IPv6 over IPv4 tunneling driver
[ 1.635817] NET: Registered protocol family 17
[ 1.641084] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 1.649627] ThumbEE CPU extension supported.
[ 1.654427] Registering SWP/SWPB emulation handler
[ 1.661282] sunxi-rtc sunxi-rtc: hctosys: unable to read the hardware clock
[ 1.670546] [wifi module_pm]: failed to fetch wifi configuration!
[ 1.670571] [wifi module_pm]: regulator on.
[ 1.670934] [wifi_pm]: wifi gpio init is OK !!
[ 1.671061]
[ 1.671066] *****Aug 11 2019 20:06:05 EAGLE DRIVER VER:75be56bfbaf7*****
[ 1.671073]
[ 1.671191] =======================================================
[ 1.671201] ==== Launching Wi-Fi driver! (Powered by Rockchip) ====
[ 1.671210] =======================================================
[ 1.671219] Espressif ESP8089 SDIO WiFi driver (Powered by Rockchip, Ver2.25(01/22/2016),Drv: 2.26) init.
[ 1.671237] [wifi_pm]: wrong module select 0 !
[ 1.772763] [mmc]: sdc0 set ios: clk 25000000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[ 1.773324] [mmc]: sdc0 set ios: clk 25000000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B
[ 1.773422] [mmc]: sdc0 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B
[ 1.773547] [mmc]: sdc0 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B
[ 1.773640] mmc0: new high speed SD card at address 21f5
[ 1.779939] mmcblk0: mmc0:21f5 XTSDA 122 MiB
[ 1.786076] mmcblk0: p1 p2
[ 1.789922] mmcblk mmc0:21f5: Card claimed for testing.
[ 1.795784] mmc0:21f5: XTSDA 122 MiB
[ 1.799907] *******************sd init ok*******************
[ 1.806218] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[ 1.807755] [mmc]: sdc1 power_supply is null
[ 1.820033] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[ 1.842347] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52, RTO !!
[ 1.843181] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52, RTO !!
[ 1.843208] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[ 1.845706] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[ 1.847630] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8, RTO !!
[ 1.847650] *******************Try sdio*******************
[ 1.854057] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[ 1.874606] mmc1: queuing unknown CIS tuple 0x01 (3 bytes)
[ 1.887781] mmc1: queuing unknown CIS tuple 0x1a (5 bytes)
[ 1.896951] mmc1: queuing unknown CIS tuple 0x1b (8 bytes)
[ 1.903975] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B
[ 1.904101] [mmc]: sdc1 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B
[ 1.904274] [mmc]: sdc1 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B
[ 1.905071] mmc1: queuing unknown CIS tuple 0x80 (1 bytes)
[ 1.911209] mmc1: queuing unknown CIS tuple 0x81 (1 bytes)
[ 1.917328] mmc1: queuing unknown CIS tuple 0x82 (1 bytes)
[ 1.923440] mmc1: new high speed SDIO card at address 0001
[ 1.929881] esp_sdio_dummy_probe enter
[ 1.929933] *******************sdio init ok*******************
[ 2.130021] esp_sdio_init power up OK
[ 2.594037] esp_host:75be56bfbaf7
[ 2.594044] esp_target: 2cefb7b78636 77 18204
[ 2.594049]
[ 2.594116] esp_readwrite_file: file /system/lib/modules/test_results filp_open error
[ 2.594220] first normal exit
[ 2.594327] esp_sdio_remove enter
[ 2.594627] mmc1: card 0001 removed
[ 2.598567] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[ 2.598740] [mmc]: sdc1 power_supply is null
[ 2.700096] ALSA device list:
[ 2.703388] No soundcards found.
[ 2.707350] [mmc]: sdc1 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[ 2.708230] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[ 2.717279] [mmc]: sdc1 power_supply is null
[ 2.719147] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[ 2.730069] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[ 2.752409] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52, RTO !!
[ 2.753377] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 52, RTO !!
[ 2.753420] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[ 2.755965] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[ 2.757895] [mmc]: *** sunxi_mci_dump_errinfo(L826): smc 1 err, cmd 8, RTO !!
[ 2.759577] *******************Try sdio*******************
[ 2.766105] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[ 2.784643] mmc1: queuing unknown CIS tuple 0x01 (3 bytes)
[ 2.797940] mmc1: queuing unknown CIS tuple 0x1a (5 bytes)
[ 2.807165] mmc1: queuing unknown CIS tuple 0x1b (8 bytes)
[ 2.814235] [mmc]: sdc1 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B
[ 2.814474] [mmc]: sdc1 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 1 timing SD-HS(SDR25) dt B
[ 2.814779] [mmc]: sdc1 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 4 timing SD-HS(SDR25) dt B
[ 2.815850] mmc1: queuing unknown CIS tuple 0x80 (1 bytes)
[ 2.822058] mmc1: queuing unknown CIS tuple 0x81 (1 bytes)
[ 2.828185] mmc1: queuing unknown CIS tuple 0x82 (1 bytes)
[ 2.834308] mmc1: new high speed SDIO card at address 0001
[ 2.999814] EXT4-fs (mmcblk0p2): recovery complete
[ 3.009465] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 3.020596] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 3.030648] devtmpfs: mounted
[ 3.034145] Freeing init memory: 164K
[ 3.191125] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
[ 3.267380] Wifi Efuse Mac => 90:97:d5:17:36:de
[ 3.267453] esp_host:75be56bfbaf7
[ 3.267459] esp_target: 2cefb7b78636 77 18204
[ 3.267464]
[ 3.269349] esp_sdio: initializing netlink
[ 3.269483] *******************sdio init ok*******************
[ 779.011808] [VFE]vfe_open
[ 779.014854] [VFE]..........................vfe clk open!.......................
[ 779.026607] [VFE]vfe_open ok
[ 779.032374] [VFE]Set vfe core clk = 108000000, after Set vfe core clk = 99000000
[ 779.101325] [VFE]mclk on
[ 779.190547] sensor_id=b3
[ 779.221044] [VFE_WARN]v4l2 sub device queryctrl (null) unsuccess!
[ 779.228071] [VFE]buffer_setup, buffer count=4, size=307200
[ 789.258406] [VFE]vfe_close
[ 789.285782] [VFE]mclk off
[ 789.336852] [VFE]..........................vfe clk close!.......................
[ 789.345308] [VFE]vfe_close end
#
只是我的dmesg
离线
晕哥 说:如果用bsp, 自己改代码 ov2640 可以了吗?
晕哥,我做了转接板,打算试试ov2640 ,也买了个ov2640的镜头。今天回试试的。试了回复哈。
可以直接用 荔枝派zero 的板子,然后用荔枝派的固件: wifi_audio_cam_serial_zero.rar
这个应该是没有一问题的。
接着自己编译默认的ov2640.ko, 发现肯定不行。
如果你能把 ov2640 改好, 说明gc0312也是一样的套路。
如果改不好, 就用这个馊主意:
把自己编译ov2640.ko 和 荔枝派上面固件里面的 ov2640.ko 都用 IDA 反编译成 asm 文件,
因为用的是同样的编译器,所以编译出来都是大同小异,直接用对比软件比较 asm, 就大概会知道需要修改哪些地方。
离线
我看了逻辑分析仪抓的图, I2C 有信号, GC0312也有输出, 可能存在的问题:
1. V3s soc里面dvp接受的信号格式与GC0312输出不一致, 比如 HSYNC/VSYNC 电平/沿 触发不一致
2. V3s dvp 引脚复用状态不对, 是不是强行设置一波?或者用 devmem 输出对应寄存器值,对照datasheet看下复用状态?
3. 还没想到
离线
nothing 说:全志fex guide: http://linux-sunxi.org/Fex_Guide#.5Bcsi0_para.5D
麻烦帮我看看楼上的log信息和提示信息,指点下,多谢多谢
cci对应的引脚log上面有初始化,但是dvp对应的引脚csi没有log输出,上面有说,直接查看对应的几个寄存器,看下是不是被配置成LCD去了,寄存器PIN复用说明如下图
离线
# devmem
BusyBox v1.27.2 (2019-08-26 02:51:19 PDT) multi-call binary.
Usage: devmem ADDRESS [WIDTH [VALUE]]
Read/write from physical address
ADDRESS Address to act upon
WIDTH Width (8/16/...)
VALUE Data to be written
# devmem 0x01c20890
0x77777717
# devmem 0x01c20898
0x12237770
#
查询手册,230页。
真的是数据口io没初始化好。
非常感谢nothing,晕哥。 nothing邮件回复下我哈,一定要请吃大餐的。一顿不够,二顿.,三顿..... O(∩_∩)O哈哈~
离线
直接可以用 devmem 设置寄存器
感谢晕哥
# devmem 0x01c20898
0x02277777
# devmem 0x01c20894
0x22222222
# devmem 0x01c20890
0x77772212
这样设置之后自己编译的ov2640可用
离线
晕哥 说:直接可以用 devmem 设置寄存器
感谢晕哥
# devmem 0x01c20898
0x02277777
# devmem 0x01c20894
0x22222222
# devmem 0x01c20890
0x77772212
这样设置之后自己编译的ov2640可用
更新一下,是这三条
devmem 0x01c20898 32 0x02277777
devmem 0x01c20894 32 0x22222222
devmem 0x01c20890 32 0x77772212
离线
# devmem BusyBox v1.27.2 (2019-08-26 02:51:19 PDT) multi-call binary. Usage: devmem ADDRESS [WIDTH [VALUE]] Read/write from physical address ADDRESS Address to act upon WIDTH Width (8/16/...) VALUE Data to be written # devmem 0x01c20890 0x77777717 # devmem 0x01c20898 0x12237770 #
查询手册,230页。
https://whycan.cn/files/members/1705/11.png
真的是数据口io没初始化好。
非常感谢nothing,晕哥。 nothing邮件回复下我哈,一定要请吃大餐的。一顿不够,二顿.,三顿..... O(∩_∩)O哈哈~
邮件回你了,不过你论坛邮箱设置拒收是收不到回复的哈XD
离线
Tony 说:# devmem BusyBox v1.27.2 (2019-08-26 02:51:19 PDT) multi-call binary. Usage: devmem ADDRESS [WIDTH [VALUE]] Read/write from physical address ADDRESS Address to act upon WIDTH Width (8/16/...) VALUE Data to be written # devmem 0x01c20890 0x77777717 # devmem 0x01c20898 0x12237770 #
查询手册,230页。
https://whycan.cn/files/members/1705/11.png
真的是数据口io没初始化好。
非常感谢nothing,晕哥。 nothing邮件回复下我哈,一定要请吃大餐的。一顿不够,二顿.,三顿..... O(∩_∩)O哈哈~邮件回你了,不过你论坛邮箱设置拒收是收不到回复的哈XD
哈哈,肯定是晕哥在作怪,O(∩_∩)O,我邮箱是不拒绝的,下次见他,罚他喝酒2瓶。我QQ:441993361,有空加我下哈。
离线
@nothing,
@太一酱鸭, 感谢几位大神,
感谢晕哥,都辛苦了。
真是太牛逼了,比原厂的人都厉害。
我之前也是到配置寄存器后,就无法读取数据。
离线
谢谢各位大佬,因为之前调不出来就换了mipi接口的摄像头,后来就没有再去弄v3s了,特别感谢版主大人,特意联系我,告诉我有人解决了
离线
谢谢各位大佬,因为之前调不出来就换了mipi接口的摄像头,后来就没有再去弄v3s了,特别感谢版主大人,特意联系我,告诉我有人解决了
你好,问一下,你mipi摄像头用的是自带的源码驱动吗?可行吗?
离线
学习 说:谢谢各位大佬,因为之前调不出来就换了mipi接口的摄像头,后来就没有再去弄v3s了,特别感谢版主大人,特意联系我,告诉我有人解决了
你好,问一下,你mipi摄像头用的是自带的源码驱动吗?可行吗?
替他回,直接用的源码,可行
离线
单眼皮小哥哥 说:学习 说:谢谢各位大佬,因为之前调不出来就换了mipi接口的摄像头,后来就没有再去弄v3s了,特别感谢版主大人,特意联系我,告诉我有人解决了
你好,问一下,你mipi摄像头用的是自带的源码驱动吗?可行吗?
替他回,直接用的源码,可行
感谢!
离线
单眼皮小哥哥 说:学习 说:谢谢各位大佬,因为之前调不出来就换了mipi接口的摄像头,后来就没有再去弄v3s了,特别感谢版主大人,特意联系我,告诉我有人解决了
你好,问一下,你mipi摄像头用的是自带的源码驱动吗?可行吗?
替他回,直接用的源码,可行
用的是ov5647吗?
离线
太一酱鸭 说:单眼皮小哥哥 说:你好,问一下,你mipi摄像头用的是自带的源码驱动吗?可行吗?
替他回,直接用的源码,可行
用的是ov5647吗?
ov4689和h42,他自己做了板子
离线
单眼皮小哥哥 说:太一酱鸭 说:替他回,直接用的源码,可行
用的是ov5647吗?
ov4689和h42,他自己做了板子
你好,能不能给我看一下scrip文件怎么设置,我这里mipi摄像头抓取图像不成功
[ 54.616044] [VFE]vfe_open
--- Opening /dev/video0...
[ 54.619454] [VFE]..........................vfe clk open!.......................
Trying source module v4l2...[ 54.631190] [VFE]vfe_open ok[ 54.636656] [VFE_WARN]Not find this sensor info, Set vfe core clk = 500000000, after Set vfe core clk = 297000000
/dev/video0 opened.
No input was specified, using the first.
[ 54.660635] [VFE_WARN]os_gpio_set_status, hdl is NULL
[ 54.666440] [VFE_WARN]os_gpio_set_status, hdl is NULL
[ 54.673392] [VFE]mclk on
[ 54.744270] [VFE_ERR]sensor initial error when selecting target device!
[ 54.752405] [VFE]vfe_close
Error selecting input 0
54.755737] [VFE]mclk off
1mVIDIOC_S_INPUT: Operation not permitted
[ 54.785986] [VFE_WARN]os_gpio_set_status, hdl is NULL
[ 54.791715] [VFE_WARN]os_gpio_set_status, hdl is NULL
[ 54.809459] [VFE]..........................vfe clk close!.......................
[ 54.818077] [VFE]vfe_close end
[ 54.821600] [VFE]PE1_reg_value_global is 33333323,vfe_close
我邮箱345067636@qq.com
最近编辑记录 单眼皮小哥哥 (2019-10-10 19:28:08)
离线
最新的主线-5.2版本内核,在licheepi-zero板上,接这个ov2640摄像头,确认是可以采集到图像的。
离线
最新的主线-5.2版本内核,在licheepi-zero板上,接这个ov2640摄像头,确认是可以采集到图像的。
请问你是怎么编译、修改的呢?
离线