Meego Wiki
Views

Hardware-accelerated graphics on Pandaboard using MeeGo

From MeeGo wiki
Revision as of 02:04, 9 May 2011 by Alison (Talk | contribs)
Jump to: navigation, search

Contents

Demo of MeeGo Handset UX running alongside OGLES2 "Coverflow" demo on OMAP4 Pandaboard

1-minute video at Flickr showing 3D hardware acceleration

Summary

The video shows the OGLES "Coverflow" demo from Imagination Technologies running on the SGX540 GPU which is part of the OMAP 4430 processor that powers the Pandaboard. Coverflow requires 3D hardware acceleration, so the video shows that the PVR closed-source drivers from Imagination and TI's open source Xorg shared-object libraries work with the MeeGo userland. Just to show that the platform really is MeeGo, I'm running the Handset UX's duihome alongside the graphics demo. OpenVG, the 2D hardware-accelerated graphics suite, also works fine on Panda-MeeGo.

Major references

Details

The demo uses the kernel and drivers from the OMAP 4 image of Ubuntu 10.10. The Ubuntu image is installed on a microSD card using TI's instructions.

MeeGo was built using this kickstart file and the 1.1.80 snapshot (just because I had that image lying around the disk) and installed on a generic Kingston 16 GB USB stick using standard methods:

[alison@bonnet]$ dmesg| grep sd
[789217.011903]$ sd 33:0:0:0: [sdc] Attached SCSI removable disk
[alison@bonnet]$ mkdir -p /media/meego_usb
[alison@bonnet]$ sudo umount /media/meego_usb
[alison@bonnet]$ sudo mkfs.ext3 -L meego_usb /dev/sdc1
[alison@bonnet]$ sudo cp -rfp meego-panda-rootfs-morepkgs/* /media/meego_usb
[alison@bonnet]$ sudo mount -t ext3 /dev/sdc1 /media/meego_usb
[alison@bonnet]$ ls /media/meego_usb
\/    boot/  etc/   lib/	 media/  opt/	root/  srv/  tmp/  var/
bin/  dev/   home/  lost+found/  mnt/	 proc/	sbin/  sys/  usr/
[alison@bonnet]$ 

Note that the image is not bootable. It doesn't need to be for the chroot hack to work.

How-to

On Ubuntu boot system

  • First, boot the Panda using Ubuntu on the microSD. Set up your account, create a root password, etc., following standard Ubuntu instructions.
  • Either reboot into runlevel 3 or change to a text window (for example using Ctrl-Alt-F2) and login as root.
  • MeeGo will want to run its own X server, and each booted Linux system can have only one running X instance. (? I think.) Find Ubuntu'srunning gdm programs:
ps axl | grep gdm

Locate the PIDs of gdm-binary and gdm-simple-slave and kill them:

kill -TERM <gdm-binary-pid>
kill -TERM <gdm-simple-slave-pid>

If you type Ctrl-Alt-F7 to return to the workspace where Ubuntu was running X and gdm-greeter, you should now see a blank screen. Type

ps axl | grep gdm

and

ps axl | grep X

just to make sure.

  • As root, run Panda_chroot_setup. The script copies all the needed shared object libraries from Ubuntu and bind-mounts the dynamic filesystems (/var, /proc, etc.) in MeeGo. The script is inspired by N900 chroot instructions although I found that MeeGo reported that dbus wasn't running unless I mounted all of /var/run.
  • Run
chroot /media/meego_usb /bin/bash

The shell prompt will change. Welcome to MeeGo!

Future plans

Personal tools