Subject: Re: network on Netra does not work
To: David Wetzel <dave@turbocat.de>
From: john heasley <heas@shrubbery.net>
List: port-sparc64
Date: 10/11/2002 17:12:53
my experience is that the ukphy does not work with the hme on the
netra.

hme0 at pci1 dev 1 function 1: Sun Happy Meal Ethernet, rev. 1
hme0: interrupting at ivec 3021
hme0: Ethernet address 08:00:20:d9:1c:68
OUI 0x0006b8 model 0x000c rev 1 at hme0 phy 0 not configured
OUI 0x0006b8 model 0x000c rev 1 at hme0 phy 1 not configured
hme1 at pci1 dev 3 function 1: Sun Happy Meal Ethernet, rev. 1
hme1: interrupting at ivec 301a
hme1: Ethernet address 08:00:20:d9:1c:68
OUI 0x0006b8 model 0x000c rev 1 at hme1 phy 0 not configured

# MII/PHY support
# XXX: only nsphy "tested"
#dmphy* at mii? phy ?                   # Davicom DM9101 PHYs
#exphy* at mii? phy ?                   # 3Com internal PHYs
#icsphy*        at mii? phy ?                   # Integrated Circuit Systems ICS
189x
#inphy* at mii? phy ?                   # Intel 82555 PHYs
#iophy* at mii? phy ?                   # Intel 82553 PHYs
#lxtphy*        at mii? phy ?                   # Level One LXT-970 PHYs
nsphy*  at mii? phy ?                   # NS83840 PHYs
nsphyter* at mii? phy ?                 # NS83843 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

0x0006b8 doesnt appear in miidevs, which i'm guess is why it fails to
match.  i havent tried to figure out which phy it has.

Sat, Oct 12, 2002 at 02:03:50AM +0200, David Wetzel:
> Hi Folks,
> 
> I managed to install sparc64 by formating the disk on my sparc5.
> After some disk-changes, I can boot NetBSD on the Netra:-)
> 
> But a server is a bit senseless without working network.
>  From the messages all looks ok for me. But I can not ping other hosts.
> 
> lom>poweron                             
> lom>                                    
> LOM event: power on                     
> .                                       
> Netra t1 (UltraSPARC-IIi 360MHz), No Keyboard
> OpenBoot 3.10.24 ME, 320 MB memory installed, Serial #11705139.
> Ethernet address 8:0:20:b2:9b:33, Host ID: 80b29b33.
>                                         
>                                         
>                                         
> Boot device: disk:a  File and args:                                   
> NetBSD IEEE 1275 Bootblock
> .>> NetBSD/sparc64 OpenFirmware Boot, Revision 1.5
> >> (autobuild@cs20.apochromatic.org, Sun Sep  8 11:34:12 UTC 2002)
> loadfile: reading header
> elf64_exec: Booting /pci@1f,0/pci@1,1/scsi@2/disk@0,0:a/netbsd
> 4412224@0x1000000+139824@0x1800000+4054480@0x1822230 
> symbols @ 0xfea84300 74+329592+174878 start=0x1000000
> chain: calling OF_chain(800000, e478, 1000000, fffa3a80, 18)
> [ using 505320 bytes of netbsd ELF symbol table ]
> console is /pci@1f,0/pci@1,1/ebus@1/su@14,3803f8
> Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002
>     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.6 (GENERIC) #0: Sun Sep  8 11:55:46 UTC 2002
>     autobuild@cs20.apochromatic.org:/autobuilder/build/sparc64/OBJ/autobuilder/build/src/sys/Ctotal memory = 320 MB
> avail memory = 286 MB
> using 2060 buffers containing 16480 KB of memory
> bootpath: /pci@1f,0/pci@1,1/scsi@2,0/disk@0,0
> mainbus0 (root): SUNW,UltraSPARC-IIi-cEngine
> cpu0 at mainbus0: SUNW,UltraSPARC-IIi @ 360.010 MHz, version 0 FPU
> cpu0: physical 32K instruction (32 b/l), 16K data (32 b/l), 1024K external (64 b/l)
> psycho0 at mainbus0 addr 0xfffc0000
> SUNW,sabre: impl 0, version 0: ign 7c0 bus range 0 to 3; PCI bus 0
> DVMA map: c0000000 to e0000000
> IOTSB: 1804000 to 1884000
> pci0 at psycho0
> pci0: i/o space, memory space enabled
> ppb0 at pci0 dev 1 function 1: Sun Microsystems Simba PCI bridge (rev. 0x13)
> pci1 at ppb0 bus 1
> pci1: i/o space, memory space enabled
> ebus0 at pci1 dev 1 function 0
> ebus0: Sun Microsystems PCIO Ebus2, revision 0x01
> auxio0 at ebus0 addr 726000-726003, 728000-728003, 72a000-72a003, 72c000-72c003, 72f000-72f003power at ebus0 addr 724000-724003 ipl 37 not configured
> SUNW,pll at ebus0 addr 504000-504002 not configured
> com0 at ebus0 addr 3803f8-3803ff ipl 28: ns16550a, working fifo
> com0: console
> com1 at ebus0 addr 3602f8-3602ff ipl 20: ns16550a, working fifo
> lpt0 at ebus0 addr 340278-340287, 30015c-30015d, 700000-70000f ipl 34
> fdthree at ebus0 addr 3203f0-3203f7, 706000-70600f, 720000-720003 ipl 39 not configured
> clock0 at ebus0 addr 0-1fff: mk48t59: hostid 80b29b33
> flashprom at ebus0 addr 0-fffff not configured
> watchdog at ebus0 addr 200000-20003f ipl 4 not configured
> display7seg at ebus0 addr 200040-200040 not configured
> beeper at ebus0 addr 722000-722003 not configured
> flashprom at ebus0 addr 400000-5fffff not configured
> flashprom at ebus0 addr 800000-9fffff not configured
> i2c at ebus0 addr 600000-600003 ipl 40 not configured
> i2c at ebus0 addr 100000-100003 ipl 27 not configured
> SUNW,lom at ebus0 addr 400000-400063 not configured
> hme0 at pci1 dev 1 function 1: Sun Happy Meal Ethernet, rev. 1
> hme0: interrupting at ivec 3021
> hme0: Ethernet address 08:00:20:b2:9b:33
> ukphy0 at hme0 phy 0: Generic IEEE 802.3u media interface
> ukphy0: OUI 0x0006b8, model 0x000c, rev. 1
> ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
> ukphy1 at hme0 phy 1: Generic IEEE 802.3u media interface
> ukphy1: OUI 0x0006b8, model 0x000c, rev. 1
> ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
> siop0 at pci1 dev 2 function 0: Symbios Logic 53c875 (ultra-wide scsi)
> siop0: using on-board RAM
> siop0: interrupting at ivec 20
> scsibus0 at siop0: 16 targets, 8 luns per target
> hme1 at pci1 dev 3 function 1: Sun Happy Meal Ethernet, rev. 1
> hme1: interrupting at ivec 301a
> hme1: Ethernet address 08:00:20:b2:9b:33
> ukphy2 at hme1 phy 0: Generic IEEE 802.3u media interface
> ukphy2: OUI 0x0006b8, model 0x000c, rev. 1
> ukphy2: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
> ppb1 at pci0 dev 1 function 0: Sun Microsystems Simba PCI bridge (rev. 0x13)
> pci2 at ppb1 bus 2
> pci2: i/o space, memory space enabled
> ppb2 at pci2 dev 1 function 0: Digital Equipment DECchip 21150 PCI-PCI Bridge (rev. 0x04)
> pci3 at ppb2 bus 3
> pci3: i/o space, memory space enabled
> pciide0 at pci3 dev 14 function 0: CMD Technology PCI0646 (rev. 0x03)
> pciide0: bus-master DMA support present
> pciide0: primary channel configured to native-PCI mode
> pciide0: using ivec 1800 for native-PCI interrupt
> pciide0: secondary channel configured to native-PCI mode
> pciide0: disabling secondary channel (no drives)
> pcons at mainbus0 not configured
> No counter-timer -- using %tick at 360MHz as system clock.
> scsibus0: waiting 2 seconds for devices to settle...
> sd0 at scsibus0 target 0 lun 0: <FUJITSU, MAE3091L SUN9.0G, 0706> SCSI2 0/direct fixed
> sd0: 8637 MB, 4926 cyl, 27 head, 133 sec, 512 bytes/sect x 17689267 sectors
> sd0: sync (50.0ns offset 16), 16-bit (40.000MB/s) transfers, tagged queueing
> Kernelized RAIDframe activated
> root on sd0a dumps on sd0b
> root file system type: ffs
> Fri Oct 11 23:57:59 UTC 2002
> swapctl: adding /dev/sd0b as swap device at priority 0
> Starting file system checks:
> /dev/rsd0a: file system is clean; not checking
> Setting tty flags.
> Setting sysctl variables:
> Starting network.
> Hostname: atlantis.turbocat.de
> IPv6 mode: host
> Configuring network interfaces: hme0.
> add net default: gateway alice
> Adding interface aliases:
> Building databases...
> Starting syslogd.
> Checking for core dump...
> savecore: no core dump
> Mounting all filesystems...
> Clearing /tmp.
> Checking quotas: done.
> Starting lockd.
> rpc.lockd: unable to register (NLM_PROG, NLM_SM, udp)
> Setting securelevel: kern.securelevel: 0 -> 1
> Starting virecover.
> starting local daemons:.
> Updating motd.
> Starting inetd.
> Starting cron.
> Fri Oct 11 23:58:06 UTC 2002
> 
> NetBSD/sparc64 (atlantis.turbocat.de) (console)
> 
> login: root
> Password:
> Last login: Fri Oct 11 23:29:16 2002 on console
> Oct 11 23:58:32 atlantis login: ROOT LOGIN (root) ON console
> Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002
>         The NetBSD Foundation, Inc.  All rights reserved.
> Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
>         The Regents of the University of California.  All rights reserved.
> 
> NetBSD 1.6 (GENERIC) #0: Sun Sep 8 11:55:46 UTC 2002
> 
> Welcome to NetBSD!
> 
> Oct 11 23:58:32 atlantis login: ROOT LOGIN (root) ON console
> Terminal type is sun-ss5.
> We recommend creating a non-root account and using su(1) for root access.
> atlantis# ifconfig hme0
> hme0: flags=8a63<UP,BROADCAST,NOTRAILERS,RUNNING,ALLMULTI,SIMPLEX,MULTICAST> mtu 1500
>         address: 08:00:20:b2:9b:33
>         media: Ethernet autoselect (100baseTX full-duplex)
>         status: active
>         inet 10.1.0.7 netmask 0xffffff80 broadcast 10.1.0.127
>         inet6 fe80::a00:20ff:feb2:9b33%hme0 prefixlen 64 scopeid 0x1
> atlantis# ping alice
> PING alice (10.1.0.1): 48 data bytes
> ^C
> ----alice PING Statistics----
> 3 packets transmitted, 0 packets received, 100.0% packet loss
> 
> any ideas?
> 
> I used a DEC chip tlp card from a PC but had no luck also. 
> 
> Thanks! (sorry for the long mail)
> 
> -- 
>    _  _
>  _(_)(_)_  David Wetzel, Turbocat's Development,
> (_) __ (_) Buchhorster Strasse 23, D-16567 Muehlenbeck/Berlin, FRG,
>   _/  \_   Fax +49 33056 82835 Phone +49 33056 82834
>  (______)  http://www.turbocat.de/  dave@turbocat.de