Jump to content

OPI ONE server Legacy 3.4.113 Segmentation fault on unload module vfe_v4l2


Recommended Posts

Posted

Hello! Please help me.

The error occurs with both the camera and even without a camera:

1)

root@orangepione:~# modprobe gc2035
root@orangepione:~# modprobe -v vfe_v4l2
insmod /lib/modules/3.4.113-sun8i/kernel/drivers/media/video/videobuf-core.ko 
insmod /lib/modules/3.4.113-sun8i/kernel/drivers/media/video/videobuf-dma-contig.ko 
insmod /lib/modules/3.4.113-sun8i/kernel/drivers/media/video/sunxi-vfe/vfe_v4l2.ko 
root@orangepione:~# dmesg 
...
[  341.296379] [ISP] isp platform_id = 5!
[  341.368184] [CSI_ERR][GC2035]sensor_read err at sensor_detect!
[  341.368199] [CSI_ERR][GC2035]chip found is not an target chip.

Video device is not created in /dev directory.

------

2) When i try to unload vfe_v4l2 driver error occurs: Segmentation fault

root@orangepione:~# modprobe -r -v vfe_v4l2

 

 

rmmod vfe_v4l2
[  526.462050] sunxi oops: enable sdcard JTAG interface
[  526.468731] sunxi oops: cpu frequency: 480 MHz
[  526.470033] sunxi oops: ddr frequency: 624 MHz
[  526.470033] sunxi oops: gpu frequency: 105 MHz
[  526.470033] sunxi oops: cpu temperature: 35 
[  526.470033] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
[  526.470033] Modules linked in: vfe_v4l2(-) videobuf_dma_contig videobuf_core gc2035 vfe_subdev cci vfe_os ir_lirc_codec lirc_dev ir_mce_kbd_decoder ir_sanyo_decoder ir_sony_decoder ir_jvc_decoder ir_rc6_decoder ir_rc5_decoder ir_nec_decoder sunxi_cir rc_core bmp085 pcf8591 [last unloaded: scsi_wait_scan]
[  526.470033] CPU: 3    Not tainted  (3.4.113-sun8i #20)
[  526.470033] PC is at vfe_remove+0x2e4/0x354 [vfe_v4l2]
[  526.470033] LR is at free_irq+0x70/0x78
[  526.470033] pc : [<bf09b188>]    lr : [<c00a42f8>]    psr: 80000013
[  526.470033] sp : d515be18  ip : d515bdf8  fp : d515be34
[  526.470033] r10: 00000000  r9 : d515a000  r8 : c000e1c8
[  526.470033] r7 : d4c60b1c  r6 : 00000001  r5 : bf03fd2c  r4 : d4c60000
[  526.470033] r3 : 00000000  r2 : 00000005  r1 : d4c6001c  r0 : bf0dcf09
[  526.470033] Flags: Nzcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[  526.470033] Control: 10c5387d  Table: 548f006a  DAC: 00000015
[  526.470033] 
[  526.470033] LR: 0xc00a4278:
[  526.470033] 4278  e1a00004 ebffff74 e89da830 c083a81c e1a0c00d e92dd8f0 e24cb004 e52de004
[  526.470033] 4298  e8bd4000 e1a06000 e1a07001 ebfffbc5 e2505000 089da8f0 e5953034 e2134802
[  526.470033] 42b8  0a000003 e3a01e51 e59f0034 ebfe154b e89da8f0 e5953068 e3530000 0a000003
[  526.470033] 42d8  e3001514 e59f0018 ebfe1544 e5854068 e1a01007 e1a00006 ebffff57 eb01bcdc
[  526.470033] 42f8  e89da8f0 c083a81c e1a0c00d e92ddbf0 e24cb004 e24dd008 e52de004 e8bd4000
[  526.470033] 4318  e1a06000 e1a08001 ebfffba6 e1a0300d e3c33d7f e3c3303f e5933004 e3c3333e
[  526.470033] 4338  e3c330ff e3530000 e1a04000 0a000004 e1a03006 e59f20cc e30015e2 e59f00c8
[  526.470033] 4358  ebfe1502 e3540000 01a00004 0a00002b e2847058 e1a00007 eb17f3f3 e5945030
[  526.470033] 
[  526.470033] SP: 0xd515bd98:
[  526.470033] bd98  c09c9900 00000074 c09c9958 d4c60000 d515bdcc c00a4218 bf09b188 80000013
[  526.470033] bdb8  ffffffff d515be04 d515be34 d515bdd0 c000dad8 c0008370 bf0dcf09 d4c6001c
[  526.470033] bdd8  00000005 00000000 d4c60000 bf03fd2c 00000001 d4c60b1c c000e1c8 d515a000
[  526.470033] bdf8  00000000 d515be34 d515bdf8 d515be18 c00a42f8 bf09b188 80000013 ffffffff
[  526.470033] be18  bf1082e0 bf10861c c0a0fd90 00000800 d515be44 d515be38 c0433d70 bf09aeb0
[  526.470033] be38  d515be5c d515be48 c0432480 c0433d58 bf108314 bf1082e0 d515be74 d515be60
[  526.470033] be58  c04324ec c0432400 bf1082e0 d58e5af4 d515be94 d515be78 c0431e8c c04324cc
[  526.470033] be78  bf1082e0 bf1082d8 c0a0fc10 00000800 d515beb4 d515be98 c042fb58 c0431dc0
[  526.470033] 
[  526.470033] IP: 0xd515bd78:
[  526.470033] bd78  d515bd94 d515bd88 c06a135c c00a3d00 d515bdcc d515bd98 c00a3d00 c06a0c40
[  526.470033] bd98  c09c9900 00000074 c09c9958 d4c60000 d515bdcc c00a4218 bf09b188 80000013
[  526.470033] bdb8  ffffffff d515be04 d515be34 d515bdd0 c000dad8 c0008370 bf0dcf09 d4c6001c
[  526.470033] bdd8  00000005 00000000 d4c60000 bf03fd2c 00000001 d4c60b1c c000e1c8 d515a000
[  526.470033] bdf8  00000000 d515be34 d515bdf8 d515be18 c00a42f8 bf09b188 80000013 ffffffff
[  526.470033] be18  bf1082e0 bf10861c c0a0fd90 00000800 d515be44 d515be38 c0433d70 bf09aeb0
[  526.470033] be38  d515be5c d515be48 c0432480 c0433d58 bf108314 bf1082e0 d515be74 d515be60
[  526.470033] be58  c04324ec c0432400 bf1082e0 d58e5af4 d515be94 d515be78 c0431e8c c04324cc
[  526.470033] 
[  526.470033] FP: 0xd515bdb4:
[  526.470033] bdb4  80000013 ffffffff d515be04 d515be34 d515bdd0 c000dad8 c0008370 bf0dcf09
[  526.470033] bdd4  d4c6001c 00000005 00000000 d4c60000 bf03fd2c 00000001 d4c60b1c c000e1c8
[  526.470033] bdf4  d515a000 00000000 d515be34 d515bdf8 d515be18 c00a42f8 bf09b188 80000013
[  526.470033] be14  ffffffff bf1082e0 bf10861c c0a0fd90 00000800 d515be44 d515be38 c0433d70
[  526.470033] be34  bf09aeb0 d515be5c d515be48 c0432480 c0433d58 bf108314 bf1082e0 d515be74
[  526.470033] be54  d515be60 c04324ec c0432400 bf1082e0 d58e5af4 d515be94 d515be78 c0431e8c
[  526.470033] be74  c04324cc bf1082e0 bf1082d8 c0a0fc10 00000800 d515beb4 d515be98 c042fb58
[  526.470033] be94  c0431dc0 00000000 bf1082d8 d515a000 00000800 d515bed4 d515beb8 c04343e0
[  526.470033] 
[  526.470033] R1: 0xd4c5ff9c:
[  526.470033] ff9c  00000000 00000000 00000000 00000000 00000000 00000000 00000000 55325811
[  526.470033] ffbc  55325c11 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  526.470033] ffdc  00000000 00000000 00000000 00000000 00000000 00000000 00000000 55fad821
[  526.470033] fffc  55fadc21 00000000 00000000 00000000 d4c6000c d4c6000c 00000000 00000000
[  526.470033] 001c  786e7573 66765f69 75732065 5f69786e 2e656676 00000030 00000000 00000000
[  526.470033] 003c  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000001
[  526.470033] 005c  00000000 00000000 d4c60064 d4c60064 00000000 00000001 00000000 d4802580
[  526.470033] 007c  00000000 00000000 00000000 00000000 bf1082d8 00000000 00000000 00000000
[  526.470033] 
[  526.470033] R4: 0xd4c5ff80:
[  526.470033] ff80  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  526.470033] ffa0  00000000 00000000 00000000 00000000 00000000 00000000 55325811 55325c11
[  526.470033] ffc0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  526.470033] ffe0  00000000 00000000 00000000 00000000 00000000 00000000 55fad821 55fadc21
[  526.470033] 0000  00000000 00000000 00000000 d4c6000c d4c6000c 00000000 00000000 786e7573
[  526.470033] 0020  66765f69 75732065 5f69786e 2e656676 00000030 00000000 00000000 00000000
[  526.470033] 0040  00000000 00000000 00000000 00000000 00000000 00000000 00000001 00000000
[  526.470033] 0060  00000000 d4c60064 d4c60064 00000000 00000001 00000000 d4802580 00000000
[  526.470033] 
[  526.470033] R7: 0xd4c60a9c:
[  526.470033] 0a9c  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  526.470033] 0abc  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  526.470033] 0adc  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  526.470033] 0afc  00000000 00000000 00000000 000000ff 00000000 00000000 00000000 00000000
[  526.470033] 0b1c  d4c60504 d4c60810 30326367 00003533 00000000 00000000 00000000 003c0000
[  526.470033] 0b3c  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  526.470033] 0b5c  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  526.470033] 0b7c  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  526.470033] 
[  526.470033] R8: 0xc000e148:
[  526.470033] e148  e3570f5f e24fef7d 3798f107 e28d1008 e3a08000 e357080f e2270000 2a0012e0
[  526.470033] e168  ea00f49a e24ee004 e58de03c eaffff79 e1a02007 e28d1008 e3a00000 eb000ab3
[  526.470033] e188  e28fe014 e1a07000 e28d1008 e3570f5f 3891000f 3798f107 eaffffec e5ad0008
[  526.470033] e1a8  e1a02007 e1a0100d e3a00001 eb000aa7 eaffff80 e320f000 c09e9d44 c000e87c
[  526.470033] e1c8  c003d38c c002e73c c000e7e0 c011f2dc c011f354 c011e424 c011d364 c004b3d8
[  526.470033] e1e8  c011e46c c012d64c c012d40c c000e7f0 c011dd80 c004b3d8 c012d290 c011e004
[  526.470033] e208  c007c468 c004b3d8 c004b3d8 c011eb4c c00393dc c013c548 c004b3d8 c007c550
[  526.470033] e228  c007c9b8 c004b3d8 c0035a2c c004b3d8 c004b3d8 c003e5c4 c004b3d8 c004b3d8
[  526.470033] 
[  526.470033] R9: 0xd5159f80:
[  526.470033] 9f80  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  526.470033] 9fa0  00000000 55e0be7e 55e0ce7e 55e0de7e 55e0ee7e 43165e7e 00000000 00000000
[  526.470033] 9fc0  43168e7e 43169e7e 4316ae7e 4316be7e 4316ce7e 4316de7e 4316ee7e 4316fe7e
[  526.470033] 9fe0  43170e7e 43171e7e 43172e7e 43173e7e 43174e7e 43175e7e 43176e7e 00000000
[  526.470033] a000  00000000 00000002 00000000 d53f4d40 c09eb380 00000003 00000015 c1013780
[  526.470033] a020  d53f4d40 d515a000 d58f0c80 173c5a07 d5b51ac0 00000000 d515be3c d515bda0
[  526.470033] a040  c069fca4 00000000 00000000 00000000 00000000 00000000 01000000 00000000
[  526.470033] a060  b6f5a850 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  526.470033] Process modprobe (pid: 872, stack limit = 0xd515a2f8)
[  526.470033] Stack: (0xd515be18 to 0xd515c000)
[  526.470033] be00:                                                       bf1082e0 bf10861c
[  526.470033] be20: c0a0fd90 00000800 d515be44 d515be38 c0433d70 bf09aeb0 d515be5c d515be48
[  526.470033] be40: c0432480 c0433d58 bf108314 bf1082e0 d515be74 d515be60 c04324ec c0432400
[  526.470033] be60: bf1082e0 d58e5af4 d515be94 d515be78 c0431e8c c04324cc bf1082e0 bf1082d8
[  526.470033] be80: c0a0fc10 00000800 d515beb4 d515be98 c042fb58 c0431dc0 00000000 bf1082d8
[  526.470033] bea0: d515a000 00000800 d515bed4 d515beb8 c04343e0 c042fa44 bf1082d8 00000001
[  526.470033] bec0: d515a000 00000800 d515beec d515bed8 c0434430 c04343c4 bf03fd2c 00000001
[  526.470033] bee0: d515bf34 d515bef0 bf09b280 c0434420 d515bf14 30697363 00000000 00000000
[  526.470033] bf00: 00000000 00000001 00000000 00000000 00000000 00000000 d515a000 bf1167dc
[  526.470033] bf20: 00000000 d515a000 d515bfa4 d515bf38 c007fab0 bf09b204 c011f06c 00000000
[  526.470033] bf40: bf1167dc 00000800 d515bf3c 5f656676 326c3476 00000000 0000000f d515a000
[  526.470033] bf60: d515bfa4 d515bf70 c011f3a0 c011ef50 c01058bc 00000000 00000000 00000000
[  526.470033] bf80: ffffffff 0000000f b7736398 b7736398 00000001 00000081 00000000 d515bfa8
[  526.470033] bfa0: c000df60 c007f910 b7736398 b7736398 b77363cc 00000800 2021bf00 00000000
[  526.470033] bfc0: b7736398 b7736398 00000001 00000081 00000000 00000001 b7736398 bef43d84
[  526.470033] bfe0: b6eb8521 bef429ac b6f49613 b6eb8526 80000030 b77363cc 000069f8 00000802
[  526.470033] [<bf09b188>] (vfe_remove+0x2e4/0x354 [vfe_v4l2]) from [<c0433d70>] (platform_drv_remove+0x24/0x28)
[  526.470033] [<c0433d70>] (platform_drv_remove+0x24/0x28) from [<c0432480>] (__device_release_driver+0x8c/0xcc)
[  526.470033] [<c0432480>] (__device_release_driver+0x8c/0xcc) from [<c04324ec>] (device_release_driver+0x2c/0x38)
[  526.470033] [<c04324ec>] (device_release_driver+0x2c/0x38) from [<c0431e8c>] (bus_remove_device+0xd8/0xe8)
[  526.470033] [<c0431e8c>] (bus_remove_device+0xd8/0xe8) from [<c042fb58>] (device_del+0x120/0x184)
[  526.470033] [<c042fb58>] (device_del+0x120/0x184) from [<c04343e0>] (platform_device_del+0x28/0x5c)
[  526.470033] [<c04343e0>] (platform_device_del+0x28/0x5c) from [<c0434430>] (platform_device_unregister+0x1c/0x28)
[  526.470033] [<c0434430>] (platform_device_unregister+0x1c/0x28) from [<bf09b280>] (vfe_exit+0x88/0x174 [vfe_v4l2])
[  526.470033] [<bf09b280>] (vfe_exit+0x88/0x174 [vfe_v4l2]) from [<c007fab0>] (sys_delete_module+0x1ac/0x24c)
[  526.470033] [<c007fab0>] (sys_delete_module+0x1ac/0x24c) from [<c000df60>] (ret_fast_syscall+0x0/0x30)
[  526.470033] Code: eb402442 e594313c e284101c e59f0064 (e5932034) 
[  528.632709] ---[ end trace 65e47038f2f0e241 ]---
 
 
Message from syslogd@localhost at Jan 22 13:22:42 ...
 
 kernel:[  526.462050] sunxi oops: enable sdcard JTAG interface
 
 
 
