[linux-sunxi] Re: HDMi Output on OrangePi Win/Win Plus Allwinner A64 (SUN50I)

2020-08-19 Thread Milos Ladni
I forgot to mention that i am using A20 SoC but it should be similar. среда, 19. август 2020. 11.32.58 UTC+2, Milos Ladni је написао/ла: > > Hi, i do this few weeks ago for LVDS display... > > What i did in u-boot configuration: > CONFIG_VIDEO_SUNXI=y > # CONFIG_VID

[linux-sunxi] Re: HDMi Output on OrangePi Win/Win Plus Allwinner A64 (SUN50I)

2020-08-19 Thread Milos Ladni
Hi, i do this few weeks ago for LVDS display... What i did in u-boot configuration: CONFIG_VIDEO_SUNXI=y # CONFIG_VIDEO_HDMI is not set # CONFIG_VIDEO_VGA is not set # CONFIG_VIDEO_COMPOSITE is not set

[linux-sunxi] Re: Installation procedure for mainline U-Boot

2020-08-12 Thread Milos Ladni
Hi, unfortunatelly i played with A10s long time ago and do not have experience with mainlune u-boot and A10s, only with mainline u-boot for A20 SoC. If it's of any help to you, i just recompiled u-boot 2020-04 for 'A10s-OLinuXino-M_defconfig' and i got 'u-boot-sunxi-with-spl.bin' without

[linux-sunxi] Re: Installation procedure for mainline U-Boot

2020-08-11 Thread Milos Ladni
Hi, i am not sure for which board you are trying to compile but generally... If you have yout custom board or want to create your custom default setup you can create new branch and execute: $ ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make savedefconfig This command will create defconfig file.

[linux-sunxi] Re: Installation procedure for mainline U-Boot

2020-08-10 Thread Milos Ladni
Hi Stefan, i am not sure where is the issue but here are my tips how i built new meinline u-boot few months ago... https://linux-sunxi.org/Mainline_U-Boot Install additional packages: $ apt-get install swig python-dev python3-dev Build HowTo: $ git clone git://git.denx.de/u-boot.git $ git

Re: [linux-sunxi] Re: A20 - Mainline 5.8.0 - Display Engine

2020-08-07 Thread Milos Ladni
I forgot to put link for cedar VE PoC :) https://github.com/milosladni/sunxi-tvin2jpeg_h264 -- 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

Re: [linux-sunxi] Re: A20 - Mainline 5.8.0 - Display Engine

2020-08-07 Thread Milos Ladni
I think i have two problems: 1. When i decode video i need to find a way to show it under GUI application by using Display Engine (DRM in this case think) as a separate layer that is always on top. On legacy kernel, i used Display Engine by /dev/disp but it does not exist anymore. 2. Find a

[linux-sunxi] Re: A20 - Mainline 5.8.0 - Display Engine

2020-08-06 Thread Milos Ladni
Hi Andrey, thank you for supporting. Actually, i am not sure if i need 'lima' driver or not... Because i run a simple web based (Javasctipt) GUI application in firefox in fullscreen kiosk mode. It has only two tabs (contexts) with fixed size without scrolling, a few buttons and window space

[linux-sunxi] A20 - Mainline 5.8.0 - Display Engine

2020-08-05 Thread Milos Ladni
Hi all, I am trying to port my custom board from legacy kernel 3.4 to the mainline. I am using an LVDS display with a capacitive touchscreen and it works fine. For the test, i am currently running Armbian Debian Buster without Desktop environment because i need only one application on top of

Re: [linux-sunxi] A20 mainline kernel 5.8.0 - some GPIO ports does not works

2020-07-10 Thread Milos Ladni
Thanks, i saw this in officialy kernel and dts for Lime2. It works perfect now:) петак, 10. јул 2020. 08.06.46 UTC+2, plaes је написао/ла: > > On Thu, Jul 09, 2020 at 02:38:17PM -0700, Milos Ladni wrote: > > Hi, thank you very much! > > > > It works now. I total

Re: [linux-sunxi] A20 mainline kernel 5.8.0 - some GPIO ports does not works

2020-07-09 Thread Milos Ladni
Hi, thank you very much! It works now. I totally forgot to enable ldo3 and ldo4:) I am using my custom board and i want to migrate from legacy 3.4 to mainline. Thanks, Milos четвртак, 09. јул 2020. 19.06.05 UTC+2, Chen-Yu Tsai је написао/ла: > > Hi, > > On Fri, Jul 10, 2020 at 12

[linux-sunxi] A20 mainline kernel 5.8.0 - some GPIO ports does not works

2020-07-09 Thread Milos Ladni
Hi, I am using mainline kernel on my A20 board and can not get GPIO working for some ports. I tested them through standard sysfs and for pin number id i used next : (position of letter in alphabet - 1) * 32 + pin number I tried with PE0, PE1, PE2, and PE4, i think that whole PE port does not

