*BSD News Article 87781


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.mel.connect.com.au!news.mel.aone.net.au!grumpy.fl.net.au!news.webspan.net!www.nntp.primenet.com!nntp.primenet.com!news.maxwell.syr.edu!worldnet.att.net!howland.erols.net!rill.news.pipex.net!pipex!blackbush.xlink.net!unlisys!jnickelsen
From: jnickelsen@acm.org (Juergen Nickelsen)
Newsgroups: comp.unix.bsd.netbsd.misc
Subject: [Q, long] Mac Classic II does not boot NetBSD 1.2 -- why?
Date: Thu, 30 Jan 1997 01:21:25 +0100
Organization: Unlimited Surprise Systems, Berlin
Lines: 195
Message-ID: <19970130012125324671@pppx190.berlin.snafu.de>
NNTP-Posting-Host: pppx190.berlin.snafu.de
X-Newsreader: MacSOUP 2.2b6
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.netbsd.misc:5258

Nearly three years ago, I had an unsuccessful try to get MacBSD running
on my Macintosh Classic II. This was not a miracle, since the Classic II
was not supported then. I was very excited when some days ago I read
that the Classic II is supported by NetBSD/mac68k 1.2 now! (And even
before, but I hadn't been following the story closely.)

So I got the software and tried to get my Classic II boot NetBSD 1.2,
which didn't work. I'd appreciate any help.

Let me say in between that I have little knowledge of Macintosh
programming and Macintosh hardware details, but several years of
experience with several Un!x variants, including 4.3 BSD and FreeBSD.

The details:

(1) Hardware

Mac Classic II, 10 MB RAM, FPU; 
ADB Mouse, ADB keyboard 
   (an older one, I think the first ADB keyboard Apple built); 
700 MB internal disk Quantum Lightning 730 on SCSI ID 1, 2 HFS
partitions 
   (~50 MB for System, the rest for Applications etc.);
170 MB external disk Fujitsu M2614SA on SCSI ID 5, 2 A/UX partitions
   (~32 MB A/UX swap partition, the rest A/UX root).

(2) System Software

On internal disk:
  - 1st partition: HFS, System folder MacOS 7.5.5 with some extensions
  - 2nd partition: HFS, mounted from 1st partition
  
On external disk:
  - 1st partition: A/UX swap
  - 2nd partition: A/UX root (NetBSD/mac68k 1.2; installed as proposed
in the Installation notes -- I know these are from 1.1, but apparently
there shouldn't be much of a difference.)

(3) Installation

I installed NetBSD/mac68k as proposed in the Installation Notes:
  - partition the disk (see above, SCSI ID 5)
  - mkfs on sd1a
  - build devices
  - install base12, comp12, etc12, games12, man12, misc12, netbsd12,
text12

Everything went fine so far.

(4) Boot Setup

The options in the booter program are set as follows:
  - Preferences:
     - Autoboot on Startup: no
     - Debug level: 1 (tried others as well)
     - Log to file: [yes, see below]
  - Boot Options:
     - Single user: no
     - Extra debugging info: yes
     - GMT bias: 0
     - No env dumps: no
     - Don't disable VBL interrupts on video cards: no
     - Don't bug me about untested machine: yes
     - Show dialog and wait before booting: no
     - Halt boot on non-fatal errors: yes
     - Kernel location: NetBSD/mac (sure, I'm brave)
     - Kernel name: netbsd
     - partition name: sd1a
     - Root SCSI ID: 5 (the external disk, see above); Ask?: no
     - RAM (#MB): 10
     - Auto-size RAM: yes
     
(5) Booting

When I boot this configuration, the bootlog seems ok (appended below).
After that, the screen goes white and the following appears:

-------------------------------------------------------------------
[ preserving 93836 bytes of netbsd symbol table ]
Bootstrapping NetBSD/mac68k.
Getting mapping from MMU.
System RAM: 10452992 bytes in 2552 pages.
     Low = 0x0, high = 0x9f8000
  no internal video at address 0 -- videoaddr is 0xfee09a80.
Done.
Bootstrapping the pmap system.
Pmap bootstrapped.
Moving ROM base from 0x40a00000 to 0x9f9000.
Video address 0xfee09a80 -> 0xbf9a80.
-------------------------------------------------------------------
[Inaccuracies due to my typing.]

Then the machine hangs. I'd be glad if anyone could give me some hints
what I could try to make it work.

And, by the way: You folks have done a great thing porting NetBSD to the
Mac! Thanks a lot!

The 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
"proc" (inode 512)  512 bytes
"etc" (inode 1024)  1024 bytes
"kern" (inode 1536)  512 bytes
"dev" (inode 2048)  2560 bytes
"altroot" (inode 3072)  512 bytes
"bin" (inode 3584)  512 bytes
"home" (inode 7168)  512 bytes
"mnt" (inode 7680)  512 bytes
"root" (inode 8192)  512 bytes
"sbin" (inode 8704)  1536 bytes
"stand" (inode 9216)  512 bytes
"tmp" (inode 9728)  512 bytes
"usr" (inode 10240)  512 bytes
"var" (inode 29188)  512 bytes
"sys" (inode 8)  11 bytes
".cshrc" (inode 11)  629 bytes
".profile" (inode 12)  138 bytes
"netbsd" (inode 13)  919896 bytes
sizeof struct exec = 32
Magic = NMAGIC (read-only text)
MID_M68K executable: entry 0x3356.
Allocated 1232828 bytes.
Successfully locked kernel memory.
768516 (0x0)+57516+99064+45588+48244

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

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

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

from = 0x00f9c000, 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 5 (0x5).
Env: "SINGLE_USER" set to 0 (0x0).
Env: "VIDEO_ADDR" set to -18834816 (0xfee09a80).
Env: "ROW_BYTES" set to 64 (0x40).
Env: "FLAGS" set to -2147351203 (0x8002055d).
Env: "SCREEN_DEPTH" set to 1 (0x1).
Env: "DIMENSIONS" set to 22413824 (0x1560200).
Env: "BOOTTIME" set to 854423784 (0x32ed78e8).
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 10 (0xa).
Env: "GRAYBARS" set to 1 (0x1).
Env: "SERIALECHO" set to 0 (0x0).
Env: "SERIALCONSOLE" set to 0 (0x0).
Env: "SERIAL_MODEM_FLAGS" set to 0 (0x0).
Env: "SERIAL_MODEM_HSKICLK" set to 0 (0x0).
Env: "SERIAL_MODEM_GPICLK" set to 0 (0x0).
Env: "SERIAL_PRINT_FLAGS" set to 0 (0x0).
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 2609 (0xa31).
Env: "ADBDELAY" set to 391 (0x187).
Env: "HWCFGFLAGS" set to -1024 (0xfffffc00).
Env: "HWCFGFLAG2" set to 30527 (0x773f).
Env: "HWCFGFLAG3" set to 16777638 (0x10001a6).
Env: "ADBREINIT_JTBL" set to 1084243220 (0x40a03d14).

Set _mac68k_vrsrc_cnt to 0.

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

-- 
Juergen Nickelsen