Message from syslogd@localhost at Jan 22 13:22:42 ...
 
 kernel:[  526.468731] sunxi oops: cpu frequency: 480 MHz
 
 
 
Message from syslogd@localhost at Jan 22 13:22:42 ...
 
 kernel:[  526.470033] sunxi oops: ddr frequency: 624 MHz
 
 
 
Message from syslogd@localhost at Jan 22 13:22:42 ...
 
 kernel:[  526.470033] sunxi oops: gpu frequency: 105 MHz
 
 
 
Message from syslogd@localhost at Jan 22 13:22:42 ...
 
 kernel:[  526.470033] sunxi oops: cpu temperature: 35 
 
 
 
Message from syslogd@localhost at Jan 22 13:22:42 ...
 
 kernel:[  526.470033] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
 
 
 
Message from syslogd@localhost at Jan 22 13:22:42 ...
 
 kernel:[  526.470033] Process modprobe (pid: 872, stack limit = 0xd515a2f8)
 
 
 
Message from syslogd@localhost at Jan 22 13:22:42 ...
 
 kernel:[  526.470033] Stack: (0xd515be18 to 0xd515c000)
 
 
 
Message from syslogd@localhost at Jan 22 13:22:42 ...
 
 kernel:[  526.470033] be00:                                                       bf1082e0 bf10861c
 
 
 
