CubieBoard中文论坛

 找回密码
 立即注册
搜索
热搜: unable
12
返回列表 发新帖
楼主: CN-P5

求助OV7670调试问题 搞了好久没搞定...

[复制链接]
 楼主| 发表于 2014-9-22 05:03:40 | 显示全部楼层
今天又从头安装了cubian 重新调试OV7670 配置完fex后测试出现以下错误 请求大牛们帮助
[  469.209995] ------------[ cut here ]------------
[  469.237651] Modules linked in: sun4i_csi1 ov7670 videobuf_dma_contig videobuf_core disp_ump mali_drm drm mali ump gpio_sunxi
[  469.261130] CPU: 0    Not tainted  (3.4.79-sun4i #23)
[  469.271059] PC is at videobuf_next_field+0x38/0x3c [videobuf_core]
[  469.281753] LR is at videobuf_qbuf+0x2f8/0x4c0 [videobuf_core]
[  469.296430] pc : [<bf09f4dc>]    lr : [<bf09f7d8>]    psr: 60000013
[  469.296436] sp : ef035d48  ip : 00000000  fp : eeae0800
[  469.311813] r10: ef035e58  r9 : bf0bd200  r8 : bf0a25ac
[  469.322241] r7 : eeae0280  r6 : ee645800  r5 : ef035e58  r4 : ee6454a4
[  469.333969] r3 : ee6454a4  r2 : 00000001  r1 : 20070728  r0 : 00000000
[  469.346306] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[  469.357862] Control: 10c5387d  Table: 6e638019  DAC: 00000015
[  469.365258]
[  469.365261] SP: 0xef035cc8:
[  469.369976] 5cc8  5d333631 00000020 00000002 ef035cca bf0bd200 ee8e8600 bf09f4e0 60000013
[  469.385172] 5ce8  c000eb54 00000000 e7100000 c000e84c ef035e58 c000e84c 00000000 20070728
[  469.400368] 5d08  00000001 ee6454a4 ee6454a4 ef035e58 ee645800 eeae0280 bf0a25ac bf0bd200
[  469.415564] 5d28  ef035e58 eeae0800 00000000 ef035d48 bf09f7d8 bf09f4dc 60000013 ffffffff
[  469.430760] 5d48  c0c2d27c bf0bae64 00000000 ee645800 c044560f 00000000 bf0bd200 c058277c
[  469.445955] 5d68  eec3c2c0 c009b074 ee89f0cc 00000004 ef034030 00000001 ef035dac c0055980
[  469.461150] 5d88  00000000 60000193 ee89f0cc ee981c60 d22f1be0 c00bd594 00000000 c0019990
[  469.476345] 5da8  d22f1be0 00000000 ee981c60 c00b3664 ef034000 ee625000 00000000 00000000
[  469.492759]
[  469.492762] FP: 0xeeae0780:
[  469.497476] 0780  ee91d880 ee91a270 ee8c0610 eefedf00 c07c2240 00000001 00020002 0000001f
[  469.512672] 07a0  00000008 00000000 00000000 00000000 00000000 00000000 00000000 ee8af000
[  469.527871] 07c0  00000000 00000000 00000000 00000000 00000000 00000000 ffffffff ffffffff
[  469.543066] 07e0  00000000 00000000 00000000 eeae07ec eeae07ec eeae07f4 eeae07f4 ee618240
[  469.558261] 0800  ee983880 ef021670 ee858e50 eed2a280 c0876920 00000005 00000802 0000001f
[  469.573457] 0820  00000000 00000000 00000000 00000000 00000000 00000000 00000000 ee635800
[  469.588651] 0840  00000000 00000000 00000000 00000000 00000000 00000000 ffffffff ffffffff
[  469.603846] 0860  00000000 00000000 00000000 eeae086c eeae086c eeae0874 eeae0874 ee610920
[  469.620255]
[  469.620258] R3: 0xee645424:
[  469.624972] 5424  69346e75 6973635f 00302e31 00000000 00000000 00000000 00000000 00000000
[  469.640167] 5444  00000000 00000000 00000000 00000000 00000000 ee645458 ee645458 00000002
[  469.655362] 5464  00000000 ee8e8600 bf0bf2c0 00000000 ee645800 ee645478 ee645478 00000000
[  469.670558] 5484  00000000 00000000 00000000 00000000 bf0bf000 00000160 00000120 00031800
[  469.685753] 54a4  00000000 ee6454a8 ee6454a8 00000000 ee645474 00000000 ee6454bc ee6454bc
[  469.700949] 54c4  00000001 00000000 00000068 00000000 00000000 eeae0280 eeae0380 eeae0c80
[  469.716144] 54e4  eeae0a00 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  469.731338] 5504  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  469.747747]
[  469.747750] R4: 0xee645424:
[  469.752464] 5424  69346e75 6973635f 00302e31 00000000 00000000 00000000 00000000 00000000
[  469.767659] 5444  00000000 00000000 00000000 00000000 00000000 ee645458 ee645458 00000002
[  469.782854] 5464  00000000 ee8e8600 bf0bf2c0 00000000 ee645800 ee645478 ee645478 00000000
[  469.798050] 5484  00000000 00000000 00000000 00000000 bf0bf000 00000160 00000120 00031800
[  469.813245] 54a4  00000000 ee6454a8 ee6454a8 00000000 ee645474 00000000 ee6454bc ee6454bc
[  469.828441] 54c4  00000001 00000000 00000068 00000000 00000000 eeae0280 eeae0380 eeae0c80
[  469.843637] 54e4  eeae0a00 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  469.858832] 5504  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  469.875241]
[  469.875243] R5: 0xef035dd8:
[  469.879958] 5dd8  c0c1f32c ee981c60 00000090 ee66a300 ee6251c8 ee981c60 00000028 ee63adb8
[  469.895154] 5df8  00000000 c00b62b4 00000090 00000028 00000000 00000001 00000001 00000000
[  469.910349] 5e18  00000001 c0afa7d0 c0b553f2 c044560f 00000000 ef035e58 00d09248 00000044
[  469.925545] 5e38  00000003 ee610860 eeae0800 c0581c24 00000028 c0581f50 00000000 c00b6b7c
[  469.940740] 5e58  00000000 00000001 00000000 00000000 00000000 00000000 00000000 00000000
[  469.955936] 5e78  00000000 00000000 00000000 00000000 00000001 00000000 00000000 00000000
[  469.971131] 5e98  00000000 ee66a300 00000000 eeb42e18 eeae0a68 bf0aaff8 00003800 00003831
[  469.986327] 5eb8  00003832 00003863 eeae0a68 eeb42e18 eeb42e40 eeb429bc ee610944 eeb429c4
[  470.002736]
[  470.002739] R6: 0xee645780:
[  470.007453] 5780  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  470.022648] 57a0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  470.037843] 57c0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  470.053038] 57e0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  470.068233] 5800  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  470.083428] 5820  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  470.098623] 5840  00000000 00000000 00000000 00000000 bf0bd3b8 00000000 bf0bf2c8 ee635080
[  470.113818] 5860  ee6721c0 ef01dac0 ee8cbe2c ee6727c0 ef01dac0 c0b2f2d8 ee672880 00000004
[  470.130227]
[  470.130230] R7: 0xeeae0200:
[  470.134944] 0200  eeae0680 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  470.150140] 0220  00000000 00000000 00000000 00000000 ffffffff ffffffff ffffffff ffffffff
[  470.165335] 0240  ffffffff ffffffff 00000000 00000000 00000000 eeb56480 c0af7c80 c0af7a68
[  470.180530] 0260  c0af8568 eeae04e4 c0054338 eeae026c eeae026c eeae0274 eeae0274 eec3e7f0
[  470.195726] 0280  00000000 20070728 00000000 00000000 00000000 00000000 ffffffff 00000000
[  470.210921] 02a0  00000000 00000000 00000000 00000000 00000000 eeae02b4 eeae02b4 00000000
[  470.226117] 02c0  00000000 00000000 00000001 00031800 00000000 b6ada000 eeb56500 00000000
[  470.241312] 02e0  eeae02e8 00000000 0733ac61 83800000 03800000 00032000 00000000 00000000
[  470.257807]
[  470.257810] R10: 0xef035dd8:
[  470.262610] 5dd8  c0c1f32c ee981c60 00000090 ee66a300 ee6251c8 ee981c60 00000028 ee63adb8
[  470.277806] 5df8  00000000 c00b62b4 00000090 00000028 00000000 00000001 00000001 00000000
[  470.293002] 5e18  00000001 c0afa7d0 c0b553f2 c044560f 00000000 ef035e58 00d09248 00000044
[  470.308197] 5e38  00000003 ee610860 eeae0800 c0581c24 00000028 c0581f50 00000000 c00b6b7c
[  470.323393] 5e58  00000000 00000001 00000000 00000000 00000000 00000000 00000000 00000000
[  470.338588] 5e78  00000000 00000000 00000000 00000000 00000001 00000000 00000000 00000000
[  470.353783] 5e98  00000000 ee66a300 00000000 eeb42e18 eeae0a68 bf0aaff8 00003800 00003831
[  470.368977] 5eb8  00003832 00003863 eeae0a68 eeb42e18 eeb42e40 eeb429bc ee610944 eeb429c4
[  470.749767] [<bf09f4dc>] (videobuf_next_field+0x38/0x3c [videobuf_core]) from [<bf09f7d8>] (videobuf_qbuf+0x2f8/0x4c0 [videobuf_core])
[  470.771223] [<bf09f7d8>] (videobuf_qbuf+0x2f8/0x4c0 [videobuf_core]) from [<c058277c>] (__video_do_ioctl+0x82c/0x4b88)
[  470.789981] [<c058277c>] (__video_do_ioctl+0x82c/0x4b88) from [<c0581c24>] (video_usercopy+0x230/0x550)
[  470.806829] [<c0581c24>] (video_usercopy+0x230/0x550) from [<c0580e40>] (v4l2_ioctl+0x134/0x150)
[  470.822895] [<c0580e40>] (v4l2_ioctl+0x134/0x150) from [<c00e90cc>] (do_vfs_ioctl+0x3d0/0x5d0)
[  470.838532] [<c00e90cc>] (do_vfs_ioctl+0x3d0/0x5d0) from [<c00e9300>] (sys_ioctl+0x34/0x60)
[  470.854000] [<c00e9300>] (sys_ioctl+0x34/0x60) from [<c000ec40>] (ret_fast_syscall+0x0/0x30)
[  470.897826] ---[ end trace cc0a4e6ea53a280a ]---

