Jump to content

lvmc

Members
  • Posts

    134
  • Joined

  • Last visited

Everything posted by lvmc

  1. Got this datasheet from OmniVision for OV5640
  2. Someone could, please, help me match the pinout with .fex specification? That is the datasheet for OV5640 I have in hands!
  3. @mattday I still don't think that hardware pins match .fex definition. Can you explain why do you think it is correct? @lex Do you have M2+ in your hands? If you have it, could you try this image from SinoVoip? http://forum.banana-pi.org/t/bpi-m2-ubuntu-15-10-gpu-vpu-camera-bt-bpi-m2p-beta-v1-0-2016-05-05/1606 It is reported to OV5640 be working... my OV5640 is also working after inverting 180º the connector and turning ON/OFF.
  4. My OV5640 module is failing to POWER_ON vfe.c ret = vfe_set_sensor_power_on(dev); static int vfe_set_sensor_power_on(struct vfe_dev *dev) { int ret = 0; if(!IS_ERR_OR_NULL(dev->sd)) { vfe_set_pmu_channel(dev->sd, IOVDD, ON); } usleep_range(10000,12000); ret = v4l2_subdev_call(dev->sd,core, s_power, CSI_SUBDEV_PWR_ON); vfe_dbg(0,"power_on______________________________\n"); return ret; } Can someone help to check if FEX and PINs from OV5640 datasheet are correct? It seems to be wrong!
  5. I tried again to boot from Android with OV5640 connected and not connected... when it is connected it loads the kernel modules, while when it is not connected it doesn't. root@dolphin-bpi-m2p:/ # lsmod snd_usb_audio 79205 0 - Live 0x00000000 snd_usbmidi_lib 17391 1 snd_usb_audio, Live 0x00000000 snd_hwdep 5337 1 snd_usb_audio, Live 0x00000000 sunxi_sndspdif 3815 0 - Live 0x00000000 sndspdif 2715 0 - Live 0x00000000 sunxi_spdma 3667 0 - Live 0x00000000 sunxi_spdif 7153 0 - Live 0x00000000 uvcvideo 59634 0 - Live 0x00000000 vfe_v4l2 1017257 0 - Live 0x00000000 ov5640 27249 0 - Live 0x00000000 hi253 12500 0 - Live 0x00000000 vfe_subdev 4495 3 vfe_v4l2,ov5640,hi253, Live 0x00000000 vfe_os 4137 2 vfe_v4l2,vfe_subdev, Live 0x00000000 cci 22824 3 vfe_v4l2,ov5640,hi253, Live 0x00000000 videobuf_dma_contig 4221 1 vfe_v4l2, Live 0x00000000 videobuf_core 16552 2 vfe_v4l2,videobuf_dma_contig, Live 0x00000000 dummy_acc 2003 0 - Live 0x00000000 bt_sleep 9107 0 - Live 0x00000000 gpio_sunxi 8265 0 - Live 0x00000000 sunxi_ir_rx 9150 0 - Live 0x00000000 mali 212223 16 - Live 0x00000000 (O) fivm 6442 0 - Live 0x00000000 nand 299199 0 - Live 0x00000000 (O) The Android "Camera" app is showing: dmesg is showing an error... <5>[ 145.676961] [VFE]vfe_open <5>[ 145.676979] [VFE]..........................vfe clk open!....................... <5>[ 145.677130] [VFE]vfe_open ok <5>[ 145.677197] [VFE]Set vfe core clk = 216000000, after Set vfe core clk = 200000000 <7>[ 145.677299] NOT_SUPPORT_THIS_FUNCTION:sun8iw7p1_isp_set_table_addr, line: 372 <3>[ 145.688736] [VFE_ERR]sensor standby off error when selecting target device! <5>[ 145.700491] [VFE]vfe_close <3>[ 145.712670] [VFE_ERR]sensor power off error at device number when csi close! <5>[ 145.725805] [VFE]..........................vfe clk close!....................... <5>[ 145.725840] [VFE]vfe_close end <5>[ 150.937215] [VFE]vfe_open <5>[ 150.937475] [VFE]..........................vfe clk open!....................... <5>[ 150.937521] [VFE]vfe_open ok <5>[ 150.937689] [VFE]Set vfe core clk = 216000000, after Set vfe core clk = 200000000 <7>[ 150.937706] NOT_SUPPORT_THIS_FUNCTION:sun8iw7p1_isp_set_table_addr, line: 372 <3>[ 150.950194] [VFE_ERR]sensor standby off error when selecting target device! <5>[ 150.958255] [VFE]vfe_close <3>[ 150.970114] [VFE_ERR]sensor power off error at device number when csi close! <5>[ 150.977995] [VFE]..........................vfe clk close!....................... <5>[ 150.978074] [VFE]vfe_close end <5>[ 154.241448] [VFE]vfe_open <5>[ 154.241566] [VFE]..........................vfe clk open!....................... <5>[ 154.241607] [VFE]vfe_open ok <5>[ 154.241787] [VFE]Set vfe core clk = 216000000, after Set vfe core clk = 200000000 <7>[ 154.241803] NOT_SUPPORT_THIS_FUNCTION:sun8iw7p1_isp_set_table_addr, line: 372 <3>[ 154.253900] [VFE_ERR]sensor standby off error when selecting target device! <5>[ 154.262882] [VFE]vfe_close <3>[ 154.274939] [VFE_ERR]sensor power off error at device number when csi close! <5>[ 154.283915] [VFE]..........................vfe clk close!....................... <5>[ 154.283955] [VFE]vfe_close end <6>[ 238.883073] healthd: battery l=0 v=0 t=0.0 h=1 st=1 chg=
  6. Accordingly to SinoVoip documentation and a conversation with sales rep the correct camera flat cable position is as shown bellow: During my tests I switched it 180º several times to try... but after reading latest posts I decided to re-install Android image to test if camera was still live. The bad new is that it is not, anymore. So I think it was damaged... waiting for more units from China! Best, Luiz.
  7. @lex from armbian https://github.com/igorpecovnik/lib/blob/master/config/fex/bananapim2plus.fex#L604 from sinovoip https://github.com/BPI-SINOVOIP/BPI-M2P-bsp/commit/ce11facf03efb8cc1b2f84d220e0a371baba9ba1
  8. @lex I was testing the v4l module with a USB and OV5640 camera, the USB is working perfectly... the OV5640 (24 pin) is not. I tried to remove the USB camera... it is not the fault. On .fex file I found a line that is apparently fixing ov5640 to /dev/video0. Do you know anything about VFE_ERR?
  9. Guys, How are you? I'm also trying to make OV5640 work on M2+, but I'm getting this errors (doesn't consider "frameserver" errror, it's from my application):
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines