Subject: Cross compiling src/x11 i386 -> macppc: XFree86 fails!
To: None <port-macppc@netbsd.org, tech-x11@netbsd.org>
From: Markus W Kilbinger <kilbi@rad.rwth-aachen.de>
List: port-macppc
Date: 01/21/2004 20:58:51
Hi!

I successfully cross compiled a complete distrib (incl. x11 stuff,
MKX11=yes) on i386 for macppc. But: The XFree86 fails on my powerbook
g4 (500 mhz, titanium)!

Compiling xsrc direct/natively on macppc (make build) yields a working
XFree86.

Major diffs between generated XFree86.log's are:

  --- XFree86-i386-macppc.0.log   2004-01-11 14:01:38.000000000 +0100
  +++ XFree86-macppc-macppc.0.log 2004-01-21 20:07:57.000000000 +0100
  @@ -8,15 +8,15 @@
   XFree86 Version 4.3.0.1
   Release Date: 15 August 2003
   X Protocol Version 11, Revision 0, Release 6.6
  -Build Operating System:NetBSD/powerpc The NetBSD Foundation, Inc.
  -Build Date: 11 January 2004
  +Build Operating System: NetBSD/macppc 1.6ZH [ELF] The NetBSD Foundation, Inc.
  +Build Date: 21 January 2004
  	  Before reporting problems, check http://www.XFree86.Org/
  [...]
   (II) LoadModule: "vgahw"
   (II) Loading /usr/X11R6/lib/modules/libvgahw.a
   (II) Module vgahw: vendor="The XFree86 Project"
  -       compiled for 4.3.0.1, module version = 0.1.0
  +       compiled for 4.3.0, module version = 0.1.0
  	  ABI class: XFree86 Video Driver, version 0.6
   (II) R128(0): PCI bus 0 card 16 func 0
   (**) R128(0): Depth 24, (--) framebuffer bpp 32
  @@ -294,16 +295,225 @@
   (II) LoadModule: "int10"
   (II) Loading /usr/X11R6/lib/modules/libint10.a
   (II) Module int10: vendor="The XFree86 Project"
  -       compiled for 4.3.0.1, module version = 1.0.0
  +       compiled for 4.3.0, module version = 1.0.0
  	  ABI class: XFree86 Video Driver, version 0.6
   (II) R128(0): initializing int10
  -
  -Fatal server error:
  -xf86MapVidMem: could not mmap screen [s=40000,a=c0000] (Invalid argument)
  -
  -
  -When reporting a problem related to a server crash, please send
  -the full server output, not just the last messages.
  -This can be found in the log file "/var/log/XFree86.0.log".
  -Please report problems to xfree86@xfree86.org.
  -
  +(II) R128(0): No legacy BIOS found -- trying PCI
  +(EE) R128(0): Cannot read V_BIOS (5)
  +(--) R128(0): Chipset: "ATI Rage 128 Mobility M3 LF (AGP)" (ChipID = 0x4c46)
  +(--) R128(0): Linear framebuffer at 0xb4000000
  +(--) R128(0): MMIO registers at 0xb0000000
  +(--) R128(0): BIOS at 0xb0020000
  +(--) R128(0): VideoRAM: 8192 kByte (128-bit SDR SGRAM 1:1)
  +(**) R128(0): Using flat panel for display
  +(**) R128(0): Flat panel width: 1152
  +(**) R128(0): Flat panel height: 768
  +(WW) R128(0): Video BIOS not detected in PCI space!
  +(WW) R128(0): Attempting to read Video BIOS from legacy ISA space!
  +(WW) R128(0): Video BIOS not found!
  +(II) R128(0): PLL parameters: rf=2950 rd=59 min=12500 max=25000; xclk=10500

Is this due to 'powerpc' instead of 'macppc' interpretation during
cross compilation!?

Markus.