[linux-sunxi] Re: OV5640 1080@30FPS on CSI

2019-06-03 Thread Milos Ladni
Hi, thank you for your update status. Finally, I also got 720P at ~25 fps. So, if someone needs info, OV5640 works with A20 at ~25 fps, the output resolution is 1280x720 (input resolution 2560x1440 and pixel binning are turned on, so sensor give to me half of the input). The CPU load is ~5%

[linux-sunxi] Re: OV5640 1080@30FPS on CSI

2019-05-24 Thread Milos Ladni
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

[linux-sunxi] Re: [PATCH v2 1/3] media: V3s: Add support for Allwinner CSI.

2017-10-16 Thread Milos Ladni
Hello Yong, Did you test CPU load during capture frames from CSI and now many fps did you get? Recently i noticed problem with CPU load which is related to fps not to resolution on old 3.4.75 kernel on A20 platform. I opened new topic few weeks ago but i did not get any answer yet.. Maybe you

[linux-sunxi] Re: tool to generate NAND image for LiveSuit usage

2017-10-16 Thread Milos Ladni
Hi, First, i have never used LiveSuit, i use PhoenixSuit.. Packing/Unpacking image for phoenixsuit have to be done with with imgRePacker tool. Link: https://forum.xda-developers.com/showthread.php?t=1753473 My advice is to find already ready image which work with phoenixsuite for cubieboard2

[linux-sunxi] Re: A20 and CSI high load CPU

2017-10-10 Thread Milos Ladni
Hi again, Does anyone played with CSI recently? I tried to change camera sensor from ov5642 to ov7670 and results are very similar. 640x480 15 fps 60% CPU. Just trigger frames from CSI nothing more. In meanwhile i found out that after epoll wake up for reading VIDIOC_DQBUF execute fast and

[linux-sunxi] A20 and CSI high load CPU

2017-10-04 Thread Milos Ladni
Hello, I have connected ov5642 camera sensor to csi0 of custom board using A20 with kernel linux-sunxi 3.4.75.sun7i+. I have problem with high CPU load. My goal is to encode 1280x720 25fps from ov5642 or similar CSI sensor to h264 and mjpeg. For start i just read RAW YUV 422 frames from

[linux-sunxi] Re: Video Inputs for A20

2017-06-07 Thread Milos Ladni
It depends on what are your requirements, i tested analogue CVBS and it works ok with 4 channels simultaneous.. You can combine how do you want this tv inputs.. tvin0..4 I also tested long time ago CSI digital port with ov7670 but i do not remember which one CSI0 or CSI1.. And i think that i had

[linux-sunxi] Flashing NAND A20 from command line

2017-06-07 Thread Milos Ladni
Hello, Is it possible to flash nand from linux command line? I tried Phoenixsuite, PhoenixUSBPro and Livesuite on Win7, livesuit for linux but it is also graphical.. Thanks, Milos -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe

[linux-sunxi] Re: A20 - Get temperature and Serial

2017-05-15 Thread Milos Ladni
Hi, 1 - As far as i know A20 does not have temperature sensor that is user readable. 2 - I am not sure which PMU you are using but i suppose that it is axp209. It only have over temperature protection. But i am not sure, it has support for battery temperature monitoring but i have not used so

Re: [linux-sunxi] Re: PoC tvin2jpeg_h264 with veisp scaling

2017-03-07 Thread Milos Ladni
I'm glad to hear that. I hope that you will find out what the cause is. However, before ioctl reset, sometimes i had some strange glitches in h264 decoded picture when work simultaneous with h264enc. Some small blocks in the picture was wrong (usually upper left part of picture) color or

Re: [linux-sunxi] Re: PoC tvin2jpeg_h264 with veisp scaling

