armbinator Posted May 29, 2017 Posted May 29, 2017 Hello, to all OrangePI PC enthusiasts. Well I'm in the community of those who definitely underestimated the Orange of the PI, but let me share my burden :-) for the fun of it. It started with the camera- gc2035 and vfe_v4l2 modules. Had to try a couple of images until I got it by luck I guess - after that I found out that every image I use is not capable of having a FTDI device connected to "ANY" USB Port (OK, you got me, I didn't try the microUSB and I won't). After that I tried no matter what I wanted to connect to USB it was not even recognized. Now I'm back in changing/swapping around Images until I found one that let me plug anything I want into the USB Ports and it worked (It was Ubuntu xenial5.25), but in exhange for that I could not ever get the camera working again. OK-> now I start compiling with the instructions from igors github page https://github.com/armbian/build and I couldn't compile a single one ??? Now I'm into the vagrant approach, still doing something while typing here, let's see. My question here is to be precise and focused on the topic: Is there an image out there which has both? The Cam and the USB working together or is it bound to some exclusivity? If yes where can I find it, or what do I have to do it to make it? all the best Arminator
armbinator Posted May 30, 2017 Author Posted May 30, 2017 OK, now I got it all sorted out: 1.) Igors documentation on compilation through vagrant is flawless and works like a charm -> produced an image of Armbian for OrangePi PC which booted and recognized all USB Devices 3.4.113-sunxi8 O<-check OK 2.) I loaded gc2035 for the camera -> checked dmesg O<-check OK 3.) I loaded vfe_v4l2 to get video0 device -> checked dmesg: [ 77.209552] [ISP] isp platform_id = 5! [ 77.278122] [CSI_ERR][GC2035]sensor_read err at sensor_detect! [ 77.278139] [CSI_ERR][GC2035]chip found is not an target chip. 4.) I tried to unload the vfe_v4l2 module with sudo modprobe -r vfe_v4l2 and catastrophic things happen :-| [ 95.722735] [VFE_ERR]vfe dphy clock is null [ 95.722804] Unable to handle kernel NULL pointer dereference at virtual address 00000034 [ 95.732513] pgd = ee0bc000 [ 95.735739] [00000034] *pgd=00000000 [ 95.740078] sunxi oops: enable sdcard JTAG interface [ 95.745982] sunxi oops: cpu frequency: 480 MHz [ 95.750041] sunxi oops: ddr frequency: 624 MHz [ 95.750041] sunxi oops: gpu frequency: 105 MHz [ 95.750041] sunxi oops: cpu temperature: 35 [ 95.750041] Internal error: Oops: 5 [#1] PREEMPT SMP ARM [ 95.750041] 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 ftdi_sio usbserial pcf8591 bmp085 8189es btrfs [last unloaded: scsi_wait_scan] [ 95.750041] CPU: 2 Not tainted (3.4.113-sun8i #4) [ 95.750041] PC is at vfe_remove+0x2e4/0x354 [vfe_v4l2] [ 95.750041] LR is at free_irq+0x70/0x78 [ 95.750041] pc : [<bf2bd1cc>] lr : [<c00a42f8>] psr: 80000013 [ 95.750041] sp : ee03be18 ip : ee03bdf8 fp : ee03be34 [ 95.750041] r10: 00000000 r9 : ee03a000 r8 : c000e1c8 [ 95.750041] r7 : ed8c0b1c r6 : 00000001 r5 : bf261d2c r4 : ed8c0000 [ 95.750041] r3 : 00000000 r2 : 00000008 r1 : ed8c001c r0 : bf2fef7a [ 95.750041] Flags: Nzcv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user [ 95.750041] Control: 10c5387d Table: 6e0bc06a DAC: 00000015 [ 95.750041] LR: 0xc00a4278: [ 95.750041] 4278 e1a00004 ebffff74 e89da830 c07a943c e1a0c00d e92dd8f0 e24cb004 e52de004 [ 95.750041] 4298 e8bd4000 e1a06000 e1a07001 ebfffbc5 e2505000 089da8f0 e5953034 e2134802 [ 95.750041] 42b8 0a000003 e3a01e51 e59f0034 ebfe154b e89da8f0 e5953068 e3530000 0a000003 [ 95.750041] 42d8 e3001514 e59f0018 ebfe1544 e5854068 e1a01007 e1a00006 ebffff57 eb01bcdc [ 95.750041] 42f8 e89da8f0 c07a943c e1a0c00d e92ddbf0 e24cb004 e24dd008 e52de004 e8bd4000 [ 95.750041] 4318 e1a06000 e1a08001 ebfffba6 e1a0300d e3c33d7f e3c3303f e5933004 e3c3333e [ 95.750041] 4338 e3c330ff e3530000 e1a04000 0a000004 e1a03006 e59f20cc e30015e2 e59f00c8 [ 95.750041] 4358 ebfe1502 e3540000 01a00004 0a00002b e2847058 e1a00007 eb15e5b3 e5945030 [ 95.750041] SP: 0xee03bd98: [ 95.750041] bd98 c0929900 00000074 c0929958 ed8c0000 ee03bdcc c00a4218 bf2bd1cc 80000013 [ 95.750041] bdb8 ffffffff ee03be04 ee03be34 ee03bdd0 c000dad8 c0008370 bf2fef7a ed8c001c [ 95.750041] bdd8 00000008 00000000 ed8c0000 bf261d2c 00000001 ed8c0b1c c000e1c8 ee03a000 [ 95.750041] bdf8 00000000 ee03be34 ee03bdf8 ee03be18 c00a42f8 bf2bd1cc 80000013 ffffffff [ 95.750041] be18 bf32a350 bf32a68c c096ef60 00000800 ee03be44 ee03be38 c03b98a0 bf2bcef4 [ 95.750041] be38 ee03be5c ee03be48 c03b7fb0 c03b9888 bf32a384 bf32a350 ee03be74 ee03be60 [ 95.750041] be58 c03b801c c03b7f30 bf32a350 ef0dfaf4 ee03be94 ee03be78 c03b79bc c03b7ffc [ 95.750041] be78 bf32a350 bf32a348 c096ede0 00000800 ee03beb4 ee03be98 c03b5688 c03b78f0 [ 95.750041] IP: 0xee03bd78: [ 95.750041] bd78 ee03bd94 ee03bd88 c061da5c c00a3d00 ee03bdcc ee03bd98 c00a3d00 c061d340 [ 95.750041] bd98 c0929900 00000074 c0929958 ed8c0000 ee03bdcc c00a4218 bf2bd1cc 80000013 [ 95.750041] bdb8 ffffffff ee03be04 ee03be34 ee03bdd0 c000dad8 c0008370 bf2fef7a ed8c001c [ 95.750041] bdd8 00000008 00000000 ed8c0000 bf261d2c 00000001 ed8c0b1c c000e1c8 ee03a000 [ 95.750041] bdf8 00000000 ee03be34 ee03bdf8 ee03be18 c00a42f8 bf2bd1cc 80000013 ffffffff [ 95.750041] be18 bf32a350 bf32a68c c096ef60 00000800 ee03be44 ee03be38 c03b98a0 bf2bcef4 [ 95.750041] be38 ee03be5c ee03be48 c03b7fb0 c03b9888 bf32a384 bf32a350 ee03be74 ee03be60 [ 95.750041] be58 c03b801c c03b7f30 bf32a350 ef0dfaf4 ee03be94 ee03be78 c03b79bc c03b7ffc [ 95.750041] FP: 0xee03bdb4: [ 95.750041] bdb4 80000013 ffffffff ee03be04 ee03be34 ee03bdd0 c000dad8 c0008370 bf2fef7a [ 95.750041] bdd4 ed8c001c 00000008 00000000 ed8c0000 bf261d2c 00000001 ed8c0b1c c000e1c8 [ 95.750041] bdf4 ee03a000 00000000 ee03be34 ee03bdf8 ee03be18 c00a42f8 bf2bd1cc 80000013 [ 95.750041] be14 ffffffff bf32a350 bf32a68c c096ef60 00000800 ee03be44 ee03be38 c03b98a0 [ 95.750041] be34 bf2bcef4 ee03be5c ee03be48 c03b7fb0 c03b9888 bf32a384 bf32a350 ee03be74 [ 95.750041] be54 ee03be60 c03b801c c03b7f30 bf32a350 ef0dfaf4 ee03be94 ee03be78 c03b79bc [ 95.750041] be74 c03b7ffc bf32a350 bf32a348 c096ede0 00000800 ee03beb4 ee03be98 c03b5688 [ 95.750041] be94 c03b78f0 00000000 bf32a348 ee03a000 00000800 ee03bed4 ee03beb8 c03b9f10 [ 95.750041] R1: 0xed8bff9c: [ 95.750041] ff9c d0bbd0ba d0b2d0b0 d088d1b8 450a2eb8 6e657478 5f646564 63736564 74706972 [ 95.750041] ffbc 2d6e6f69 752e6973 382d6674 b6e0203a b6b6e094 20a7b6e0 e0bab6e0 b7e0adb6 [ 95.750041] ffdc bbb6e094 e094b7e0 b7e0b4b6 80b7e094 e0bbb6e0 b7e094b7 b6e02080 8fb7e0a2 [ 95.750041] fffc e0adb6e0 00000000 00000000 00000000 ed8c000c ed8c000c 00000000 00000000 [ 95.750041] 001c 786e7573 66765f69 75732065 5f69786e 2e656676 00000030 00000000 00000000 [ 95.750041] 003c 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000001 [ 95.750041] 005c 00000000 00000000 ed8c0064 ed8c0064 00000000 00000001 00000000 eeb781c0 [ 95.750041] 007c 00000000 00000000 00000000 00000000 bf32a348 00000000 00000000 00000000 [ 95.750041] R4: 0xed8bff80: [ 95.750041] ff80 b5d0bfd0 b5d080d1 b8d087d1 bbd081d1 bdd0b5d0 8bd1bdd0 d020b5d0 d0bbd0ba [ 95.750041] ffa0 d0b2d0b0 d088d1b8 450a2eb8 6e657478 5f646564 63736564 74706972 2d6e6f69 [ 95.750041] ffc0 752e6973 382d6674 b6e0203a b6b6e094 20a7b6e0 e0bab6e0 b7e0adb6 bbb6e094 [ 95.750041] ffe0 e094b7e0 b7e0b4b6 80b7e094 e0bbb6e0 b7e094b7 b6e02080 8fb7e0a2 e0adb6e0 [ 95.750041] 0000 00000000 00000000 00000000 ed8c000c ed8c000c 00000000 00000000 786e7573 [ 95.750041] 0020 66765f69 75732065 5f69786e 2e656676 00000030 00000000 00000000 00000000 [ 95.750041] 0040 00000000 00000000 00000000 00000000 00000000 00000000 00000001 00000000 [ 95.750041] 0060 00000000 ed8c0064 ed8c0064 00000000 00000001 00000000 eeb781c0 00000000 [ 95.750041] R7: 0xed8c0a9c: [ 95.750041] 0a9c 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 95.750041] 0abc 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 95.750041] 0adc 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 95.750041] 0afc 00000000 00000000 00000000 000000ff 00000000 00000000 00000000 00000000 [ 95.750041] 0b1c ed8c0504 ed8c0810 30326367 00003533 00000000 00000000 00000000 003c0000 [ 95.750041] 0b3c 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 95.750041] 0b5c 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 95.750041] 0b7c 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 95.750041] R8: 0xc000e148: [ 95.750041] e148 e3570f5f e24fef7d 3798f107 e28d1008 e3a08000 e357080f e2270000 2a0012e0 [ 95.750041] e168 ea00f49a e24ee004 e58de03c eaffff79 e1a02007 e28d1008 e3a00000 eb000ab3 [ 95.750041] e188 e28fe014 e1a07000 e28d1008 e3570f5f 3891000f 3798f107 eaffffec e5ad0008 [ 95.750041] e1a8 e1a02007 e1a0100d e3a00001 eb000aa7 eaffff80 e320f000 c0949d84 c000e87c [ 95.750041] e1c8 c003d38c c002e73c c000e7e0 c011f2dc c011f354 c011e424 c011d364 c004b3d8 [ 95.750041] e1e8 c011e46c c012d64c c012d40c c000e7f0 c011dd80 c004b3d8 c012d290 c011e004 [ 95.750041] e208 c007c468 c004b3d8 c004b3d8 c011eb4c c00393dc c013c554 c004b3d8 c007c550 [ 95.750041] e228 c007c9b8 c004b3d8 c0035a2c c004b3d8 c004b3d8 c003e5c4 c004b3d8 c004b3d8 [ 95.750041] R9: 0xee039f80: [ 95.750041] 9f80 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 95.750041] 9fa0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 95.750041] 9fc0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 95.750041] 9fe0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 95.750041] a000 00000000 00000002 00000000 ed88adc0 c094b3c0 00000002 00000015 c13ee780 [ 95.750041] a020 ed88adc0 ee03a000 ef0bac40 19499f8f eeb0e200 00000000 ee03be3c ee03bda0 [ 95.750041] a040 c061c3a4 00000000 00000000 00000000 00000000 00000000 01000000 00000000 [ 95.750041] a060 b6f97850 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 95.750041] Process modprobe (pid: 1033, stack limit = 0xee03a2f8) [ 95.750041] Stack: (0xee03be18 to 0xee03c000) [ 95.750041] be00: bf32a350 bf32a68c [ 95.750041] be20: c096ef60 00000800 ee03be44 ee03be38 c03b98a0 bf2bcef4 ee03be5c ee03be48 [ 95.750041] be40: c03b7fb0 c03b9888 bf32a384 bf32a350 ee03be74 ee03be60 c03b801c c03b7f30 [ 95.750041] be60: bf32a350 ef0dfaf4 ee03be94 ee03be78 c03b79bc c03b7ffc bf32a350 bf32a348 [ 95.750041] be80: c096ede0 00000800 ee03beb4 ee03be98 c03b5688 c03b78f0 00000000 bf32a348 [ 95.750041] bea0: ee03a000 00000800 ee03bed4 ee03beb8 c03b9f10 c03b5574 bf32a348 00000001 [ 95.750041] bec0: ee03a000 00000800 ee03beec ee03bed8 c03b9f60 c03b9ef4 bf261d2c 00000001 [ 95.750041] bee0: ee03bf34 ee03bef0 bf2bd2c4 c03b9f50 ee03bf14 30697363 00000000 00000000 [ 95.750041] bf00: 00000000 00000001 00000000 00000000 00000000 00000000 ee03a000 bf33884c [ 95.750041] bf20: 00000000 ee03a000 ee03bfa4 ee03bf38 c007fab0 bf2bd248 c011ee98 00000000 [ 95.750041] bf40: bf33884c 00000800 ee03bf3c 5f656676 326c3476 00000000 ee03bf84 ee03bf68 [ 95.750041] bf60: c011d358 c011ff70 00000003 ef032680 ef0326c0 ee0376c0 ee03bfa4 ee03bf88 [ 95.750041] bf80: c011d420 0011d2e4 b8803318 b8803318 00000001 00000081 00000000 ee03bfa8 [ 95.750041] bfa0: c000df60 c007f910 b8803318 b8803318 b880334c 00000800 5c1d5300 00000000 [ 95.750041] bfc0: b8803318 b8803318 00000001 00000081 00000000 00000001 b8803318 bee19814 [ 95.750041] bfe0: b6ef4521 bee1843c b6f85613 b6ef4526 80000030 b880334c 6f77d821 6f77dc21 [ 95.750041] [<bf2bd1cc>] (vfe_remove+0x2e4/0x354 [vfe_v4l2]) from [<c03b98a0>] (platform_drv_remove+0x24/0x28) [ 95.750041] [<c03b98a0>] (platform_drv_remove+0x24/0x28) from [<c03b7fb0>] (__device_release_driver+0x8c/0xcc) [ 95.750041] [<c03b7fb0>] (__device_release_driver+0x8c/0xcc) from [<c03b801c>] (device_release_driver+0x2c/0x38) [ 95.750041] [<c03b801c>] (device_release_driver+0x2c/0x38) from [<c03b79bc>] (bus_remove_device+0xd8/0xe8) [ 95.750041] [<c03b79bc>] (bus_remove_device+0xd8/0xe8) from [<c03b5688>] (device_del+0x120/0x184) [ 95.750041] [<c03b5688>] (device_del+0x120/0x184) from [<c03b9f10>] (platform_device_del+0x28/0x5c) [ 95.750041] [<c03b9f10>] (platform_device_del+0x28/0x5c) from [<c03b9f60>] (platform_device_unregister+0x1c/0x28) [ 95.750041] [<c03b9f60>] (platform_device_unregister+0x1c/0x28) from [<bf2bd2c4>] (vfe_exit+0x88/0x174 [vfe_v4l2]) [ 95.750041] [<bf2bd2c4>] (vfe_exit+0x88/0x174 [vfe_v4l2]) from [<c007fab0>] (sys_delete_module+0x1ac/0x24c) [ 95.750041] [<c007fab0>] (sys_delete_module+0x1ac/0x24c) from [<c000df60>] (ret_fast_syscall+0x0/0x30) [ 95.750041] Code: eb379c31 e594313c e284101c e59f0064 (e5932034) [ 98.166123] ---[ end trace 34bfe80aad4e40a5 ]--- What can I do that the camera will work? is there a way since if I use the image of OrangePi Community -> same Distro Jessie8 the USB devices will not work at all so is it not possible to marry both distributions to one functioning both devices? Unfortunately I have not much kernel experience, but if somebody could tell what to do I can gain experience and will try to acomplish that. all the best from the Armbinator
Recommended Posts