Subject: better success netbooting SunFire V100 with 1.6 (miniroot image must be corrupt)
To: NetBSD/sparc Discussion List <port-sparc@NetBSD.ORG>
From: Greg A. Woods <woods@weird.com>
List: port-sparc
Date: 09/26/2002 21:51:07
It seems the miniroot.fs image for NetBSD/sparc64 1.6 is corrupt.  I
have been able to successfully netboot a SunFire V100, but am unable to
get it to even begin to load the miniroot image, as I noted in a post
the other day.

Note that it seems impossible to pass the filename properly to ofwboot,
at least when using BOOTPARAMS.  I had to put the kernel in the NFS
server's directory as "netbsd".  Attempts to boot with any different
filename simply resulted in a "Boot:" prompt and when I failed to type
the correct filename and then hit return it tried to boot what I typed
and then fell back to trying to boot the alternate kernel names starting
with "netbsd.gz" IIRC.  During this process the ofwboot program seemed
impervious to BREAK signals (i.e. LOM "break" commands).

I also don't know why it asks me for the root device.

(Also, where's the revision number from ofwboot?  Why can't it print a
CRLF before it prints its banner too?)

I don't think there's anything on wd1 at the moment (SunOS-5.9 is only
on wd0 IIRC), so I may try installing and see how it goes.

Anyway here's a cut&paste of the boot:

lom>reset

LOM event: +11d+6h36m36s host reset

Sun Fire V100 (UltraSPARC-IIe 500MHz), No Keyboard
OpenBoot 4.0, 512 MB memory installed, Serial #51700933.
Ethernet address 0:3:ba:14:e4:c5, Host ID: 8314e4c5.



Initializing Memory \                                                 
lom>break
                             
ok boot net netbsd -s
Boot device: /pci@1f,0/ethernet@c  File and args: netbsd -s
14e00 >> NetBSD/sparc64 OpenFirmware Boot, Revision 
>> (autobuild@cs20.apochromatic.org, Sun Sep  8 11:34:32 UTC 2002)
bootp: no reply
Using BOOTPARAMS protocol: ip address: 204.92.254.13, hostname: once.weird.com
root addr=204.92.254.18 path=/once
loadfile: reading header
elf64_exec: Booting /pci@1f,0/ethernet@c/netbsd
4412224@0x1000000+139824@0x1800000+4054480@0x1822230 
symbols @ 0xfef84300 74+329592+174878 start=0x1000000
chain: calling OF_chain(800000, e540, 1000000, fffc5a80, 18)
[ using 505320 bytes of netbsd ELF symbol table ]
console is /pci@1f,0/isa@7/serial@0,3f8
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002
    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 1.6 (GENERIC) #0: Sun Sep  8 11:55:46 UTC 2002
    autobuild@cs20.apochromatic.org:/autobuilder/build/sparc64/OBJ/autobuilder/build/src/sys/arch/sparc64/compile/GENERIC
