Subject: Re: More SPARCbook insanity
To: None <port-sparc@NetBSD.org>
From: Mike Parson <mparson@bl.org>
List: port-sparc
Date: 04/09/2005 22:10:57
On Fri, Apr 08, 2005 at 10:57:46AM -0400, Michael wrote:
> Hello,
> 
> > No go:
> > 
> > tadpole# disklabel -r /dev/wd0c
> > disklabel: /dev/wd0c: Device not configured
> > tadpole# ls -l /dev/wd0*
> > brw-r--r--  1 root  daemon  12, 0 Apr  8 03:00 /dev/wd0a
> > brw-r--r--  1 root  daemon  12, 1 Apr  8 03:00 /dev/wd0b
> > brw-r--r--  1 root  daemon  12, 2 Apr  8 03:00 /dev/wd0c
> > brw-r--r--  1 root  daemon  12, 3 Apr  8 03:01 /dev/wd0d
> > brw-r--r--  1 root  daemon  12, 4 Apr  8 03:01 /dev/wd0e
> > brw-r--r--  1 root  daemon  12, 5 Apr  8 03:01 /dev/wd0f
> > brw-r--r--  1 root  daemon  12, 6 Apr  8 03:01 /dev/wd0g
> > brw-r--r--  1 root  daemon  12, 7 Apr  8 03:01 /dev/wd0h
> 
> Found it. The major device number needs to be declared in sys/arch/sparc/conf/majors.sparc. The entry for wd was commented out as sparc64-only.
> Here's a new test kernel that should work with the above /dev/ entries:
> http://macallan.homeunix.org:6704/stuff/BSD/sparc/SPARCbook3GX_04_08.bz2
> Besides that it's a lot less noisy :)

Here we go.

When I manually bring the ep0 interface up, it links, but I can't ping
it from another host.

The rest is in the log below.

-- 
Michael Parson
mparson@bl.org

# disklabel -i /dev/wd0
partition>
P
3 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 c:    250368         0     unused      0     0        # (Cyl.      0 -    977)
partition> Q
tadpole# mount -t msdos /dev/wd0c /mnt
mount_msdos: /dev/wd0c on /mnt: Operation not supported by device
tadpole# ifconfig -a
le0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        address: 00:00:83:ae:20:37
        media: Ethernet autoselect (10base5)
        status: active
        inet 192.168.15.4 netmask 0xffffff00 broadcast 192.168.15.255
lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 33192
        inet 127.0.0.1 netmask 0xff000000
ep0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        address: 00:60:97:89:d4:19
        media: Ethernet 10baseT
        inet 192.168.15.150 netmask 0xffffff00 broadcast 192.168.15.255
tadpole# dmesg
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
    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 3.99.3 (MORGOTH) #203: Fri Apr  8 10:35:12 EDT 2005
        root@morgoth:/data/src/sys/arch/sparc/compile/MORGOTH
