From: Nikolay Dimitrov <picmaster@mail.bg>
To: "meta-freescale@yoctoproject.org" <meta-freescale@yoctoproject.org>
Subject: Re: Video overlay on sabresd
Date: Thu, 21 May 2015 05:01:33 +0300 [thread overview]
Message-ID: <555D3C7D.7020406@mail.bg> (raw)
In-Reply-To: <555D1C21.6020402@mail.bg>
Hi all,
On 05/21/2015 02:43 AM, Nikolay Dimitrov wrote:
> Hi all,
>
> On 05/20/2015 08:41 PM, Nikolay Dimitrov wrote:
>> Hi Prabhu,
>>
>> On 05/19/2015 07:22 PM, Prabhu S wrote:
>>> How about this?
>>> /unit_tests/mxc_v4l2_output.out -iw 1024 -ih 768 -ow 1024 -oh 768 -d
>>> /dev/video17 -fr 30 -l 10 -f YUYV ./your-file.yuyv
>>>
>>> /dev/video17 is for overlay
>>>
>>> On Tue, May 19, 2015 at 11:16 AM, Nikolay Dimitrov <picmaster@mail.bg
>>> <mailto:picmaster@mail.bg>> wrote:
>>>
>>> Hi guys,
>>>
>>> I'm trying to get the video overlay working on imx6q sabresd's HDMI.
>>> Here's the kernel command line:
>>>
>>> console=ttymxc0,115200 root=/dev/mmcblk2p2 rootwait rw
>>> video=mxcfb0:dev=hdmi,1280x720M@60,if=RGB2
>>> 4,bpp=32 fbmem=28M
>>>
>>> This is the kernel version:
>>>
>>> # uname -a
>>> Linux imx6qsabresd 3.14.28-1.0.0_ga+g91cf351 #1 SMP PREEMPT Tue May
>>> 19 17:32:51 EEST 2015 armv7l
>>> GNU/Linux
>>>
>>> Here are the framebuffer devices nodes:
>>>
>>> # ls -lh /dev/fb*
>>> crw-rw---- 1 root video 29, 0 Jan 1 1970 /dev/fb0
>>> crw-rw---- 1 root video 29, 1 Jan 1 1970 /dev/fb1
>>> crw-rw---- 1 root video 29, 2 Jan 1 1970 /dev/fb2
>>> crw-rw---- 1 root video 29, 3 Jan 1 1970 /dev/fb3
>>>
>>> I can write arbitrary data on /dev/fb0 and see it on screen, like
>>> this:
>>>
>>> # cat /bin/busybox.nosuid > /dev/fb0
>>>
>>> But I can't write to /dev/fb1:
>>>
>>> # cat /bin/busybox.nosuid > /dev/fb1
>>> cat: write error: No space left on device
>>>
>>> I'm assuming that fb0 is the background layer, and fb1 is the
>>> foreground IPU layer.
>>>
>>> So the question is - how to make the foreground (fb1) layer
>>> working at
>>> all? Should I configure mxcfb1 in the bootargs, or it needs some
>>> IOCTL
>>> in /dev/fb1 to enable the device?
>>
>> Thanks for sharing. This works, but I'm trying to achieve exactly the
>> opposite.
>>
>> I need to have my UI on the FG layer (which imho means X rendering to
>> /dev/fb1), and my video player must render on BG layer (/dev/video16,
>> which imho corresponds to /dev/fb0).
>>
>> At the moment I can't seem to be able to draw anything on /dev/fb1, so
>> I doubt that Xorg will also run properly on it.
>
> I've reordered the video interfaces in the DT, and also in the kernel
> cmdline, to make sure the hdmi is the first and only video interface,
> so hopefully the IPU driver will create both BG and FG channels for it.
>
> Unfortunately I still can't write to /dev/fb1, so I'm digging further.
Prabhu's comment hinted me to start looking around /unit_tests and
if/how they work. It turned out that the mxc_fb_test application worked
somewhat and I was able observe alpha-blending between FG & BG layers.
Then, after some more head-banging, the issue where I couldn't write to
the framebuffer was resolved by this:
echo 0 > /sys/class/graphics/fb1/blank
Much nicer! Now I can go and test how Xorg works on /dev/fb1, but it's
probably a better idea to get some sleep before this...
Regards,
Nikolay
next prev parent reply other threads:[~2015-05-21 2:01 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-19 16:16 Video overlay on sabresd Nikolay Dimitrov
2015-05-19 16:22 ` Prabhu S
2015-05-20 17:41 ` Nikolay Dimitrov
2015-05-20 23:43 ` Nikolay Dimitrov
2015-05-21 2:01 ` Nikolay Dimitrov [this message]
2015-05-22 1:40 ` Nikolay Dimitrov
2015-05-25 7:47 ` Marco Trillo
2015-05-25 9:27 ` Nikolay Dimitrov
2015-05-25 13:22 ` Marco Trillo
2015-05-25 13:52 ` Nikolay Dimitrov
2015-05-25 14:24 ` Nikolay Dimitrov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=555D3C7D.7020406@mail.bg \
--to=picmaster@mail.bg \
--cc=meta-freescale@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.