Setting up Beagle board for OpenGL ES

Hello everyone,

I just wanted to run standard PowerVR OpenGL ES demos on a Beagle board. However, even after downloading the recently release PowerVR SDK for Linux/OMAP3, I have not been able to find any specific step by step instructions to setup Beagle board to run PowerVR OpenGL demos. The SDK documentation only mentions to get the libraries from TI and none else.

That implies that I need to get OpenGL ES libraries from TI to start with. However, what other steps will I be required before being able to run any demos. Also, there has been no mention about the display resolution with which the demos have been tested. I am asking this because Beagle board does not come with a built-in on-board LCD module. If someone has run any of the PowerVR OpenGL ES demos on Beagle board, I will greatly appreciate any guidance to get started. Thanks.

Regards,
J R Shah
     

Please check on the beagleboard forum, for this, there is plenty of prior art (:slight_smile: in setting this up.

 

You need to register once in the TI site to get the binaries. As for the resolution, it has been tested fairly well with dvi monitors. Please check the documentation coming along with the sdk for details.

Hello,


I will tell you how I get it running on a BeagleBoard Rev C: with openembedded Angstrom


1.  setenv bootargs 'console=ttyS2,115200n8 console=tty1 root=/dev/mmcblk0p2 rw rootdelay=1 omapfb.mode=dvi:1024x768MR-16@60'
 saveenv


 Important: MR-16


2. I use Ubuntu in Vmware and I created 5 Hard Disk (only for easier backup and transfer between different computers)


 a) mounted as /media/BeagleMySources for my source codes and user collection
 b) mounted as /media/oe for the openembedded files
 c) mounted as /media/tmp_oe_beagle bitbake temporary files that I can delete everytime
 d) mounted as /media/beagle-image for saving my working images
 e) mounted as /media/disk fo the downloaded source files


3.) I create folders:
 /media/BeagleMySources/conf
 /media/BeagleMySources/recipes my BB Files which I had modified


4.) create file /media/BeagleMySources/conf/local.conf


DISTRO = "angstrom-2008.1"
MACHINE = "beagleboard"
ENABLE_BINARY_LOCALE_GENERATION = "0"
IMAGE_FSTYPES = "jffs2 tar.bz2"
# specifies that BitBake should emit the log if a build fails
BBINCLUDELOGS = "yes"
# collection setup
BBFILES = "/media/oe/oebeagleboard/user.collection/recipes/*/*.bb /media/oe/oebeagleboard/openembedded/recipes/*/*.bb"
BBFILE_COLLECTIONS="oe


user"
BBFILE_PATTERN_oe="/media/oe/oebeagleboard/openembedded/recipes/"
BBFILE_PATTERN_user="/media/oe/oebeagleboard/user.collection/recipes/"
BBFILE_PRIORITY_oe="5"
BBFILE_PRIORITY_user="10"
TMPDIR = "/media/tmp_oe_beagle"
DL_DIR = "/media/disk/sources"


5.) create file /media/BeagleMySources/conf/profile.sh


export OE_HOME=/media/oe/oebeagleboard
export MY_OE_CONF="beagleboard"
export OEBRANCH="${OE_HOME}/openembedded"
export USERBRANCH="/media/BeagleMySources/user.collection"
export BBPATH=${USERBRANCH}:$OEBRANCH
#export BBFILES="$USERBRANCH/recipes/*/*.bb $OE_HOME/openembedded/recipes/*/*.bb"
export BB_ENV_EXTRAWHITE="MACHINE DISTRO ANGSTROM_MODE ANGSTROMLIBC OE_HOME"
export PATH=$OE_HOME/opt/bitbake/bin:$PATH
#export CVS_TARBALL_STASH="http://www.oesources.org/sources/current/"
if [ "$PS1" ]; then
  if [ "$BASH" ]; then
    export PS1="[33[01;32m]OE:$MY_OE_CONF[33[00m] ${PS1}"
  fi
fi



6) copy from /media/oe/oebeagleboard/openembedded/recipes/
 the folders images ti and powervr-drivers to
 /media/oe/oebeagleboard/user.collection/recipes/


7) copy OMAP35x_Graphics_SDK_setuplinux_3_00_00_09.bin to
 /media/oe/oebeagleboard/user.collection/recipes/powervr-drivers/libgles-omap3-3.00.00.09


8) edit /media/oe/oebeagleboard/user.collection/recipes/powervr-drivers/libgles-omap3.inc and change:
 # echo "WindowSystem=libpvrPVR2D_FLIPWSEGL.so" >> ${D}${sysconfdir}/powervr.ini to
 echo "WindowSystem=libpvrPVR2D_FRONTWSEGL.so" >> ${D}${sysconfdir}/powervr.ini


9) edit /media/oe/oebeagleboard/user.collection/recipes/images/x11-image.bb and add:


 IMAGE_INSTALL = "
    ${XSERVER}
    task-base-extended
    angstrom-x11-base-depends
    angstrom-gpe-task-base
    angstrom-gpe-task-settings
    devmem2
    libgles-omap3
    libgles-omap3-demos
    libstdc++
    glibc
    libgcc

    ${SPLASH}
    ${ANGSTROM_EXTRA_INSTALL}"


 
10) start in terminal /media/oe/oebeagleboard/user.collection/conf/profile.sh


11) run: bitbake x11-image and wait a lot of hours


12) this image runs with the demos and my own software



Maybee I had something forgotten ?

Roland