total memory = 512 MB
avail memory = 465 MB
using 3289 buffers containing 26312 KB of memory
bootpath: /pci@1f,0/ethernet@c,0
mainbus0 (root): SUNW,UltraAX-i2
cpu0 at mainbus0: SUNW,UltraSPARC-IIe @ 500 MHz, version 0 FPU
cpu0: physical 32K instruction (32 b/l), 16K data (32 b/l), 256K external (64 b/l)
psycho0 at mainbus0
SUNW,sabre: impl 0, version 0: ign 7c0 bus range 0 to 0; PCI bus 0
DVMA map: 60000000 to 80000000
IOTSB: 42546000 to 425c6000
pci0 at psycho0
pci0: i/o space, memory space enabled
ebus0 at pci0 dev 7 function 0
ebus0: Acer Labs M1543 PCI-ISA Bridge, revision 0x00
dma at ebus0 addr 0-ffff ipl 42 not configured
rtc0 at ebus0 addr 70-71: m5819
power at ebus0 addr 2000-2007 ipl 35 not configured
SUNW,lomh at ebus0 addr 8010-8011 ipl 42 not configured
com0 at ebus0 addr 3f8-3ff ipl 43: ns16550a, working fifo
com0: console
com1 at ebus0 addr 2e8-2ef ipl 43: ns16550a, working fifo
flashprom at ebus0 addr 0-7ffff not configured
Acer Labs M7101 Power Management Controller (miscellaneous prehistoric) at pci0 dev 3 function 0 not configured
tlp0 at pci0 dev 12 function 0: Davicom DM9102A Ethernet, pass 3.1
tlp0: broken MicroWire interface detected; setting SROM size to 1Kb
tlp0: interrupting at ivec 3006
tlp0: Ethernet address 00:03:ba:14:e4:c5
ukphy0 at tlp0 phy 1: Generic IEEE 802.3u media interface
ukphy0: OUI 0x000676, model 0x0004, rev. 0
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
tlp1 at pci0 dev 5 function 0: Davicom DM9102A Ethernet, pass 3.1
tlp1: broken MicroWire interface detected; setting SROM size to 1Kb
tlp1: interrupting at ivec 301c
tlp1: Ethernet address 00:03:ba:14:e4:c5
ukphy1 at tlp1 phy 1: Generic IEEE 802.3u media interface
ukphy1: OUI 0x000676, model 0x0004, rev. 0
ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ohci0 at pci0 dev 10 function 0: Acer Labs M5237 USB Host Controller (rev. 0x03)
ohci0: interrupting at ivec 24
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Acer Labs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
pciide0 at pci0 dev 13 function 0: Acer Labs M5229 UDMA IDE Controller (rev. 0xc3)
pciide0: bus-master DMA support present
pciide0: primary channel configured to native-PCI mode
pciide0: using ivec 180c for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: <ST340016A>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 38166 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 78165360 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
pciide0: secondary channel configured to native-PCI mode
atapibus0 at pciide0 channel 1: 2 targets
cd0 at atapibus0 drive 1: <CD-224E, , 1.7A> type 5 cdrom removable
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
wd1 at pciide0 channel 1 drive 0: <ST340016A>
wd1: drive supports 16-sector PIO transfers, LBA addressing
wd1: 38166 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 78165360 sectors
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
cd0(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
pcons at mainbus0 not configured
No counter-timer -- using %tick at 500MHz as system clock.
Kernelized RAIDframe activated
root device: net
use one of: raid0[a-h] raid1[a-h] raid2[a-h] raid3[a-h] raid4[a-h] raid5[a-h] raid6[a-h] raid7[a-h] tlp0 tlp1 wd0[a-h] cd0[a-h] wd1[a-h] ddb halt reboot
root device: tlp0
dump device: tlp0
file system (default generic): nfs
root on tlp0 dumps on tlp0h
nfs_boot: trying RARP (and RPC/bootparam)
tlp0: receive process failed to idle: state RUNNING - WAIT
nfs_boot: client_addr=204.92.254.13 (RARP from 204.92.254.18)
nfs_boot: server_addr=204.92.254.18
nfs_boot: hostname=once.weird.com
nfs_boot: gateway=204.92.254.6
nfs_boot: my_mask=255.255.255.0
root on sometimes.weird.com:/once
rtc_gettime: read y 2/2 m 9/9 wd 6 d 1b/27 h 1/1 m e/14 s 7/7
WARNING: clock lost 11688 days -- CHECK AND RESET THE DATE!
# 

that rtc business can't be right though -- the machine was just running
SunOS-5.9 and it had the correct time....  Indeed its time is wonky:

	# date   
	Sat Sep 26 21:45:17 EDT 1970
	# 


Also, why does it day "dumps on tlp0h"?  I typed "tlp0<CR>".

-- 
								Greg A. Woods

+1 416 218-0098;            <g.a.woods@ieee.org>;           <woods@robohack.ca>
Planix, Inc. <woods@planix.com>; VE3TCP; Secrets of the Weird <woods@weird.com>