Message from syslogd@localhost at Jan 22 13:22:42 ...
 
 kernel:[  526.470033] be20: c0a0fd90 00000800 d515be44 d515be38 c0433d70 bf09aeb0 d515be5c d515be48
 
 
 
Message from syslogd@localhost at Jan 22 13:22:42 ...
 
 kernel:[  526.470033] be40: c0432480 c0433d58 bf108314 bf1082e0 d515be74 d515be60 c04324ec c0432400
 
 
 
Message from syslogd@localhost at Jan 22 13:22:42 ...
 
 kernel:[  526.470033] be60: bf1082e0 d58e5af4 d515be94 d515be78 c0431e8c c04324cc bf1082e0 bf1082d8
 
 
 
Message from syslogd@localhost at Jan 22 13:22:42 ...
 
 kernel:[  526.470033] be80: c0a0fc10 00000800 d515beb4 d515be98 c042fb58 c0431dc0 00000000 bf1082d8
 
 
 
Message from syslogd@localhost at Jan 22 13:22:42 ...
 
 kernel:[  526.470033] bea0: d515a000 00000800 d515bed4 d515beb8 c04343e0 c042fa44 bf1082d8 00000001
 
 
 
Message from syslogd@localhost at Jan 22 13:22:42 ...
 
 kernel:[  526.470033] bec0: d515a000 00000800 d515beec d515bed8 c0434430 c04343c4 bf03fd2c 00000001
 
 
 
