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.

(--) pvr(0): Virtual size is 0x0 (pitch 0)

Other Parts Discussed in Thread: DA8XX

Hi All

Here is the response from  gfx_check.sh.

root@am335x-evm:~# ./gfx_check.sh 
WSEGL settings
[default]
WindowSystem=libpvrPVR2D_DRIWSEGL.so
#WindowSystem=libpvrPVR2D_FLIPWSEGL.so

------
ARM CPU information
Processor : ARMv7 Processor rev 2 (v7l)
BogoMIPS : 718.02
Features : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls 
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x3
CPU part : 0xc08
CPU revision : 2

Hardware : am335xevm
Revision : 0000
Serial : 0000000000000000
------
SGX driver information
cat: can't open '/proc/pvr/version': No such file or directory
------
Framebuffer settings

mode "1024x768-60"
# D: 56.000 MHz, H: 47.298 kHz, V: 59.870 Hz
geometry 1024 768 1024 1536 16
timings 17857 80 48 15 3 32 4
rgba 5/11,6/5,5/0,0/0 
endmode 

Frame buffer device information: 
Name : DA8xx FB Drv
Address : 0x87400000
Size : 3145728
Type : PACKED PIXELS
Visual : TRUECOLOR
XPanStep : 0
YPanStep : 1
YWrapStep : 0
LineLength : 2048
Accelerator : No
------
Rotation settings
0
------
Kernel Module information
Module Size Used by
g_mass_storage 37823 0 
wl12xx_sdio 3890 0 
------
Boot settings
console=ttyO0,115200n8 root=/dev/mmcblk0p2 mem=128M rootwait
------
Linux Kernel version
Linux am335x-evm 3.2.0 #1 Tue Nov 5 14:17:03 IST 2013 armv7l GNU/Linux

**************************************************

I am booting Beaglebone+DVID using ti-sdk-am335x-evm-05.07.00.00-Linux-x86-Install and am able to see the matrix GUI. And for this i have added DVID support in it. My aim is to run Basic / 3D unittests using Graphics_SDK_4_08_00_02_minimal  present inside  ti-sdk-am335x-evm-05.07.00.00-Linux-x86-Install. Here is the steps am doing.. 

1:- make ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi- mrproper

2:- make ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi- am335x_evm_defconfig

3:- make ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi- uImage

4:- make ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi- modules

5:- make ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi- INSTALL_MOD_PATH=/usr/local/ti-sdk-am335x-evm/targetNFS modules_install

6:- Replacing prebuilt uImage with fresh built uImage, so that i can use it at the time of creating SDcard using./bin/create_sdcard.sh 

7:- Inside Graphics_SDK_4_08_00_02_minimal, setting path in Rules.make to ti-sdk-am335x-evm/targetNFS so that i can able to access Arago-cross compiler and install inside targetNFS file system.

8:- export ARCH=arm

9:- make BUILD=release OMAPES=8.x FBDEV=no SUPPORT_XORG=1 all

10:- make BUILD=release OMAPES=8.x SUPPORT_XORG=1 install

11:- ./bin/create_sdcard.sh

12:- Here am able to boot with matrix GUI

13:- Stop Matrix: /etc/init.d/matrix-gui-2.0 stop  

14:- Run /etc/init.d/335x-demo

Below is the logs..

root@am335x-evm:~# /etc/init.d/335x-demo start 

0x10205
release8.x
installing 8.x SGX release user libraries

Installing PowerVR Consumer/Embedded DDK 'sgxddk_1.9@2188537' on target

File system installation root is /

