Subject: NetBSD booting trouble on Classic II
To: None <port-mac68k@NetBSD.ORG>
From: Alex Lagutin <alex@style.khabarovsk.su>
List: port-mac68k
Date: 03/14/1997 13:10:12
Hi All!

I have a trouble booting NetBSD 1.2 with NetBSD/Mac68k Booter v1.9.4 on
Macintosh Classic II.
I have 4MB RAM, no FPU expansion card installed, Apple Keyboard II and Apple
Desktop Bus Mouse, System 7.1.
Then I normally start my Mac (with extensions & finder) I can't run Booter
because of small amount of free memory (max free block - about 2300KB, Booter
requries 3072KB minimum), so I created MacHFS partition on my A/UX
partitioned external drive, created System Folder loaded with System file,
NetBSD Booter instead Finder (some hacking of boot blocks with Norton
DiskEditor) and without any extensions and CDEVs. I started my system and
have NetBSD Booter started, but the problem is still there. Booter jumps into
kernel, but after displaying video address boot process is stopped.
My Booter config, bootlog file and console output are listed below

/* */ - my comments.

/* installed packages */

netbsd12
base12
etc12
man12

/* Begin Booter options & configuration */

Autoboot on start = no
Debug Level = 1
Log to file "Mac HD:System Folder:bootlog"
Single User = yes
Extra debugging info = yes
Kernel location = NetBSD/mac
Kernel Name = netbsd
Partition Name = root
Root SCSI ID = 4 (external hard drive formatted & partitioned with FWB Hard
Disk Toolkit v1.7.5, swap, root and MacHFS partitions)
Ask? = no
Miniroot = none (no miniroot image)
RAM (#MB) = 4
Auto-size RAM = yes
GMT-Bias (min.) = 0
No env dumps = no
Don't disable VBL interrupts on video cards = yes
Don't bug me about untested machine = yes
Show dialog & wait for OK before booting = no
Halt boot on non-fatal errors = no
Serial Boot Echo = no
Serial Console = no
Set Modem port to "stty raw" defaults = yes
Set Printer port to "stty raw" defaults = yes
LocalTalk connected to Printer port = yes
Open serial port befor boot (for PBook) = no
External clock sources = none of them (all fields are zeroed)

/* End of Booter options & configuration */

/* Begin bootlog */

Logging to bootlog
Booting...Magic from fs: 72020
Magic from .h: 72020
100% done
"." (inode 2)  512 bytes
".." (inode 2)  512 bytes
"lost+found" (inode 3)  8192 bytes
"netbsd" (inode 4)  919896 bytes
sizeof struct exec = 32
Magic = NMAGIC (read-only text)
MID_M68K executable: entry 0x3356.
Allocated 1232828 bytes.
768516 (0x0)+57516+99064+45588+48244

Set _boothowto to 0x2.
start address = 0x3356.
total kernel buffer space used = 1020464 (0xf9230).
The warm and fuzzy copycode() is at 0x000e7cb2
Hex dump of copycode():

(0x000e7cb2) 4E 56 00 00 40 C0 00 40 07 00 46 C0 20 6E 00 08 
(0x000e7cc2) 22 6E 00 0C 20 2E 00 10 22 D8 53 80 66 FA 2C 2E 
(0x000e7cd2) 00 1C 2E 2D E3 AE 2A 2E 00 18 26 6D E3 BE 24 6D 
(0x000e7ce2) E3 B6 28 2D E3 BA 28 6D E3 B2 22 6D E3 AA 93 EE 
harry() is at 0x27dc00
Hex dump of Harry(), our friend!
(...should be the same as copycode(), above...)

(0x0027dc00) 4E 56 00 00 40 C0 00 40 07 00 46 C0 20 6E 00 08 
(0x0027dc10) 22 6E 00 0C 20 2E 00 10 22 D8 53 80 66 FA 2C 2E 
(0x0027dc20) 00 1C 2E 2D E3 AE 2A 2E 00 18 26 6D E3 BE 24 6D 
(0x0027dc30) E3 B6 28 2D E3 BA 28 6D E3 B2 22 6D E3 AA 93 EE 

from = 0x00154000, to = 0x00000000, len = 305152, entry = 0x00003356
  Bye-bye...
        So I sez to him...  The real way
        that it should be done is to...
Serial console flags = 0
Env: "ROOT_SCSI_ID" set to 4 (0x4).
Env: "SINGLE_USER" set to 2 (0x2).
Env: "VIDEO_ADDR" set to -18834816 (0xfee09a80).
Env: "ROW_BYTES" set to 64 (0x40).
Env: "FLAGS" set to -2147351971 (0x8002025d).
Env: "SCREEN_DEPTH" set to 1 (0x1).
Env: "DIMENSIONS" set to 22413824 (0x1560200).
Env: "BOOTTIME" set to -421142850 (0xe6e5debe).
Env: "GMTBIAS" set to 0 (0x0).
Env: "BOOTERVER" set to 108 (0x6c).
Env: "MACOS_VIDEO" set to -18834816 (0xfee09a80).
Env: "MACOS_SCC" set to 1357922304 (0x50f04000).
Env: "MACHINEID" set to 23 (0x17).
Env: "MEMSIZE" set to 4 (0x4).
Env: "GRAYBARS" set to 1 (0x1).
Env: "SERIALECHO" set to 0 (0x0).
Env: "SERIALCONSOLE" set to 0 (0x0).
Env: "SERIAL_MODEM_FLAGS" set to 1 (0x1).
Env: "SERIAL_MODEM_HSKICLK" set to 0 (0x0).
Env: "SERIAL_MODEM_GPICLK" set to 0 (0x0).
Env: "SERIAL_PRINT_FLAGS" set to 3 (0x3).
Env: "SERIAL_PRINT_HSKICLK" set to 0 (0x0).
Env: "SERIAL_PRINT_GPICLK" set to 0 (0x0).
Env: "PROCESSOR" set to 1 (0x1).
Env: "END_SYM" set to 1020464 (0xf9230).
Env: "ROMBASE" set to 1084227584 (0x40a00000).
Env: "TIMEDBRA" set to 2612 (0xa34).
Env: "ADBDELAY" set to 391 (0x187).
Env: "HWCFGFLAGS" set to -5120 (0xffffec00).
Env: "HWCFGFLAG2" set to 30527 (0x773f).
Env: "HWCFGFLAG3" set to 422 (0x1a6).
Env: "ADBREINIT_JTBL" set to 1084243220 (0x40a03d14).

Set _mac68k_vrsrc_cnt to 0.

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

/* End of bootlog */

/* Begin console output */

[ preserving 93836 bytes of netbsd symbol table ]
Bootstrapping NetBSD/mac68k.
Getting mapping from MMU.
System RAM: 4161536 bytes in 1016 pages.
       Low = 0x0, high = 0x3f8000
       no internal video at address 0 -- videoaddr is 0xfee09a80.
Done.
Bootstrapping the pmap system.
Pmap bootstrapped.
Moving ROMBase from 0x40a00000 to 0x9f9000
Video address 0xfee09a80 -> 0xbf9a80

/* End of console output */
/* at this point booting process freezes */
/* hard drives both internal and external make no head seeking sound */

Can you help me to locate the problem?

---
Alex Lagutin

P.S. I have to get un*x on my mac :-)