Subject: Re: SPARCbook and PCMCIA
To: None <port-sparc@NetBSD.org>
From: Mike Parson <mparson@bl.org>
List: port-sparc
Date: 07/02/2005 11:16:18
On Fri, Jul 01, 2005 at 02:53:54PM -0400, Michael wrote:
> Hello,
> 
> a new testkernel is available here:
> ftp://ftp.netbsd.org/pub/NetBSD/misc/macallan/sparc/SPARCbook3GX_07_01.bz2

Grabbed it.

uname -a

NetBSD  3.99.7 NetBSD 3.99.7 (MORGOTH) #9: Fri Jul  1 14:34:11 EDT 2005  ml@Inishowen:/stuff/build/obj_sparc/sys/arch/sparc/compile/MORGOTH sparc

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.7 (MORGOTH) #9: Fri Jul  1 14:34:11 EDT 2005
	ml@Inishowen:/stuff/build/obj_sparc/sys/arch/sparc/compile/MORGOTH
total memory = 65204 KB
avail memory = 61240 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
zstty2 at zs1 channel 0 (console input)
kbd0 at zstty2 (console input)
zstty3 at zs1 channel 1
ms0 at zstty3
wsmouse0 at ms0 mux 0
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
clkctrl0 at obio0 slot 0 offset 0x3c0000
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 mem 200000 (console)
wsdisplay0 at pnozz0 kbdmux 1: console (default, vt100 emulation)
wsmux1: connecting to wsdisplay0
pnozz0: attached to /dev/fb0
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
wi0 at pcmcia1 function 0: <11Mbps, Wireless LAN PC Card, Version 01.02, >
wi0: 802.11 address 00:20:a5:00:00:08
wi0: using RF:PRISM2.5 MAC:ISL3873B(PCMCIA)
wi0: Intersil Firmware: Primary (1.1.0), Station (1.4.2)
SUNW,DBRIs3 at sbus0 slot 2 offset 0x40 level 9 not configured
wskbd0 at kbd0: console keyboard, using wsdisplay0
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: DHCP next-server: 192.168.15.2
nfs_boot: my_domain=bl
nfs_boot: my_addr=192.168.15.4
nfs_boot: my_mask=255.255.255.0
nfs_boot: gateway=192.168.15.1
root on gold.bl:/home/netboot
root file system type: nfs
wdc0 at pcmcia0 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

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
wi0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	ssid myssid
	powersave off
	address: 00:20:a5:00:00:08
	media: IEEE802.11 autoselect (DS2)
	status: no network
	inet 192.168.15.45 netmask 0xffffff00 broadcast 192.168.15.255
lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 33192
	inet 127.0.0.1 netmask 0xff000000

output of wiconfig wi0 -D

scanning ......
AP Information
ap[0]:
	ScanReason:			[ Inquiry request from host ]
	netname (SSID):			[ myssid ]
	BSSID:				[ 00:12:17:02:c3:7a ]
	Channel:			[ 3 ]
	Quality/Signal/Noise [signal]:	[ 38 / 38 / 0 ]
	                        [dBm]:	[ 38 / -111 / -149 ]
	BSS Beacon Interval [msec]:	[ 100 ]
	Capinfo:			[ ESS ]
	DataRate [Mbps]:		[ 2 ]

I've never played with wireless under *nix before, so the above is as
close as I've gotten.  The "status: no network" tells me I'm still
missing something. (the ssid *is* set to my net's ssid in the real
output).

I used the command line:

ifconfig wi0 192.168.15.45 netmask 255.255.255.0 ssid myssid 

to bring up the interface, what else might I be missing?

> changes:
> - fixed a bug that would occasionally panic the kernel when attaching
> the PCMCIA controller 
> - fixed a glitch that prevented the LCD from indicating a PCMCIA card
> when the card is present at boot time
> - added Xircom and modem drivers.
> - both keyboard and mouse attach to zstty now ( same code as sparc64 )

> The rest is as before - drivers for wi and IDEish cards, MSDOS
> filesystem, wscons with acceleration and virtual consoles, drivers for
> all officially supported sparcbook hardware, CPU power saving, proper
> envsys- and powerd support.

I don't seem to have the /dev/rwd0 stuff, so I can't read the disklabel!
(oops) Got the major/minors for that?

> No news on X though - I didn't get the graphics chip to switch to 16 or
> 32bit colour yet, the SPARCbook 3 Technical Manual is incomplete and at
> times misleading.

You'll figure it out, I've got faith. =)

> have fun
> Michael



-- 
Michael Parson
mparson@bl.org