Index: [thread] [date] [subject] [author]
  From: Erlend Hoel <tbcx@dds.nl>
  To  : GGI development list <ggi-develop@eskimo.com>
  Date: Sun, 21 Feb 1999 23:21:15 +0000 (Local time zone must be set--see zic manual page)

Can't insmod kgicon.o

Hello, folks!

Some of you may remember me from a while back (I lurked on the list for
nearly a year before I got thrown off in October and didn't have the oomph
to resubscribe right away, followed by system outage in November....) but
in any case, here I am! Of course, it remains to be seen whether that is a
good thing.

I am not up to date on the latest and greatest in the GGI world, so I hope
I don't come off as a complete fool when voicing a meek request for help.


I downloaded ggi-devel-990219.tar.gz the other day and tried to use KGI,
but have so far been unsuccessful.

I could bore you with kernelversions (2.2.0 and 2.2.1) and libraries and
stuff, but I'm not sure it's relevant, for what happened was this:

I ran the configure script and let it detect my card. (BTW, small glitch
there - it fills out two fields, Chipset and Accel, but Accel gets set to
"S3 generic" and that doesn't compile. Both "S3 86c964" and "generic
generic" produce kgicon.o, but "S3 generic" is a no-such-animal case, it
seems)

So I filled out the rest of the info, and here is the problem. I'm not
QUITE sure what card I have, yet Windows (yechh!) reports a Vision 964 and
that's also what the VGA Bios proudly claims when I boot. Furthermore, the
Bios also says I have a Bt9485 RAMDAC (and who am I to argue?), and when
looking in my /usr/X11R6/lib/doc/README.S3 the only board I can find that
combines these two (86c964 and Bt9485) is the SPEA Mercury. So I run X
with that option ("Option SPEA_Mercury") and that seems fine.

Here is a bit of X server output:

(--) S3: PCI: 964 rev 0, Linear FB @ 0xeb000000
(--) S3: chipset:   964 rev. 0
(--) S3: chipset driver: mmio_928
(**) S3: Option "spea_mercury"
(--) S3: card type: PCI
(--) S3: videoram:  2048k
WARNING: Did not detect a ramdac of type "Bt485" as specified!
(**) S3: Ramdac type: bt485
(--) S3: Ramdac speed: 135 MHz
(**) S3: Using ICD2061A programmable clock
(--) S3: Maximum allowed dot-clock: 135.000 MHz

< removed "Removing mode" lines. Oh, I have specified Ramdac Bt9485, not
Bt485 as it says above. >

(--) S3: Operating RAMDAC in pixel multiplex mode
(--) S3: Using hardware cursor from Bt485/20C505 RAMDAC
(**) S3: Using 16 bpp.  Color weight: 565
(**) S3: Virtual resolution set to 1024x768
(--) S3: Local bus LAW is 0xEB000000
(--) S3: Using a banksize of 2048k, line width of 1024
(--) S3: Using a single 64x64 area at (960,768) for expanding pixmaps
(--) S3: Using 16 planes of 960x256 at (0,768) aligned 8 as font cache

So, anyways, after compiling kgicon.o I try insmod'ing it, and all I get
is this (I compiled it with DEBUG_LEVEL=255 after it went wrong the first
time):