Uninstalling existing version sgxddk_1.9@2188537
Uninstallation completed.
boot script rc.pvr -> /etc/init.d/rc.pvr
kernel module drm.ko -> /lib/modules/3.2.0/extra/drm.ko
kernel module pvrsrvkm.ko -> /lib/modules/3.2.0/extra/pvrsrvkm.ko
shared library libGLES_CM.so -> /usr/lib/libGLES_CM.so.1.9.2188537
shared library libusc.so -> /usr/lib/libusc.so.1.9.2188537
shared library libGLESv2.so -> /usr/lib/libGLESv2.so.1.9.2188537
shared library libglslcompiler.so -> /usr/lib/libglslcompiler.so.1.9.2188537
shared library libIMGegl.so -> /usr/lib/libIMGegl.so.1.9.2188537
shared library libEGL.so -> /usr/lib/libEGL.so.1.9.2188537
shared library libpvr2d.so -> /usr/lib/libpvr2d.so.1.9.2188537
shared library libpvrPVR2D_BLITWSEGL.so -> /usr/lib/libpvrPVR2D_BLITWSEGL.so.1.9.2188537
shared library libpvrPVR2D_FLIPWSEGL.so -> /usr/lib/libpvrPVR2D_FLIPWSEGL.so.1.9.2188537
shared library libpvrPVR2D_FRONTWSEGL.so -> /usr/lib/libpvrPVR2D_FRONTWSEGL.so.1.9.2188537
shared library libpvrPVR2D_LINUXFBWSEGL.so -> /usr/lib/libpvrPVR2D_LINUXFBWSEGL.so.1.9.2188537
shared library libpvrPVR2D_DRIWSEGL.so -> /usr/lib/libpvrPVR2D_DRIWSEGL.so.1.9.2188537
shared library libsrv_um.so -> /usr/lib/libsrv_um.so.1.9.2188537
shared library libsrv_init.so -> /usr/lib/libsrv_init.so.1.9.2188537
shared library libPVRScopeServices.so -> /usr/lib/libPVRScopeServices.so.1.9.2188537
binary pvrsrvctl -> /usr/local/bin/pvrsrvctl
binary sgx_init_test -> /usr/local/bin/sgx_init_test
binary services_test -> /usr/local/bin/services_test
binary sgx_blit_test -> /usr/local/bin/sgx_blit_test
binary sgx_clipblit_test -> /usr/local/bin/sgx_clipblit_test
binary sgx_flip_test -> /usr/local/bin/sgx_flip_test
binary sgx_render_flip_test -> /usr/local/bin/sgx_render_flip_test
binary pvr2d_test -> /usr/local/bin/pvr2d_test
binary gles1test1 -> /usr/local/bin/gles1test1
binary gles2test1 -> /usr/local/bin/gles2test1
shader glsltest1_vertshader.txt -> /usr/local/bin/glsltest1_vertshader.txt
shader glsltest1_fragshaderA.txt -> /usr/local/bin/glsltest1_fragshaderA.txt
shader glsltest1_fragshaderB.txt -> /usr/local/bin/glsltest1_fragshaderB.txt
binary eglinfo -> /usr/local/bin/eglinfo
binary xeglinfo -> /usr/local/bin/xeglinfo
binary xgles1test1 -> /usr/local/bin/xgles1test1
binary xmultiegltest -> /usr/local/bin/xmultiegltest
binary xgles2test1 -> /usr/local/bin/xgles2test1
X.Org PVR DDX video module pvr_drv.so -> /usr/local/XSGX/lib/xorg/modules/drivers/pvr_drv.so
X.Org configuration file xorg.conf -> /usr/local/XSGX/etc/xorg.conf

Installation complete!
You may now reboot your target.

Loaded PowerVR consumer services.
root@am335x-evm:~# _XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/am335x-evm:0
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6

X.Org X Server 1.12.0
Release Date: 2012-03-04
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.35-30-generic-pae i686
Current Operating System: Linux am335x-evm 3.2.0 #1 Tue Nov 5 14:17:03 IST 2013 armv7l
Kernel command line: console=ttyO0,115200n8 root=/dev/mmcblk0p2 ro rootfstype=ext3 rootwait ip=none
Build Date: 27 November 2012 06:46:03PM

Current version of pixman: 0.24.4
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/usr/local/XSGX/var/log/Xorg.0.log", Time: Fri Apr 5 12:18:07 2013
(++) Using config file: "/usr/local/XSGX/etc/xorg.conf"
(==) ServerLayout "Server Layout"
(**) |-->Screen "Screen" (0)
(**) | |-->Monitor "<default monitor>"
(**) | |-->Device "Video Device"
(==) No monitor specified for screen "Screen".
Using a default monitor configuration.
(**) |-->Input Device "Keyboard"
(**) |-->Input Device "Main Touch Screen"
(==) Not automatically adding devices
(==) Not automatically enabling devices
(WW) The directory "/usr/local/XSGX/share/fonts/X11/TTF/" does not exist.
Entry deleted from font path.
(WW) The directory "/usr/local/XSGX/share/fonts/X11/OTF/" does not exist.
Entry deleted from font path.
(==) FontPath set to:
/usr/local/XSGX/share/fonts/X11/misc/,
/usr/local/XSGX/share/fonts/X11/Type1/,
/usr/local/XSGX/share/fonts/X11/100dpi/,
/usr/local/XSGX/share/fonts/X11/75dpi/
(==) ModulePath set to "/usr/local/XSGX/lib/xorg/modules"
(II) Loading /usr/local/XSGX/lib/xorg/modules/extensions/libextmod.so
(II) Module extmod: vendor="X.Org Foundation"
compiled for 1.12.0, module version = 1.0.0
(II) Loading /usr/local/XSGX/lib/xorg/modules/extensions/libdbe.so
(II) Module dbe: vendor="X.Org Foundation"
compiled for 1.12.0, module version = 1.0.0
(II) Loading /usr/local/XSGX/lib/xorg/modules/extensions/libglx.so
(II) Module glx: vendor="X.Org Foundation"
compiled for 1.12.0, module version = 1.0.0
(==) AIGLX enabled
(II) Loading /usr/local/XSGX/lib/xorg/modules/extensions/librecord.so
(II) Module reco[ 107.978271] [drm] Initialized drm 1.1.0 20060810
rd: vendor="X.Org Foundation"
compiled for 1.12.0, module version = 1.13.0
(II) Loading /usr/local/XSGX/lib/xorg/modules/extensions/libdri.so
(II) Module dri: vendor="X.Org Foundation"
compiled for 1.12.0, module version = 1.0.0
(II) Loading /usr/local/XSGX/lib/xorg/modules/extensions/libdri2.so
(II) Module dri2: vendor="X.Org Foundation"
compiled for 1.12.0, module version = 1.2.0
(II) Loading /usr/lo[ 108.020233] [drm] Initialized pvrsrvkm 1.9.2188537 20110701 for SGX on minor 0
cal/XSGX/lib/xorg/modules/drivers/pvr_drv.so
(II) Module PVR: vendor="X.Org Foundation"
compiled for 1.12.0, module version = 109.218.8537
(II) Loading /usr/local/XSGX/lib/xorg/modules/input/evdev_drv.so
(II) Module evdev: vendor="X.Org Foundation"
compiled for 1.12.0, module version = 2.6.0
(II) pvr: Driver for PowerVR chipsets: PowerVR SGX
(--) using VT number 2