回复 支持 反对

使用道具 举报

 楼主| 发表于 2014-9-22 05:04:23 | 显示全部楼层
前面的错误很简单
Sep 22 04:55:26 Cubian kernel: [  445.355342] [CSI]Welcome to CSI driver
Sep 22 04:55:26 Cubian kernel: [  445.356947] [CSI]csi_init
Sep 22 04:55:26 Cubian kernel: [  445.374648] [CSI]registered sub device,input_num = 0
Sep 22 04:55:26 Cubian kernel: [  445.381248] axp20_ldo3: Failed to create debugfs directory
Sep 22 04:55:26 Cubian kernel: [  445.392857] [CSI]V4L2 device registered as video1
Sep 22 04:55:27 Cubian kernel: [  446.434279] [CSI]sensor initial success when csi open!
Sep 22 04:55:50 Cubian kernel: [  468.949090] [CSI]sensor initial success when csi open!
Sep 22 04:55:50 Cubian kernel: [  468.985838] [CSI_ERR]v4l2 sub device queryctrl error!
Sep 22 04:55:50 Cubian kernel: [  468.992624] [CSI_ERR]v4l2 sub device queryctrl error!
Sep 22 04:55:50 Cubian kernel: [  468.999403] [CSI_ERR]v4l2 sub device queryctrl error!
Sep 22 04:55:50 Cubian kernel: [  469.004370] [CSI_ERR]v4l2 sub device queryctrl error!
Sep 22 04:55:50 Cubian kernel: [  469.008839] [CSI_ERR]v4l2 sub device queryctrl error!
Sep 22 04:55:50 Cubian kernel: [  469.012847] [CSI_ERR]v4l2 sub device queryctrl error!
Sep 22 04:55:50 Cubian kernel: [  469.017115] [CSI_ERR]v4l2 sub device queryctrl error!
Sep 22 04:55:50 Cubian kernel: [  469.021136] [CSI_ERR]v4l2 sub device queryctrl error!
Sep 22 04:55:50 Cubian kernel: [  469.025346] [CSI_ERR]v4l2 sub device queryctrl error!
Sep 22 04:55:50 Cubian kernel: [  469.029352] [CSI_ERR]v4l2 sub device queryctrl error!
Sep 22 04:55:50 Cubian kernel: [  469.033364] [CSI_ERR]v4l2 sub device queryctrl error!
Sep 22 04:55:50 Cubian kernel: [  469.037618] [CSI_ERR]v4l2 sub device queryctrl error!
Sep 22 04:55:50 Cubian kernel: [  469.041623] [CSI_ERR]v4l2 sub device queryctrl error!
Sep 22 04:55:50 Cubian kernel: [  469.045829] [CSI_ERR]v4l2 sub device queryctrl error!
Sep 22 04:55:50 Cubian kernel: [  469.049834] [CSI_ERR]v4l2 sub device queryctrl error!
Sep 22 04:55:50 Cubian kernel: [  469.053858] [CSI_ERR]v4l2 sub device queryctrl error!
Sep 22 04:55:50 Cubian kernel: [  469.058095] [CSI_ERR]v4l2 sub device queryctrl error!
Sep 22 04:55:50 Cubian kernel: [  469.062101] [CSI_ERR]v4l2 sub device queryctrl error!
Sep 22 04:55:50 Cubian kernel: [  469.066305] [CSI_ERR]v4l2 sub device queryctrl error!
Sep 22 04:55:50 Cubian kernel: [  469.070317] [CSI_ERR]v4l2 sub device queryctrl error!
Sep 22 04:55:50 Cubian kernel: [  469.074320] [CSI_ERR]v4l2 sub device queryctrl error!
Sep 22 04:55:50 Cubian kernel: [  469.078611] [CSI_ERR]v4l2 sub device queryctrl error!
Sep 22 04:55:50 Cubian kernel: [  469.082617] [CSI_ERR]v4l2 sub device queryctrl error!
Sep 22 04:55:50 Cubian kernel: [  469.086831] [CSI_ERR]v4l2 sub device queryctrl error!
Sep 22 04:55:50 Cubian kernel: [  469.090838] [CSI_ERR]v4l2 sub device queryctrl error!
Sep 22 04:55:50 Cubian kernel: [  469.094841] [CSI_ERR]v4l2 sub device queryctrl error!
Sep 22 04:55:50 Cubian kernel: [  469.099078] [CSI_ERR]v4l2 sub device queryctrl error!
Sep 22 04:55:50 Cubian kernel: [  469.103090] [CSI_ERR]v4l2 sub device queryctrl error!
Sep 22 04:55:50 Cubian kernel: [  469.107286] [CSI_ERR]v4l2 sub device queryctrl error!
Sep 22 04:55:50 Cubian kernel: [  469.111292] [CSI_ERR]v4l2 sub device queryctrl error!
Sep 22 04:55:50 Cubian kernel: [  469.115484] [CSI_ERR]v4l2 sub device queryctrl error!
Sep 22 04:55:50 Cubian kernel: [  469.119496] [CSI_ERR]v4l2 sub device queryctrl error!
Sep 22 04:55:50 Cubian kernel: [  469.123499] [CSI_ERR]v4l2 sub device queryctrl error!
Sep 22 04:55:50 Cubian kernel: [  469.127732] [CSI_ERR]v4l2 sub device queryctrl error!
Sep 22 04:55:50 Cubian kernel: [  469.131741] [CSI_ERR]v4l2 sub device queryctrl error!
Sep 22 04:55:50 Cubian kernel: [  469.136224] [CSI_ERR]Fourcc format (0x4745504a) invalid.
Sep 22 04:55:50 Cubian kernel: [  469.140493] [CSI_ERR]Fourcc format (0x47504a4d) invalid.
Sep 22 04:55:50 Cubian kernel: [  469.144758] [CSI_ERR]Fourcc format (0x31363553) invalid.
Sep 22 04:55:50 Cubian kernel: [  469.149256] [CSI_ERR]Fourcc format (0x33424752) invalid.
Sep 22 04:55:50 Cubian kernel: [  469.153529] [CSI_ERR]Fourcc format (0x33524742) invalid.
Sep 22 04:55:50 Cubian kernel: [  469.157993] [CSI_ERR]Fourcc format (0x34424752) invalid.
Sep 22 04:55:50 Cubian kernel: [  469.162260] [CSI_ERR]Fourcc format (0x34524742) invalid.
[  469.206163] [CSI]buffer_setup, buffer count=4, size=202752
回复 支持 反对

使用道具 举报

 楼主| 发表于 2014-9-22 05:06:20 | 显示全部楼层
automate 发表于 2014-8-5 11:13
对了,你的TWI1是不是也没有配置啊,fex文件里,你应该已经使能了TWI1但是再看看SCL,SDA引脚是否和实际一 ...

今天从头开始的 twi配置了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|粤ICP备13051116号|cubie.cc---深刻的嵌入式技术讨论社区

GMT+8, 2024-11-23 23:00 , Processed in 0.019368 second(s), 13 queries .

Powered by Discuz! X3.4

© 2001-2012 Comsenz Inc. | Style by Coxxs

返回顶部