Subject: get_mapping(): Too many NuBus ranges.
To: None <port-mac68k@NetBSD.ORG>
From: Jeff Stearns <jps@tfs.com>
List: port-mac68k
Date: 04/10/1996 00:41:08
Howdy.  I'm having trouble trying to bring up macbsd 1.1 (ftp'd from netbsd.org)
on a IIcx.  It has a pretty vanilla set of hardware: one 200MB scsi
disk, one Nubus monochrome framebuffer.  It has 20MB of RAM
(but only 8Mb is visible to the MacOS.  I am NOT running mode32).
I boot from a small MacOS System 7.1 partition on the scsi disk.

I am quite confident of the disk partitioning, installation, etc.
(I've administered BSD unix on vaxen since it was first born.)

Installation went smoothly until i tried to boot into single-user.
I launched booter 1.8; the boot failed with this complaint:
System RAM: 8388608 bytes in 2048 pages.
    Low = 0x0, high = 0x100000
    Low = 0x200000, high = 0x300000
    Low = 0x400000, high = 0x500000
    Low = 0x600000, high = 0x700000
    Low = 0x800000, high = 0x900000
    Low = 0xa00000, high = 0xb00000
    Low = 0xc00000, high = 0xd00000
    Low = 0xe00000, high = 0xf00000
    <<more lines here if I declare 20MB of RAM instead of 8MB>>
get_mapping(): Too many NuBus ranges.
Non-system RAM (nubus, etc):
    Log = 0xf9000000, Phys = 0x90000000, Len = 0x100000 (1048576d)
    Log = 0xf9100000, Phys = 0x92000000, Len = 0x100000 (1048576d)
    Log = 0xf9200000, Phys = 0x94000000, Len = 0x100000 (1048576d)
    <... 12 more similar lines, always with Len = 0x100000 ...>
    Log = 0xf9f00000, Phys = 0x5ae00000, Len = 0x100000 (1048576d)
  no internal video at address 0 -- videoaddr is 0xf9900000.
Done.
Bootstrapping the pmem system.
Failure in BSD boot.  nextpa=0x106000, high[0]=0x100000.
panic: You're hosed!

Stopped at    _Debugger+0x6:  unlk a6
db> unexpected trap: vector offset 0x0 from 0x739c0000.

This happens with booter configured for automatic RAM sizing, or with it
set to 8MB or 20MB.
Diddling the "Don't disable VBL interrupts on video cards" option has no affect.
In fact, I've diddled every reasonable-looking booter option to no avail.
Moving the video card to a different NuBus slot makes no difference.

I have only this one NuBus card.  It seems that get_mapping() is seeing lots of
discontiguous 1 MB NuBus ranges.  (I'd *guess* that there's some problem
interpreting the page tables.  Does it expect 32-bit addressing?  Does it croak on
unexpected RAM?  Does it require that I boot some specific MacOS version?)  

Does this problem look familiar to anybody?

thx for any advice!

-jeff stearns  jps@tfs.com