2017-03-06 Thread Milos Ladni
Hi, > What i can suggest you to do is to make an experience, to check if the > hardware is been correctly configured for each task. > > Before selecting the subengine for each task change, to do a hardware > reset first. (In your tvin2jpeg.c, in function ve_selectsubengine put a > call to the

Re: [linux-sunxi] Re: PoC tvin2jpeg_h264 with veisp scaling

2017-03-02 Thread Milos Ladni
Hi, > The application crashs(segfault?), and running under a debugger doesn't > give any clues about what could be? The app works fine and then in some arbitrary moment when need to decode new frame which consisting from few slices it stuck on first slice in this frame while

Re: [linux-sunxi] Re: PoC tvin2jpeg_h264 with veisp scaling

2017-02-24 Thread Milos Ladni
Thank you Manuel! I managed to make a H264 decoder and it works fine. Now i can run all four operation simultaneous but... Known bug: For now the app can play source with 'num_ref_frames' greater or equal to 1 but if i try to play source with 'num_ref_frames: 3' simultaneous with 264Enc the

Re: [linux-sunxi] Re: PoC tvin2jpeg_h264 with veisp scaling

2017-01-10 Thread Milos Ladni
Hi again, I just wanted to make PoC test simultaneous tasks for my future project and to show others how much this platform is powerful. I need tvin, h264-jpeg encoder+scaler and decoder. Maybe i do not need all four operation simultaneous, but for now i have two cases: -

[linux-sunxi] Re: PoC tvin2jpeg_h264 with veisp scaling

2017-01-09 Thread Milos Ladni
Hello Manuel, I just added hw JPEG decoder in my apps. Now i can do simultaneous h264 encoding, jpeg encoding and jpeg decoding with just ~20% CPU and 25 fps. How app works: Take frame from camera tv-in CVBS 720x576, show it on display by sunxi display engine in smaller resolution 542x359

Re: [linux-sunxi] PoC tvin2jpeg_h264 with veisp scaling

2016-12-02 Thread Milos Ladni
Hi, I'm sorry for the delay. I added this to my example and it works.. Thank you Manuel. Best regards, Milos Ladicorbic On Friday, November 25, 2016 at 10:37:24 PM UTC+1, Manuel Braga wrote: > > On Thu, 24 Nov 2016 23:14:21 -0800 (PST) Milos Ladni > <milosla...@gmail

Re: [linux-sunxi] PoC tvin2jpeg_h264 with veisp scaling

2016-11-24 Thread Milos Ladni
Hi, > last time maybe wasn't very clear explained what this > > "divide scaler" really is. > You are right, i did not understand what divide scaler is. I do not really need raw pictures when i have arbitrary scaler for encoding, this was just for test, i'll fix it. > Another thing were you

[linux-sunxi] Re: PoC tvin2jpeg_h264 with veisp scaling

2016-11-24 Thread Milos Ladni
Sorry i do not have H3, only A10, A10s, A13, A20 On Thursday, November 24, 2016 at 2:36:53 PM UTC+1, @lex wrote: > > Have you tried to port it (JPEG encoder) to H3? > > On Thursday, November 24, 2016 at 10:20:38 AM UTC-2, Milos Ladni wrote: >> >> Hello, >> >>

Re: [linux-sunxi] ISP scaling A20

2016-11-24 Thread Milos Ladni
If anybody else is interesting there is my project: https://groups.google.com/forum/#!topic/linux-sunxi/pI0orsfdh_U -- Milos Ladicorbic -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails

[linux-sunxi] PoC tvin2jpeg_h264 with veisp scaling

2016-11-24 Thread Milos Ladni
Hello, This is yet another Proof of Concept analogue TV decoder (TV-IN) and hardware accelerated H264-JPEG encoder with VEISP scaling for sunxi. This example capture frames from tvin (CVBS) scale it to VGA or QVGA and simultaneous encode frame to jpeg image and h264 stream. sunxi-tvin2jpeg_h264

Re: [linux-sunxi] ISP scaling A20

2016-10-28 Thread Milos Ladni
It works now. I forgot to set MACC_ISP_OUTPIC_STRIDE, just MACC_ISP_PIC_STRIDE. I do not know how i did not see that, sorry and thank you very much again. -- Milos Ladicorbic -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from

Re: [linux-sunxi] ISP scaling A20

2016-10-27 Thread Milos Ladni
Cool, arbitrary scaler is working now..:) Thank you a lot Manuel! By the way, divide-scaler is not working properly yet, maybe i do not need it anymore but It would be nice if i can contribute to the development of VE. These days i will try to merge tvin and hw jpeg encoder in simple

Re: [linux-sunxi] ISP scaling A20

2016-10-26 Thread Milos Ladni
Hi. Today i have made some modifications according to your instructions. So, jpeg encoding without dividing is working well. But when i try to add divider in encode chain there are some problems (i tried to divide source image by 2). It looks like it fill just first 360 bytes (half of 720 in my

Re: [linux-sunxi] ISP scaling A20

2016-10-25 Thread Milos Ladni
to scale down source image by VEISP divider. Best regards, Milos On Monday, October 24, 2016 at 7:38:56 PM UTC+2, Manuel Braga wrote: > > Hi. > > On Fri, 21 Oct 2016 03:19:46 -0700 (PDT) Milos Ladni > <milosla...@gmail.com > wrote: > > Hi everyone, > > > >

[linux-sunxi] ISP scaling A20

2016-10-21 Thread Milos Ladni
Hi everyone, Because there are PoC of hardware JPEG encoding and decoding, i am now interesting of hw scaling.. Does does anyone tried to scale image (raw yuv 4:2:2 4:2:0 or rgb) with A20 hardware? How can i do this? I need scaler to scale image from one resolution to another. Concretely i