omapfbplay .. I can't make it work

It search solme info using FBIOGET_VSCREENINFO,
but it can't get ...

root@beagleboard:~# uname -r
2.6.27-omap1

root@beagleboard:~# fbset

mode "1280x720-58"
        # D: 72.005 MHz, H: 43.639 kHz, V: 58.186 Hz
        geometry 1280 720 1280 720 16
        timings 13888 110 220 20 5 40 5
        accel false
        rgba 5/11,6/5,5/0,0/0
endmode

root@beagleboard:~# omapfbplay /media/sda2/MS_Teaser_Video.mp4
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1c100]edit list not starting at 0, a/v
desync might occur, patch welcome
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/media/sda2/
MS_Teaser_Video.mp4':
  Duration: 00:01:24.39, start: 0.000000, bitrate: 17329 kb/s
    Stream #0.0(eng): Audio: aac, 48000 Hz, stereo, s16
    Stream #0.1(eng): Video: h264, yuv420p, 1280x720, 29.97 tb(r)
Using 45 frame buffers, frame_size=1479936
/dev/fb1: No such file or directory

strace omapfbplay /media/sda2/MS_Teaser_Video.mp4

write(2, "\n", 1
) = 1
write(2, " Stream #0.1", 15 Stream #0.1) = 15
write(2, "(eng)", 5(eng)) = 5
write(2, ": Video: h264, yuv420p, 1280x720", 32: Video: h264, yuv420p,
1280x720) = 32
write(2, ", 29.97 tb(r)", 13, 29.97 tb(r)) = 13
write(2, "\n", 1
) = 1
write(2, "Using 45 frame buffers, frame_si"..., 43Using 45 frame
buffers, frame_size=1479936
) = 43
mmap2(NULL, 66600960, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x40c18000
brk(0xb8000) = 0xb8000
open("/dev/fb0", O_RDWR) = 4
ioctl(4, FBIOGET_VSCREENINFO, 0x13a74) = 0
close(4) = 0
open("/dev/fb1", O_RDWR) = -1 ENOENT (No such file or
directory)
write(2, "/dev/fb1: No such file or direct"..., 36/dev/fb1: No such
file or directory
) = 36
io_submit(0x1, 0x1, 0xfbad2088 <unfinished ... exit status 1>
Process 1530 detached
root@beagleboard:~# ps ax
  PID TTY STAT TIME COMMAND
    1 ? Ss 0:06 init [5]
    2 ? S< 0:00 [kthreadd]
    3 ? S< 0:00 [ksoftirqd/0]
    4 ? S< 0:00 [watchdog/0]
    5 ? S< 0:00 [events/0]
    6 ? S< 0:00 [khelper]
   89 ? S< 0:00 [kblockd/0]
   94 ? S< 0:00 [kseriod]
  101 ? S< 0:00 [twl4030-irqchip]
  102 ? S< 0:00 [twl4030-irq]
  115 ? S< 0:00 [ksuspend_usbd]
  121 ? S< 0:00 [khubd]
  134 ? S< 0:00 [kmmcd]
  140 ? S< 0:00 [btaddconn]
  141 ? S< 0:00 [btdelconn]
  155 ? S< 0:00 [kondemand/0]
  164 ? S 0:00 [pdflush]
  165 ? S 0:00 [pdflush]
  166 ? S< 0:00 [kswapd0]
  167 ? S< 0:00 [aio/0]
  168 ? S< 0:00 [nfsiod]
  337 ? S< 0:00 [zd1211rw]
  354 ? S< 0:00 [mtdblockd]
  379 ? S< 0:00 [scsi_eh_0]
  380 ? S< 0:00 [usb-storage]
  389 ? S< 0:00 [kpsmoused]
  428 ? S< 0:00 [krfcommd]
  429 ? S< 0:00 [rpciod/0]
  431 ? S< 0:00 [mmcqd]
  439 ? S< 0:00 [kjournald]
  472 ? S 0:00 /bin/sh /etc/rcS.d/S01psplash start
  473 ? S 0:00 sleep 120
  495 ? S<s 0:00 /sbin/udevd -d
1272 ? Ss 0:00 udhcpc -R -n -p /var/run/udhcpc.eth0.pid -i
eth0
1290 ? Ss 0:00 /sbin/portmap
1454 ? Ss 0:00 /usr/sbin/dropbear -r /etc/dropbear/
dropbear_rsa_host
1469 ? Ss 0:00 /usr/bin/dbus-daemon --system
1476 ? Ss 0:00 /sbin/syslogd -n -C64 -m 20
1478 ? Ss 0:00 /sbin/klogd -n
1487 ? Ss 0:00 avahi-daemon: running [beagleboard.local]
1505 ? Ss 0:00 /sbin/hcid -s -f /etc/bluetooth/hcid.conf
1523 ttyS2 Ss 0:00 -sh
1524 tty1 Ss+ 0:00 /sbin/getty 38400 tty1
1531 ttyS2 R+ 0:

Have you followed http://elinux.org/BeagleBoard/video ?

But CONFIG_FB_OMAP_CONSISTENT_DMA_SIZE=6 does not seem to be enough. Set it as 8

  • Jesslyn

No, I didn't see that guide.
This evening I'll try.
Thank you very much!

By default only /dev/fb0 exists in the ram disk image. You have to create /dev/fb1 manually. Try:

mknod /dev/fb1 c 29 1

then run omapfbplay again. Perhaps this could be included in the next test image so this question goes away.

It search solme info using FBIOGET_VSCREENINFO,
but it can't get ...

<Snip>
/dev/fb1: No such file or directory

By default only /dev/fb0 exists in the ram disk image. You have to create /dev/fb1 manually. Try:

mknod /dev/fb1 c 29 1

then run omapfbplay again. Perhaps this could be included in the next test image so this question goes away.

The udev cache is getting in the way, rm /etc/dev.tar to invalidate it.

regards,

Koen

I've done all, but omapfbplay doesn't work using.
uImage-2.6.27-r12-beagleboard.bin
Angstrom-Beagleboard-demo-image-glibc-ipk-2009.X-test-20090111-
beagleboard.rootfs.tar.bz2

root@beagleboard:~# ls /dev/fb
/dev/fb /dev/fb0
root@beagleboard:~# mknod /dev/fb1 c 29 1
root@beagleboard:~# omapfbplay
root@beagleboard:~# omapfbplay /media/sda2/Stardust_SD.mp4
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1c120]edit list not starting at 0, a/v
desync might occur, patch welce
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/media/sda2/Stardust_SD.mp4':
  Duration: 00:02:28.50, start: 0.000000, bitrate: 7984 kb/s
    Stream #0.0(eng): Audio: aac, 48000 Hz, stereo, s16
    Stream #0.1(eng): Video: h264, yuv420p, 720x480, 23.98 tb(r)
Using 116 frame buffers, frame_size=577536
/dev/fb1: No such device
root@beagleboard:~# rm /etc/dev.tar
root@beagleboard:~# omapfbplay /media/sda2/Stardust_SD.mp4
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1c120]edit list not starting at 0, a/v
desync might occur, patch welce
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/media/sda2/Stardust_SD.mp4':
  Duration: 00:02:28.50, start: 0.000000, bitrate: 7984 kb/s
    Stream #0.0(eng): Audio: aac, 48000 Hz, stereo, s16
    Stream #0.1(eng): Video: h264, yuv420p, 720x480, 23.98 tb(r)
Using 116 frame buffers, frame_size=577536
/dev/fb1: No such device

strace

<snip/>

So I try

setenv bootargs 'console=ttyS2,115200n8 console=tty0 root=/dev/
mmcblk0p2 rootwait rootfstype=ext3 video=omapfb:mode:720p60:vram:
2M,vram:4M'

but I have strange behaviour of screen, not in sync.

I use the upstream kernel and I have to modify the kernel sources for
the specific mode that I want to use. Not user friendly at all, but it
works :stuck_out_tongue:

upstream kernel

2.6.27 or 2.6.28 ?

which is its git hash ?

With linux compile with OE today.

setenv bootargs 'console=ttyS2,115200n8 console=tty0 root=/dev/
mmcblk0p2 rootwait rootfstype=ext3 video=omapfb:mode:720p60,vram:
2M,vram:4M'

It works!!
How can I get the kernel hash?

root@beagleboard:~# omapfbplay /media/sda2/
/media/sda2/Absolute_Benson_1.wav /media/sda2/Stardust_SD.mp4
/media/sda2/Absolute_Benson_2.wav /media/sda2/Walk_This_Way.mp3
/media/sda2/MS_Teaser_Video.mp4
root@beagleboard:~# omapfbplay /media/sda2/MS_Teaser_Video.mp4
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1c100]edit list not starting at 0, a/v
desync might occur, patch welco
me
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/media/sda2/
MS_Teaser_Video.mp4':
  Duration: 00:01:24.39, start: 0.000000, bitrate: 17329 kb/s
    Stream #0.0(eng): Audio: aac, 48000 Hz, stereo, s16
    Stream #0.1(eng): Video: h264, yuv420p, 1280x720, 29.97 tb(r)
Using 45 frame buffers, frame_size=1479936
  7 fps, buffer 0

720p slow ...

but

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/media/sda2/Stardust_SD.mp4':
  Duration: 00:02:28.50, start: 0.000000, bitrate: 7984 kb/s
    Stream #0.0(eng): Audio: aac, 48000 Hz, stereo, s16
    Stream #0.1(eng): Video: h264, yuv420p, 720x480, 23.98 tb(r)
Using 116 frame buffers, frame_size=577536
24 fps buffer 73
root@beagleboard:~#

480p good !