Re: NetBSD/mac68k on Quadra 800

Rin Okuyama <[email protected]> Wed, 28 Apr 2021 10:50:57 +0900
Newsgroups gmane.os.netbsd.ports.mac68k
Message-ID <[email protected]>
On 2021/04/27 4:22, Hauke Fath wrote:
> At 22:01 Uhr +0900 26.04.2021, Rin Okuyama wrote:
> [Quadra 800]
>> I disabled iwm(4)
>> in kernel config file. Otherwise, kernel crashes in strange ways...
> 
> This _is_ funny. I don't see why IWMBase should point anywhere else for
> this machine than for the Q650...
> 
> Then again, to the best of my knowledge, the only 68040 machine with IWM
> register compatibility is the Quadra 700 - the very first 040 machine, and
> the only one to come with a first-generation SWIM.
> 
> All the later models shipped with the SWIM2, which did away with the IWM
> registers. I guess iwm(4) should just check for the model, and punt for all
> other Quadra class machines.

Ah, I finally understood the cause of failure, thanks to your explanation
as well as Giuliano's dmesg on Q650:

On 2021/04/27 2:09, sadness wrote:
> That's NetBSD 9.0 with the standard WSFB kernel on my slightly modified
> (40Mhz 68040) Quadra 650.
> Everything seems to be working fine.
> 
> https://dmesgd.nycbug.org/index.cgi?do=view&id=6027

I diged out old dmesg when failure occurred:

| NetBSD 9.99.69 (Q800) #2: Wed Jul 22 09:08:43 JST 2020
|         rin@latipes:/sys/arch/mac68k/compile/Q800
| Apple Macintosh Quadra 650  (68040)
| ...
| iwm0 at obio0: Apple GCR floppy disk controller
| fd0 at iwm0 drive 0: (HD disk -- not supported)
| fd1 at iwm0 drive 1: (HD disk -- not supported)

The machine was misrecognized as Q650, and iwm(4) is attached wrongly.
I don't know why; I didn't set machine ID to Booter. Maybe this was due
to Mac OS setting by the former owner? I had newly installed Mac OS.

Anyway, now, the system recognizes machine model correctly, and iwm(4)
does not cause any problem:

| NetBSD 9.99.82 (Q800) #48: Tue Apr 27 19:31:07 JST 2021
|         rin@latipes:/sys/arch/mac68k/compile/Q800
| Apple Macintosh Quadra 800  (68040)
| ...
| iwm0 at obio0: Apple GCR floppy disk controller
| iwm: Chip revision not supported (-77)

Thank you guys for hints!

rin