Message from syslogd@localhost at Jan 22 13:22:42 ...
 
 kernel:[  526.470033] bee0: d515bf34 d515bef0 bf09b280 c0434420 d515bf14 30697363 00000000 00000000
 
 
 
Message from syslogd@localhost at Jan 22 13:22:42 ...
 
 kernel:[  526.470033] bf00: 00000000 00000001 00000000 00000000 00000000 00000000 d515a000 bf1167dc
 
 
 
Message from syslogd@localhost at Jan 22 13:22:42 ...
 
 kernel:[  526.470033] bf20: 00000000 d515a000 d515bfa4 d515bf38 c007fab0 bf09b204 c011f06c 00000000
 
 
 
Message from syslogd@localhost at Jan 22 13:22:42 ...
 
 kernel:[  526.470033] bf40: bf1167dc 00000800 d515bf3c 5f656676 326c3476 00000000 0000000f d515a000
 
 
 
Message from syslogd@localhost at Jan 22 13:22:42 ...
 
 kernel:[  526.470033] bf60: d515bfa4 d515bf70 c011f3a0 c011ef50 c01058bc 00000000 00000000 00000000
 
 
 
Message from syslogd@localhost at Jan 22 13:22:42 ...
 
 kernel:[  526.470033] bf80: ffffffff 0000000f b7736398 b7736398 00000001 00000081 00000000 d515bfa8
 
 
 