total memory = 65204 KB
avail memory = 61096 KB
bootpath: /iommu@0,10000000/sbus@0,10001000/ledma@4,8400010/le@4,8c00000
mainbus0 (root): Tadpole_S3GX: hostid 80ae2037
cpu0 at mainbus0: MB86904 @ 110 MHz, on-chip FPU
cpu0: 16K instruction (32 b/l), 8K data (16 b/l): cache enabled
obio0 at mainbus0
clock0 at obio0 slot 0 offset 0x202000: mk48t08
timer0 at obio0 slot 0 offset 0xd00000: delay constant 52
zs0 at obio0 slot 0 offset 0x100000 level 12 powered via auxio2 softpri 6
zstty0 at zs0 channel 0
zstty1 at zs0 channel 1
zs1 at obio0 slot 0 offset 0x0 level 12 softpri 6
kbd0 at zs1 channel 0: baud rate 1200 (console input)
wskbd0 at kbd0: console keyboard
ms0 at zs1 channel 1: baud rate 1200
wssunkbd_enable
open...
kbd_sun_open
init...
slavioconfig at obio0 slot 0 offset 0x800000 not configured
auxreg0 at obio0 slot 0 offset 0x900000
auxiotwo0 at obio0 slot 0 offset 0x910000
tctrl0 at obio0 slot 0 offset 0xd1000020 level 11
tctrl0: main power available
clk-ctrl at obio0 slot 0 offset 0x3c0000 not configured
com0 at obio0 slot 0 offset 0x3a0000 level 13: ns16550a, working fifo
iommu0 at mainbus0 addr 0x10000000: version 0x4/0x0, page-size 4096, range 64MB
sbus0 at iommu0: clock = 22 MHz
pnozz0 at sbus0 slot 0 offset 0x8000000 level 2: rev 4, 800x600, depth 8 (console)
wsdisplay0 at pnozz0 kbdmux 1: console (default, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
pnozz0: attached to /dev/fb
dma0 at sbus0 slot 4 offset 0x8400000: DMA rev 2
esp0 at dma0 slot 4 offset 0x8800000 level 4: ESP200, 40MHz, SCSI ID 7
scsibus0 at esp0: 8 targets, 8 luns per target
SUNW,bpp at sbus0 slot 4 offset 0xc800000 level 3 not configured
ledma0 at sbus0 slot 4 offset 0x8400010: DMA rev 2
le0 at ledma0 slot 4 offset 0x8c00000 level 6: address 00:00:83:ae:20:37
le0: 8 receive buffers, 2 transmit buffers
tslot0 at sbus0 slot 1 offset 0x2000000 level 11: 2 slots
pcmcia0 at tslot0 socket 0
pcmcia1 at tslot0 socket 1
dbri0 at sbus0 slot 2 offset 0x40 level 9dbri0: need to power up first....done
: rev s3
configuring interrupts...
mmcodec_init: PIO reads c
dbri0: onboard CS4215 detected
pipe setup: 4
pipe setup: 20
pipe setup: 6
pipe setup: 21
pipe setup: 17
pipe setup: 18
pipe setup: 19
dbri0: cs4215 found at offset 0
audio0 at dbri0: half duplex
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 3 lun 0: <IC25N020, ATCS04-0, 1.06> disk fixed
sd0: 19077 MB, 38760 cyl, 16 head, 63 sec, 512 bytes/sect x 39070080 sectors
sd0: sync (100.00ns offset 15), 8-bit (10.000MB/s) transfers
root on le0
nfs_boot: trying DHCP/BOOTP
nfs_boot: timeout...
nfs_boot: timeout...
nfs_boot: timeout...
nfs_boot: trying RARP (and RPC/bootparam)
nfs_boot: client_addr=192.168.15.4 (RARP from 192.168.15.2)
nfs_boot: server_addr=192.168.15.2
nfs_boot: hostname=tadpole
nfs_boot: timeout...
nfs_boot: timeout...
nfs_boot: timeout...
root on 192.168.15.2:/home/netboot
root file system type: nfs
ep0 at pcmcia0 function 0: <3Com Corporation, 3C589D, TP/BNC LAN Card Ver. 2a, 000002>
ep0: address 00:60:97:89:d4:19, 8KB byte-wide FIFO, 5:3 Rx:Tx split
ep0: 10baseT, 10base5, 10base2 (default 10baseT)
wdc0 at pcmcia1 function 0: <128MB,        , 5.0>
wdc0: i/o mapped mode
atabus0 at wdc0 channel 0
wd0 at atabus0 drive 0: <Hitachi ATA 6.1>
wd0: drive supports 1-sector PIO transfers, LBA addressing
wd0: 122 MB, 978 cyl, 8 head, 32 sec, 512 bytes/sect x 250368 sectors
wd0: no disk label
wd0: no disk label
wd0: no disk label
wd0: no disk label
wd0: no disk label
tadpole#