Subject: port-mac68k/16907: NetBSD 1.5 (any mac68k version) will not boot on PowerBook 170
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dakidd@sonic.net>
List: netbsd-bugs
Date: 05/19/2002 13:36:03
>Number:         16907
>Category:       port-mac68k
>Synopsis:       NetBSD 1.5 (any mac68k version) will not boot on PowerBook 170
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-mac68k-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 19 13:36:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Don Bruder
>Release:        Current (latest, to my knowledge) 1.5.3 snapshot kernel)
>Organization:
>Environment:
powerbook# uname -a
NetBSD powerbook.megalon.net 1.4.3 NetBSD 1.4.3 (GENERIC) #5: Sun Nov  5 20:17:53 CST 2000   fredb@corwin.amberites.invalid:/s/src-netbsd-1-4/sys/arch/mac68k/compile/GENERIC mac68k

(Note that this is from the working 1.4.3 install on the machine that's failing to boot 1.5.X - 1.5 will not boot to the point where I can issue a uname command.)

>Description:
I've got a working (more or less... it has a problem which led me to post to the netBSD newsgroups for advice, and evolved into this problem, but that's another kettle of fish) install of 1.4.3 on a PowerBook 170 with 8 megs of physical RAM, a 32 meg MacOS partition, a 32 meg swap partition, and the remainder of the 256 meg drive partitioned as usr/root.

After grabbing the netbsd-INSTALL.gz kernel from below the 20020323-1.5.3_RC1 directory, and a copy of the 2.0.0a7 booter on one respondent's advice, I did the following:

Copied the Booter folder and the kernel across the Localtalk LAN to the PowerBook, placed the netBSD-INSTALL.gz kernel in the folder the booter lives in, and fired up the booter. Under "Options:Booting", keyed in netbsd-INSTALL.gz as the kernel name, activated the "from macos volume" (Or whatever the actual phrasing is - I'm not currently looking at the booter options panel) radio button that goes with it, set up boot logging to log to the desktop file "Bootlog", checked "Single user", checked "localtalk on printer port" (or whatever the exact phrasing is, again, I'm not currently looking at the booter options panel) left all other options at defaults, saved options, and selected "Boot Now".

After a rather lengthy delay (which I'm assuming was most likely due to the fact that the booter has to gunzip the kernel, and fully understand if that's the case) the numbers "marched" as usual, the "bye-bye" message went by, and the now-familiar NetBSD startup sequence began. 

The contents of the bootlog appear here:
<begin bootlog>
Logging to bootlog
Booter version   : 2.0.0a7
Free heap memory : 5018KB (out of 5120KB total requested)
-------------------------------------
Macintosh type (MACHID) : 21
RAM size (physical RAM) : 8MB
System file version     : 7.5.5
Has AppleScript. Has Display manager version 2. 
-------------------------------------
Booting...transparent = 0
MID_M68K executable
MID_M68K executable
1075584/5760+2702636+152860+[170100+163265]Attempting to kill all running programs...
Changing Monitor settings...
  Bye-bye...
        So I sez to him...  The real way
        that it should be done is to...
Env: “ROOT_SCSI_ID” set to 0 (0x0).
Env: “SINGLE_USER” set to 2 (0x2).
Env: “VIDEO_ADDR” set to -18841600 (0xfee08000).
Env: “ROW_BYTES” set to 80 (0x50).
Env: “SCREEN_DEPTH” set to 1 (0x1).
Env: “DIMENSIONS” set to 26215040 (0x1900280).
Env: “BOOTTIME” set to 1021810120 (0x3ce795c8).
Env: “GMTBIAS” set to -420 (0xfffffe5c).
Env: “BOOTERVER” set to 111 (0x6f).
Env: “MACOS_VIDEO” set to -18841600 (0xfee08000).
Env: “MACOS_SCC” set to 1357922304 (0x50f04000).
Env: “MACHINEID” set to 21 (0x15).
Env: “MEMSIZE” set to 8 (0x8).
Env: “GRAYBARS” set to 0 (0x0).
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 2 (0x2).
Env: “SERIAL_PRINT_HSKICLK” set to 0 (0x0).
Env: “SERIAL_PRINT_GPICLK” set to 0 (0x0).
Env: “SERIAL_MODEM_DSPEED” set to 9600 (0x2580).
Env: “SERIAL_PRINT_DSPEED” set to 9600 (0x2580).
Env: “PROCESSOR” set to 1 (0x1).
Env: “END_SYM” set to 4270209 (0x412881).
Env: “ROMBASE” set to 1082130432 (0x40800000).
Env: “TIMEDBRA” set to 4165 (0x1045).
Env: “ADBDELAY” set to 782 (0x30e).
Env: “HWCFGFLAGS” set to -768 (0xfffffd00).
Env: “HWCFGFLAG2” set to 4202303 (0x401f3f).
Env: “HWCFGFLAG3” set to 67890 (0x10932).
Env: “ADBREINIT_JTBL” set to 1082145100 (0x4080394c).
Env: “BOOTHOWTO” set to 2 (0x2).
Env: “MARK_START” set to 0 (0x0).
Env: “MARK_SYM” set to 3936844 (0x3c124c).
Env: “MARK_END” set to 4270209 (0x412881).
<end bootlog>

