Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jul 2016 09:33:47 +0000
From:      bugzilla-noreply@freebsd.org
To:        x11@FreeBSD.org
Subject:   [Bug 211418] x11-drivers/xf86-video-vesa: X11 fails to start; vesa_drv.so Undefined symbol "ioBase"
Message-ID:  <bug-211418-7141@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211418

            Bug ID: 211418
           Summary: x11-drivers/xf86-video-vesa: X11 fails to start;
                    vesa_drv.so Undefined symbol "ioBase"
           Product: Ports & Packages
           Version: Latest
          Hardware: ppc
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: x11@FreeBSD.org
          Reporter: damonz@g3os.org
          Assignee: x11@FreeBSD.org
             Flags: maintainer-feedback?(x11@FreeBSD.org)

OVERVIEW:
When I run startx, the (X) server can't load the vesa driver and without a
working driver, X fails to start.  The log indicates that ioBase can't be f=
ound
in vesa_drv.so but I can see it defined in vesa.h which vesa.c includes.


STEPS TO REPRODUCE:

1) Tell xorg to use the vesa driver (the radeon driver doesn't seem to be
available for PowerPC)
$ cat /usr/local/etc/X11/xorg.conf.d/driver-radeon.conf
# https://www.freebsd.org/doc/handbook/x-config.html#x-config-video-cards-f=
ile
# http://mac.linux.be/content/g4-emac-1ghz-radeon

Section "Device"
        Identifier "ATI Technologies Inc Radeon RV200 QW [Radeon 7500]"
        # Driver     "radeon"
        Driver     "vesa"
        BusID      "PCI:0:16:0"
EndSection

2) As a user (i.e. not root), run `startx`

Note I've tried building xorg from ports as well as using prebuilt packages
from https://joshcummings.net/pub/FreeBSD/FreeBSD%3a10%3apowerpc/2016Q1/All/
which were apparently built using Poudriere.


ACTUAL RESULTS:=20
(stdout)
$ startx
xauth:  file /home/damonz/.serverauth.887 does not exist
xauth: (argv):1:  bad display name "emac.local:0" in "list" command
xauth: (stdin):1:  bad display name "emac.local:0" in "add" command


X.Org X Server 1.17.4
Release Date: 2015-10-28
X Protocol Version 11, Revision 0
Build Operating System: FreeBSD 10.2-RELEASE powerpc
Current Operating System: FreeBSD emac.local 10.3-RELEASE FreeBSD 10.3-RELE=
ASE
#0 r297264: Fri Mar 25 05:18:20 UTC 2016     ro
ot@releng1.nyi.freebsd.org:/usr/obj/powerpc.powerpc/usr/src/sys/GENERIC pow=
erpc
Build Date: 22 March 2016  06:14:55PM

Current version of pixman: 0.32.8
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (=3D=3D) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(=3D=3D) Log file: "/var/log/Xorg.0.log", Time: Wed Jul 27 19:41:47 2016
(=3D=3D) Using config directory: "/usr/local/etc/X11/xorg.conf.d"
(EE)
Fatal server error:
(EE) no screens found(EE)
(EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional
information.
(EE)
(EE) Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
xauth: (argv):1:  bad display name "emac.local:0" in "remove" command

feel sad

(/var/log/Xorg.0.log)
[   396.980]=20
X.Org X Server 1.17.4
Release Date: 2015-10-28
[   396.981] X Protocol Version 11, Revision 0
[   396.981] Build Operating System: FreeBSD 10.2-RELEASE powerpc=20
[   396.981] Current Operating System: FreeBSD emac.local 10.3-RELEASE Free=
BSD
10.3-RELEASE #0 r297264: Fri Mar 25 05:18:20 UTC 2016=20=20=20=20
root@releng1.nyi.freebsd.org:/usr/obj/powerpc.powerpc/usr/src/sys/GENERIC
powerpc
[   396.982] Build Date: 22 March 2016  06:14:55PM
[   396.982]=20=20
[   396.982] Current version of pixman: 0.32.8
[   396.982]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[   396.982] Markers: (--) probed, (**) from config file, (=3D=3D) default =
setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   396.983] (=3D=3D) Log file: "/var/log/Xorg.0.log", Time: Wed Jul 27 19:=
41:47
2016
[   397.071] (=3D=3D) Using config directory: "/usr/local/etc/X11/xorg.conf=
.d"
[   397.102] (=3D=3D) ServerLayout "Default Layout"
[   397.102] (**) |-->Screen "Screen0" (0)
[   397.102] (**) |   |-->Monitor "Monitor[0]"
[   397.103] (**) |   |-->Device "ATI Technologies Inc Radeon RV200 QW [Rad=
eon
7500]"
[   397.103] (=3D=3D) Automatically adding devices
[   397.103] (=3D=3D) Automatically enabling devices
[   397.103] (=3D=3D) Not automatically adding GPU devices
[   397.257] (=3D=3D) FontPath set to:
        /usr/local/share/fonts/misc/,
        /usr/local/share/fonts/TTF/,
        /usr/local/share/fonts/OTF/,
        /usr/local/share/fonts/Type1/,
        /usr/local/share/fonts/100dpi/,
        /usr/local/share/fonts/75dpi/
