This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

BB-XM graphics not working for OpenGL ES, SGX demos - PVRShell: Unable to initialize EGL ? No SGX?

Other Parts Discussed in Thread: OMAP3530

I am a newbie seeking to develop Qt apps and graphics demos to add to the Matrix GUI for a touch screen demo.

The 2011 Boston ESC image boots.  However I do not see any graphics output from applications such as Multimedia MPEG2-2 Decode, OpenGL Vase, or QT 2D Graphics Moving Blocks. 

If I open  terminal and run an SGX demo I see:
/usr/bin/SGX/demos/X11/OGLESParticles
PVRShell: EGL Error (EGL_BAD_ALLOC)
InitAPI failed!
PVRShell: Unable to initialize EGL
If I attempt to start, screen displays a colorful test pattern, but it does not start:
/etc/init.d/pvr-init start
No SGX hardware, not starting PVR
The Matrix GU Sys Info Displays:
OMAP3 Beagle Board
SGX Core Version: 5.X
My board:
  • beagleboard-xm, rev C
  • HDMI connected to DVI displaying at 800 x 480 
  • s-video not connected
  • Using image downloaded from: http://beagleboard.org/esc
I am impressed by this little board.  Thanks in advance for any direction.
-Ed
  • This post sounded like a potential solution:  eglInitialize giving an 'EGL_BAD_ALLOC' error

    I edited file: /usr/bin/cputype ( From 2011 Boston ESC Demo Image) and reboot. Now pvr-init start reports:

    /etc/init/d/pvr-init start
    Starting PVR
    Usage: insmod filename [args]
    FATAL: Module omaplfb not found.
    FATAL: Module bufferclass_ti not found.
    mknod" missing operand after 'O'
    chmod: cannot acces /dev/pvrsrvkm': No such file or directory
  • The terminal display the following FATAL boot errors.  Any ideas? Please? 

    Starting internet superserver: xinetd.
     * Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon
    [ ok ]s 973 died: No such process; trying to remove PID file. (/var/run/avahi-daemon//pid)
    Starting Network connection manager daemon: NetworkManager.
    Loading kernel modules for gstreamer-ti... 
    Running /usr/share/ti/gst/omap3530/loadmodules.shFATAL: Module cmemk not found.
    FATAL: Module dsplinkk not found.
    FATAL: Module lpm_omap3530 not found.
    FATAL: Module sdmak not found.
      done
    Starting PVR
    [   29.023315] smsc95xx 1-2.1:1.0: eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1
    Usage: insmod filename [args]
    FATAL: Module omaplfb not found.
    FATAL: Module bufferclass_ti not found.
    mknod: missing operand after `0'
    Try `mknod --help' for more information.
    chmod: cannot access `/dev/pvrsrvkm': No such file or directory
    Loading [g_file_storage]
  • Since no modules are getting loaded - there is an issue with the filesystem. You can get an updated image from Narcissus (narcissus.angstrom-distribution.org/).

    For debug information on SGX, refer to below.

    http://processors.wiki.ti.com/index.php/SGXDbg


  • Thank you Prabindh.

    I did not consider it to be an issue with the filesystem since I expected the image I used from the 2011 Boston Embedded Systems Conference to work since it was used to demo SGX apps, used in class rooms at the conference and such.  It appeared to be an issue with the /usr/bin/cputype script.  I think my CPU id is a more recent CPU.  When I ran /usr/bin/cputype it returned 0xE00 rather than OMAP35xx.   The script expected to see a CPU id of 0xC00 to be associated with an OMAP3530.  Anyway I could never figure out how to work-around it.  

    A new image sounds like a very good suggestion at this point.

    Thank you,

    -Ed

  • After two weeks of trying various images and builds on my new BeagleBoard-xM I have not been able to init the SGX GPU not matter what image I use .  

    Is it possible my problem is an issue with more recent CPU that reports cputyp  0xE00 used in the newer BeagleBoard-xM ?

    The stock microSD card image that comes with the BB-Xm does not appear to have SGX support.   This puzzles me as I would think you would want to show this capability off.  I feel like I am missing something obvious to all the the other experienced users.

    Here is what I am seeing towards the end of the boot process:

    Starting Vixie-cron.
    Starting Samba: smbd nmbd.
    Starting syslogd/klogd: done
    Starting internet superserver: xinetd.
    [ ok ]rting Avahi mDNS/DNS-SD Daemon: avahi-daemon
    Loading kernel modules for gstreamer-ti...
    Running /usr/share/ti/gst/omap3530/loadmodules.shFATAL: Module cmemk not found.
    FATAL: Module dsplinkk not found.
    FATAL: Module lpm_omap3530 not found.
    FATAL: Module sdmak not found.
    done
    open /dev/fb0: No such file or directory
    open /dev/fb0: No such file or directory
    expr: syntax error
    Linux Frame Buffer Device Configuration Version 2.1 (23/06/1999)
    (C) Copyright 1995-1999 by Geert Uytterhoeven
    Usage: fbset [options] [mode]
    Valid options:
    ...
    No SGX hardware, not starting PɮR
    Sta
    .-------.
    | | .-.
    | | |-----.-----.-----.| | .----..-----.-----.
    | | | __ | ---'| '--.| .-'| | |
    | | | | | |--- || --'| | | ' | | | |
    '---'---'--'--'--. |-----''----''--' '-----'-'-'-'
    -' |
    '---'
    The Angstrom Distribution beagleboard ttyO2
    beagleboard login: root
    root@beagleboard:~# cputype
    0xE00

    I read http://processors.wiki.ti.com/index.php/SGXDbg without seeing anything that sounded similar.  

    Any advice or suggestions from the wise is greatly appreciated.

    -Ed

    Newbie

    BeagleBoard-xM

    
    

  • As mentioned earlier, you are using an outdated filesystem/ kernel. Please use the SDK from below site:

    http://software-dl.ti.com/dsps/dsps_public_sw/am_bu/sdk/BeagleBoardSDK/latest/index_FDS.html

    For releases for all TI platforms, check below page:

    http://www.ti.com/tool/linuxezsdk-sitara

     

  • Hi Prabindh,

    Thank you for your patience and pointing me to the new TI SDK for BeagleBoard 05.05.  I can see the new SDK installer  and setup script are great for newbies like me.  It automatically installs missing dependencies and sets up tftp, nfs, and minicom.  That by itself had taken me days to figure out.  

    Unfortunately I am having issues mounting root filesystem via NFS. The BB-xM Rev C does not have NAND and I can not use the minicom script that setup.sh creates.  It crashes when it calls saveenv.  I resorted to using a SD card with a uEnv.txt file. 

    Please, if you have a moment, please review and tell me what I might be doing wrong?

    File: /etc/exports
    ------------------
    /home/z3/ti-sdk-beagleboard-05.05.01.00/targetNFS *(rw,nohide,insecure,no_subtree_check,async,no_root_squash

    File: uEnv.txt
    --------------
    serverip=192.168.1.6
    ipaddr=192.168.1.9
    netmask=255.255.255.0
    gatewayip=192.168.1.1
    hostname=beagleboard
    console=ttyO2,115200n8
    optargs=mem=80M@0x80000000 mem=384M@0x88000000 xeno_hal.cpufreq=800000000
    mpurate=800
    root=/dev/nfs rw
    rootpath=/home/z3/ti-sdk-beagleboard-05.05.01.00/targetNFS
    nfsdevice=usb0:off
    nfsrootargs=vers=3
    usbethaddr=6E:58:95:1B:82:65
    nfsargs=setenv bootargs console=${console} mpurate=${mpurate} ${optargs} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}:${nfsdevice} nfsroot=${serverip}:${rootpath},${nfsrootargs} root=${root}
    uenvcmd=echo Initializing net ...; dcache off; usb start; echo Loading kernel ...; nfs ${loadaddr} ${serverip}:${rootpath}/boot/uImage ; echo Booting from nfs ...; run nfsargs; bootm ${loadaddr}

    Boot Log
    --------
    Hit any key to stop autoboot: 0
    gpio: pin 173 (gpio 173) value is 0
    gpio: pin 4 (gpio 4) value is 0
    SD/MMC found on device 0
    reading uEnv.txt

    761 bytes read
    Loaded environment from uEnv.txt
    Importing environment from mmc ...
    Running uenvcmd ...
    Initializing net ...
    Data (writethrough) Cache is OFF
    (Re)start USB...
    USB: Register 1313 NbrPorts 3
    USB EHCI 1.00
    scanning bus for devices... 3 USB Device(s) found
    scanning bus for storage devices... 0 Storage Device(s) found
    scanning bus for ethernet devices... 1 Ethernet Device(s) found
    Loading kernel ...
    Waiting for Ethernet connection... done.
    Using sms0 device
    File transfer via NFS from server 192.168.1.6; our IP address is 192.168.1.9
    Filename '/home/z3/ti-sdk-beagleboard-05.05.01.00/targetNFS/boot/uImage'.
    Load address: 0x80200000
    Loading: #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    ####################T *** ERROR: Cannot umount
    T Booting from nfs ...
    ## Booting kernel from Legacy Image at 80200000 ...
    Image Name: Arago/3.3.7/beagleboard
    Image Type: ARM Linux Kernel Image (uncompressed)
    Data Size: 3425904 Bytes = 3.3 MiB
    Load Address: 80008000
    Entry Point: 80008000
    Verifying Checksum ... OK
    Loading Kernel Image ... OK
    OK

    Starting kernel ...

    Uncompressing Linux... done, booting the kernel.
    [ 0.000000] Booting Linux on physical CPU 0
    [ 0.000000] Initializing cgroup subsys cpuset
    [ 0.000000] Initializing cgroup subsys cpu
    [ 0.000000] Linux version 3.3.7 (jenkins@sdit-build01) (gcc version 4.5.3 20110311 (prerelease) (GCC) ) #1 Thu Nov 15 13:19:01 CST 2012
    [ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
    [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [ 0.000000] Machine: OMAP3 Beagle Board
    .............
    .............
    [ 4.240417] smsc95xx v1.0.4
    [ 4.324615] smsc95xx 1-2.1:1.0: eth0: register 'smsc95xx' at usb-ehci-omap.0-2.1, smsc95xx USB 2.0 Ethernet, 32:ef:e9:92:b8:47
    [ 110.940643] VFS: Unable to mount root fs via NFS, trying floppy.
    [ 110.947418] VFS: Cannot open root device "nfs" or unknown-block(2,0)
    [ 110.954162] Please append a correct "root=" boot option; here are the available partitions:
    [ 110.963043] b300 3872256 mmcblk0 driver: mmcblk
    [ 110.968688] b301 72261 mmcblk0p1 00000000-0000-0000-0000-000000000mmcblk0p1
    [ 110.977142] b302 3799372 mmcblk0p2 00000000-0000-0000-0000-000000000mmcblk0p2
    [ 110.985595] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

    Thank you in advance for any more clues or advice you can spare,

    -Ed

  • Are you able to boot and use a rootfs from SD card, as a first step ?

  • Thank you for your reply.

    Prabindh Sundareson said:
    Are you able to boot and use a rootfs from SD card, as a first step ?

    Yes!  The /bin/create-sdcard.sh script worked great!  Finally I can see SGX demos running on my BB-xm! Thank you!

    I guess the problem points to either my uEnv.txt or /etc/exports configuration.  I am puzzled why it can NFS load the '/home/z3/ti-sdk-beagleboard-05.05.01.00/targetNFS/boot/uImage' but not the filesystem at '/home/z3/ti-sdk-beagleboard-05.05.01.00/targetNFS' ?

    Thanks again,

    -Ed