Milos, I was able to get ~25 FPS on 720p on A64 with some minor reg changes. You can resort to Armbian, there is a thread (ov5640) where a user/developer report he gets better results than this by modifying some regs and he explains his modification, maybe this can work on A20 (worth reading). If you are encoding the frames with software encoder i think the load is fair. You can try ffmpeg with cedrus, there is some limitation with 720p on A64 but for H3 i think is ok. I did not have any experience with ov5640 on A20. Currently, i am testing the latest ov5640 from mainline kernel 5.1 with sun6i_csi and i get 640x480 30 FPS and 60 FPS but i am unable to switch to any other frame size. FE offers sun6i_csi and ov5640 (kernel 4.14 but worked for me on 4.17 and 4.18) where you get 720p 30 FPS (H3) and some other frame size from the same author of sun6i_csi (Yong).
Hope this helps. On Friday, May 24, 2019 at 8:14:10 AM UTC-3, Milos Ladni wrote: > > Hi @lex, > > sorry for wake up the topic but I am in similar problem with ov5640. > I am using A20 SoC and sunxi kernel 3.4. My goal is HD resolution 720p and > 25 fps. > Currently, I can get max 15fps (although on oscilloscope VSYNC has 30 Hz, > HREF 22kHz, MCLK 24MHz, and PCLK 84MHz). > I am not sure why VSYNC is 30 Hz and SCI driver give to me only 15 fps. I > can print debug message from CSI driver which tell me that 'frame interval' > is 66 ms (~15fps). It looks like that CSI driver detects every second > frame. On my application or gstreamer, I can get max 15 fps. > - Another issue is CPU load. When I start capturing frames form CSI sensor > CPU in kernel space goes very high 60-70% on average for both cores. > It looks like SCI driver consumes CPU for something. I know that CPU load > is from kernel space because I use 'mpstat -P ALL 2 5' and system column > tell you CPU load for kernel space. > Did you manage to get ov5640 working properly or you give up? > Any help is welcome. > > Best regards, > Milos Ladni > > -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/14e03505-142c-4e7c-9f23-c8a317526886%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