[   397.257] (=3D=3D) ModulePath set to "/usr/local/lib/xorg/modules"
[   397.257] (II) The server relies on devd to provide the list of input
devices.
        If no devices become available, reconfigure devd or disable
AutoAddDevices.
[   397.257] (II) Loader magic: 0x1a2001c
[   397.258] (II) Module ABI versions:
[   397.258]    X.Org ANSI C Emulation: 0.4
[   397.258]    X.Org Video Driver: 19.0
[   397.258]    X.Org XInput driver : 21.0
[   397.258]    X.Org Server Extension : 9.0
[   397.258] (WW) xf86EnableIO -1
[   397.258] (II) xf86EnableIO: ffffffff
[   397.258] (WW) Can't map IO space!
[   397.259] (--) PCI: (0:0:16:0) 1002:5157:1002:5157 rev 0, Mem @
0x98000000/134217728, 0x90000000/65536, I/O @ 0x00000400/256, BIOS @
0x????????/65536
[   397.259] (II) "glx" will be loaded by default.
[   397.259] (II) LoadModule: "int10"
[   397.277] (II) Loading /usr/local/lib/xorg/modules/libint10.so
[   397.282] (II) Module int10: vendor=3D"X.Org Foundation"
[   397.282]    compiled for 1.17.4, module version =3D 1.0.0
[   397.282]    ABI class: X.Org Video Driver, version 19.0
[   397.282] (II) LoadModule: "vbe"
[   397.283] (II) Loading /usr/local/lib/xorg/modules/libvbe.so
[   397.285] (II) Module vbe: vendor=3D"X.Org Foundation"
[   397.285]    compiled for 1.17.4, module version =3D 1.1.0
[   397.285]    ABI class: X.Org Video Driver, version 19.0
[   397.285] (II) LoadModule: "glx"
[   397.286] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[   397.332] (II) Module glx: vendor=3D"X.Org Foundation"
[   397.332]    compiled for 1.17.4, module version =3D 1.0.0
[   397.332]    ABI class: X.Org Server Extension, version 9.0
[   397.333] (=3D=3D) AIGLX enabled
[   397.333] (II) LoadModule: "vesa"
[   397.333] (II) Loading /usr/local/lib/xorg/modules/drivers/vesa_drv.so
[   397.338] (EE) Failed to load
/usr/local/lib/xorg/modules/drivers/vesa_drv.so:
/usr/local/lib/xorg/modules/drivers/vesa_drv.so: Undefined symbol "ioBase"
[   397.338] (II) UnloadModule: "vesa"
[   397.338] (II) Unloading vesa
[   397.338] (EE) Failed to load module "vesa" (loader failed, 7)
[   397.338] (EE) No drivers available.
[   397.338] (EE)=20
Fatal server error:
[   397.338] (EE) no screens found(EE)=20
[   397.338] (EE)=20
Please consult the The X.Org Foundation support=20
         at http://wiki.x.org
 for help.=20
[   397.339] (EE) Please also check the log file at "/var/log/Xorg.0.log" f=
or
additional information.
[   397.339] (EE)=20
[   397.339] (EE) Server terminated with error (1). Closing log file.


EXPECTED RESULTS: xorg starts and displays twm and xterm


BUILD DATE & HARDWARE:=20

I have an Apple eMac.

$ uname -a
FreeBSD emac.local 10.3-RELEASE FreeBSD 10.3-RELEASE #0 r297264: Fri Mar 25
05:18:20 UTC 2016=20=20=20=20
root@releng1.nyi.freebsd.org:/usr/obj/powerpc.powerpc/usr/src/sys/GENERIC=20
powerpc

# pciconf -lcv
hostb0@pci0:0:11:0:     class=3D0x060000 card=3D0x00000000 chip=3D0x002d106=
b rev=3D0x00
hdr=3D0x00
    vendor     =3D 'Apple Inc.'
    device     =3D 'UniNorth 1.5 AGP'
    class      =3D bridge
    subclass   =3D HOST-PCI
    cap 02[80] =3D AGP 4x 2x 1x SBA disabled
vgapci0@pci0:0:16:0:    class=3D0x030000 card=3D0x51571002 chip=3D0x5157100=
2 rev=3D0x00
hdr=3D0x00
    vendor     =3D 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     =3D 'RV200 [Radeon 7500/7500 LE]'
    class      =3D display
    subclass   =3D VGA
    cap 02[58] =3D AGP 4x 2x 1x SBA disabled
    cap 01[50] =3D powerspec 2  supports D0 D1 D2 D3  current D0
...

# dmesg | grep cpu
cpu0: Motorola PowerPC 7455 revision 3.3, 1000.26 MHz
cpu0: Features 9c000000<PPC32,ALTIVEC,FPU,MMU>
cpu0: HID0 8450c0bc<EMCP,TBEN,NAP,DPM,ICE,DCE,SGE,BTIC,LRSTK,FOLD,BHT>
cpulist0: <Open Firmware CPU Group> on ofwbus0
cpu0: <Open Firmware CPU> on cpulist0


ADDITIONAL NOTES:
In spite of the ports manual I don't know enough about patching ports yet to
change the code and print things out.  When I try to make changes to
/usr/ports/x11-drivers/xf86-video-vesa/work/xf86-video-vesa-2.3.4/src/vesa.=
c,
make install clobbers them.

Let me know if I can provide other details.

Thank you,
- d

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-211418-7141>