(WW) xf86OpenConsole: setpgid failed: Operation not permitted
(WW) Falling back to old probe method for pvr
(WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
(II) pvr(0): Creating default Display subsection in Screen section
"Screen" for depth/fbbpp 24/32
(==) pvr(0): Depth 24, (==) framebuffer bpp 32
(==) pvr(0): RGB weight 888
(==) pvr(0): Default visual is TrueColor
(==) pvr(0): Using gamma correction (1.0, 1.0, 1.0)
(--) pvr(0): Virtual size is 0x0 (pitch 0)
(**) pvr(0): Built-in mode "0x0"
(==) pvr(0): DPI set to (96, 96)
(II) Loading /usr/local/XSGX/lib/xorg/modules/libfb.so
(II) Module fb: vendor="X.Org Foundation"
compiled for 1.12.0, module version = 1.0.0
(II) pvr(0): [pvr] Software copy threshold : 0B
(II) pvr(0): [pvr] Software solid threshold : 0B
(II) pvr(0): [pvr] Software composite threshold : 1024B
(II) pvr(0): [pvr] Pixmap pool size: 1B
(II) Loading /usr/local/XSGX/lib/xorg/modules/libexa.so
(II) Module exa: vendor="X.Org Foundation"
compiled for 1.12.0, module version = 2.5.0
(--) Depth 24 pixmap format is 32 bpp
(II) pvr(0): [DRI2] Setup complete
(II) pvr(0): [DRI2] DRI driver: pvr
(II) EXA(0): Driver allocated offscreen pixmaps
(II) EXA(0): Driver registered support for the following operations:
(II) Solid
(II) Copy
(II) Composite (RENDER acceleration)
(II) UploadToScreen
(==) pvr(0): Backing store disabled
(==) pvr(0): Silken mouse enabled
(==) pvr(0): DPMS enabled
(==) pvr(0): Direct rendering enabled
(EE) pvr(0): PVRDisplayCommandNoArgs: drmCommandWrite failed (-22)
(EE) pvr(0): PVRDisplayScreenInitFinalize: PVRDisplayCommandNoArgs failed (-22)
(==) RandR enabled
(EE) AIGLX error: dlopen of /usr/local/XSGX/lib/dri/pvr_dri.so failed (/usr/local/XSGX/lib/dri/pvr_dri.so: cannot open shared object file: No such file or directory)
(EE) AIGLX: reverting to software rendering
(II) AIGLX: Screen 0 is not DRI capable
(II) AIGLX: Loaded and initializ[ 108.554321] Unhandled fault: external abort on non-linefetch (0x018) at 0x4046a118
ed swrast
(II) GLX: Initialized DRISWRAST GL provider for screen 0

Backtrace:

Recieved signal 7 sent by process 1078370584, uid 2574

Fatal server error:
Caught signal 7 (Bus error). Server aborting


Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
Please also check the log file at "/usr/local/XSGX/var/log/Xorg.0.log" for additional information.

(EE) pvr(0): PVRDisplayCommandNoArgs: drmCommandWrite failed (-22)
(EE) pvr(0): PVRDisplayLeaveVT: PVRDisplayCommandNoArgs failed (-22)
Server terminated with error (1). Closing log file.

Here the above red marked logs confusing me, and i assume those are the issues causing my 'X' failure and unittests half run.  

root@am335x-evm:~# ps | grep -i X
1889 root 2156 S grep -i X

root@am335x-evm:~# dmesg | grep drm
[ 107.978271] [drm] Initialized drm 1.1.0 20060810
[ 108.020233] [drm] Initialized pvrsrvkm 1.9.2188537 20110701 for SGX on minor 0

root@am335x-evm:~# lsmod
Module Size Used by
pvrsrvkm 178145 0
drm 144922 1 pvrsrvkm
g_mass_storage 37823 0
wl12xx_sdio 3890 0

Any help will be greatly appreciated.

Regards                                                                                                                                                                                      Satyaprakash Mishra