Message from syslogd@localhost at Jan 22 13:22:42 ...
 
 kernel:[  526.470033] bfa0: c000df60 c007f910 b7736398 b7736398 b77363cc 00000800 2021bf00 00000000
 
 
 
Message from syslogd@localhost at Jan 22 13:22:42 ...
 
 kernel:[  526.470033] bfc0: b7736398 b7736398 00000001 00000081 00000000 00000001 b7736398 bef43d84
 
 
 
Message from syslogd@localhost at Jan 22 13:22:42 ...
 
 kernel:[  526.470033] bfe0: b6eb8521 bef429ac b6f49613 b6eb8526 80000030 b77363cc 000069f8 00000802
 
 
 
Message from syslogd@localhost at Jan 22 13:22:42 ...
 
 kernel:[  526.470033] Code: eb402442 e594313c e284101c e59f0064 (e5932034) 
 
Segmentation fault

 

Error the same on debian and Ubuntu.

Is not working correctly my board orange pi one?
Or is this problem armbian 3.4.113 image?
 
Thank you
Posted

The correct order to unload the driver is:

modprobe -r gc2035
modprobe -r vfe_v4l2

Try Fex with:

[twi2]
twi_used = 0
Posted
The correct order to unload the driver,
I will try later.
 

in /boot/script.bin -> script.fex

 

 

