Subject: color video lkm problems...
To: None <port-mac68k@NetBSD.ORG>
From: Armen Babikyan <synapse@lethargy.mit.edu>
List: port-mac68k
Date: 11/11/1997 16:09:54
Hi,
I attempted to run color X on a Apple Nubus video card (2MB VRAM, fixed
resolution - 640x480, does 2,4,16,256 and millions of colors - no
thousands). I grabbed the lkm src from Taras' ftp directory on
ctpa03.mit.edu, patched it with a patch Colin Wood sent me, and compiled.
no problem there. i put my compiled module in /lkm, made the lkm device in
/dev, and added this line to /etc/lkm.conf:
--cut here--
video_lkm_combined.o		-	video_lkm_cmd		-
/var/run/video
--cut here--
however, this spit back an error message upon bootup:
--cut here--
invalid "when" field in /etc/lkm.conf - /lkm/video_lkm_combined.o not
loaded!
--cut here--
so, i booted up in single user, and ran this:
--cut here--
# modload -o /tmp/video -e video_lkm_cmd video_lkm_combined.o
Mac Std Gamma2
Possible modes:  0x80 0x81 0x82 0x83 0x84
Kernel Illegal Instruction trap.
trap: type 0x2, code 0x0, v 0x0
kernel: Illegal instruction trap
pid = 1564. pc = 00000028, ps = 2008, sfc = 1, dfc = 1
Registers:
             0        1        2        3        4        5        6
7
dreg: FFFFFFFF FE000000 00000001 0000001C 00000004 00000000 00009FB6
00000002
areg: 06BA7424 06B9CDC0 06B9F004 06B94044 06B8E700 0080CEC4 0080CC38
FFFFC740

Kernel stack (0080CB28):
80CB28: 000F37B6 0080CB74 00000080 00000001 0000001C 00000004 00000000
00009FB6
80CB48: 00000002 06B9F004 06B94044 06B8E700 0080CEC4 06B9F004 0080CC38
00003094
80CB68: 00000002 00000000 00000000 FFFFFFFF FE000000 00000001 0000001C
00000004
80CB88: 00000000 00009FB6 00000002 06BA7424 06B9CDC0 06B9F004 06B94044
06B8E700
80CBA8: 0080CEC4 0080CC38 FFFFC740 00000000 20080000 00280010 00000004
0080CBBC
80CBC8: 00009FB6 00000002 06BA7424 06B9CDC0 06B9F004 0080CEC4 06B8E700
0080CEC4
80CBE8: 0080CC38 0080CBEC 00000000 200E06B9 06B9F062 06BACEEC 0080CC38
00000000
80CC08: 00000001 0000001C 00000004 00000000 00009FB6 00000002 0080CC9A
00181000
80CC28: 06B0F852 0080CEC4 06B8E700 0080CEC4 0080CCCC 06BAB18A 0080CC9A
06B9CDC0
80CC48: 00000085 00FF1853 84000000 24A400FF 179300FF 179306B9 040800FF
29F30000
80CC68: 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000003
80CC88: 00010001 0019010E 80000000 00000000 00A60000 00000000 02000000
00000000
80CCA8: 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000
80CCC8: 00000000 0080CD18 06BAAE2A 06B10A00 06B9CDC0 0080CDF4 06B906B0
F8520000
80CCE8: 002E0000 0A000050 00000000 01E00280 00000000 00000000 00480000
00480000
80CD08: 00000001 00010001 00000000 00000080 0080CD3C 06BAA338 06B10A00
06B9CDC0
panic: Illegal instruction
Stopped at      _Debugger+0x6:  unlk    a6
db> t
_Debugger(2,80cb60,f37d4,f34c2,1) + 6
_panic(f34c2,1,1c,4,0) + 40
_trap(2,0,0) + 1e6
fault(?)
z_mask(80cc9a,6b9cdc0) + c
z_mask(6b10a00,6b9cdc0) + 2bab184
z_mask(6b10a00,6b9cdc0) + 2baae26
z_mask(10e170,1) + 2baa332
z_mask(10e170,1,1) + 2baa072
_lkmioctl(1900,80044b03,80cec4,3,6b90800) + 1ec
_spec_ioctl(80cdf4) + 50
_vn_ioctl(6b8e700,80044b03,80cec4,6b90800) + e4
_sys_ioctl(6b90800,80cf88,80cf80) + 20e
_syscall(36) + 13e
_trap0() + e
db> 
--cut here--
I typed that whole thing in manually off the screen, and i think i got it
all right. if something looks doubtful, feel free to email me - the
machine's still on and at the debugger prompt and i haven't rebooted it
yet.

some hardware specs: Mac IIvx (running -current-11-1-97 + GENERIC#47 +
booter <whatever>b5), 20MB ram, lots of disk space, internal video @1-bit,
640x480, plus the nubus card, which i gave specs of earlier. i also have a
asante nubus ethernet card which works great, dunno if it matters. my
booting console was the internal video on the IIvx, which was B+W, could
this have caused that problem? i'll reboot and switch the booting console
provided you don't want me to type anything else at the debugger prompt.

oh yeah, i have two monitors on my IIvx, if you didn't figure that out
already :-)

anyone know what went wrong?

thanks,

  - a