What follows is (barring my typos/capitalization errors, any wrapping that may be applied, and the fact that the NetBSD copyright/build messages scroll off the top of the screen before I can get them copied) a verbatim transcript of what I see on the PowerBook's screen at the end of the (failed) attempt to boot:


<Begin transcript>
Apple Macintosh PowerBook 170   (68030)
cpu: delay factor 266
total memory = 8192 KB
avail memory = 2664 KB
using 128 buffer containing 512 KB of memory
mrg: 'Powerbook class ROMs' ROM glue, tracing off, debug off, silent traps
mrg: I/O map kludge for ROMs that use hardware addresses directly.
mainbus0 (root)
obio0 at mainbus0
adb0 at obio0
asc0 at obio0: Apple Sound Chip
iwm0 at obio0: Apple GCR floppy disk controller
fd0 at iwm0 drive 0: (drive empty)
ncrscsi0 at obio0
scsibus0 ar ncrscsi0: 8 targets, 8 luns per target
zsc0 at obio0 chip type 0
zsc0 channel 0: d_speed    9600 DCD clk 0 CTS clk 0
zstty0 at zsc0 channel 0
zsc0 channel 1: d_speed    9600 DCD clk 0 CTS clk 0 shielding from LocalTalk
zstty1 at zsc0 channel 1
nubus0 at mainbus0
fpu0 at mainbus0 (m68882)
adb0 (direct, PowerBook): 2 targets
aed0 at adb0 addr0: ADB Event device
akbd0 at adb0 addr2: PowerBook keyboard
wskbd0 at akbd0: console keyboard
ams0 at adb0 addr 3: 1-button, 200 dpi mouse
wsmouse0 at ams0
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 0 lun 0: <QUANTUM, GLS256S, 4.09> SCSI2 0/direct fixed
sd0: 244 MB, 1395 cyl, 6 head, 59 sec, 512 bytes/sect x 501039 sectors
 fixed, 5120 blockshoot device: sd0
root on md0a dumps on md0b
PRAM time does not appear to have been read correctly
PRAM: 0x83da4f80, macos_boottime: 0x3ce795c8.
root file system type: ffs
<note: at this point, there was approximately 15 seconds of pause before the next line displayed>
panic: cnopen: cn_tab->cn_dev == NODEV

stopped in init at     _cpu_Debugger+0x6:    unlk a6
db> _  <Note: the "_" is actually a solid-block cursor>
<End transcript>

I have NO idea how to proceed from this point.

Prior to this, I've attempted full installations (base, kern, etc, misc, comp, games, text) of all of the 1.5.X builds, and had the same problem. One poster has suggested that "wscon" is not present. Unfortunately, this tells me nothing useful. Yes, I did indeed use the installer's "Build devices" menu item before attempting to boot.

After my failure to get 1.5 working, I backtracked to 1.4, got a boot, stepped up to 1.4.1, got that to boot, and repeated the process until I ran out of 1.4.X versions at 1.4.3, which has been *RELATIVELY* functional for me. I say "relatively" because I've encountered  a problem that led me to post to the newsgroups for assistance, and ultimately led to me trying several different things, which did not resolve the problem. The latest attempt is trying to find out why 1.5 won't boot on this hardware, and if I can get it to, abandoning the 1.4 version in favor of the newer package(s)

At the urging of one of the people responding to my post, I'm filing this PR in hopes of resolving the issue.

>How-To-Repeat:
Install and try to boot any "flavor" of 1.5, from release 1.5, through the current snapshot, on my (very "plain vanilla") PowerBook 170.
>Fix:
That would be what I'm hoping to find out...
>Release-Note:
>Audit-Trail:
>Unformatted: