Subject: Re: ofwboot and booting over the net
To: Eduardo Horvath <>
From: John Hay <>
List: port-sparc64
Date: 07/10/2000 16:56:37
> > > 
> > > > Should the ofwboot in arch/sparc64/other on date July 5
> > > > be able to do a net boot on a Ultra 5?
> > > 
> > > I wouldn't expect it to.  In fact I wouldn't expect it to netboot
> > > anything.
> > > 
> > 
> > Ok, so I got a little carried away when I saw Paul Kranenburg's
> > commit message to ofwboot/net.c r 1.4:
> > 
> > Try both the BOOTPARAM and DHCP protocol (in that order as is the custom
> > with Sun machines).
> I believe that ofwboot predates those changes.

Ok, I was able to build a new ofwboot with those changes and by adding
-DNETBOOT to the Makefile and got ofwboot to load and run the kernel.
The kernel stops at the "root device:" and by giving it hme0 I can get
to a singleuser prompt. :-) It is getting better. :-)

I have one question, what can I do so that the kernel won't stop at
the "root device:" prompt? Should ofwboot send some parameter?

John Hay --

Here is the kernel output:

dst: 00:60:08:9f:82:e4 src: 08:00:20:b5:53:60 type: 0x800
netif_put: xmit returned 146
netif_get: pkt=0xfffa921e, maxlen=1166, tmo=2
netif_get: received len=402
dst: 08:00:20:b5:53:60 src: 00:60:08:9f:82:e4 type: 0x800
chain: calling OF_chain(800000, f170, f1000000, fffa9a80, 18)
[ preserving 363656 bytes of netbsd ELF symbol table ]
Our trap handler is enabled
setting up stdin
stdin instance = fffe5728
setting up stdout
stdout instance = fffe53d8
stdout package = f0061cc8
console is unknown
Copyright (c) 1996, 1997, 1998, 1999, 2000
    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.5A (GENERIC) #67: Wed Jul  5 09:17:26 PDT 2000
total memory = 128 MB
avail memory = 109 MB
using 832 buffers containing 6656 KB of memory
bootpath: /pci@1f,0/pci@1,1/network@1,1
mainbus0 (root): SUNW,Ultra-5_10
cpu0 at mainbus0: SUNW,UltraSPARC-IIi @ 360 MHz, version 0 FPU
cpu0: physical 4K instruction (32 b/l), 4K data (32 b/l), 2048K external (64 b/l) 
psycho0 at mainbus0 addr 0xfffc4000
sabre: bus range 0 to 2; simba b, PCI bus 1; simba a, PCI bus 2
DVMA map: c0002000 to ffffe000
pci0 at psycho0
pci0: i/o space, memory space enabled
Sun Microsystems product 0x2000 (miscellaneous prehistoric) at pci0 dev 0 function 0 not configured
simba0 at pci0 dev 1 function 0: Sun Microsystems Simba PCI bridge (rev. 0x13)
pci1 at simba0 bus 2
pci1: i/o space, memory space enabled
simba1 at pci0 dev 1 function 1: Sun Microsystems Simba PCI bridge (rev. 0x13)
pci2 at simba1 bus 1
pci2: i/o space, memory space enabled
ebus0 at pci2 dev 1 function 0
ebus0: Sun Microsystems PCIO Ebus2, revision 0x01
auxio0 at ebus0 addr 726000-726003 addr 728000-728003 addr 72a000-72a003 addr 72c000-72c003 addr 72f000-72f003
power at ebus0 addr 724000-724003 ipl 37 not configured
SUNW,pll at ebus0 addr 504000-504002 not configured
se at ebus0 addr 400000-40007f ipl 43 not configured
com0 at ebus0 addr 3083f8-3083ff ipl 41
: ns16550a, working fifo
com1 at ebus0 addr 3062f8-3062ff ipl 42
: ns16550a, working fifo
lpt0 at ebus0 addr 3043bc-3043cb addr 30015c-30015d addr 700000-70000f ipl 34
fdthree at ebus0 addr 3023f0-3023f7 addr 706000-70600f addr 720000-720003 ipl 39 not configured
clock0 at ebus0 addr 0-1fff: mk48t59 (eeprom) hostid ffffffff80b55360
flashprom at ebus0 addr 0-fffff not configured
SUNW,CS4231 at ebus0 addr 200000-2000ff addr 702000-70200f addr 704000-70400f addr 722000-722003 ipl 35 ipl 36 not configured
hme0 at pci2 dev 1 function 1: address 08:00:20:b5:53:60
nsphy0 at hme0 phy 1: DP83840 10/100 media interface, rev. 1
nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
hme0: using vector 33 for interrupt
ATI Technologies Mach64 B (VGA display, revision 0x5c) at pci2 dev 2 function 0 not configured
pciide0 at pci2 dev 3 function 0: CMD Technology PCI0646 (rev. 0x03)
pciide0: bus-master DMA support present
pciide0: primary channel configured to native-PCI mode
pciide0: using vector 32 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: <ST38420A>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 8223 MB, 16708 cyl, 16 head, 63 sec, 512 bytes/sect x 16841664 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
pciide0: secondary channel configured to native-PCI mode
atapibus0 at pciide0 channel 1
cd0 at atapibus0 drive 0: <CRD-8322B, 1998/09/24, 1.05> type 5 cdrom removable
cd0: drive supports PIO mode 4, DMA mode 2
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
pcons0 at mainbus0
No counter-timer -- using %tick at 360MHz as system clock.
Using tick -- intr in 3600000 cycles...done.
raidattach: Asked for 4 units
Kernelized RAIDframe activated
root device: