HI,
I have problem using SGX with X11 for Beagleboard-XM Rev B. Though SGX with framebuffer works fine, I am able to run the test applications. Below are the steps I am doing,
I am using beaglboard-XM Rev B, with linux kernel version 3.10 and yocto dora build. When I build SGX SDK 4.09 without X11, after running pvr init script, the modules will be loaded and I can run the SGX test applications.
But if I build the SGX SDK 4.09 with X11, everything builds fine. I am copying the XSGX folder from targetfs folder of the Grapics SDK to /usr/local since I have read in some forums that Xorg driver provided in the targetfs must be used. When I run the pvr init script I get the below log.
Can anybody from TI please say me does SGX with X11 really works on Beagleboard-XM beacause I have seen some forums where many say SGX works only for framebuffer but not for X11, but the release notes says that it supports X11. SGX to work with X11 is very important for us. Can TI please confirm regarding this.
root@beagleboard:~# lsmod
Module Size Used by
bufferclass_ti 6612 0
pvrsrvkm 520992 1 bufferclass_ti
drm 242585 1 pvrsrvkm
sdmak 4426 0
lpm_omap3530 7640 0
dsplinkk 146684 1 lpm_omap3530
cmemk 22808 0
xt_connmark 1923 0
iptable_nat 2774 0
nf_conntrack_ipv4 14404 1
nf_defrag_ipv4 1446 1 nf_conntrack_ipv4
nf_nat_ipv4 3939 1 iptable_nat
nf_nat 17295 2 nf_nat_ipv4,iptable_nat
nf_conntrack 74449 5 nf_nat,nf_nat_ipv4,xt_connmark,iptable_nat,nf_conntrack_ipv4
iptable_mangle 1687 0
iptable_filter 1682 0
ip_tables 11040 3 iptable_filter,iptable_mangle,iptable_nat
x_tables 16647 4 ip_tables,iptable_filter,xt_connmark,iptable_mangle
nfnetlink 5033 1
nls_iso8859_1 3672 1
nls_cp437 5338 1
root@beagleboard:~# /etc/init.d/pvr-init start
Starting PVR
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 beagleboard 3.10.17-yocto-standard #7 Thu May 7 13:14:46 IST 2015 armv7l
Kernel command line: console=tty0 console=ttyO2,115200n8 root=/dev/mmcblk0p2 rootwait rootfstype=ext4 rw mpurate=auto omapfb.mode=dvi:800x600MR
-16@60 omapfb.vram=0:8M,1:4M,2:4M vram=16M optargs=consoleblank=0 mem=55M@0x80000000 mem=256M@0x88000000
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: Thu May 14 06:23:32 2015
(++) Using config file: "/usr/local/XSGX/etc/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(==) 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) LoadinUnable to handle kernel NULL pointer dereference at virtual address 00000000
g /usr/local/XSGX/lib/xorg/modules/extensions/lipgd = d5804000
bextmod.so
(II) Module extmod: vendor="X.Org Fo[00000000] *pgd=95d34831undation"
compiled for 1.12.0, module version , *pte=00000000= 1.0.0
(II) Loading /usr/local/XSGX/lib/xorg/m, *ppte=00000000odules/extensions/libdbe.so
(II) Module dbe: ve
ndor="X.Org Foundation"
compiled for 1.12.0, mInternal error: Oops: 817 [#1] ARM
Modules linked in: bufferclass_ti(O) pvrsrvkm(O) drm(O) sdmak(O) lpm_omap3530(O) dsplinkk(O) cmemk(O) xt_connmark iptable_nat nf_conntrack_ipv4
nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_mangle iptable_filter ip_tables x_tables nfnetlink nls_iso8859_1 nls_cp437
CPU: 0 PID: 612 Comm: X Tainted: G O 3.10.17-yocto-standard #7
task: d50c3d40 ti: d5808000 task.ti: d5808000
PC is at __memzero+0x60/0x80
LR is at drm_ioctl+0x2e4/0x478 [drm]
pc : [<c03015a0>] lr : [<bf0ad13c>] psr: 000b0013
sp : d5809e08 ip : 00000004 fp : d5809ee4
r10: bf129d10 r9 : bf15e1c0 r8 : 00000004
r7 : d5d85480 r6 : 00000000 r5 : 00000004 r4 : d5d49000
r3 : 00000000 r2 : 00000000 r1 : 00000004 r0 : 00000000
Flags: nzcv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
Control: 10c5387d Table: 95804019 DAC: 00000015
Process X (pid: 612, stack limit = 0xd5808238)
Stack: (0xd5809e08 to 0xd580a000)
9e00: 00000264 0000e200 00000001 bf158708 00001910 00000000
9e20: 00000028 00000004 d5808008 bea69b18 d5d49020 00000044 00000000 0018d5a0
9e40: 002400b3 d5809eb8 00000000 d5809fb0 d5809e6c d5809e60 c005b398 c03077e4
9e60: d5809f04 d5809e70 c060ce28 c005b38c c09f3ffc d6e6add8 d5809e9c d5809e88
9e80: b6cf0034 00001910 00000000 00000018 d5809f78 d5e1c240 00000018 00000000
9ea0: d5809f44 d5809eb0 c01049bc c0183fc0 00001910 00000000 00174d18 00000009
9ec0: d5d85180 bea69b18 c0046444 d72f7040 00000009 bea69b18 d5809ef4 d5809ee8
9ee0: c011370c bf0ace64 d5809f74 d5809ef8 c011412c c01136e0 00000000 00000001
9f00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 d5e1c240
9f20: 00000018 d5e1c248 00000002 d6e6add8 00000000 c0105170 d5809f74 d5809f48
9f40: c0105170 c0106c40 00000000 00000000 d5d85180 bea69b18 c0046444 00000000
9f60: 00000009 00000000 d5809fa4 d5809f78 c011427c c0113cec 00001928 00000000
9f80: bea69b18 c0046444 00000009 00000036 c000dcc8 d5808000 00000000 d5809fa8
9fa0: c000da80 c0114228 bea69b18 c0046444 00000009 c0046444 bea69b18 00000004
9fc0: bea69b18 c0046444 00000009 00000036 001713dc 00108974 001713e0 0017b154
9fe0: b6cfc70c bea69af4 b6cefc8c 5000162c 600b0010 00000009 00000000 00000000
Code: e49de004 e3110008 18a0000c e3110004 (14802004)
odule version = 1.0.0
(II) Loading /usr/local/X---[ end trace 0f82d6aedd237cc5 ]---
SGX/lib/xorg/modules/extensions/libglx.so
insmod: ERROR: could [drm:drm_release] *ERROR* Device busy: 1
not insert module /lib/modules/3.10.17-yocto-standard/kernel/drivers/gpu/pvr/pvrsrvkm.ko: File exists
Could not find pvrsrvkm driver
(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 record: 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/local/XSGX/lib/xorg/modules/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 3
(WW) xf86OpenConsole: setpgid failed: Operation not permitted
(WW) Falling back to old probe method for pvr