The ioctl() call is not failing, the following mmap() call is. This
is because the OMAPFB_QUERY_MEM ioctl is returning a size of zero. I
don't know why it would do that.
--
Måns Rullgård
ma...@mansr.com
> Hi Måns !
> I did see the think in that way :) (but my english can be confusing).
> What might help is to tell on which version of "u-boot & kernel & omap
> version" you got omap working ?
It should work with whatever Angstrom uses. Bug Koen if it doesn't.
--
Måns Rullgård
ma...@mansr.com
> Hi Måns Rullgård !
> You are the author of omapfbplay, aren't you ? Is it possible to
> modify omapfbplay to add a new argument that let chose the framebuffer
> to use (ex fb1/2).
Of course it's possible.
> I made this dirty test : switch fb1 & fb2 filenames and call
> omapfbplay : it works !
> So I think that "cat /sys/devices/platform/omapfb/framebuffers" point
> out the problem, but there is a incoherence as kernel init trace tells
> that vram allocated memory for fb1.
>
> How can we resolve it ?
I don't know what is messing with your configuration. Are you running
X?
--
Måns Rullgård
ma...@mansr.com
I am experiencing trouble with omap fbplay. When I launch it fails with
Checking init :
RUNNING STRACE :
write(2, "Using 137 frame buffers, frame_s"..., 43Using 137 frame
buffers, frame_size=487296
) = 43
mmap2(NULL, 66760704, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x40d9b000
brk(0x9f000) = 0x9f000
open("/dev/fb0", O_RDWR) = 4
ioctl(4, FBIOGET_VSCREENINFO, 0x13a74) = 0
close(4) = 0
open("/dev/fb1", O_RDWR) = 4
ioctl(4, FBIOGET_VSCREENINFO, 0x13b14) = 0
ioctl(4, 0x40444f35, 0x13bbc) = 0
ioctl(4, 0x40084f38, 0x13bb4) = 0 ===> THIS CALL IS THE PB :
xioctl(fb, OMAPFB_QUERY_MEM, &minfo);
mmap2(NULL, 0, PROT_READ|PROT_WRITE, MAP_SHARED, 4, 0) = -1 EINVAL
(Invalid argument)
write(2, "mmap: Invalid argument\n", 23mmap: Invalid argument
) = 23
io_submit(0x1, 0x1, 0xfbad2088 <unfinished ... exit status 1>
Process 2159 detached
I don't understand why the ioctl() calls fails, any idea ?
Selso.
> Hi !
> I just want to make a feedback of omapfbplay. I have compared
> omapfbplay to mplayer (with -nosound as omapfbplay just play video)
> with many video codec/format/bkps and I'd say that omapfbplay just
> handle a bit better high resolution.
> For example while 1280x720/mpeg2/60fps/18000kbps video "mplayer -
> nosound -vo fbdev" loses frames, omapfbplay play this video "slowly".
I wrote omapfbplay specifically to show off the video playback. It
doesn't play sound, so it can get away with slowing down the video
while still playing it smoothly. MPlayer can't do that. Also,
omapfbplay pre-buffers decoded frames, which MPlayer doesn't. This
lets it play at full speed even if a few frames take longer to decode.
--
Måns Rullgård
ma...@mansr.com