I've been trying to set up a sparc64 machine this evening with two
drives: a 512MB CF card on an IDE adapter, and a 4GB IDE drive. The
boot disk is the CF card at wd0. I decided to put a small swap
partition on the 4GB drive, which is wd1. FAQ 14.5.2 said 'If you do
not wish to use swap on the boot disk, do not define a "b" partition.'
so I didn't:
-----
# disklabel wd0
# /dev/rwd0c:
type: ESDI
disk: ESDI/IDE disk
label: LEXAR ATA FLASH
flags: vendor
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 994
total sectors: 1001952
rpm: 3600
interleave: 1
boundstart: 0
boundend: 1001952
drivedata: 0
16 partitions:
# size offset fstype [fsize bsize cpg]
a: 1001952 0 4.2BSD 2048 16384 1
c: 1001952 0 unused
# disklabel wd1
# /dev/rwd1c:
type: ESDI
disk: ESDI/IDE disk
label: ST34313A
flags: vendor
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 15
sectors/cylinder: 945
cylinders: 8912
total sectors: 8421840
rpm: 3600
interleave: 1
boundstart: 0
boundend: 8421840
drivedata: 0
16 partitions:
# size offset fstype [fsize bsize cpg]
a: 7898310 0 4.2BSD 2048 16384 1
b: 523530 7898310 swap
c: 8421840 0 unused
-----
The swap partition I created at wd1b is correctly listed in /etc/fstab:
# cat /mnt/etc/fstab
/dev/wd1b none swap sw 0 0
/dev/wd0a / ffs rw 1 1
/dev/wd1a /usr ffs rw,nodev 1 2
But when I reboot the machine, the system hangs and the last line
printed in the output says the system is trying to use wd0b for swap.
Am I missing something, or have I stumbled onto a bug?
dmesg from the boot hang:
--------------------------------------
Rebooting with command: boot
Boot device: disk File and args:
OpenBSD IEEE 1275 Bootblock 1.3
..>> OpenBSD BOOT 1.3
Trying bsd...
Booting /p...@1f,0/p...@1,1/i...@3/d...@0,0:a/bsd
6372...@0x1000000+616@0x1613d98+190...@0x1800000+4004176@0x182e6b0
symbols @ 0xfef642c0 81+390912+244649 start=0x1000000
[ using 636360 bytes of bsd ELF symbol table ]
console is /p...@1f,0/p...@1,1/e...@1/s...@14,400000:b
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
Copyright (c) 1995-2010 OpenBSD. All rights reserved. http://www.OpenBSD.org
OpenBSD 4.7 (GENERIC) #258: Wed Mar 17 23:40:34 MDT 2010
[email protected]:/usr/src/sys/arch/sparc64/compile/GENERIC
real mem = 134217728 (128MB)
avail mem = 115802112 (110MB)
mainbus0 at root: Sun Ultra 5/10 UPA/PCI (UltraSPARC-IIi 360MHz)
cpu0 at mainbus0: SUNW,UltraSPARC-IIi (rev 9.1) @ 360 MHz
cpu0: physical 16K instruction (32 b/l), 16K data (32 b/l), 256K
external (64 b/l)
psycho0 at mainbus0 addr 0xfffc4000: SUNW,sabre, impl 0, version 0, ign 7c0
psycho0: bus range 0-2, PCI bus 0
psycho0: dvma map c0000000-dfffffff
pci0 at psycho0
ppb0 at pci0 dev 1 function 1 "Sun Simba PCI-PCI" rev 0x13
pci1 at ppb0 bus 1
ebus0 at pci1 dev 1 function 0 "Sun PCIO EBus2" rev 0x01
auxio0 at ebus0 addr 726000-726003, 728000-728003, 72a000-72a003,
72c000-72c003, 72f000-72f003
power0 at ebus0 addr 724000-724003 ivec 0x25
"SUNW,pll" at ebus0 addr 504000-504002 not configured
sab0 at ebus0 addr 400000-40007f ivec 0x2b: rev 3.2
sabtty0 at sab0 port 0
sabtty1 at sab0 port 1: console
comkbd0 at ebus0 addr 3083f8-3083ff ivec 0x29: no keyboard
comms0 at ebus0 addr 3062f8-3062ff ivec 0x2a
wsmouse0 at comms0 mux 0
lpt0 at ebus0 addr 3043bc-3043cb, 30015c-30015d, 700000-70000f ivec 0x22: polled
clock1 at ebus0 addr 0-1fff: mk48t59
"flashprom" at ebus0 addr 0-fffff not configured
audioce0 at ebus0 addr 200000-2000ff, 702000-70200f, 704000-70400f,
722000-722003 ivec 0x23 ivec 0x24: nvaddrs 0
audio0 at audioce0
hme0 at pci1 dev 1 function 1 "Sun HME" rev 0x01: ivec 0x7e1, address
08:00:20:d1:7e:f8
nsphy0 at hme0 phy 1: DP83840 10/100 PHY, rev. 1
machfb0 at pci1 dev 2 function 0 "ATI Mach64" rev 0x5c
machfb0: ATY,GT-C, 1152x900
wsdisplay0 at machfb0 mux 1
wsdisplay0: screen 0 added (std, sun emulation)
pciide0 at pci1 dev 3 function 0 "CMD Technology PCI0646" rev 0x03:
DMA, channel 0 configured to native-PCI, channel 1 configured to
native-PCI
pciide0: using ivec 0x7e0 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: <LEXAR ATA FLASH>
wd0: 4-sector PIO, LBA, 489MB, 1001952 sectors
wd1 at pciide0 channel 0 drive 1: <ST34313A>
wd1: 32-sector PIO, LBA, 4112MB, 8421840 sectors
wd0(pciide0:0:0): using PIO mode 4
wd1(pciide0:0:1): using PIO mode 4, DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <LG, CD-ROM CRD-8322B, 1.05> ATAPI
5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2
ppb1 at pci0 dev 1 function 0 "Sun Simba PCI-PCI" rev 0x13
pci2 at ppb1 bus 2
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
bootpath: /p...@1f,0/p...@1,1/i...@3,0/d...@0,0
root on wd0a swap on wd0b dump on wd0b
-----
dmesg from bsd.rd:
----------------------------
# dmesg
console is /p...@1f,0/p...@1,1/e...@1/s...@14,400000:b
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
Copyright (c) 1995-2010 OpenBSD. All rights reserved. http://www.OpenBSD.org
OpenBSD 4.7 (RAMDISK) #223: Thu Mar 18 00:20:18 MDT 2010
[email protected]:/usr/src/sys/arch/sparc64/compile/RAMDISK
real mem = 134217728 (128MB)
avail mem = 118939648 (113MB)
mainbus0 at root: Sun Ultra 5/10 UPA/PCI (UltraSPARC-IIi 360MHz)
cpu0 at mainbus0: SUNW,UltraSPARC-IIi (rev 9.1) @ 360 MHz
cpu0: physical 16K instruction (32 b/l), 16K data (32 b/l), 256K
external (64 b/l)
psycho0 at mainbus0 addr 0xfffc4000: SUNW,sabre, impl 0, version 0, ign 7c0
psycho0: bus range 0-2, PCI bus 0
psycho0: dvma map c0000000-dfffffff
pci0 at psycho0
ppb0 at pci0 dev 1 function 1 "Sun Simba PCI-PCI" rev 0x13
pci1 at ppb0 bus 1
ebus0 at pci1 dev 1 function 0 "Sun PCIO EBus2" rev 0x01
auxio0 at ebus0 addr 726000-726003, 728000-728003, 72a000-72a003,
72c000-72c003, 72f000-72f003
"power" at ebus0 addr 724000-724003 ivec 0x25 not configured
"SUNW,pll" at ebus0 addr 504000-504002 not configured
sab0 at ebus0 addr 400000-40007f ivec 0x2b: rev 3.2
sabtty0 at sab0 port 0
sabtty1 at sab0 port 1: console
comkbd0 at ebus0 addr 3083f8-3083ff ivec 0x29: no keyboard
com0 at ebus0 addr 3062f8-3062ff ivec 0x2a: mouse: ns16550a, 16 byte fifo
"ecpp" at ebus0 addr 3043bc-3043cb, 30015c-30015d, 700000-70000f ivec
0x22 not configured
clock1 at ebus0 addr 0-1fff: mk48t59
"flashprom" at ebus0 addr 0-fffff not configured
"SUNW,CS4231" at ebus0 addr 200000-2000ff, 702000-70200f,
704000-70400f, 722000-722003 ivec 0x23 ivec 0x24 not configured
hme0 at pci1 dev 1 function 1 "Sun HME" rev 0x01: ivec 0x7e1, address
08:00:20:d1:7e:f8
nsphy0 at hme0 phy 1: DP83840 10/100 PHY, rev. 1
machfb0 at pci1 dev 2 function 0 "ATI Mach64" rev 0x5c
machfb0: ATY,GT-C, 1152x900
wsdisplay0 at machfb0
wsdisplay0: screen 0 added (std, sun emulation)
pciide0 at pci1 dev 3 function 0 "CMD Technology PCI0646" rev 0x03:
DMA, channel 0 configured to native-PCI, channel 1 configured to
native-PCI
pciide0: using ivec 0x7e0 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: <LEXAR ATA FLASH>
wd0: 4-sector PIO, LBA, 489MB, 1001952 sectors
wd1 at pciide0 channel 0 drive 1: <ST34313A>
wd1: 32-sector PIO, LBA, 4112MB, 8421840 sectors
wd0(pciide0:0:0): using PIO mode 4
wd1(pciide0:0:1): using PIO mode 4, DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <LG, CD-ROM CRD-8322B, 1.05> ATAPI
5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2
ppb1 at pci0 dev 1 function 0 "Sun Simba PCI-PCI" rev 0x13
pci2 at ppb1 bus 2
rd0: fixed, 6144 blocks
softraid0 at root
bootpath: /p...@1f,0/p...@1,1/i...@3,0/d...@0,0
root on rd0a swap on rd0b dump on rd0b
--
Nathan Sandver <[email protected]>