Port-powerpc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: X server support?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On Sep 9, 2008, at 11:34 PM, KIYOHARA Takashi wrote:

I want support the X server for port bebox and prep.
What should I first do?

I copied some files of /usr/X11R6/lib/modules of macppc. And, mmap tried
the map of 0xfc000000 and it failed though Driver was set to s3 in
XF86Config for bebox.

Sure it wasn't 0xf2000000? That would be the Xserver trying to mmap the PCI IO space.

I will try wsfb_drv.o of port ofppc tonight.

Should be identical to macppc's.

Anyway, to get the S3 to work you'll likely have to support macppc's mechanism to mmap PCI IO space ( ofppc and shark use it too ). Basically - look at genfb_pci.c, grep it for PCI_MAGIC_IO_RANGE, pick an offset that's safe on your hardware ( it may or may not correspond to the real bus address of the PCI IO space but X and genfb need to agree about it and no PCI BARs should EVER be mapped there ). Put
#define PCI_MAGIC_IO_RANGE 0xwhatever
into param.h and rebuild both X and the kernel.
If 0xf2000000 is safe just use it and you can use macppc's binaries.

To build X on bebox or prep just do as macppc does ( as in - grep Makefiles under src/x11 for macppc and add bebox & prep )

have fun
Michael

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iQEVAwUBSMdEf8pnzkX8Yg2nAQITvQgAh1WgIuAIWqlX/1g0eAAWlzolVhikg/cM
XpW5QtXqbzfjB3N9CRnvqs8nu+p2FCsPtSghbcOuU7Mtn0g64bnTjXvJ2loIPpTa
rL+xavrHyX88eXFAbkx5RbusWX5SVZkAx/yM5XKOki59hnsBQEfgTvVtIWYi9LU6
FpoPzH6+7RsQ26lGbSBapX6THMRqxDAhuorAgCIFg6ccwwOtTCsuZpNfVm+qrij6
OPZ0sPbqoxK765we7R4EAPDkMGhv0wVek9sfMO4xkXt6KBTcpiFM+0ujs3pps+yd
V9D1fj4K8WreOd3dWjnp2JxOhnq0jTWdBFuNFwhYRuT+/MDzXnFPrw==
=w4Z9
-----END PGP SIGNATURE-----


Home | Main Index | Thread Index | Old Index