Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HowTo(?) build powervr sgx drivers ( igepv2, Beagle XM)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
undrwater
Guru
Guru


Joined: 28 Jan 2003
Posts: 312
Location: Caucasia

PostPosted: Wed Mar 27, 2013 4:34 pm    Post subject: HowTo(?) build powervr sgx drivers ( igepv2, Beagle XM) Reply with quote

I've been attempting to install the above mentioned accelerated graphics drivers on gentoo using the directions on the TI website. Their prerequisites include using NFS for building which I didn't use. Before I ask specific questions, I'm wondering if someone has done this successfully with a gentoo setup ( most are using Ubuntu or yocto), and can perhaps provide some tips or tricks.

I'll post later what I've accomplished so far (I believe I'm most of the way there).[/url]
_________________
Open-mindedness is painful...


Last edited by undrwater on Thu Mar 28, 2013 6:55 pm; edited 1 time in total
Back to top
View user's profile Send private message
undrwater
Guru
Guru


Joined: 28 Jan 2003
Posts: 312
Location: Caucasia

PostPosted: Wed Mar 27, 2013 11:05 pm    Post subject: Reply with quote

I'm going to try again and post detail here what I'm doing.

The drivers are coming from here:
http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/latest/index_FDS.html

I'm following the install guide from here:
http://processors.wiki.ti.com/index.php/Graphics_SDK_Quick_installation_and_user_guide

Instead of setting up an NFS server, I'm mounting the filesystem of my SD on my PC (desktop):
Code:

mount /dev/sdi2 /mnt/igep-root/



Code:
 host $ export ARCH=arm


I edited the Rules.make file like so:
Code:

################# FIELDS MODIFIABLE BY THE USER ###############################
############### All the fields below are MANDATORY ############################

#By default all below variables have been initialized with equivalent AMSDK variables
# Change them to appropriate paths as per your machine/build environment paths.
# Set home area (ex /home/user/)
HOME=/home/russell/igep/

# Set Toolchain path (ex /home/user/toolchain/arago-2011.09/armv7a)
CSTOOL_DIR=/usr/share/crossdev/include/site/arm-linux-gnueabi

# Set Tool chain prefix (ex arm-arago-linux-gnueabi- )
CSTOOL_PREFIX=armv7a-hardfloat-linux-gnueabi-

# Set kernel installation path ( ex /home/user/linux-04.00.01.13 )
KERNEL_INSTALL_DIR=/mnt/igep-root/usr/src/linux-omap-2.6.37-5/

# Set Target filesystem path ( ex /home/user/targetfs )
TARGETFS_INSTALL_DIR=/mnt/igep-root/

############### All the fields below are OPTIONAL ############################
############### BEST SUGGESTED TO LEAVE THE BELOW AS IS ############################

# Below is just an optional define given only to enable users who want to pass additional compiler/link flags.
# Only update the below options if you exactly know about the additional flag to be added & also are sure that its supported with your toolchain.
# Otherwise its best suggested to leave the below as is ie empty

# Add additional Compiler flags below only if required (Please read above comments)
EXTRA_CFLAGS?=
# Add additional Linker flags below only if required (Please read above comments)
EXTRA_LFLAGS?=

export EXTRA_CFLAGS
export EXTRA_LFLAGS

######################### PRE-DEFINED VARIABLES ###############################
######################## NOT MODIFIABLE BY USER ###############################

# Set installation folder
GRAPHICS_INSTALL_DIR=$(HOME)/sgx

# Location of demo executables and install information
GFX_DEMOS_EXECPATH=$(GRAPHICS_INSTALL_DIR)/gfxsdkdemos

CSTOOL_PATH=$(CSTOOL_DIR)/bin
CSTOOL_LIBSTDC++_PATH=$(CSTOOL_DIR)/$(subst gnueabi-,gnueabi,$(CSTOOL_PREFIX))/lib
export CSTOOL_PATH
export CSTOOL_PREFIX

PLATFORM=LinuxARMV7

GFX_OGLES_SDKPATH=$(GRAPHICS_INSTALL_DIR)/GFX_Linux_SDK/OGLES/SDKPackage

GFX_OGLES2_SDKPATH=$(GRAPHICS_INSTALL_DIR)/GFX_Linux_SDK/OGLES2/SDKPackage

GFX_OVG_SDKPATH=$(GRAPHICS_INSTALL_DIR)/GFX_Linux_SDK/OVG/SDKPackage

GFX_REL_ES3_LIB_SRCPATH=$(GRAPHICS_INSTALL_DIR)/gfx_rel_es3.x

GFX_DBG_ES3_LIB_SRCPATH=$(GRAPHICS_INSTALL_DIR)/gfx_dbg_es3.x

GFX_REL_ES5_LIB_SRCPATH=$(GRAPHICS_INSTALL_DIR)/gfx_rel_es5.x

GFX_DBG_ES5_LIB_SRCPATH=$(GRAPHICS_INSTALL_DIR)/gfx_dbg_es5.x

GFX_REL_ES6_LIB_SRCPATH=$(GRAPHICS_INSTALL_DIR)/gfx_rel_es6.x

GFX_DBG_ES6_LIB_SRCPATH=$(GRAPHICS_INSTALL_DIR)/gfx_dbg_es6.x

GFX_REL_ES8_LIB_SRCPATH=$(GRAPHICS_INSTALL_DIR)/gfx_rel_es8.x

GFX_DBG_ES8_LIB_SRCPATH=$(GRAPHICS_INSTALL_DIR)/gfx_dbg_es8.x

GFX_OGLES_REL_LIB_DESTPATH=$(GFX_OGLES_SDKPATH)/Builds/OGLES/LinuxARMV7

GFX_OGLES2_REL_LIB_DESTPATH=$(GFX_OGLES2_SDKPATH)/Builds/OGLES2/LinuxARMV7

GFX_OVG_REL_LIB_DESTPATH=$(GFX_OVG_SDKPATH)/Builds/OVG/LinuxARMV7

GFX_KERNMOD_SRCPATH=$(GRAPHICS_INSTALL_DIR)/GFX_Linux_KM

GFX_PKG_TARGETFS_PATH = $(GRAPHICS_INSTALL_DIR)/targetfs

GFX_LIBRARY_TARGET_PATH = $(TARGETFS_INSTALL_DIR)/opt/gfxlibraries

GFX_DEVMEM2_SRCPATH = $(GRAPHICS_INSTALL_DIR)/tools/devmem2

# Where to copy the resulting executables and data to (when executing 'make
# install') in a proper file structure. This EXEC_DIR should either be visible
# from the target, or you will have to copy this (whole) directory onto the
# target filesystem.
EXEC_DIR=$(TARGETFS_INSTALL_DIR)/opt/gfxsdkdemos
################################################################################


I execute the following:
Code:
make BUILD=release OMAPES=5.x SUPPORT_XORG=1 install


According to the instructions, the above command should:
Quote:
...install only the graphics kernel modules(pvrsrvkm.ko, drm.ko) to target file system as mentioned in Rules.make


Things seem to run without error:
Code:

exporting necessary variables and installing...
########################################################
Please ensure that PSP Linux kernel is re-built atleast once,
Please refer online guide for further details.
########################################################
creating directories...
copying startup files...
copying user space graphics libraries to target file system...
copying install information to target file system...


The above happened pretty quickly, and I got suspicious that it wasn't actually doing what it was supposed to. Instead I tried:
Code:
make BUILD=release OMAPES=5.x SUPPORT_XORG=1

THEN
Code:
make BUILD=release OMAPES=5.x SUPPORT_XORG=1 install


This resulted in the modules being built, then installed (hopefully) correctly.

The next step as I understand it is to run:
Code:
/etc/init.d/omap-demo

Here's the log:
http://bpaste.net/show/87318/

So, I unmount the SD card, plug it into the igepv2 and run it. What results is what looks to be an install of the modules.

When I try to load the pvr module, dmesg shows errors related to unknown symbols:
Code:

[  160.425109] pvrsrvkm: Unknown symbol drm_pvr_dev_remove (err 0)
[  160.427337] pvrsrvkm: Unknown symbol drm_pvr_dev_add (err 0)


Here's the whole dmesg output:
http://bpaste.net/show/87316/

It appears the install, at least, was successful. Googling the above error returns the following link:
http://forum.isee.biz/viewtopic.php?f=83&t=7225

It appears the above problem was due to the modules and kernel with a mismatched date-stamp(?). All I know is that when I built kernel and modules (including SGX) without powering off the device, the modules seem to load successfully. I've got some other python problems to solve, but I believe I am close to running XBMC which is my goal.
_________________
Open-mindedness is painful...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum