Subject: Weirdness during installation
To: port-sparc64@netbsd.org <port-sparc64@netbsd.org>
From: Andrea Franceschini <andrea@cs.tin.it>
List: port-sparc64
Date: 11/24/2000 05:48:08
HI (again)

Following the precious suggestion from Murray Stokely i installed the
bootstrap from solaris on NetBSD
partition.

AFter that the situation becomed very strange:(

1) Booting from the net ,the device wd0 works correctly: i can print
disklabel,mount the volume and so
	on without any problems
2) Booting from th disk , the OS boots ,the kernel is loaded but when it
is going to mount root-filesystem wd0a ,the same file system that
worked  before, i got a tremendous rate of error like :

pciide0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
wd0c: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
pciide0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
pciide0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
pciide0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
pciide0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
wd0c: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0)
wd0: disk label read error
pciide0:0:0: lost interrupt
        type: ata tc_bcount: 2048 tc_skip: 0
pciide0:0:0: lost interrupt
        type: ata tc_bcount: 2048 tc_skip: 0
pciide0:0:0: lost interrupt
        type: ata tc_bcount: 2048 tc_skip: 0
pciide0:0:0: lost interrupt
        type: ata tc_bcount: 2048 tc_skip: 0
wd0c: device timeout reading fsbn 64 of 64-67 (wd0 bn 64; cn 0 tn 3 sn
13), retr
ying

and finally:

no file system for wd0 (dev 0xc00)
cannot mount root, error = 79 (sometimes i got 6 as error code... ) 
root device (default wd0a):

or sometime:


a4actrap type 0x10: pc=f000a4actrap type 0x10: pc=f000a4actrap type
0x10: pc=f00
0a4actrap type 0x10: pc=f000a4actrap type 0x10: pc=f000a4actrap type
0x10: pc=f0
00a4ackdb breakpoint at 0x1008418
trap type 0x10: pc=f000a4actrap type 0x10: pc=f000a4actrap type 0x10:
pc=f000a4a
ctrap type 0x10: pc=f000a4actrap type 0x10: pc=f000a4actrap type 0x10:
pc=f000a4
actrap type 0x10: pc=f000a4actrap type 0x10: pc=f000a4actrap type 0x10:
pc=f000a
4actrap type 0x10: pc=f000a4actrap type 0x10: pc=f000a4actrap type 0x10:
pc=f000
a4actrap type 0x10: pc=f000a4actrap type 0x10: pc=f000a4actrap type
0x10: pc=f00
0a4actrap type 0x10: pc=f000a4actrap type 0x10: pc=f000a4actrap type
0x10: pc=f0
00a4ackdb breakpoint at 0x1008418
trap type 0x10: pc=f000a4actrap type 0x10: pc=f000a4actrap type 0x10:
pc=f000a4a
ctrap type 0x10: pc=f000a4actrap type 0x10: pc=f000a4actrap type 0x10:
pc=f000a4
actrap type 0x10: pc=f000a4actrap type 0x10: pc=f000a4actrap type 0x10:
pc=f000a
4actrap type 0x10: pc=f000a4actrap type 0x10: pc=f000a4actrap typ


3) when the kernel give-up and ask about alternate root,i give it a
nfs-filesystem,
   so it can continue the boot process to multi-user mode.
   But when i try to mount i got pretty  the same errors of above:

wd0c: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
Nov 24 03:49:19 marlboro /netbsd: pciide0:0:0: lost interrupt
Nov 24 03:49:19 marlboro /netbsd:       type: ata tc_bcount: 512
tc_skip: 0
Nov 24 03:49:19 marlboro /netbsd: wd0c: device timeout reading fsbn 0
(wd0 bn 0;
 cn 0 tn 0 sn 0), retrying
pciide0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
Nov 24 03:49:29 marlboro /netbsd: pciide0:0:0: lost interrupt
Nov 24 03:49:29 marlboro /netbsd:       type: ata tc_bcount: 512
tc_skip: 0
pciide0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
Nov 24 03:49:30 marlboro /netbsd: pciide0:0:0: lost interrupt
Nov 24 03:49:30 marlboro /netbsd:       type: ata tc_bcount: 512
tc_skip: 0
pciide0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
Nov 24 03:49:31 marlboro /netbsd: pciide0:0:0: lost interrupt
Nov 24 03:49:31 marlboro /netbsd:       type: ata tc_bcount: 512
tc_skip: 0
pciide0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
wdwd0c: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0),
retrying
Nov 24 03:49:19 marlboro /netbsd: pciide0:0:0: lost interrupt
Nov 24 03:49:19 marlboro /netbsd:       type: ata tc_bcount: 512
tc_skip: 0
Nov 24 03:49:19 marlboro /netbsd: wd0c: device timeout reading fsbn 0
(wd0 bn 0;
 cn 0 tn 0 sn 0), retrying
pciide0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
Nov 24 03:49:29 marlboro /netbsd: pciide0:0:0: lost interrupt
Nov 24 03:49:29 marlboro /netbsd:       type: ata tc_bcount: 512
tc_skip: 0
pciide0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
Nov 24 03:49:30 marlboro /netbsd: pciide0:0:0: lost interrupt
Nov 24 03:49:30 marlboro /netbsd:       type: ata tc_bcount: 512
tc_skip: 0
pciide0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
Nov 24 03:49:31 marlboro /netbsd: pciide0:0:0: lost interrupt
Nov 24 03:49:31 marlboro /netbsd:       type: ata tc_bcount: 512
tc_skip: 0
pciide0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
wd0wd0c: device timeout reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0),
retrying
Nov 24 03:49:19 marlboro /netbsd: pciide0:0:0: lost interrupt
Nov 24 03:49:19 marlboro /netbsd:       type: ata tc_bcount: 512
tc_skip: 0
Nov 24 03:49:19 marlboro /netbsd: wd0c: device timeout reading fsbn 0
(wd0 bn 0;
 cn 0 tn 0 sn 0), retrying
pciide0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
Nov 24 03:49:29 marlboro /netbsd: pciide0:0:0: lost interrupt
Nov 24 03:49:29 marlboro /netbsd:       type: ata tc_bcount: 512
tc_skip: 0
pciide0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
Nov 24 03:49:30 marlboro /netbsd: pciide0:0:0: lost interrupt
Nov 24 03:49:30 marlboro /netbsd:       type: ata tc_bcount: 512
tc_skip: 0
pciide0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
Nov 24 03:49:31 marlboro /netbsd: pciide0:0:0: lost interrupt
Nov 24 03:49:31 marlboro /netbsd:       type: ata tc_bcount: 512
tc_skip: 0
pciide0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0

and when i try to read disklabel i got:
..
...
label: fictitious
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 17662
total sectors: 17803440
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0
1 partitions:
#        size   offset     fstype   [fsize bsize   cpg]
  a: 536870911        0     unused        0     0         # (Cyl.    0 -
532610*
)
disklabel: boot block size 0
disklabel: super block size 0
disklabel: partition a: partition extends past end of unit
disklabel: warning, unused partition c: size 17803440 offset 0


5) Finally,booting again from net .... SURPRISE!!! now the disk respond
perfectly (disklabel,mount,file transfer).....


AAHHHAARGHHH!!!!!;)

Any Ideaa?!

The following are the dmesg from net boot and disk boot respectively:

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.5K (GENERIC) #2: Fri Nov 17 09:30:48 EST 2000
   
mrg@everglades.eterna.com.au:/orb/j/src/sys/arch/sparc64/compile/GENERIC
total memory = 128 MB
avail memory = 110 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 @ 270 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
kbd0 at com0attached 
com1 at ebus0 addr 3062f8-3062ff ipl 42
: ns16550a, working fifo
ms0 at com1
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: hostid c0ffee
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:ae:af:f2
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: <ST39140A>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 8693 MB, 17662 cyl, 16 head, 63 sec, 512 bytes/sect x 17803440
sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
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 270MHz as system clock.
Kernelized RAIDframe activated
root on hme0
nfs_boot: trying RARP (and RPC/bootparam)
nfs_boot: client_addr=172.17.0.1 (RARP from 172.17.0.2)
nfs_boot: server_addr=172.17.0.2
nfs_boot: hostname=alex
nfs_boot: gateway=172.17.0.2
root on 172.17.0.2:/disk2/myclient/root
system type: nfs

------------------------------------
------------------------------------

root file Rebooting with command: boot
disk                                     
Boot device: /pci@1f,0/pci@1,1/ide@3/disk@0,0  File and args: 
NetBSD IEEE 1275 Bootblock
..>> NetBSD/sparc64 OpenFirmware Boot, Revision 1.3
>> (mrg@everglades.eterna.com.au, Sun Nov 12 18:57:11 EST 2000)
devopen: getdisklabel sez no disk label
loadfile: reading header
elf64_exec: Booting /pci@1f,0/pci@1,1/ide@3/disk@0,0:a/netbsd
2909637@0x1000000+198232@0x1400000+526672@0x1430658 
symbols @ 0xfff00300 74+243552+131957 start=0x1000000
chain: calling OF_chain(800000, ed90, 1000000, fffa9a80, 18)
[ using 376360 bytes of netbsd ELF symbol table ]
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.5K (GENERIC) #2: Fri Nov 17 09:30:48 EST 2000
   
mrg@everglades.eterna.com.au:/orb/j/src/sys/arch/sparc64/compile/GENERIC
total memory = 128 MB
avail memory = 110 MB
using 832 buffers containing 6656 KB of memory
bootpath: /pci@1f,0/pci@1,1/ide@3,0/disk@0,0
mainbus0 (root): SUNW,Ultra-5_10
cpu0 at mainbus0: SUNW,UltraSPARC-IIi @ 270 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
kbd0 at com0attached 
com1 at ebus0 addr 3062f8-3062ff ipl 42
: ns16550a, working fifo
ms0 at com1
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: hostid c0ffee
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:ae:af:f2
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: <ST39140A>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 8693 MB, 17662 cyl, 16 head, 63 sec, 512 bytes/sect x 17803440
sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
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 270MHz as system clock.
Kernelized RAIDframe activated
root on wd0a dumps on wd0b
pciide0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0



Bye!