S3 86c964/86c968 chipset driver rev $Revision: 1.13 $
86c96x.c:930: Scanning pci-bus
86c96x.c:454: testing for S3 Vision 86c964, dev = ffffffff
s3_mmio.inc:49: MISC io -> 00
s3_mmio.inc:67: MISC io <- 01
s3_mmio.inc:110: CRT io 38 <- 48
s3_mmio.inc:110: CRT io 39 <- a0
s3_mmio.inc:93: CRT io 33 -> ff
s3_mmio.inc:110: CRT io 33 <- ad
s3_mmio.inc:215: SEQ io 08 <- 06
s3_mmio.inc:93: CRT io 30 -> ff
s3_mmio.inc:110: CRT io 38 <- 00
s3_mmio.inc:110: CRT io 39 <- 00
/home/tbcx/in/tmp/degas/kgicon/kgi/../include/kgi/sys/linux.h:235: freeing io_region S3 VGA chipset, base = 03c0, baseptr = 0000
/home/tbcx/in/tmp/degas/kgicon/kgi/../include/kgi/sys/linux.h:235: freeing io_region S3 accelerator, base = 02e8, baseptr = 0000
86c96x.c:618: no S3 86c964 detected
86c96x.c:639: testing for S3 Vision 86c968, dev = ffffffff
/home/tbcx/in/tmp/degas/kgicon/kgi/../include/kgi/sys/linux.h:227: claiming io_region S3 accelerator, base = 02e8, baseptr = 02e8
/home/tbcx/in/tmp/degas/kgicon/kgi/../include/kgi/sys/linux.h:227: claiming io_region S3 VGA chipset, base = 03c0, baseptr = 03c0
s3_mmio.inc:49: MISC io -> 67
s3_mmio.inc:67: MISC io <- 67
s3_mmio.inc:110: CRT io 38 <- 48
s3_mmio.inc:110: CRT io 39 <- a0
s3_mmio.inc:93: CRT io 33 -> 00
s3_mmio.inc:110: CRT io 33 <- 00
s3_mmio.inc:215: SEQ io 08 <- 06
s3_mmio.inc:93: CRT io 30 -> d0
86c96x.c:821: S3 Vision 86c968 I/O-verification failed.
/home/tbcx/in/tmp/degas/kgicon/kgi/../include/kgi/sys/linux.h:235: freeing io_region S3 accelerator, base = 02e8, baseptr = 02e8
/home/tbcx/in/tmp/degas/kgicon/kgi/../include/kgi/sys/linux.h:235: freeing io_region S3 VGA chipset, base = 03c0, baseptr = 03c0
error: failed to detect Vision964 or Vision968.
error: kgim_chipset_init failed
error: init_kgi() failed, bailing out....
kgicon.o: init_module: Device or resource busy


I tried giving an option 'chipset="spea_mercury_p64"' (saw that in a
README in degas/kgicon/kgi/chipset/S3) but does not appear to be a valid
option.

Here is what I believe to be the relevant snippet of my kernel config:

CONFIG_VGA_CONSOLE=y
CONFIG_VIDEO_SELECT=y
CONFIG_FB=y
CONFIG_DUMMY_CONSOLE=y
CONFIG_FB_VESA=y
CONFIG_VIDEO_SELECT=y
CONFIG_FBCON_ADVANCED=y
CONFIG_FBCON_MFB=m
CONFIG_FBCON_CFB2=m
CONFIG_FBCON_CFB4=m
CONFIG_FBCON_CFB8=m
CONFIG_FBCON_CFB16=m
CONFIG_FBCON_CFB24=m
CONFIG_FBCON_CFB32=m
CONFIG_FBCON_VGA=m
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=y

(I removed the 'not set' statements)

So, at this point, I am a bit confused. ;-) How may I help you help me by
providing useful information?

Hoping for some help on this one!

Best regards,
 _____                ___        TightByte on IRC, NOVA[CON] in Quake.
|_   _|      _    _  | _ \      _     email: tbcx@dds.nl (alternatively
  | |(_) __ | |_ | |_|(_)/_   _| |____ehoel@sdata.no or tbcx@online.no)
  | || |/__\| ' \|  /|(_)\ \ / |  / -_) WWW: huizen.dds.nl/~tbcx
  |_||_|\_  |_||_|_| |___/\ V /|_|\___) Get real? Sure: Erlend Hoel,
        _/ /              _/ /        Rundtjernveien 5, 0672 OSLO, NORWAY
       |__/              |__/  Tel: +47 22 26 00 75 Cellular: 95 23 80 66


Index: [thread] [date] [subject] [author]