NetBSD Problem Report #37080
From martin@duskware.de Mon Oct 8 12:58:28 2007
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id 83A2C63B8D8
for <gnats-bugs@gnats.netbsd.org>; Mon, 8 Oct 2007 12:58:28 +0000 (UTC)
Message-Id: <20071008121511.EDD6763B8D8@narn.NetBSD.org>
Date: Mon, 8 Oct 2007 12:15:11 +0000 (UTC)
From: georg.brein@unibas.ch
Reply-To: georg.brein@unibas.ch
To: netbsd-bugs-owner@NetBSD.org
Subject: second stage boot loader fails on SparcStation 2
X-Send-Pr-Version: www-1.0
>Number: 37080
>Category: port-sparc
>Synopsis: second stage boot loader fails on SparcStation 2
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: port-sparc-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Oct 08 13:00:01 +0000 2007
>Last-Modified: Wed Nov 21 15:00:02 +0000 2007
>Originator: Georg Brein
>Release: 4.0 RC1
>Organization:
University of Basel
>Environment:
NetBSD 4.0 RC1 ISO image; SparcStation 2 (sun4c)
>Description:
The second-stage "boot" loader fails complaining about
a data access failure.
Netbooting (boot.net) works fine.
Substituting the second-stage loader from the NetBSD 3.1
distribution solves the problem, too.
>How-To-Repeat:
Try to boot a SparcStation 2 from the NetBSD 4.0 RC1 ISO image or
copy the miniroot to the swap area and boot it.
>Fix:
Substitute the second-stage boot loader from the NetBSD 3.1 distribution.
>Audit-Trail:
From: Julian Coleman <jdc@coris.org.uk>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-sparc/37080: second stage boot loader fails on SparcStation 2
Date: Tue, 9 Oct 2007 21:59:16 +0100
> The second-stage "boot" loader fails complaining about
> a data access failure.
Hi,
I just tried the boot loader from 4.0RC1 on an SS2. I see:
Rebooting with command: disk1:a -s
Boot device: /sbus/esp@0,800000/sd@1,0:a File and args: -s
>> NetBSD/sparc Secondary Boot, Revision 1.15
>> (builds@wb35, Sat Sep 1 16:32:39 PDT 2007)
Booting netbsd
3194832+102384+235996 [182576+173520]=0x3c5c18
OBP version 2, revision 2.9 (plugin rev 2)
...
mainbus0 (root): SUNW,Sun 4/75: hostid 5570c1ea
...
and it boots. Is it possible for you to capture the exact messages when
your SS2 fails to boot?
Thanks,
J
--
My other computer also runs NetBSD / Sailing at Newbiggin
http://www.netbsd.org/ / http://www.newbigginsailingclub.org/
From: Georg Brein <georg.brein@unibas.ch>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-sparc/37080: second stage boot loader fails on SparcStation 2
Date: Thu, 11 Oct 2007 10:30:45 +0200
> [...] Is it possible for you to capture the exact messages when
> your SS2 fails to boot?
Here you are... unfortunately, there is only the message
"Data Access Exception" which is AFAIK emitted by the firmware.
The protocol shows two attempts to boot from a CD containing
the RC1 ISO image, a successful boot from HD (using the
second-stage boot loader from NetBSD 3.1) to show the configuration
of my machine and an unsuccessful attempt to boot the RC1
miniroot image.
The only clue I get is that my SS2 has ROM revision 2.2,
whereas yours has revision 2.9.
Georg Brein
=3D=3D=3D protocol starts here =3D=3D=3D
WARNING: Unable to determine keyboard typeSPARCstation 2, No Keyboard
ROM Rev. 2.2, 64 MB memory installed, Serial #197955.
Ethernet address 8:0:20:5:80:43, Host ID: 55030543.
Testing 0 megs of memory. Still to go 0 [break sent -- GB]
Type 'go' to resume
Type help for more information
ok boot cdrom [boot from RC1 CD -- GB]
Boot device: /sbus/esp@0,800000/sd@6,0:c File and args:
>> NetBSD/sparc Secondary Boot, Revision 1.15
>> (builds@wb35, Sat Sep 1 16:32:39 PDT 2007)
Booting netbsd
|=08Data Access Exception
ok boot cdrom [try again -- GB]
SPARCstation 2, No Keyboard
ROM Rev. 2.2, 64 MB memory installed, Serial #197955.
Ethernet address 8:0:20:5:80:43, Host ID: 55030543.
Rebooting from cdrom
Boot device: /sbus/esp@0,800000/sd@6,0:c File and args:
>> NetBSD/sparc Secondary Boot, Revision 1.15
>> (builds@wb35, Sat Sep 1 16:32:39 PDT 2007)
Booting netbsd
|=08Data Access ExceptionType help for more information
ok boot -s [boot from disk on which RC1 has been installed via net =
boot]
[and on which the second-stage loader from NetBSD 3.1 =
has]
[been installed -- GB]
SPARCstation 2, No Keyboard
ROM Rev. 2.2, 64 MB memory installed, Serial #197955.
Ethernet address 8:0:20:5:80:43, Host ID: 55030543.
Rebooting from -s
Boot device: /sbus/esp@0,800000/sd@3,0 File and args: -s
>> NetBSD/sparc Secondary Boot, Revision 1.15
>> (builds@b3.netbsd.org, Tue Oct 31 08:41:58 UTC 2006)
Booting netbsd
3293264+106160+202172 [204304+191750]=3D0x3e0350 [turning baton =
deleted =20
-- GB]
OBP version 2, revision 2.2 (plugin rev 2)
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, =20
2005, 2006
The NetBSD Foundation, Inc. All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
NetBSD 4.0_RC1 (GENERIC) #0: Sat Sep 1 17:25:44 PDT 2007
=
builds@wb35:/home/builds/ab/netbsd-4-0-RC1/sparc/200709011431Z-obj/=20
home/builds/ab/netbsd-4-0-RC1/src/sys/arch/sparc/compile/GENERIC
total memory =3D 65452 KB
avail memory =3D 59992 KB
timecounter: Timecounters tick every 10.000 msec
bootpath: /sbus0/esp@0,800000/sd@3,0
mainbus0 (root): SUNW,Sun 4/75: hostid 55030543
cpu0 at mainbus0: CY7C601 @ 40 MHz, TMS390C602A FPU
cpu0: cache chip bug; trap page uncached
cpu0: 64K byte write-through, 32 bytes/line, hw flush: cache enabled
memreg0 at mainbus0 ioaddr 0xf4000000
clock0 at mainbus0 ioaddr 0xf2000000: mk48t02
timer0 at mainbus0 ioaddr 0xf3000000 ipl 10: delay constant 17, =20
frequency =3D 1000000 Hz
timecounter: Timecounter "timer-counter" frequency 1000000 Hz quality =20=
100
auxreg0 at mainbus0 ioaddr 0xf7400003
zs0 at mainbus0 ioaddr 0xf1000000 ipl 12 softpri 6
zstty0 at zs0 channel 0 (console i/o)
zstty1 at zs0 channel 1
zs1 at mainbus0 ioaddr 0xf0000000 ipl 12 softpri 6
kbd0 at zs1 channel 0: baud rate 1200
ms0 at zs1 channel 1: baud rate 1200
audioamd0 at mainbus0 ioaddr 0xf7201000 ipl 13 softpri 4
audio0 at audioamd0: full duplex
sbus0 at mainbus0 ioaddr 0xf8000000: clock =3D 20 MHz
le0 at sbus0 slot 0 offset 0xc00000 level 5: address 00:00:e0:07:00:00
le0: 8 receive buffers, 2 transmit buffers
dma0 at sbus0 slot 0 offset 0x400000: DMA rev 1+
esp0 at sbus0 slot 0 offset 0x800000 level 3: ESP100A, 20MHz, SCSI ID 7
scsibus0 at esp0: 8 targets, 8 luns per target
le1 at sbus0 slot 1 offset 0xc00000 level 5: address 08:00:20:05:80:43
le1: 8 receive buffers, 2 transmit buffers
cgsix0 at sbus0 slot 2 offset 0x0 level 7: SUNW,501-1481, 1152 x 900, =20=
rev 1
cgsix0: attached to /dev/fb0
cgsix0: framebuffer size: 1 MB
cgsix0: FBC: 00295540
fdc0 at mainbus0 ioaddr 0xf7200000 ipl 11 softpri 4: chip 82072
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
Kernelized RAIDframe activated
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 3 lun 0: <DEC, DSP3210S, X442> disk fixed
sd0: 2049 MB, 3045 cyl, 16 head, 86 sec, 512 bytes/sect x 4197520 =20
sectors
sd0: sync (248.00ns offset 15), 8-bit (4.032MB/s) transfers, tagged =20
queueing
cd0 at scsibus0 target 6 lun 0: <PLEXTOR, CD-ROM PX-12CS, 1.00> cdrom =20=
removable
cd0: sync (248.00ns offset 15), 8-bit (4.032MB/s) transfers
root on sd0a dumps on sd0b
root file system type: ffs
WARNING: clock gained 2 days
WARNING: CHECK AND RESET THE DATE!
Enter pathname of shell or RETURN for /bin/sh:
# mount -r -t cd9660 /dev/cd0c /mnt [copy miniroot to swap =
-- GB]
# cd /mnt/sparc/installation/miniroot
# gunzip -c miniroot.fs.gz | dd of=3D/dev/rsd0b
16355+50 records in
16384+0 records out
8388608 bytes transferred in 192.676 secs (43537 bytes/sec)
# sync
# halt
Oct 10 20:24:58 halt: halted by root
syncing disks... done
unmounting file systems... done
halted
Program terminated
Type help for more information
ok boot /sbus/esp/sd@3:b [try to boot miniroot]
SPARCstation 2, No Keyboard
ROM Rev. 2.2, 64 MB memory installed, Serial #197955.
Ethernet address 8:0:20:5:80:43, Host ID: 55030543.
Rebooting from /sbus/esp/sd@3:b
Boot device: /sbus/esp/sd@3:b File and args:
>> NetBSD/sparc Secondary Boot, Revision 1.15
>> (builds@wb35, Sat Sep 1 16:32:39 PDT 2007)
Booting netbsd
|=08Data Access ExceptionType help for more information
ok
=3D=3D=3D protocol ends here =3D=3D=3D
From: Georg Brein <georg.brein@unibas.ch>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-sparc/37080: second stage boot loader fails on SparcStation 2
Date: Mon, 12 Nov 2007 08:57:11 +0100
The problem described is definitively caused by an incompatibility
between NetBSD 4.0 sparc (both RC1 and RC3) and version 2.2 of the
SparcStation 2 firmware; after upgrading to version 2.9 the second
stage boot loader works smoothly, and a few other nuisances (onboard
le ethernet reporting and using bogus MAC address, incompatibility
with qec/qe ethernet FCode, failure to boot Solaris from a 2 GB root
slice) went away as well.
I don't know whether the NetBSD developers aim at supporting firmware
revisions older than 2.9; if not (and I'd consider this legitimate
since even I, a confirmed 100 percent software guy, succeeded in
upgrading the firmware, though it was my first try at EPROM burning
and I had to get hold of the necessary equipment beforehand), bug
port-sparc/37080 would degenerate to a mere lack of documentation
stating the lowest supported (resp. tested) firmware revision.
Many thanks for your troubles!
Yours sincerely,
Georg Brein
From: Julian Coleman <jdc@coris.org.uk>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-sparc/37080: second stage boot loader fails on SparcStation 2
Date: Wed, 21 Nov 2007 14:56:53 +0000
> after upgrading to version 2.9 the second
> stage boot loader works smoothly, and a few other nuisances
That's good news.
> I don't know whether the NetBSD developers aim at supporting firmware
> revisions older than 2.9;
It would be good to support more hardware, but it relies on developer time
and hardware being both available. Not supporting 2.2 was probbably a
side-affect of some other change, rather than a deliberate decision. It
should be possible to track down the commit(s) that caused the regression
and to fix it.
Thanks,
J
--
My other computer also runs NetBSD / Sailing at Newbiggin
http://www.netbsd.org/ / http://www.newbigginsailingclub.org/
(Contact us)
$NetBSD: query-full-pr,v 1.36 2007/11/24 03:27:39 kano Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.