[twi2]
twi_used = 0

already set, but camera not working.

Posted

Hello. I have the same problem. I'm using Orange Pi PC Plus with this camera module https://www.aliexpress.com/item/Orange-Pi-Open-source-IP-Camera-with-wide-angle-lens-Smart-Home-Control-Device-for-PC/32652476606.html

root@orangepipcplus:~# uname -a
Linux orangepipcplus 3.4.113-sun8i #20 SMP PREEMPT Fri Dec 30 14:37:10 CET 2016 armv7l armv7l armv7l GNU/Linux

After

root@orangepipcplus:~# modprobe gc2035 hres=0 mclk=34
root@orangepipcplus:~# modprobe vfe_v4l2

I got next in dmesg

[  134.209558] [ISP] isp platform_id = 5!
[  134.278253] [CSI_ERR][GC2035]sensor_read err at sensor_detect!
[  134.278270] [CSI_ERR][GC2035]chip found is not an target chip.

Also I checked camera in Android (which is used by default in PC Plus) and it works normally.

Posted

I tried older release of Armbian 5.20 with kernel 3.4.112 and it seems camera module works correctly

root@orangepipcplus:~# uname -a
Linux orangepipcplus 3.4.112-sun8i #14 SMP PREEMPT Wed Sep 14 20:29:31 CEST 2016 armv7l GNU/Linux
[  154.776883] [VFE]cci probe start cci_sel = 0!
[  154.776966] [VFE]cci probe end cci_sel = 0!
[  154.777141] [VFE]cci_init end
[  170.701899] [VFE]Welcome to Video Front End driver
[  170.702246] [VFE]pdev->id = 0
[  170.702257] [VFE]dev->mipi_sel = 0
[  170.702264] [VFE]dev->vip_sel = 0
[  170.702271] [VFE]dev->isp_sel = 0
[  170.708397] [VFE_WARN]vfe vpu clock is null
[  170.715846] [VFE]..........................vfe clk open!.......................
[  170.715878] [ISP] isp platform_id = 5!
[  170.716037] [VFE]vfe_init end
[  170.720239] [VFE]probe_work_handle start!
[  170.720268] [VFE]v4l2 subdev register input_num = 0
[  170.720280] [VFE]vfe sensor detect start! input_num = 0
[  170.720295] [VFE]Find sensor name is "gc2035", i2c address is 78, type is "YUV" !
[  170.720307] [VFE]Sub device register "gc2035" i2c_addr = 0x78 start!
[  170.720322] [VFE]v4l2_device_register_subdev return 0
[  170.720332] [VFE]registered sensor subdev is OK!
[  170.720340] [VFE]Check sensor!
[  170.732460] [VFE]mclk on
[  170.787924] [CSI][GC2035]V4L2_IDENT_SENSOR=2035[CSI][GC2035]disalbe oe!
[  171.222183] [VFE]mclk off
[  171.234295] [VFE]Sub device register "gc2035" is OK!
[  171.234809] [VFE]V4L2 device registered as video0
[  171.234869] [VFE]..........................vfe clk close!.......................
[  171.234906] [VFE]probe_work_handle end!
[  171.245028] [VFE]vfe_open
[  171.245062] [VFE]..........................vfe clk open!.......................
[  171.245118] [VFE]vfe_open ok
[  171.245525] [VFE]vfe_close
[  171.245545] [VFE]vfe select input flag = 0, s_input have not be used .
[  171.245576] [VFE]..........................vfe clk close!.......................
[  171.245621] [VFE]vfe_close end
root@orangepipcplus:~# ls /dev/v
v4l/    vcs1    vcs3    vcs5    vcsa    vcsa2   vcsa4   vcsa6   vmouse
vcs     vcs2    vcs4    vcs6    vcsa1   vcsa3   vcsa5   video0
Posted
Thank you, i reproduced this version, but noted that that when accessing the camera, generates a large amount of debugging information in /var/log/syslog, /var/log/messages, /var/log/kern.log:



