Subject: Running X11 on eMac
To: None <port-macppc@netbsd.org>
From: Daniel Eggert <danieleggert@mac.com>
List: port-macppc
Date: 02/15/2004 00:36:26
--Apple-Mail-1--289660745
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed

I'm trying to run X on my eMac, but have no luck. When I run startx I 
get

Fatal server error:
xf86MapVidMem: could not mmap screen [s=80000,a=90000000] (Invalid 
argument)

What does that mean? What is wrong?

I have recompiled the kernel with INSECURE and the kernel securelevel 
is at -1.

I've attached /etc/X11/XF86Config and /var/log/XFree86.0.log.

Thanks in advance for any help.

/Daniel





--Apple-Mail-1--289660745
Content-Transfer-Encoding: 7bit
Content-Type: application/octet-stream;
	x-unix-mode=0644;
	name="XFree86.0.log"
Content-Disposition: attachment;
	filename=XFree86.0.log


XFree86 Version 4.2.1 / X Window System
(protocol Version 11, revision 0, vendor release 6600)
Release Date: 3 September 2002
	If the server is older than 6-12 months, or if your card is
	newer than the above date, look for a newer version before
	reporting problems.  (See http://www.XFree86.Org/)
Build Operating System: NetBSD/macppc 1.6.1_RC2 [ELF] The NetBSD Foundation, Inc.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
         (++) from command line, (!!) notice, (II) informational,
         (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/XFree86.0.log", Time: Mon Feb  9 22:24:21 2004
(==) Using config file: "/etc/X11/XF86Config"
(==) ServerLayout "Main Layout"
(**) |-->Screen "Screen1" (0)
(**) |   |-->Monitor "eMac internal"
(**) |   |-->Device "ATI Radeon 7500 QW (AGP)"
(**) |-->Input Device "Mouse1"
(**) |-->Input Device "Keyboard1"
(**) Option "Protocol" "wskbd"
(**) Option "Device" "/dev/wskbd1"
(**) Keyboard: Protocol: wskbd
(--) Keyboard type: USB
(**) Option "XkbRules" "xfree86"
(**) XKB: rules: "xfree86"
(**) Option "XkbModel" "macintosh"
(**) XKB: model: "macintosh"
(**) Option "XkbLayout" "us"
(**) XKB: layout: "us"
(**) Option "XkbVariant" "us"
(**) XKB: variant: "us"
(==) Keyboard: CustomKeycode disabled
(**) FontPath set to "/usr/X11R6/lib/X11/fonts/local/,/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/75dpi/:unscaled,/usr/X11R6/lib/X11/fonts/100dpi/:unscaled,/usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/CID/,/usr/X11R6/lib/X11/fonts/Speedo/,/usr/X11R6/lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/"
(==) RgbPath set to "/usr/X11R6/lib/X11/rgb"
(==) ModulePath set to "/usr/X11R6/lib/modules"
(**) Option "BlankTime" "10"
(**) Option "StandbyTime" "20"
(**) Option "SuspendTime" "30"
(**) Option "OffTime" "60"
(--) Using wscons driver
(II) Module ABI versions:
	XFree86 ANSI C Emulation: 0.1
	XFree86 Video Driver: 0.5
	XFree86 XInput driver : 0.3
	XFree86 Server Extension : 0.1
	XFree86 Font Renderer : 0.3
(II) Loader running on netbsd
(II) LoadModule: "bitmap"
(II) Loading /usr/X11R6/lib/modules/fonts/libbitmap.a
(II) Module bitmap: vendor="The XFree86 Project"
	compiled for 4.2.1, module version = 1.0.0
	Module class: XFree86 Font Renderer
	ABI class: XFree86 Font Renderer, version 0.3
(II) Loading font Bitmap
(II) LoadModule: "pcidata"
(II) Loading /usr/X11R6/lib/modules/libpcidata.a
(II) Module pcidata: vendor="The XFree86 Project"
	compiled for 4.2.1, module version = 0.1.0
	ABI class: XFree86 Video Driver, version 0.5
(II) PCI: PCI scan (all values are in hex)
(II) PCI: 00:0b:0: chip 106b,002d card 0000,0000 rev 00 class 06,00,00 hdr 00
(II) PCI: 00:10:0: chip 1002,5157 card 1002,5157 rev 00 class 03,00,00 hdr 00
(II) PCI: End of PCI scan
(II) LoadModule: "scanpci"
(II) Loading /usr/X11R6/lib/modules/libscanpci.a
(II) Module scanpci: vendor="The XFree86 Project"
	compiled for 4.2.1, module version = 0.1.0
	ABI class: XFree86 Video Driver, version 0.5
(II) UnloadModule: "scanpci"
(II) Unloading /usr/X11R6/lib/modules/libscanpci.a
(II) Host-to-PCI bridge:
(II) Bus 0: bridge is at (0:11:0), (-1,0,0), BCTRL: 0x08 (VGA_EN is set)
(II) Bus 0 I/O range:
	[0] -1	0x00000000 - 0x0000ffff (0x10000) IX[B]
(II) Bus 0 non-prefetchable memory range:
	[0] -1	0x00000000 - 0xffffffff (0x0) MX[B]
(II) Bus 0 prefetchable memory range:
	[0] -1	0x00000000 - 0xffffffff (0x0) MX[B]
(--) PCI:*(0:16:0) ATI Radeon 7500 QW rev 0, Mem @ 0x98000000/27, 0x90000000/16, I/O @ 0x0400/8, BIOS @ 0x90020000/17
(II) Addressable bus resource ranges are
	[0] -1	0x00000000 - 0xffffffff (0x0) MX[B]
	[1] -1	0x00000000 - 0x0000ffff (0x10000) IX[B]
(II) OS-reported resource ranges:
	[0] -1	0xffffffff - 0xffffffff (0x1) MX[B]
	[1] -1	0x00000000 - 0x00000000 (0x1) MX[B]
	[2] -1	0x0000ffff - 0x0000ffff (0x1) IX[B]
	[3] -1	0x00000000 - 0x00000000 (0x1) IX[B]
(II) Active PCI resource ranges:
	[0] -1	0x90020000 - 0x9003ffff (0x20000) MX[B](B)
	[1] -1	0x90000000 - 0x9000ffff (0x10000) MX[B](B)
	[2] -1	0x98000000 - 0x9fffffff (0x8000000) MX[B](B)
	[3] -1	0x00000400 - 0x000004ff (0x100) IX[B](B)
(II) Active PCI resource ranges after removing overlaps:
	[0] -1	0x90020000 - 0x9003ffff (0x20000) MX[B](B)
	[1] -1	0x90000000 - 0x9000ffff (0x10000) MX[B](B)
	[2] -1	0x98000000 - 0x9fffffff (0x8000000) MX[B](B)
	[3] -1	0x00000400 - 0x000004ff (0x100) IX[B](B)
(II) OS-reported resource ranges after removing overlaps with PCI:
	[0] -1	0xffffffff - 0xffffffff (0x1) MX[B]
	[1] -1	0x00000000 - 0x00000000 (0x1) MX[B]
	[2] -1	0x0000ffff - 0x0000ffff (0x1) IX[B]
	[3] -1	0x00000000 - 0x00000000 (0x1) IX[B]
(II) All system resource ranges:
	[0] -1	0xffffffff - 0xffffffff (0x1) MX[B]
	[1] -1	0x00000000 - 0x00000000 (0x1) MX[B]
	[2] -1	0x90020000 - 0x9003ffff (0x20000) MX[B](B)
	[3] -1	0x90000000 - 0x9000ffff (0x10000) MX[B](B)
	[4] -1	0x98000000 - 0x9fffffff (0x8000000) MX[B](B)
	[5] -1	0x0000ffff - 0x0000ffff (0x1) IX[B]
	[6] -1	0x00000000 - 0x00000000 (0x1) IX[B]
	[7] -1	0x00000400 - 0x000004ff (0x100) IX[B](B)
(II) LoadModule: "radeon"
(II) Loading /usr/X11R6/lib/modules/drivers/radeon_drv.o
(II) Module radeon: vendor="The XFree86 Project"
	compiled for 4.2.1, module version = 4.0.1
	Module class: XFree86 Video Driver
	ABI class: XFree86 Video Driver, version 0.5
(II) LoadModule: "ati"
(II) Loading /usr/X11R6/lib/modules/drivers/ati_drv.o
(II) Module ati: vendor="The XFree86 Project"
	compiled for 4.2.1, module version = 6.4.8
	Module class: XFree86 Video Driver
	ABI class: XFree86 Video Driver, version 0.5
(II) LoadModule: "mouse"
(II) Loading /usr/X11R6/lib/modules/input/mouse_drv.o
(II) Module mouse: vendor="The XFree86 Project"
	compiled for 4.2.1, module version = 1.0.0
	Module class: XFree86 XInput Driver
	ABI class: XFree86 XInput driver, version 0.3
(II) ATI: ATI driver (version 6.4.8) for chipsets: ati
(II) R128: Driver for ATI Rage 128 chipsets: ATI Rage 128 RE (PCI),
	ATI Rage 128 RF (AGP), ATI Rage 128 RG (AGP), ATI Rage 128 RK (PCI),
	ATI Rage 128 RL (AGP), ATI Rage 128 SM (AGP),
	ATI Rage 128 Pro PD (PCI), ATI Rage 128 Pro PF (AGP),
	ATI Rage 128 Pro PP (PCI), ATI Rage 128 Pro PR (PCI),
	ATI Rage 128 Pro ULTRA TF (AGP), ATI Rage 128 Pro ULTRA TL (AGP),
	ATI Rage 128 Pro ULTRA TR (AGP), ATI Rage 128 Mobility LE (PCI),
	ATI Rage 128 Mobility LF (AGP), ATI Rage 128 Mobility MF (AGP),
	ATI Rage 128 Mobility ML (AGP)
(II) RADEON: Driver for ATI Radeon chipsets: ATI Radeon QD (AGP),
	ATI Radeon QE (AGP), ATI Radeon QF (AGP), ATI Radeon QG (AGP),
	ATI Radeon VE QY (AGP), ATI Radeon VE QZ (AGP),
	ATI Radeon Mobility LW (AGP), ATI Radeon Mobility LY (AGP),
	ATI Radeon Mobility LZ (AGP), ATI Radeon 8500 QL (AGP),
	ATI Radeon 8500 QN (AGP), ATI Radeon 8500 QO (AGP),
	ATI Radeon 8500 Ql (AGP), ATI Radeon 8500 BB (AGP),
	ATI Radeon 7500 QW (AGP)
(II) Primary Device is: PCI 00:10:0
(--) Assigning device section with no busID to primary device
(--) Chipset ATI Radeon 7500 QW (AGP) found
(II) resource ranges after xf86ClaimFixedResources() call:
	[0] -1	0xffffffff - 0xffffffff (0x1) MX[B]
	[1] -1	0x00000000 - 0x00000000 (0x1) MX[B]
	[2] -1	0x90020000 - 0x9003ffff (0x20000) MX[B](B)
	[3] -1	0x90000000 - 0x9000ffff (0x10000) MX[B](B)
	[4] -1	0x98000000 - 0x9fffffff (0x8000000) MX[B](B)
	[5] -1	0x0000ffff - 0x0000ffff (0x1) IX[B]
	[6] -1	0x00000000 - 0x00000000 (0x1) IX[B]
	[7] -1	0x00000400 - 0x000004ff (0x100) IX[B](B)
(II) Loading sub module "radeon"
(II) LoadModule: "radeon"
(II) Reloading /usr/X11R6/lib/modules/drivers/radeon_drv.o
(II) resource ranges after probing:
	[0] -1	0xffffffff - 0xffffffff (0x1) MX[B]
	[1] -1	0x00000000 - 0x00000000 (0x1) MX[B]
	[2] -1	0x90020000 - 0x9003ffff (0x20000) MX[B](B)
	[3] -1	0x90000000 - 0x9000ffff (0x10000) MX[B](B)
	[4] -1	0x98000000 - 0x9fffffff (0x8000000) MX[B](B)
	[5] 0	0x000a0000 - 0x000affff (0x10000) MS[B]
	[6] 0	0x000b0000 - 0x000b7fff (0x8000) MS[B]
	[7] 0	0x000b8000 - 0x000bffff (0x8000) MS[B]
	[8] -1	0x0000ffff - 0x0000ffff (0x1) IX[B]
	[9] -1	0x00000000 - 0x00000000 (0x1) IX[B]
	[10] -1	0x00000400 - 0x000004ff (0x100) IX[B](B)
	[11] 0	0x000003b0 - 0x000003bb (0xc) IS[B]
	[12] 0	0x000003c0 - 0x000003df (0x20) IS[B]
(II) Setting vga for screen 0.
(II) Loading sub module "vgahw"
(II) LoadModule: "vgahw"
(II) Loading /usr/X11R6/lib/modules/libvgahw.a
(II) Module vgahw: vendor="The XFree86 Project"
	compiled for 4.2.1, module version = 0.1.0
	ABI class: XFree86 Video Driver, version 0.5
(II) RADEON(0): vgaHWGetIOBase: hwp->IOBase is 0x03b0, hwp->PIOOffset is 0x0000
(II) RADEON(0): PCI bus 0 card 16 func 0
(**) RADEON(0): Depth 16, (--) framebuffer bpp 16
(II) RADEON(0): Pixel depth = 16 bits stored in 2 bytes (16 bpp pixmaps)
(==) RADEON(0): Default visual is TrueColor
(==) RADEON(0): RGB weight 565
(II) RADEON(0): Using 6 bits per RGB (8 bit DAC)
(--) RADEON(0): Chipset: "ATI Radeon 7500 QW (AGP)" (ChipID = 0x5157)
(--) RADEON(0): Linear framebuffer at 0x98000000
(--) RADEON(0): MMIO registers at 0x90000000
(--) RADEON(0): BIOS at 0x90020000

Fatal server error:
xf86MapVidMem: could not mmap screen [s=80000,a=90000000] (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.


--Apple-Mail-1--289660745
Content-Transfer-Encoding: 7bit
Content-Type: application/octet-stream;
	x-unix-mode=0644;
	name="XF86Config"
Content-Disposition: attachment;
	filename=XF86Config

#
# /etx/X11/XF86Config
#

# **********************************************************************
# Files section.  This allows default font and rgb paths to be set
# **********************************************************************

Section "Files"
    FontPath	"/usr/X11R6/lib/X11/fonts/local/"
    FontPath	"/usr/X11R6/lib/X11/fonts/misc/"
    FontPath	"/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
    FontPath	"/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
    FontPath	"/usr/X11R6/lib/X11/fonts/Type1/"
    FontPath	"/usr/X11R6/lib/X11/fonts/CID/"
    FontPath	"/usr/X11R6/lib/X11/fonts/Speedo/"
    FontPath	"/usr/X11R6/lib/X11/fonts/75dpi/"
    FontPath	"/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection

# **********************************************************************
# Server flags section.  This contains various server-wide Options.
# **********************************************************************

Section "ServerFlags"
    Option	"blank time"	"10"	# 10 minutes
    Option	"standby time"	"20"
    Option	"suspend time"	"30"
    Option	"off time"	"60"

    Option	"PCI type"	"UniNorth"
#   Option	"PCI type"	"Bandit"
#    Option	"PCI type"	"Grackle"
EndSection

# **********************************************************************
# Input devices
# **********************************************************************

# **********************************************************************
# Core keyboard's InputDevice section
# **********************************************************************

Section "InputDevice"
    Identifier	"Keyboard1"
    Driver	"keyboard"
    Option	"Protocol"	"wskbd"
    Option	"Device"	"/dev/wskbd1"

#    Option	"AutoRepeat"	"500 5"
    Option	"XkbRules"	"xfree86"
    Option	"XkbModel"	"macintosh"
    Option	"XkbLayout"	"us"
    Option	"XkbVariant"	"us"
EndSection


# **********************************************************************
# Core Pointer's InputDevice section
# **********************************************************************

Section "InputDevice"
    Identifier	"Mouse1"
    Driver	"mouse"
    Option	"Protocol"	"wsmouse"
    Option	"Device"	"/dev/wsmouse1"
    Option      "Buttons"       "6"
    Option      "ZAxisMapping"  "4 5"
EndSection

# **********************************************************************
# Monitor section
# **********************************************************************

# Any number of monitor sections may be present

Section "Monitor"
    Identifier	"eMac internal"
    HorizSync	31-80
    VertRefresh	56-76
    Option	"dpms"
    Gamma 0.7
EndSection

# **********************************************************************
# Graphics device section
# **********************************************************************

Section "Device"
#    Chipset	"ati"
	Identifier	"ATI Radeon 7500 QW (AGP)
#    Identifier	"ATI Rage 128"
#    Driver	"r128"
	Driver	"radeon"
#	BusID	"PCI:0:16:0"
#    Option	"noaccel"
EndSection

# **********************************************************************
# Screen sections.
# **********************************************************************

Section "Screen"
    Identifier		"Screen1"
    Device		"ATI Radeon 7500 QW (AGP)"
    Monitor		"eMac internal"

# XXX 24bpp is broken (wrong colors)

#   DefaultDepth	8
   DefaultDepth	16
#   DefaultDepth	24
#   DefaultDepth	32

    SubSection "Display"
	Depth		8
	Modes		"1280x960" "1024x768"
#	Modes		"1600x1200" "1280x1024" "1024x768"
    EndSubSection
    SubSection "Display"
	Depth		16
	Modes		"1280x960" "1024x768"
#	Modes		"1600x1200" "1280x1024" "1024x768"
    EndSubSection
    SubSection "Display"
	Depth		24
	Modes		"1280x960" "1024x768"
#	Modes		"1600x1200" "1280x1024" "1024x768"
    EndSubSection
    SubSection "Display"
	Depth		32
	Modes		"1280x960" "1024x768"
#	Modes		"1600x1200" "1280x1024" "1024x768"
    EndSubSection
EndSection


# **********************************************************************
# ServerLayout sections.
# **********************************************************************

Section "ServerLayout"
    Identifier	"Main Layout"
    Screen	"Screen1"
    InputDevice	"Mouse1"	"CorePointer"
    InputDevice	"Keyboard1"	"CoreKeyboard"
EndSection


--Apple-Mail-1--289660745--