Subject: Re: trouble compiling a working xserver for prep
To: Tim Rightnour <root@garbled.net>
From: Michael <macallan18@earthlink.net>
List: tech-x11
Date: 04/18/2006 11:34:44
--Signature_Tue__18_Apr_2006_11_34_44_-0400_9hKOgWN6ESL7Djio
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Hello,

> I'm trying to compile the XFree server from xsrc for NetBSD/prep, and
> I'm encountering a bit of a problem when running it:
>=20
> (II) Loader running on netbsd
> (II) LoadModule: "pcidata"
> (II) Loading /usr/X11R6/lib/modules/libpcidata.a
> (EE) LoadModule: Module pcidata does not have a pcidataModuleData data
> object. (II) UnloadModule: "pcidata"
> (II) Unloading /usr/X11R6/lib/modules/libpcidata.a
> (EE) Failed to load module "pcidata" (invalid module, 0)
>=20
> Fatal server error:
> Unable to load required probe modules, Exiting...
>=20
>=20
> I assume I've just missed a setting somewhere in a Makefile, but does
> anyone know where I should start?  I've looked around and the only
> thing I see is src/x11/Xserver/hw/xfree86/pcidata/Makefile
>=20
> Which defines:
> CPPFLAGS.xf86PciData.c+=3D        -DPCIDATA
>=20
> Any clues would be greatly appreciated.

Ok, I have no idea what /exactly/ went wrong but here's where to look:
Apparently the pcidata module wasn't built properly, after all it's only
a static library, probably misses an object file or two -
pcidataModuleData should point at some sort of header, if that's missing
something is seriously wrong.
Have a look at xsrc/xc/programs/Xserver/hw/xfree86/os-support/bsd/ and
xsrc/xc/programs/Xserver/hw/xfree86/os-support/bus/ - these contain
machine-dependent code to access the PCI bus, mmap() video RAM and
registers and so on. You might want to define a 'magic area' to access
IO space as well, like macppc and arm do. For now I'd recommend making
your prep box use the same code as sparc64 or macppc, that means to
mmap() everything through ttyE0 which vga should allow for the device it
sits on.

have fun
Michael

--Signature_Tue__18_Apr_2006_11_34_44_-0400_9hKOgWN6ESL7Djio
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (NetBSD)

iQEVAwUBREUHGMpnzkX8Yg2nAQJedQf8CHJAN/T41+0ZGjZAP2R3JU7NGmYqYiz7
HyPpRhiWWiwqQbbJr1VIS+OhvfT2hAUgqgQmSPNlbrRbFllYm2xnku5qeQtji5BI
xePawklamW4enw2g/lF+gNGPpUqkg+ABJru8hTOcxbbGpj077QE56vwpkH7eoAHr
RNWcdO6SzKQWCqNghN7lc/+qSjpYKLbXHcy0tkmy+SCO1FJNafIiTVjCPP63S77m
bPVmjVPQa1/tv++A/riiW4KjOcBD9aVqMp6DlqrM9FYZp/vwoN81Td6L7Luo3W68
aGvtjieNQ43A7tPvKxXH8DgNGfCY2AqTI0Qs+p//Xxu/BZiDie6+9A==
=nnjX
-----END PGP SIGNATURE-----

--Signature_Tue__18_Apr_2006_11_34_44_-0400_9hKOgWN6ESL7Djio--