Subject: Re: Help needed with NetBSD and XFree86 4.1/4.2/4.ANY
To: None <tech-x11@netbsd.org>
From: Randall Stewart <randall@stewart.chicago.il.us>
List: tech-x11
Date: 02/23/2002 07:43:07
opps.. I sent this to the wrong list :-0

Here we go..

R

Randall Stewart wrote:
> 
> Hi all:
> 
> I would appreciate any help or light someone can
> shed on the error attached.
> 
> There was no /dev/vga on my NetBSD x86 box (its a TP600... old
> 266 MH PII).. So I made one cloned like a freebsd box I have
> running i.e. /dev/vga--->/dev/ttyv0. But even without this
> the xstart seems to find the vga's device...
> 
> I have tried the released X from NetBSD 1.5.2 (what I am
> running on). I have tried the newer 4.1.x that NetBSD
> has on there web site. And I have loaded
> and tried the 4.2.0 binaries from the XFree web site.. they all give
> this error... I can't run xf86cfg or any X server without
> getting this error.
> 
> I did have this machine on FreeBSD for a bit and it loaded
> X fine.. so I know it is not the machine...
> 
> I have made sure that INSECURE mode is set in the configuration and
> also I have rebuilt a kernel without IPSEC (not that this should
> effect it.. but hey when you get desperate).
> 
> I have dug down through the mmap code and traced the error
> down to where vga_mmap() is called (in i386).. this module
> seems to have nothing but an error returned unless the architecture
> is "arc".
> 
> Now this is probably just a simple configuration problem in
> 
> my kernel... I have tried several example kernels as well...
> 
> If X has ever ran on a netbsd/i386 would someone be so
> kind as to send me a config file so I know what I have wrong..
> Or is there another better explanation for this error???
> 
> Any help would be appreciated..
> 
> Thanks in advance...
> 
> R
> 
> XFree86 Version 4.2.0 / X Window System
> (protocol Version 11, revision 0, vendor release 6600)
> Release Date: 18 January 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/i386 1.5.2 [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: Thu Feb 21 18:53:56 2002
> (==) Using config file: "/etc/X11/XF86Config"
> (==) ServerLayout "Simple Layout"
> (**) |-->Screen "Screen 1" (0)
> (**) |   |-->Monitor "ibm"
> (**) |   |-->Device "ibm"
> (**) |-->Input Device "Mouse1"
> (**) |-->Input Device "Keyboard1"
> (**) Option "AutoRepeat" "500 30"
> (**) Option "XkbRules" "xfree86"
> (**) XKB: rules: "xfree86"
> (**) Option "XkbModel" "pc104"
> (**) XKB: model: "pc104"
> (**) Option "XkbLayout" "us"
> (**) XKB: layout: "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/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"
> (WW) checkDevMem: failed to open /dev/mem (Operation not permitted)
>         linear framebuffer access unavailable
> (--) Using pcvt driver (version 3.32)
> (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.0, 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.0, module version = 0.1.0
>         ABI class: XFree86 Video Driver, version 0.5
> (II) PCI: Probing config type using method 1
> (II) PCI: Config type is 1
> (II) PCI: stages = 0x03, oldVal1 = 0x00000000, mode1Res1 = 0x80000000
> (II) PCI: PCI scan (all values are in hex)
> (II) PCI: 00:00:0: chip 8086,7192 card 0000,0000 rev 02 class 06,00,00
> hdr 00
> (II) PCI: 00:02:0: chip 104c,ac16 card 0000,0000 rev 02 class 06,07,00
> hdr 82
> (II) PCI: 00:02:1: chip 104c,ac16 card 0000,0000 rev 02 class 06,07,00
> hdr 82
> (II) PCI: 00:03:0: chip 10c8,0004 card 1014,00ba rev 01 class 03,00,00
> hdr 00
> (II) PCI: 00:07:0: chip 8086,7110 card 0000,0000 rev 01 class 06,80,00
> hdr 80
> (II) PCI: 00:07:1: chip 8086,7111 card 0000,0000 rev 01 class 01,01,80
> hdr 00
> (II) PCI: 00:07:2: chip 8086,7112 card 0000,0000 rev 01 class 0c,03,00
> hdr 00
> (II) PCI: 00:07:3: chip 8086,7113 card 0000,0000 rev 01 class 06,80,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.0, 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:0: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:3:0) Neomagic NM2160 rev 1, Mem @ 0xd0000000/24,
> 0x20000000/21, 0x20200000/20
> (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  0xffe00000 - 0xffffffff (0x200000) MX[B](B)
>         [1] -1  0x00100000 - 0x3fffffff (0x3ff00000) MX[B]E(B)
>         [2] -1  0x000f0000 - 0x000fffff (0x10000) MX[B]
>         [3] -1  0x000c0000 - 0x000effff (0x30000) MX[B]
>         [4] -1  0x00000000 - 0x0009ffff (0xa0000) MX[B]
>         [5] -1  0x0000ffff - 0x0000ffff (0x1) IX[B]
>         [6] -1  0x00000000 - 0x000000ff (0x100) IX[B]
> (II) Active PCI resource ranges:
>         [0] -1  0x20200000 - 0x202fffff (0x100000) MX[B](B)
>         [1] -1  0x20000000 - 0x201fffff (0x200000) MX[B](B)
>         [2] -1  0xd0000000 - 0xd0ffffff (0x1000000) MX[B](B)
>         [3] -1  0x00008400 - 0x000084ff (0x100) IX[B]E
>         [4] -1  0x0000fcf0 - 0x0000fcff (0x10) IX[B]E
> (II) Active PCI resource ranges after removing overlaps:
>         [0] -1  0x20200000 - 0x202fffff (0x100000) MX[B](B)
>         [1] -1  0x20000000 - 0x201fffff (0x200000) MX[B](B)
>         [2] -1  0xd0000000 - 0xd0ffffff (0x1000000) MX[B](B)
>         [3] -1  0x00008400 - 0x000084ff (0x100) IX[B]E
>         [4] -1  0x0000fcf0 - 0x0000fcff (0x10) IX[B]E
> (II) OS-reported resource ranges after removing overlaps with PCI:
>         [0] -1  0xffe00000 - 0xffffffff (0x200000) MX[B](B)
>         [1] -1  0x00100000 - 0x1fffffff (0x1ff00000) MX[B]E(B)
>         [2] -1  0x000f0000 - 0x000fffff (0x10000) MX[B]
>         [3] -1  0x000c0000 - 0x000effff (0x30000) MX[B]
>         [4] -1  0x00000000 - 0x0009ffff (0xa0000) MX[B]
>         [5] -1  0x0000ffff - 0x0000ffff (0x1) IX[B]
>         [6] -1  0x00000000 - 0x000000ff (0x100) IX[B]
> (II) All system resource ranges:
>         [0] -1  0xffe00000 - 0xffffffff (0x200000) MX[B](B)
>         [1] -1  0x00100000 - 0x1fffffff (0x1ff00000) MX[B]E(B)
>         [2] -1  0x000f0000 - 0x000fffff (0x10000) MX[B]
>         [3] -1  0x000c0000 - 0x000effff (0x30000) MX[B]
>         [4] -1  0x00000000 - 0x0009ffff (0xa0000) MX[B]
>         [5] -1  0x20200000 - 0x202fffff (0x100000) MX[B](B)
>         [6] -1  0x20000000 - 0x201fffff (0x200000) MX[B](B)
>         [7] -1  0xd0000000 - 0xd0ffffff (0x1000000) MX[B](B)
>         [8] -1  0x0000ffff - 0x0000ffff (0x1) IX[B]
>         [9] -1  0x00000000 - 0x000000ff (0x100) IX[B]
>         [10] -1 0x00008400 - 0x000084ff (0x100) IX[B]E
>         [11] -1 0x0000fcf0 - 0x0000fcff (0x10) IX[B]E
> (II) LoadModule: "dbe"
> (II) Loading /usr/X11R6/lib/modules/extensions/libdbe.a
> (II) Module dbe: vendor="The XFree86 Project"
>         compiled for 4.2.0, module version = 1.0.0
>         Module class: XFree86 Server Extension
>         ABI class: XFree86 Server Extension, version 0.1
> (II) Loading extension DOUBLE-BUFFER
> (II) LoadModule: "extmod"
> (II) Loading /usr/X11R6/lib/modules/extensions/libextmod.a
> (II) Module extmod: vendor="The XFree86 Project"
>         compiled for 4.2.0, module version = 1.0.0
>         Module class: XFree86 Server Extension
>         ABI class: XFree86 Server Extension, version 0.1
> (II) Loading extension SHAPE
> (II) Loading extension MIT-SUNDRY-NONSTANDARD
> (II) Loading extension BIG-REQUESTS
> (II) Loading extension SYNC
> (II) Loading extension MIT-SCREEN-SAVER
> (II) Loading extension XC-MISC
> (II) Loading extension XFree86-VidModeExtension
> (II) Loading extension XFree86-Misc
> (II) Loading extension DPMS
> (II) Loading extension FontCache
> (II) Loading extension TOG-CUP
> (II) Loading extension Extended-Visual-Information
> (II) Loading extension XVideo
> (II) Loading extension XVideo-MotionCompensation
> (II) LoadModule: "type1"
> (II) Loading /usr/X11R6/lib/modules/fonts/libtype1.a
> (II) Module type1: vendor="The XFree86 Project"
>         compiled for 4.2.0, module version = 1.0.1
>         Module class: XFree86 Font Renderer
>         ABI class: XFree86 Font Renderer, version 0.3
> (II) Loading font Type1
> (II) Loading font CID
> (II) LoadModule: "freetype"
> (II) Loading /usr/X11R6/lib/modules/fonts/libfreetype.a
> (II) Module freetype: vendor="The XFree86 Project"
>         compiled for 4.2.0, module version = 1.1.10
>         Module class: XFree86 Font Renderer
>         ABI class: XFree86 Font Renderer, version 0.3
> (II) Loading font FreeType
> (II) LoadModule: "neomagic"
> (II) Loading /usr/X11R6/lib/modules/drivers/neomagic_drv.o
> (II) Module neomagic: vendor="The XFree86 Project"
>         compiled for 4.2.0, module version = 1.0.0
>         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.0, module version = 1.0.0
>         Module class: XFree86 XInput Driver
>         ABI class: XFree86 XInput driver, version 0.3
> (II) NEOMAGIC: Driver for Neomagic chipsets: neo2070, neo2090, neo2093,
>         neo2097, neo2160, neo2200, neo2230, neo2360, neo2380
> (II) Primary Device is: PCI 00:03:0
> (--) Assigning device section with no busID to primary device
> (--) Chipset neo2160 found
> (II) resource ranges after xf86ClaimFixedResources() call:
>         [0] -1  0xffe00000 - 0xffffffff (0x200000) MX[B](B)
>         [1] -1  0x00100000 - 0x1fffffff (0x1ff00000) MX[B]E(B)
>         [2] -1  0x000f0000 - 0x000fffff (0x10000) MX[B]
>         [3] -1  0x000c0000 - 0x000effff (0x30000) MX[B]
>         [4] -1  0x00000000 - 0x0009ffff (0xa0000) MX[B]
>         [5] -1  0x20200000 - 0x202fffff (0x100000) MX[B](B)
>         [6] -1  0x20000000 - 0x201fffff (0x200000) MX[B](B)
>         [7] -1  0xd0000000 - 0xd0ffffff (0x1000000) MX[B](B)
>         [8] -1  0x0000ffff - 0x0000ffff (0x1) IX[B]
>         [9] -1  0x00000000 - 0x000000ff (0x100) IX[B]
>         [10] -1 0x00008400 - 0x000084ff (0x100) IX[B]E
>         [11] -1 0x0000fcf0 - 0x0000fcff (0x10) IX[B]E
> (II) resource ranges after probing:
>         [0] -1  0xffe00000 - 0xffffffff (0x200000) MX[B](B)
>         [1] -1  0x00100000 - 0x1fffffff (0x1ff00000) MX[B]E(B)
>         [2] -1  0x000f0000 - 0x000fffff (0x10000) MX[B]
>         [3] -1  0x000c0000 - 0x000effff (0x30000) MX[B]
>         [4] -1  0x00000000 - 0x0009ffff (0xa0000) MX[B]
>         [5] -1  0x20200000 - 0x202fffff (0x100000) MX[B](B)
>         [6] -1  0x20000000 - 0x201fffff (0x200000) MX[B](B)
>         [7] -1  0xd0000000 - 0xd0ffffff (0x1000000) MX[B](B)
>         [8] 0   0x000a0000 - 0x000affff (0x10000) MS[B]
>         [9] 0   0x000b0000 - 0x000b7fff (0x8000) MS[B]
>         [10] 0  0x000b8000 - 0x000bffff (0x8000) MS[B]
>         [11] -1 0x0000ffff - 0x0000ffff (0x1) IX[B]
>         [12] -1 0x00000000 - 0x000000ff (0x100) IX[B]
>         [13] -1 0x00008400 - 0x000084ff (0x100) IX[B]E
>         [14] -1 0x0000fcf0 - 0x0000fcff (0x10) IX[B]E
>         [15] 0  0x000003b0 - 0x000003bb (0xc) IS[B]
>         [16] 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.0, module version = 0.1.0
>         ABI class: XFree86 Video Driver, version 0.5
> (II) NEOMAGIC(0): Chipset is a MagicGraph 128XD (NM2160)
> (II) NEOMAGIC(0): vgaHWGetIOBase: hwp->IOBase is 0x03d0, hwp->PIOOffset
> is 0x0000
> (--) NEOMAGIC(0): Panel is a 1024x768 color TFT display
> (II) Loading sub module "ddc"
> (II) LoadModule: "ddc"
> (II) Loading /usr/X11R6/lib/modules/libddc.a
> (II) Module ddc: vendor="The XFree86 Project"
>         compiled for 4.2.0, module version = 1.0.0
>         ABI class: XFree86 Video Driver, version 0.5
> (II) Loading sub module "vbe"
> (II) LoadModule: "vbe"
> (II) Loading /usr/X11R6/lib/modules/libvbe.a
> (II) Module vbe: vendor="The XFree86 Project"
>         compiled for 4.2.0, module version = 1.0.0
>         ABI class: XFree86 Video Driver, version 0.5
> (II) Loading sub module "int10"
> (II) LoadModule: "int10"
> (II) Loading /usr/X11R6/lib/modules/libint10.a
> (II) Module int10: vendor="The XFree86 Project"
>         compiled for 4.2.0, module version = 1.0.0
>         ABI class: XFree86 Video Driver, version 0.5
> (II) NEOMAGIC(0): initializing int10
> 
> Fatal server error:
> xf86MapVidMem: Could not mmap /dev/vga (Invalid argument)
> 
> --
> Randall R. Stewart
> randall@stewart.chicago.il.us 815-342-5222 (cell phone)

-- 
Randall R. Stewart
randall@stewart.chicago.il.us 815-342-5222 (cell phone)