...
Jan 31 04:53:40 localhost kernel: [ 1662.521479] [VFE_WARN] Nobody is waiting on this video buffer,buf
= 0xd535c2c0
Jan 31 04:53:40 localhost kernel: [ 1662.609079] [VFE_WARN] Nobody is waiting on this video buffer,buf
= 0xd4870800
Jan 31 04:53:40 localhost kernel: [ 1662.696673] [VFE_WARN]Only two buffer left for csi
Jan 31 04:53:40 localhost kernel: [ 1662.784252] [VFE]capture video mode!
Jan 31 04:53:40 localhost kernel: [ 1662.871855] [VFE]capture video first frame done!
Jan 31 04:53:40 localhost kernel: [ 1662.871880] [VFE_WARN] Nobody is waiting on this video buffer,buf
= 0xd5b108c0
Jan 31 04:53:40 localhost kernel: [ 1662.959447] [VFE_WARN]Only two buffer left for csi
Jan 31 04:53:40 localhost kernel: [ 1663.047053] [VFE]capture video mode!
Jan 31 04:53:40 localhost kernel: [ 1663.134639] [VFE]capture video first frame done!
Jan 31 04:53:40 localhost kernel: [ 1663.134657] [VFE_WARN] Nobody is waiting on this video buffer,buf
= 0xd535c380
Jan 31 04:53:40 localhost kernel: [ 1663.222285] [VFE_WARN] Nobody is waiting on this video buffer,buf
= 0xd535c2c0
Jan 31 04:53:41 localhost kernel: [ 1663.309844] [VFE_WARN]Only two buffer left for csi
Jan 31 04:53:41 localhost kernel: [ 1663.397436] [VFE]capture video mode!
Jan 31 04:53:41 localhost kernel: [ 1663.485040] [VFE]capture video first frame done!
Jan 31 04:53:41 localhost kernel: [ 1663.485064] [VFE_WARN] Nobody is waiting on this video buffer,buf
= 0xd4870800
...


How to stop this notice, or this is virtually impossible to use?

Posted

Hi,

 

Got exactly the same problem with an orange pi lite, 5.25 server. I had to downgrade to 5.20 kernel (3.4.112) in order to use my gc2035.

 

Regards

Posted

I have the same problem, I haven't downgraded yet, as I am needing later kernel.

 

I've looked at the camera/vfe source code and the drivers have constant, hardcoded addresses.

 

I am wondering if anyone knows how the fex system affects these values? I have worked at ARM (symbian driver compatibility) and some issue fixes use post-build injection, but I do not know if that is how fex works?

 

Thanks :-)

Posted

Well, it was a long way and many hours lost until I finally discovered this post. I had this very same weird issue with the latest Armbian. Now I'm switching back to 5.20 test the CSI camera.

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines