Jump to content

Levent Erenler

Members
  • Posts

    24
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. hi @FeiJi i dont have a bpi m64, so i dont have a chance to test it but i will try on pine64 with 5.10 kernel. A few months ago, I have a similar problem because of broken camera. Everything were looking normal but i was getting error from driver when i checked dmesg. I change cam and it works. Do you have chance to try different camera.
  2. Sorry @@lex for late reply, i did not see any notification until last message. Thank you usb camera formats are; ioctl: VIDIOC_ENUM_FMT Type: Video Capture [0]: 'MJPG' (Motion-JPEG, compressed) [1]: 'YUYV' (YUYV 4:2:2)
  3. Thanks for your support, I prefer 640*480 cause opencv face or tag recognition consume lots of cpu power, 640*480@30 is acceptable. I try a few more resolution and its getting worst [fmt:JPEG_1X8/1280x720] %100 cpu usage limited 15 FPS, could not reach more fps, cpu usage at single core that means not multithreaded [fmt:UYVY8_2X8/1280x720] // %190 cpu usage @30 fps ,multi threaded [fmt:UYVY8_2X8/1980x1080] // could not handle 30fps ,%200 cpu usage at 15FPS UPDATE: my best scenario is fmt:UYVY8_2X8 and opencv CV_CAP_PROP_FOURCC property is CV_FOURCC('Y', 'U', '1', '2') Cpu usage ~%52
  4. yes, u are right that means there is no conversion. The app is very simple; open camera with opencv videocapturer and grap image with opencv(v3.4.10) and calculate fps (no display). Setup Pine64+ 1GB A64 Kernel 5.9.3 with HBV1318 ov5640 usb camera cpu usage is %6-8 at each core and total cpu usage %25 -31 ( 640*480*30FPS) device listed as doccamera: doccamera (usb-1c1a000.usb-1): /dev/video4 /dev/video5
  5. Thank you @@lex i got my new OV5640 camera and working with 5.9.x Cpu usage around %70 with opencv V4l2 capture fmt:UYVY8_2X8/640x480@30FPS and %60 with JPEG_1X8/640x480@30FPS. It is higher than i expect. i thought csi camera uses GPU to grab image. Usb ov5640 cpu usage around %25 with similar settings. is it normal? Do you have any idea. Thank you.
  6. Thanks @guidol I am testing with pine64+ A64 kernel 5.9.5 i have same warnings in original dtb. I try many things but i could not figure whats wrong! I try to compare my dts file with yours.Do you have source, i mean dts files before compiled(easy to read) or is that https://github.com/megous/linux/tree/orange-pi-5.9 Thank you i try to gave more information UPDATE: I found a solution
  7. Hi, do you have a chance to test it? I could not get sound from audio jack. Could you share your dts if the analog audio working? Thank you
  8. yes sensor is ov5640 and not reversed maybe there was a hardware issue, i dont know, i ordered a new one. Btw i have a reversed one (BP camera). I double check everything but no luck. May i ask is ov5640 works without any issue with a64 (pine64) or could you advise any camera ? i need 30 fps 640x480 to process with opencv. Thank you
  9. Thanks for fast reply,First I changed them according to schematic and i checked, gpios are correct, if there was an issue on my camera or not connectted, could i see device wiith "v4l2-ctl --list-devices" ? Maybe there is a problem on camera hardware. Thank you
  10. Hi, I am working more than 4 days but no luck, could you share your dts and config file. I dont understand whats wrong. i get "ov5640 1-004c: ov5640_init_slave_id: failed with -6" error Thank you root@pine64:~# dmesg |grep ov5640 [ 5.692745] sun6i-csi 1cb0000.csi: creating ov5640 1-004c:0 -> sun6i-csi:0 link [ 5.966763] ov5640 1-004c: ov5640_init_slave_id: failed with -6 [ 595.120402] ov5640 1-004c: ov5640_init_slave_id: failed with -6 root@pine64:~# v4l2-ctl --list-devices cedrus (platform:cedrus): /dev/video0 root@pine64:~# lsmod | grep ov ov5640 32768 1 v4l2_fwnode 28672 2 ov5640,sun6i_csi videodev 258048 7 sunxi_cedrus,v4l2_fwnode,ov5640,videobuf2_v4l2,sun6i_csi,videobuf2_common,v4l2_mem2mem mc 57344 7 sunxi_cedrus,videodev,ov5640,videobuf2_v4l2,sun6i_csi,videobuf2_common,v4l2_mem2mem
  11. Actually i am working on pine64 a64+ , i try to enable ov5640. i thought, i could fix with pinetab csi settings as you mention at above.
  12. Yes i did it, unfortunatelly stuck editing dts file. could you give me a start point to use customized dts. I found dtb file under "/build/cache/sources/linux-mainline/orange-pi-5.8/arch/arm64/boot/dts/allwinner/ " but how could i customize dts before compile the kernel, i dont understand. I mean, how to attach customized dts. Thanks for your help.
  13. I try to enable CSI Camera for pine64 A64+ Mainline Kernel (5.8x) config "CONFIG_VIDEO_SUN6I_CSI=m" NOT located in the kernel config file. And I try to add this line to /build/userpatches/linux-sunxi64-current.config and recompile. Unfortunately my compiled konfig file doesnt contain CONFIG_VIDEO_SUN6I_CSI, i try to find it in KKonfig menu but i coult not locate in the menu. Could anyone help? thank you.
  14. there was an issue about mac address when i was working on it. I dont have a setup to test with current kernel sorry
  15. Thanks for your answer, i checked ArmbianIO, it is based on sysfs. pyGPIO is based on dev/mem, this is what i am looking unfortunatelly it does not support interrupts. I could not find a way to get gpio int from memory. thank you.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines