Subject: Re: IBM Network Station (ibmnws) users
To: Robert Swindells <rjs@fdy2.demon.co.uk>
From: helmut <hcossmann@online.de>
List: port-ibmnws
Date: 05/30/2006 22:58:45
Hi Robert,
I've moved to netbsd3.0, again deriving a config 'NFS' from GENERIC with
very few changes. I supposed that the pcmcia ethernet card (ne2k
compatible)
is "hiding" behind the unconfigured PCI-Cardbus bridge; the problem is
I've
no real idea how to configure it. I've seen some cbb config details
under
the evmppc and tried to copy the necessary files over to the ibmnws arch
but whether that'll lead somewhere I can't say yet.
best regards, helmut
#------------------------------------------------------------------------------
#/usr/src/sys/arch/ibmnws/conf/NFS (a tweaked copy of NFS):
# $NetBSD: GENERIC,v 1.11 2005/02/18 21:05:52 dsl Exp $
#
#
include "arch/ibmnws/conf/std.ibmnws"
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
#makeoptions COPTS="-Os -mmultiple" # -Os -mmultiple to reduce size.
# Console settings
options CONSOLE="\"com\""
options CONSOLE_SPEED=9600
options CONSOLE_ADDR=0x3f8
# Enable the hooks used for initializing the ram-disk.
#options MEMORY_DISK_HOOKS
#options MEMORY_DISK_IS_ROOT # Force root on ram-disk
#options MEMORY_DISK_ROOT_SIZE=4096 # 2 Megabytes
maxusers 8
#options DDB
# Compatibility options
#options COMPAT_13 # NetBSD 1.3,
#options COMPAT_14 # NetBSD 1.4,
#options COMPAT_16 # NetBSD 1.6,
#options COMPAT_43 # and 4.3BSD
options COMPAT_BSDPTY # /dev/[pt]ty?? ptys.
# File systems
file-system FFS # UFS
#file-system EXT2FS # second extended file system (linux)
file-system MFS # memory file system
file-system NFS # Network File System client
#file-system CD9660 # ISO 9660 + Rock Ridge file system
#file-system MSDOSFS # MS-DOS file system
# File system options
#options VNODE_OP_NOINLINE # Save space by not inlining vnode op calls
#options FFS_EI # FFS Endian Independant support
#options FFS_NO_SNAPSHOT # ffs snapshots
#options EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
# immutable) behave as system flags.
#options USERCONF # userconf(4) support
#options PIPE_SOCKETPAIR # smaller, but slower pipe(2)
options SYSCTL_INCLUDE_DESCR # Include sysctl descriptions in kernel
# Networking options
options INET # IP + ICMP + TCP + UDP
#options ALTQ # Manipulate network interfaces' output queues
#options ALTQ_BLUE # Stochastic Fair Blue
#options ALTQ_CBQ # Class-Based Queueing
#options ALTQ_CDNR # Diffserv Traffic Conditioner
#options ALTQ_FIFOQ # First-In First-Out Queue
#options ALTQ_FLOWVALVE # RED/flow-valve (red-penalty-box)
#options ALTQ_HFSC # Hierarchical Fair Service Curve
#options ALTQ_LOCALQ # Local queueing discipline
#options ALTQ_PRIQ # Priority Queueing
#options ALTQ_RED # Random Early Detection
#options ALTQ_RIO # RED with IN/OUT
#options ALTQ_WFQ # Weighted Fair Queueing
# options NFS_BOOT_BOOTPARAM
options NFS_BOOT_DHCP
#
# wscons options
#
# builtin terminal emulations
#options WSEMUL_VT100 # VT100 / VT220 emulation
# different kernel output - see dev/wscons/wsdisplayvar.h
#options WS_KERNEL_FG=WSCOL_GREEN
#options WS_KERNEL_BG=WSCOL_BLACK
# see dev/pckbc/wskbdmap_mfii.c for implemented layouts
#options PCKBD_LAYOUT="(KB_DE | KB_NODEAD)"
# allocate a number of virtual screens at autoconfiguration time
#options WSDISPLAY_DEFAULTSCREENS=4
# use a large software cursor that doesn't blink
#options PCDISPLAY_SOFTCURSOR
# Kernel root file system and dump configuration.
config netbsd root on ? type nfs
#
# Device configuration
#
mainbus0 at root
cpu0 at mainbus0
# Basic Bus Support
# PCI bus support
pci0 at mainbus0 bus ?
pci* at pchb? bus ?
options PCI_NETBSD_CONFIGURE
options PCIVERBOSE
# PCI bridges
pchb* at pci? dev ? function ? # PCI-Host bridges
pcib* at pci? dev ? function ? # PCI-ISA bridges
# ISA bus support
isa* at pcib? # ISA on PCI-ISA bridge
# PCMCIA bus support
pcmcia* at pcic? controller ? socket ?
# ISA PCMCIA controllers
pcic0 at isa? port 0x3e0 iomem 0xd0000 iosiz 0x10000
options PCIC_ISA_INTR_ALLOC_MASK=0x4a00 # free irq 9,11,14
options PCIC_ISA_ALLOC_IOBASE=0x0400
options PCIC_ISA_ALLOC_IOSIZE=0x0100
# ISA Plug-and-Play bus support
# isapnp0 at isa?
# on-board I/O for IBM Personal Power Series 830 IDE controller
# obio0 at mainbus0
# Console Devices
# wscons
# pckbc0 at isa? # pc keyboard controller
# pckbd* at pckbc? # PC keyboard
# pms* at pckbc? # PS/2 mouse for wsmouse
# vga* at pci?
# wsdisplay* at vga? console ?
# wskbd* at pckbd? console ?
# wsmouse* at pms? mux 0
# pcppi0 at isa? # PC prog. periph. interface
# isabeep0 at pcppi? # "keyboard" beep
# mcclock0 at isa? port 0x70 # mc146818 and compatible
# Serial Devices
# ISA serial interfaces
com0 at isa? port 0x3f8 irq 4 # standard PC serial ports
com1 at isa? port 0x2f8 irq 3
# Parallel Printer Interfaces
# ISA parallel printer interfaces
#lpt0 at isa? port 0x378 irq 7 # standard PC parallel ports
# SCSI Controllers and Devices
# PCI SCSI controllers
# adw* at pci? dev ? function ? # AdvanSys 9x0UW[D], 3940U[2,3]W SCSI
# ahc* at pci? dev ? function ? # Adaptec [23]94x, aic78x0 SCSI
# iha* at pci? dev ? function ? # Initio INIC-940/950 SCSI
# pcscp* at pci? dev ? function ? # AMD 53c974 PCscsi-PCI SCSI
# siop* at pci? dev ? function ? # Symbios 53c8xx SCSI
# PCMCIA SCSI controllers
# aic* at pcmcia? function ? # Adaptec APA-1460 SCSI
# SCSI bus support
# scsibus* at adw?
# scsibus* at ahc?
# scsibus* at aic?
# scsibus* at iha?
# scsibus* at pcscp?
# scsibus* at siop?
# SCSI devices
# sd* at scsibus? target ? lun ? # SCSI disk drives
# st* at scsibus? target ? lun ? # SCSI tape drives
# cd* at scsibus? target ? lun ? # SCSI CD-ROM drives
# IDE and related devices
# IBM Personal Power Series 830 IDE controller
# wdc0 at obio? port 0x1f0 irq 13
# wdc1 at obio? port 0x170 irq 13
# ISA Plug-and-Play IDE controllers
# wdc* at isapnp?
# PCMCIA IDE controllers
# wdc* at pcmcia? function ?
# IDE drives
# Flags are used only with controllers that support DMA operations
# and mode settings (e.g. some pciide controllers)
# The lowest order four bits (rightmost digit) of the flags define the
PIO
# mode to use, the next set of four bits the DMA mode and the third set
the
# UltraDMA mode. For each set of four bits, the 3 lower bits define the
mode
# to use, and the last bit must be 1 for this setting to be used.
# For DMA and UDMA, 0xf (1111) means 'disable'.
# 0x0fac means 'use PIO mode 4, DMA mode 2, disable UltraDMA'.
# (0xc=1100, 0xa=1010, 0xf=1111)
# 0x0000 means "use whatever the drive claims to support".
# wd* at wdc? channel ? drive ? flags 0x0000
# ATAPI bus support
# atapibus* at wdc? channel ?
# ATAPI devices
# flags have the same meaning as for IDE drives.
# cd* at atapibus? drive ? flags 0x0000 # ATAPI CD-ROM drives
# sd* at atapibus? drive ? flags 0x0000 # ATAPI disk drives
# Miscellaneous mass storage devices
# ISA floppy
# fdc0 at isa? port 0x3f0 irq 6 drq 2 # standard PC floppy controllers
# fd* at fdc? drive ?
# Network Interfaces
# PCI network interfaces
pcn* at pci? dev ? function ? # AMD PCnet-PCI Ethernet
options PCN_NO_PROM # PROM not used for ethernet addr
# PCMCIA network interfaces
# ep* at pcmcia? function ? # 3Com 3c589 and 3c562 Ethernet
ne* at pcmcia? function ? # NE2000-compatible Ethernet
# MII/PHY support
#acphy* at mii? phy ? # DAltima AC101 and AMD
Am79c874 PHYs
#amhphy* at mii? phy ? # AMD 79c901 Ethernet PHYs
#bmtphy* at mii? phy ? # Broadcom BCM5201 and BCM5202
PHYs
#brgphy* at mii? phy ? # Broadcom BCM5400-family PHYs
#dmphy* at mii? phy ? # Davicom DM9101 PHYs
#exphy* at mii? phy ? # 3Com internal PHYs
#gentbi* at mii? phy ? # Generic Ten-Bit
1000BASE-[CLS]X PHYs
#glxtphy* at mii? phy ? # Level One LXT-1000 PHYs
#gphyter* at mii? phy ? # NS83861 Gig-E PHY
icsphy* at mii? phy ? # Integrated Circuit Systems
ICS189x
#inphy* at mii? phy ? # Intel 82555 PHYs
#iophy* at mii? phy ? # Intel 82553 PHYs
#lxtphy* at mii? phy ? # Level One LXT-970 PHYs
#makphy* at mii? phy ? # Marvell Semiconductor 88E1000
PHYs
#nsphy* at mii? phy ? # NS83840 PHYs
#nsphyter* at mii? phy ? # NS83843 PHYs
#pnaphy* at mii? phy ? # generic HomePNA PHYs
#qsphy* at mii? phy ? # Quality Semiconductor QS6612
PHYs
#sqphy* at mii? phy ? # Seeq 80220/80221/80223 PHYs
#tlphy* at mii? phy ? # ThunderLAN PHYs
#tqphy* at mii? phy ? # TDK Semiconductor PHYs
#ukphy* at mii? phy ? # generic unknown PHYs
#urlphy* at mii? phy ? # Realtek RTL8150L internal
PHYs
# Audio support
#paud0 at isa? port 0x830 irq 10 drq 0 drq2 1
#audio* at audiobus?
# Pseudo-Devices
# disk/mass storage pseudo-devices
pseudo-device md 1 # memory disk device (ramdisk)
# network pseudo-devices
pseudo-device bpfilter 8 # network tap
pseudo-device loop # network loopback
# miscellaneous pseudo-devices
pseudo-device pty # pseudo-terminals
pseudo-device rnd # /dev/random and in-kernel generator
#options RND_COM # use "com" randomness as well
pseudo-device ksyms
pseudo-device clockctl
#------------------------------------------------------------------------------
#boot/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.0 (NFS) #0: Wed May 24 01:06:39 CEST 2006
root@netbsd300:/usr/src/sys/arch/ibmnws/compile/NFS
Model: IBM NetworkStation 1000 (8362-XXX)
total memory = 65536 KB
avail memory = 60972 KB
mainbus0 (root)
cpu0 at mainbus0: 603ev (Revision 2.6), ID 0 (primary)
cpu0: HID0 90c000<DOZE,DPM,ICE,DCE>
pci0 at mainbus0 bus 0: indirect configuration space access
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 0 function 0
pchb0: IBM 82660 PowerPC to PCI Bridge and Memory Controller (rev. 0x02)
pchb0: L1: disabled L2: enabled (normal operation)
pchb0: MCP# assertion disabled TEA# assertion disabled
pchb0: PCI/ISA I/O mapping non-contiguous
pchb0: DRAM EDO (parity) SRAM sync
pchb0: Snoop mode 603
pcib0 at pci0 dev 1 function 0: IBM ISA Bridge w/PnP (rev. 0x03)
pcib0: PIRQ[0-3] not used
pcn0 at pci0 dev 2 function 0: AMD PCnet-PCI Ethernet
pcn0: Am79c971 PCnet-FAST rev 5, Ethernet address 00:00:a7:01:40:d1
pcn0: interrupting at irq 15
icsphy0 at pcn0 phy 0: ICS1890 10/100 media interface, rev. 3
icsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
Texas Instruments PCI1131 PCI-CardBus Bridge (CardBus bridge, revision
0x01) at pci0 dev 3 function 0 not configured
Texas Instruments PCI1131 PCI-CardBus Bridge (CardBus bridge, revision
0x01) at pci0 dev 3 function 1 not configured
S3 Trio64V2/DX (VGA display, revision 0x14) at pci0 dev 4 function 0 not
configured
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com0: console
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
biomask 0 netmask 8000 ttymask 8000
boot device: <unknown>
root on pcn0
nfs_boot: trying DHCP/BOOTP
nfs_boot: DHCP next-server: 192.168.1.1
nfs_boot: my_domain=home.de
nfs_boot: my_addr=192.168.1.2
nfs_boot: my_mask=255.255.255.0
nfs_boot: gateway=192.168.1.1
root on 192.168.1.1:/exports/ns1k300/root
WARNING: preposterous clock chip time
-- CHECK AND RESET THE DATE!
Tue May 30 18:44:13 UTC 2006
Checking for botched superblock upgrades: done.
Starting file system checks:
Setting tty flags.
Setting sysctl variables:
Starting network.
Hostname: ns1k
Configuring network interfaces:.
add net default: gateway 192.168.1.1
Building databases...
Mounting all filesystems...
Clearing /tmp.
Setting securelevel: kern.securelevel: 0 -> 1
swapctl: adding 192.168.1.1:/exports/ns1k300/swap as swap device at
priority 0
Starting local daemons:.
Starting sshd.
Starting inetd.
Tue May 30 18:44:32 UTC 2006
NetBSD/ibmnws (ns1k) (tty00)
login:
#------------------------------------------------------------------------------
On Sun, 2006-05-21 at 21:21 +0100, Robert Swindells wrote:
> helmut <hcossmann@online.de> wrote:
> >I'm running netbsd 2.0.2 on a ibmnws 1000 A53, root on NFS exported
> >from a suse93 linux; network performance is very bad compared to the
> >shark running NFS netbsd 2.0.2 off the same NFS server, although the
> >shark has a 10mb interface only.
>
> >I'd like to turn the ibmnws into a router/firewall but I can't seem
> >to get the IBM Ethernet II pcmcia card to work although the bios
> >reports the card correctly; the card is a ne2k compatible card I've
> >used with netbsd 1.6 and linux 2.2 on a x86 laptob long before so
> >I assume the problem is not with the card itself but with getting
> >the pcmcia controller configured and attached.
>
> What dmesg do you get with your kernel ?
>
> Robert Swindells
>