Compiling xf86-video-xgi driver for ARM
Jeffrey Langerak
jeffrey at prutsertjes.nl
Tue Jan 15 03:58:42 PST 2013
Hi,
Sorry for the many emails, but I think I have fixed the problem, there
was a patch needed for this error and applied that patch and recompiled
the driver.
Afterwards there was an error about no devices found, so I moved my
xorg.conf to a safe place and restarted lightdm, so X uses it's
defaults. That seems to be working withot errors, can someone confirm
that the XGI driver is now loaded correctly? (not able to test this
currently)
[ 10478.288]
X.Org X Server 1.12.4
Release Date: 2012-08-27
[ 10478.288] X Protocol Version 11, Revision 0
[ 10478.288] Build Operating System: Linux 2.6.32 armv5tel Debian
[ 10478.289] Current Operating System: Linux t5325 3.8.0-rc3 #1 PREEMPT
Fri Jan 11 15:36:19 CET 2013 armv5tel
[ 10478.289] Kernel command line: console=tty1 root=/dev/nfs rw
nfsroot=192.168.0.75:/exports/t5325,rsize=8192,wsize=8192,tcp
init=/sbin/init video=xgifb
ip=192.168.0.80:192.168.0.75:192.168.0.1:255.255.255.0:t5325::off
[ 10478.289] Build Date: 29 November 2012 08:57:05PM
[ 10478.289] xorg-server 2:1.12.4-4 (Julien Cristau <jcristau at debian.org>)
[ 10478.289] Current version of pixman: 0.26.0
[ 10478.289] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 10478.289] Markers: (--) probed, (**) from config file, (==) default
setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 10478.291] (==) Log file: "/var/log/Xorg.0.log", Time: Tue Jan 15
13:04:53 2013
[ 10478.304] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 10478.306] (==) No Layout section. Using the first Screen section.
[ 10478.306] (==) No screen section available. Using defaults.
[ 10478.306] (**) |-->Screen "Default Screen Section" (0)
[ 10478.306] (**) | |-->Monitor "<default monitor>"
[ 10478.307] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 10478.307] (==) Automatically adding devices
[ 10478.307] (==) Automatically enabling devices
[ 10478.311] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not
exist.
[ 10478.311] Entry deleted from font path.
[ 10478.316] (WW) The directory
"/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" does not exist.
[ 10478.316] Entry deleted from font path.
[ 10478.316] (==) FontPath set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/100dpi/:unscaled,
/usr/share/fonts/X11/75dpi/:unscaled,
/usr/share/fonts/X11/Type1,
/usr/share/fonts/X11/100dpi,
/usr/share/fonts/X11/75dpi,
built-ins
[ 10478.316] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 10478.316] (II) The server relies on udev to provide the list of input
devices.
If no devices become available, reconfigure udev or disable
AutoAddDevices.
[ 10478.316] (II) Loader magic: 0xb6ff4cf0
[ 10478.316] (II) Module ABI versions:
[ 10478.316] X.Org ANSI C Emulation: 0.4
[ 10478.316] X.Org Video Driver: 12.1
[ 10478.316] X.Org XInput driver : 16.0
[ 10478.316] X.Org Server Extension : 6.0
[ 10478.317] (--) PCI:*(0:0:1:0) 18ca:0027:18ca:0027 rev 0, Mem @
0xe0000000/67108864, 0xe4000000/262144, I/O @ 0x00001000/128
[ 10478.318] (II) LoadModule: "extmod"
[ 10478.325] (II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
[ 10478.329] (II) Module extmod: vendor="X.Org Foundation"
[ 10478.329] compiled for 1.12.4, module version = 1.0.0
[ 10478.329] Module class: X.Org Server Extension
[ 10478.329] ABI class: X.Org Server Extension, version 6.0
[ 10478.330] (II) Loading extension SELinux
[ 10478.330] (II) Loading extension MIT-SCREEN-SAVER
[ 10478.330] (II) Loading extension XFree86-VidModeExtension
[ 10478.330] (II) Loading extension XFree86-DGA
[ 10478.330] (II) Loading extension DPMS
[ 10478.330] (II) Loading extension XVideo
[ 10478.330] (II) Loading extension XVideo-MotionCompensation
[ 10478.330] (II) Loading extension X-Resource
[ 10478.330] (II) LoadModule: "dbe"
[ 10478.334] (II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
[ 10478.335] (II) Module dbe: vendor="X.Org Foundation"
[ 10478.336] compiled for 1.12.4, module version = 1.0.0
[ 10478.336] Module class: X.Org Server Extension
[ 10478.336] ABI class: X.Org Server Extension, version 6.0
[ 10478.336] (II) Loading extension DOUBLE-BUFFER
[ 10478.336] (II) LoadModule: "glx"
[ 10478.339] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 10478.340] (II) Module glx: vendor="X.Org Foundation"
[ 10478.341] compiled for 1.12.4, module version = 1.0.0
[ 10478.341] ABI class: X.Org Server Extension, version 6.0
[ 10478.341] (==) AIGLX enabled
[ 10478.341] (II) Loading extension GLX
[ 10478.341] (II) LoadModule: "record"
[ 10478.347] (II) Loading /usr/lib/xorg/modules/extensions/librecord.so
[ 10478.349] (II) Module record: vendor="X.Org Foundation"
[ 10478.349] compiled for 1.12.4, module version = 1.13.0
[ 10478.349] Module class: X.Org Server Extension
[ 10478.349] ABI class: X.Org Server Extension, version 6.0
[ 10478.349] (II) Loading extension RECORD
[ 10478.349] (II) LoadModule: "dri"
[ 10478.353] (II) Loading /usr/lib/xorg/modules/extensions/libdri.so
[ 10478.357] (II) Module dri: vendor="X.Org Foundation"
[ 10478.357] compiled for 1.12.4, module version = 1.0.0
[ 10478.357] ABI class: X.Org Server Extension, version 6.0
[ 10478.357] (II) Loading extension XFree86-DRI
[ 10478.357] (II) LoadModule: "dri2"
[ 10478.361] (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
[ 10478.363] (II) Module dri2: vendor="X.Org Foundation"
[ 10478.363] compiled for 1.12.4, module version = 1.2.0
[ 10478.363] ABI class: X.Org Server Extension, version 6.0
[ 10478.363] (II) Loading extension DRI2
[ 10478.366] (==) Matched xgi as autoconfigured driver 0
[ 10478.366] (==) Matched fbdev as autoconfigured driver 1
[ 10478.366] (==) Assigned the driver to the xf86ConfigLayout
[ 10478.366] (II) LoadModule: "xgi"
[ 10478.372] (II) Loading /usr/lib/xorg/modules/drivers/xgi_drv.so
[ 10478.373] (II) Module xgi: vendor="X.Org Foundation"
[ 10478.373] compiled for 1.12.4, module version = 6.1.6803
[ 10478.373] Module class: X.Org Video Driver
[ 10478.373] ABI class: X.Org Video Driver, version 12.1
[ 10478.374] (II) LoadModule: "fbdev"
[ 10478.378] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[ 10478.380] (II) Module fbdev: vendor="X.Org Foundation"
[ 10478.380] compiled for 1.12.1, module version = 0.4.2
[ 10478.380] ABI class: X.Org Video Driver, version 12.0
[ 10478.380] (II) XGI: driver for XGI chipsets: Volari V8_V5_V3XT,
Volari Z7_Z9_Z9s,
Volari Z9_Z9s, Volari Z11
[ 10478.381] (II) FBDEV: driver for framebuffer: fbdev
[ 10478.381] (++) using VT number 7
[ 10478.381] (II) Loading sub module "fbdevhw"
[ 10478.381] (II) LoadModule: "fbdevhw"
[ 10478.391] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[ 10478.394] (II) Module fbdevhw: vendor="X.Org Foundation"
[ 10478.394] compiled for 1.12.4, module version = 0.0.2
[ 10478.394] ABI class: X.Org Video Driver, version 12.1
[ 10478.394] (**) FBDEV(0): claimed PCI slot 0 at 0:1:0
[ 10478.394] (II) FBDEV(0): using default device
[ 10478.395] (II) FBDEV(0): Creating default Display subsection in
Screen section
"Default Screen Section" for depth/fbbpp 16/16
[ 10478.395] (==) FBDEV(0): Depth 16, (==) framebuffer bpp 16
[ 10478.395] (==) FBDEV(0): RGB weight 565
[ 10478.395] (==) FBDEV(0): Default visual is TrueColor
[ 10478.395] (==) FBDEV(0): Using gamma correction (1.0, 1.0, 1.0)
[ 10478.395] (II) FBDEV(0): hardware: XGI (video memory: 32768kB)
[ 10478.395] (II) FBDEV(0): checking modes against framebuffer device...
[ 10478.395] (II) FBDEV(0): checking modes against monitor...
[ 10478.395] (--) FBDEV(0): Virtual size is 800x600 (pitch 800)
[ 10478.395] (**) FBDEV(0): Built-in mode "current": 40.0 MHz, 37.9
kHz, 60.3 Hz
[ 10478.396] (II) FBDEV(0): Modeline "current"x0.0 40.00 800 840 968
1056 600 601 605 628 +hsync +vsync -csync (37.9 kHz b)
[ 10478.396] (==) FBDEV(0): DPI set to (96, 96)
[ 10478.396] (II) Loading sub module "fb"
[ 10478.396] (II) LoadModule: "fb"
[ 10478.401] (II) Loading /usr/lib/xorg/modules/libfb.so
[ 10478.402] (II) Module fb: vendor="X.Org Foundation"
[ 10478.402] compiled for 1.12.4, module version = 1.0.0
[ 10478.402] ABI class: X.Org ANSI C Emulation, version 0.4
[ 10478.402] (**) FBDEV(0): using shadow framebuffer
[ 10478.402] (II) Loading sub module "shadow"
[ 10478.402] (II) LoadModule: "shadow"
[ 10478.407] (II) Loading /usr/lib/xorg/modules/libshadow.so
[ 10478.408] (II) Module shadow: vendor="X.Org Foundation"
[ 10478.408] compiled for 1.12.4, module version = 1.1.0
[ 10478.408] ABI class: X.Org ANSI C Emulation, version 0.4
[ 10478.408] (II) UnloadModule: "xgi"
[ 10478.409] (II) Unloading xgi
[ 10478.411] (==) FBDEV(0): Backing store disabled
[ 10478.411] (==) FBDEV(0): DPMS enabled
[ 10478.411] (==) RandR enabled
[ 10478.412] (II) Initializing built-in extension Generic Event Extension
[ 10478.412] (II) Initializing built-in extension SHAPE
[ 10478.412] (II) Initializing built-in extension MIT-SHM
[ 10478.412] (II) Initializing built-in extension XInputExtension
[ 10478.412] (II) Initializing built-in extension XTEST
[ 10478.412] (II) Initializing built-in extension BIG-REQUESTS
[ 10478.412] (II) Initializing built-in extension SYNC
[ 10478.412] (II) Initializing built-in extension XKEYBOARD
[ 10478.412] (II) Initializing built-in extension XC-MISC
[ 10478.412] (II) Initializing built-in extension SECURITY
[ 10478.412] (II) Initializing built-in extension XINERAMA
[ 10478.412] (II) Initializing built-in extension XFIXES
[ 10478.412] (II) Initializing built-in extension RENDER
[ 10478.412] (II) Initializing built-in extension RANDR
[ 10478.412] (II) Initializing built-in extension COMPOSITE
[ 10478.412] (II) Initializing built-in extension DAMAGE
[ 10478.412] (II) SELinux: Disabled on system
[ 10478.470] (II) AIGLX: Screen 0 is not DRI2 capable
[ 10478.471] (II) AIGLX: Screen 0 is not DRI capable
[ 10478.519] (II) AIGLX: Loaded and initialized swrast
[ 10478.519] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[ 10479.020] (II) config/udev: Adding input device gpio-keys
(/dev/input/event2)
[ 10479.021] (**) gpio-keys: Applying InputClass "evdev keyboard catchall"
[ 10479.021] (II) LoadModule: "evdev"
[ 10479.024] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
[ 10479.025] (II) Module evdev: vendor="X.Org Foundation"
[ 10479.025] compiled for 1.12.1, module version = 2.7.0
[ 10479.025] Module class: X.Org XInput Driver
[ 10479.025] ABI class: X.Org XInput driver, version 16.0
[ 10479.025] (II) Using input driver 'evdev' for 'gpio-keys'
[ 10479.025] (**) gpio-keys: always reports core events
[ 10479.026] (**) evdev: gpio-keys: Device: "/dev/input/event2"
[ 10479.026] (--) evdev: gpio-keys: Vendor 0x1 Product 0x1
[ 10479.026] (--) evdev: gpio-keys: Found keys
[ 10479.026] (II) evdev: gpio-keys: Configuring as keyboard
[ 10479.026] (**) Option "config_info"
"udev:/sys/devices/platform/gpio-keys/input/input2/event2"
[ 10479.026] (II) XINPUT: Adding extended input device "gpio-keys"
(type: KEYBOARD, id 6)
[ 10479.026] (**) Option "xkb_rules" "evdev"
[ 10479.026] (**) Option "xkb_model" "pc105"
[ 10479.026] (**) Option "xkb_layout" "us"
[ 10479.031] (II) config/udev: Adding input device Logitech USB Receiver
(/dev/input/event0)
[ 10479.031] (**) Logitech USB Receiver: Applying InputClass "evdev
pointer catchall"
[ 10479.031] (II) Using input driver 'evdev' for 'Logitech USB Receiver'
[ 10479.031] (**) Logitech USB Receiver: always reports core events
[ 10479.031] (**) evdev: Logitech USB Receiver: Device: "/dev/input/event0"
[ 10479.032] (--) evdev: Logitech USB Receiver: Vendor 0x46d Product 0xc526
[ 10479.032] (--) evdev: Logitech USB Receiver: Found 20 mouse buttons
[ 10479.032] (--) evdev: Logitech USB Receiver: Found scroll wheel(s)
[ 10479.032] (--) evdev: Logitech USB Receiver: Found relative axes
[ 10479.032] (--) evdev: Logitech USB Receiver: Found x and y relative axes
[ 10479.032] (II) evdev: Logitech USB Receiver: Configuring as mouse
[ 10479.032] (II) evdev: Logitech USB Receiver: Adding scrollwheel support
[ 10479.032] (**) evdev: Logitech USB Receiver: YAxisMapping: buttons 4
and 5
[ 10479.033] (**) evdev: Logitech USB Receiver: EmulateWheelButton: 4,
EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[ 10479.033] (**) Option "config_info"
"udev:/sys/devices/platform/orion-ehci.0/usb1/1-1/1-1.1/1-1.1:1.0/input/input0/event0"
[ 10479.033] (II) XINPUT: Adding extended input device "Logitech USB
Receiver" (type: MOUSE, id 7)
[ 10479.033] (II) evdev: Logitech USB Receiver: initialized for relative
axes.
[ 10479.035] (**) Logitech USB Receiver: (accel) keeping acceleration
scheme 1
[ 10479.035] (**) Logitech USB Receiver: (accel) acceleration profile 0
[ 10479.035] (**) Logitech USB Receiver: (accel) acceleration factor: 2.000
[ 10479.035] (**) Logitech USB Receiver: (accel) acceleration threshold: 4
[ 10479.037] (II) config/udev: Adding input device Logitech USB Receiver
(/dev/input/mouse0)
[ 10479.037] (II) No input driver specified, ignoring this device.
[ 10479.037] (II) This device may have been added with another device file.
[ 10479.039] (II) config/udev: Adding input device Logitech USB Receiver
(/dev/input/event1)
[ 10479.039] (**) Logitech USB Receiver: Applying InputClass "evdev
keyboard catchall"
[ 10479.039] (II) Using input driver 'evdev' for 'Logitech USB Receiver'
[ 10479.039] (**) Logitech USB Receiver: always reports core events
[ 10479.039] (**) evdev: Logitech USB Receiver: Device: "/dev/input/event1"
[ 10479.039] (--) evdev: Logitech USB Receiver: Vendor 0x46d Product 0xc526
[ 10479.040] (--) evdev: Logitech USB Receiver: Found 1 mouse buttons
[ 10479.040] (--) evdev: Logitech USB Receiver: Found scroll wheel(s)
[ 10479.040] (--) evdev: Logitech USB Receiver: Found relative axes
[ 10479.040] (II) evdev: Logitech USB Receiver: Forcing relative x/y
axes to exist.
[ 10479.040] (--) evdev: Logitech USB Receiver: Found absolute axes
[ 10479.040] (II) evdev: Logitech USB Receiver: Forcing absolute x/y
axes to exist.
[ 10479.040] (--) evdev: Logitech USB Receiver: Found keys
[ 10479.040] (II) evdev: Logitech USB Receiver: Configuring as mouse
[ 10479.040] (II) evdev: Logitech USB Receiver: Configuring as keyboard
[ 10479.040] (II) evdev: Logitech USB Receiver: Adding scrollwheel support
[ 10479.040] (**) evdev: Logitech USB Receiver: YAxisMapping: buttons 4
and 5
[ 10479.040] (**) evdev: Logitech USB Receiver: EmulateWheelButton: 4,
EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[ 10479.040] (**) Option "config_info"
"udev:/sys/devices/platform/orion-ehci.0/usb1/1-1/1-1.1/1-1.1:1.1/input/input1/event1"
[ 10479.040] (II) XINPUT: Adding extended input device "Logitech USB
Receiver" (type: KEYBOARD, id 8)
[ 10479.040] (**) Option "xkb_rules" "evdev"
[ 10479.040] (**) Option "xkb_model" "pc105"
[ 10479.041] (**) Option "xkb_layout" "us"
[ 10479.042] (II) evdev: Logitech USB Receiver: initialized for relative
axes.
[ 10479.042] (WW) evdev: Logitech USB Receiver: ignoring absolute axes.
[ 10479.044] (**) Logitech USB Receiver: (accel) keeping acceleration
scheme 1
[ 10479.044] (**) Logitech USB Receiver: (accel) acceleration profile 0
[ 10479.044] (**) Logitech USB Receiver: (accel) acceleration factor: 2.000
[ 10479.044] (**) Logitech USB Receiver: (accel) acceleration threshold: 4
Thanks!
Jeffrey Langerak
On 01/15/2013 12:25 PM, Jeffrey Langerak wrote:
> Hi,
>
> I found out that the built module was placed in
> "/usr/local/lib/xorg/modules/drivers/" and that the actual dir was
> "/usr/local/lib/xorg/modules/drivers/".
>
> I have copied the xgi_drv.so in that dir and now lightdm shows a
> different error:
>
> [ 8602.813] (II) LoadModule: "xgi"
> [ 8602.817] (II) Loading /usr/lib/xorg/modules/drivers/xgi_drv.so
> [ 8602.818] (EE) LoadModule: Module xgi does not have a xgiModuleData
> data object.
> [ 8602.818] (II) UnloadModule: "xgi"
> [ 8602.818] (II) Unloading xgi
> [ 8602.818] (EE) Failed to load module "xgi" (invalid module, 0)
> [ 8602.819] (II) LoadModule: "evdev"
> [ 8602.821] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
> [ 8602.822] (II) Module evdev: vendor="X.Org Foundation"
> [ 8602.822] compiled for 1.12.1, module version = 2.7.0
> [ 8602.822] Module class: X.Org XInput Driver
> [ 8602.822] ABI class: X.Org XInput driver, version 16.0
> [ 8602.823] (EE) No drivers available.
>
> I also have a xgi_drv.la file, what's the use of that file? Does it
> need to be placed somewhere?
>
> Kind regards,
>
> Jeffrey Langerak
>
> On 01/15/2013 12:10 PM, Jeffrey Langerak wrote:
>> Hi,
>>
>> I have commented that particular line out and that seems to finish
>> the build without errors, also a "make install" finishes without errors.
>>
>> I assume that I only need to change the xorg.conf file and replace
>> the "fbdev" driver with "xgi"? When I restart lightdm and check the
>> Xorg.log I see this:
>>
>> [ 7597.991] (II) LoadModule: "xgi"
>> [ 7598.002] (WW) Warning, couldn't open module xgi
>> [ 7598.002] (II) UnloadModule: "xgi"
>> [ 7598.002] (II) Unloading xgi
>> [ 7598.002] (EE) Failed to load module "xgi" (module does not exist, 0)
>>
>> I guess I still need to copy some files, but what files and to what
>> location?
>>
>> About ARM and the Volari, it is a strange combination and would never
>> put a Volari in such a device, I guess that it was a cost reduction
>> method for HP, but we have to work with the tools we have in that
>> device :). The CPU itself is not that weak with 1.2 GHz (ARMv5).
>>
>> Thanks!
>>
>> Kind regards,
>>
>> Jeffrey Langerak
>>
>> On 01/15/2013 11:39 AM, Dave Airlie wrote:
>>> On Tue, Jan 15, 2013 at 8:20 PM, Jeffrey Langerak
>>> <jeffrey at prutsertjes.nl> wrote:
>>>> Hi,
>>>>
>>>> I have a small thin client from HP (a t5325) with a XGI Volari Z11
>>>> card in
>>>> it and would like to compile the "xf86-video-xgi" driver for this
>>>> device to
>>>> avoid the fbdev driver.
>>>>
>>>> The device runs Debian ARM "unstable" with the following versions:
>>>>
>>>> Xorg package version 1:7.7+1
>>>> Libtool package version 2.4.2-1.2
>>>> Make package version 3.81-8.2
>>>> Gcc package version 4.7.2-5
>>>>
>>>> I have downloaded the most recent version via Git and started the
>>>> ./autogen.sh script, that successfully completes.
>>>>
>>>> When I run the make command, it shows alot of errors about
>>>> deprecated things
>>>> and I guess that is mainly because of the bleeding edge Debian
>>>> version.
>>>>
>>>> The errors I see during the compile are pasted in this Pastebin
>>>> document:
>>>> http://pastebin.com/abwEefic
>>>>
>>>> Is someone able to help me with this issue? If more information is
>>>> needed,
>>>> please let me know, so I can provide it!
>>> I only see one error in that, the ioBase one, maybe comment out
>>> that line
>>> and keep going.
>>>
>>> I really can't believe someone is sick enough to put a Volari with an
>>> ARM though.
>>>
>>> Dave.
>>
>> _______________________________________________
>> xorg at lists.x.org: X.Org support
>> Archives: http://lists.freedesktop.org/archives/xorg
>> Info: http://lists.x.org/mailman/listinfo/xorg
>> Your subscription address: jeffrey at prutsertjes.nl
>
> _______________________________________________
> xorg at lists.x.org: X.Org support
> Archives: http://lists.freedesktop.org/archives/xorg
> Info: http://lists.x.org/mailman/listinfo/xorg
> Your subscription address: jeffrey at prutsertjes.nl
More information about the xorg
mailing list