Subject: Booting failure on Mac IIsi
To: None <port-mac68k@NetBSD.ORG>
From: Balazs Barany <bb@lb-data.co.at>
List: port-mac68k
Date: 11/01/1997 11:52:16
Hello,

I've bought an old Mac IIsi with 850 MB SCSI hard disk, 17 (!) MB or =
RAM, a video card with 19" display and an Asante EN/SC SCSI Ethernet =
adapter.=20
I'm quite sure that there is only the standard System 7.1 ("D1-7.1") =
with the appropriate network drivers on it.

I tried to boot the netbsd kernel with NetBSD/Mac68k Booter and got the =
following:

-------------(Log of the Booter follows)--------------------
Logging to bootlog
Booting...sizeof struct exec =3D 32
Magic =3D NMAGIC (read-only text)
MID_M68K executable: entry 0x3356.
Allocated 1086943 bytes.
770544 (0x0)+57724+99004+45732+48403

Set _boothowto to 0x2.
start address =3D 0x3356.
total kernel buffer space used =3D 1029107 (0xfb3f3).
The warm and fuzzy copycode() is at 0x00b7c82a
Hex dump of copycode():

(0x00b7c82a) 4E 56 00 00 40 C0 00 40 07 00 46 C0 20 6E 00 08=20
(0x00b7c83a) 22 6E 00 0C 20 2E 00 10 22 D8 53 80 66 FA 2C 2E=20
(0x00b7c84a) 00 1C 2E 2D E3 B0 2A 2E 00 18 26 6D E3 C0 24 6D=20
(0x00b7c85a) E3 B8 28 2D E3 BC 28 6D E3 B4 22 6D E3 AC 93 EE=20
harry() is at 0xc83c00
Hex dump of Harry(), our friend!
(...should be the same as copycode(), above...)

(0x00c83c00) 4E 56 00 00 40 C0 00 40 07 00 46 C0 20 6E 00 08=20
(0x00c83c10) 22 6E 00 0C 20 2E 00 10 22 D8 53 80 66 FA 2C 2E=20
(0x00c83c20) 00 1C 2E 2D E3 B0 2A 2E 00 18 26 6D E3 C0 24 6D=20
(0x00c83c30) E3 B8 28 2D E3 BC 28 6D E3 B4 22 6D E3 AC 93 EE=20

from =3D 0x00b7e000, to =3D 0x00000000, len =3D 268288, entry =3D =
0x00003356
  Bye-bye...
        So I sez to him...  The real way
        that it should be done is to...
Serial console flags =3D 0
Env: =B3ROOT_SCSI_ID=B2 set to 0 (0x0).
Env: =B3SINGLE_USER=B2 set to 2 (0x2).
Env: =B3VIDEO_ADDR=B2 set to -116391936 (0xf9100000).
Env: =B3ROW_BYTES=B2 set to 1024 (0x400).
Env: =B3FLAGS=B2 set to -2147350327 (0x800208c9).
Env: =B3SCREEN_DEPTH=B2 set to 8 (0x8).
Env: =B3DIMENSIONS=B2 set to 50332672 (0x3000400).
Env: =B3BOOTTIME=B2 set to 878384617 (0x345b15e9).
Env: =B3GMTBIAS=B2 set to -360 (0xfffffe98).
Env: =B3BOOTERVER=B2 set to 108 (0x6c).
Env: =B3MACOS_VIDEO=B2 set to -116391936 (0xf9100000).
Env: =B3MACOS_SCC=B2 set to 1357922304 (0x50f04000).
Env: =B3MACHINEID=B2 set to 18 (0x12).
Env: =B3MEMSIZE=B2 set to 17 (0x11).
Env: =B3GRAYBARS=B2 set to 1 (0x1).
Env: =B3SERIALECHO=B2 set to 0 (0x0).
Env: =B3SERIALCONSOLE=B2 set to 0 (0x0).
Env: =B3SERIAL_MODEM_FLAGS=B2 set to 0 (0x0).
Env: =B3SERIAL_MODEM_HSKICLK=B2 set to 0 (0x0).
Env: =B3SERIAL_MODEM_GPICLK=B2 set to 0 (0x0).
Env: =B3SERIAL_PRINT_FLAGS=B2 set to 0 (0x0).
Env: =B3SERIAL_PRINT_HSKICLK=B2 set to 0 (0x0).
Env: =B3SERIAL_PRINT_GPICLK=B2 set to 0 (0x0).
Env: =B3PROCESSOR=B2 set to 1 (0x1).
Env: =B3END_SYM=B2 set to 1029107 (0xfb3f3).
Env: =B3ROMBASE=B2 set to 1082130432 (0x40800000).
Env: =B3TIMEDBRA=B2 set to 3332 (0xd04).
Env: =B3ADBDELAY=B2 set to 781 (0x30d).
Env: =B3HWCFGFLAGS=B2 set to -5120 (0xffffec00).
Env: =B3HWCFGFLAG2=B2 set to 30527 (0x773f).
Env: =B3HWCFGFLAG3=B2 set to 16777510 (0x1000126).
Env: =B3ADBREINIT_JTBL=B2 set to 1082145636 (0x40803b64).

Set _mac68k_vrsrc_cnt to 0x1.

Set _mac68k_vrsrc_vec to {0x8009 0x0 0x0 0x0 0x0 0x0 }.

------------End of Booter log---------------------
This seems normal to me. But then the kernel writes:

[ preserving 94139 bytes of netbsd symbol table ]
Bootstrapping NetBSD/mac68k.
Getting mapping from MMU.
System RAM: 17825792 bytes in 4352 pages.
    Low =3D 0x0, high =3D 0x100000
    Low =3D 0x4000000, high =3D 0x5000000
  no internal video at address 0 -- videoaddr is 0xf9100000.
Done.
Bootstrapping the pmap system.
Failure in BSD boot. nextpa=3D0x105000, high[0]=3D0x100000.
You're hosed! Try booting with 32-bit addressing enabled in the memory =
control panel.
Older Machines may need Mode32 to get that option.
panic: Cannont work with the current memory mappings.

Stopped at  _Debugger+0x6:   unlk    a6
db> _

32-bit addressing IS enabled (the Booter says that it runs only with =
32-bit adressing when I disable it), virtual memory is disabled, volume =
cache has 1024K.
I noticed that the version number of the memory control panel was 7.3 =
but I restored 7.1 to match the system, but this didn't work, too.

Has anyone an idea on how I could fix this?
________________________________________________________________
Bal=E1zs B=E1r=E1ny    bb@lb-data.co.at    http://www.lb-data.co.at/bb

It's nice to be important, but it's more important to be nice