Subject: port-sun2/32420: NetBSD/sun2 3.0 INSTALL kernel hangs during boot
To: None <port-sun2-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <tsutsui@ceres.dti.ne.jp>
List: netbsd-bugs
Date: 12/31/2005 06:10:01
>Number: 32420
>Category: port-sun2
>Synopsis: NetBSD/sun2 3.0 INSTALL kernel hangs during boot
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: port-sun2-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Dec 31 06:10:00 +0000 2005
>Originator: Izumi Tsutsui
>Release: NetBSD 3.0 release
>Organization:
>Environment:
Sun2/120 emulation on tme (installed from pkgsrc/emulators/tme)
Architecture: m68k (m68000)
Machine: sun2
>Description:
While RAMDISK and FORMEG kernels in 3.0 boot and work fine on tme,
INSTALL kernel (both in miniroot.fs and NetBSD-3.0/sun2/binary/kernel dir)
hangs during boot:
---
>b st()
Boot: st(0,0,0)
>> NetBSD/sun2 tapeboot [1.12]
tapeboot: loading segment 4
996532+65928 [93632+81419]=0x12e4e4
relocating program...Starting program at 0x6000
console is keyboard/display
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
The NetBSD Foundation, Inc. All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All right reserved.
NetBSD 3.0 (INSTALL) #0: Mon Dec 19 04:13:00 UTC 2005
builds@b2.netbsd.org:/home/builds/ab/netbsd-3-0-RELEASE/sun2/200512182024Z-obj/home/builds/ab/netbsd-3-0-RELEASE/src/sys/arch/sun2/compile/INSTALL
Model: sun2 {120,170}
fpu: no math support
total memory = 4096 KB
avail memory = 2822 KB
mainbus0 (root)
obio0 at mainbus0
zs0 at obio0 addr 0x2000 ipl 6 softpri 3
zstty0 at zs0 channel 0
[ ... hangs here ]
---
Note INSTALL kernel in 1.6 also worked.
>How-To-Repeat:
Boot sun2 INSTALL kernel on tme:
% (cd [somewhere]/pkgsrc/emulators/tme && make update)
:
% mkdir tme-sun2; cd tme-sun2
% cp /usr/pkg/share/examples/tme/SUN2-MULTIBUS ./MY-SUN2
% ftp http://theory.lcs.mit.edu/~fredette/tme/sun2-multi-rev-R.bin
:
% tme-sun-idprom 2/120 8:0:20:00:00:01 > my-sun2-idprom.bin
% cp /usr/pkg/share/examples/tme/sun-keyboards.txt .
% cp /usr/pkg/share/examples/tme/my-sun-macros.txt .
% mkdir my-tape
% (cd my-tape; ftp http://theory.lcs.mit.edu/~fredette/tme/sun2-tapeboot.bin)
:
% (cd my-tape; ftp ftp://ftp.dti.ad.jp/pub/NetBSD/NetBSD-3.0/sun2/binary/kernel/netbsd-INSTALL.gz)
:
% (cd my-tape; gunzip netbsd-INSTALL)
% (cd my-tape; ln -s sun2-tapeboot.bin 01; touch 02; touch 03; touch 04)
% (cd my-tape; ln -s netbsd-INSTALL 05)
% env LTDL_LIBRARY_PATH=/usr/pkg/lib tmesh MY-SUN2
:
tmesh> command tape0 load my-tape/01 my-tape/02 my-tape/03 my-tape/04 my-tape/05
tmesh> command mainbus0 power up
:
- type "b st()" on PROM monitor prompt (on tmesh window)
>Fix:
Removing "options MALLOC_NOINLINE" from sun2/conf/INSTALL config
seems to resolve this, but I'm not sure why.
(RAMDISK and FOURMEG don't have the option)