Subject: Re: MACH_Q2 class IO mapping, was: NetBSD/mac68k floppy driver
To: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
From: SamMaEl <rimsky@teleport.com>
List: port-mac68k
Date: 06/11/1998 02:39:41
> >I do have options LKM in my 1.3 kernel. The patch did apply cleanly. I do
> >not have INSECURE in my config, but that shouldn't matter if I'm in single
> >user mode (as I was). Here's the output I get from modload -dv
> >/usr/lkm/IWM.o while in single-user mode:
> >
> >ld -A /netbsd -e _IWM_lkentry -o /usr/lkm/IWM -T 0 /usr/lkm/IWM.o
> >ld -A /netbsd -e _IWM_lkentry -o /usr/lkm/IWM -T 61d000 /usr/lkm/IWM.o
> >iwm: IWMBase mapped to 0x1e000 in VM
> >modload: error initializing module: Input/output error
> >>
> >> >I'm using a Q650 running a 1.3 custom
> >> >kernel with the machdep.c patch applied.

	I get a similar error on my Q630, though IWMBase for me shows up
for me as: 
iwm: IWMBase mapped to 0x888000 in VM.

> Ahhhh...  (big light bulb going on)
> 
> I have slightly different init code for the LKM than for the in-kernel
> driver; it does not issue diagnostic messages unless DEBUG is defined.
> Withe the GENERICIWM kernel, you'd have gotten a diagnostic along the lines
> of "error -77".
> 
> Yours is a MACH_Q2 style Quadra (to use the diction of machdep.c) like the
> Performa 630 that I tested. Try booting (or attaching the LKM manually)
> with a 800k disk inserted, and tell me if it makes any difference. On the
> P630, I saw bogus messages about "two drives attached, with an unsupported
> HD disk in each of them".

	I've tried this manually... I formatted a double sided disk to
800k in MacOS and tried modload'ing the LKM, but I just got the 	

iwm: IWMBase mapped to <address> in VM
modload: error initializing module: Input/output error

	error.	 Just now I tried formatting a 1.44 to 800K (tape over the
tab), and got the following message:

brahms# modload -dv IWM.o
ld -A /netbsd -e _IWM_lkmentry -o IWM -T 0 IWM.o
ld -A /netbsd -e _IWM_lkmentry -o IWM -T 63b000 IWM.o
modload: error initializing module: Input/output error

	Any ideas?

> 
> I had a look at the relevant sections of the P630's ".Sony" driver code,
> and it is byte for byte identical with the Quadra 700 ROM that I worked
> from. So, I'd suspect  an IO mapping problem.
> 
> Could anybody with VM knowledge please speak up here?

	No VM knowledge, but if ROM dumps from my Q630 would help, I can
try to get some together. Gimme a private e-mail if this is necessary (may
be the same as the P630...)

	Ryan

-----
HELO... my name is rewt... you have SIGKILLed my father... prepare to vi!