Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 02 Jan 2003 10:12:49 -0500 (EST)
From:      "J. Seth Henry" <jshenry@comcast.net>
To:        freebsd-questions@freebsd.org
Subject:   Problem with AMD AM79C978 (PCNet32/Home - HomeHPNA) and external PHY
Message-ID:  <20030102095717.G57482-100000@whitetower.gambrl01.md.comcast.net>

next in thread | raw e-mail | index | archive | help
I have a system with an onboard ethernet controller, the above mentioned
PCNet32/Home device. Instead of using the two onboard PHY's, there is an
external 10/100 PHY. Both are detected by the kernel, but in the wrong
order. As such, the pcn device fails because it can't find any MII PHY's,
and a few devices later, finds ukphy0

Here is the dmesg output:

root@whitetower.gambrl01.md.comcast.net:/export3/src/sys/compile/xterminal
Timecounter "i8254"  frequency 1193182 Hz
CPU: AMD-K6(tm) 3D processor (267.28-MHz 586-class CPU)
  Origin = "AuthenticAMD"  Id = 0x58c  Stepping = 12
  Features=0x8021bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,PGE,MMX>
  AMD Features=0x80000800<SYSCALL,3DNow!>
real memory  = 31457280 (30720K bytes)
avail memory = 27189248 (26552K bytes)
Preloaded elf kernel "kernel" at 0xc0383000.
K6-family MTRR support enabled (2 registers)
md0: Malloc disk
Using $PIR table, 7 entries at 0xc00fa040
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pcib1: <PCI to PCI bridge (vendor=1106 device=8501)> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <Trident model 8420 VGA-compatible display device> at 0.0 irq 10
pci0: <unknown card> (vendor=0x11c1, dev=0x0441) at 4.0 irq 7
pcn0: <AMD PCnet/Home HomePNA> port 0x1c00-0x1c1f mem
0x41200000-0x4120001f irq 9 at device 5.0 on pci0
pcn0: Ethernet address: 00:01:fa:ff:ac:57
pcn0: MII without any PHY!
device_probe_and_attach: pcn0 attach returned 6
isab0: <VIA 82C686 PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 82C686 ATA66 controller> port 0x1c60-0x1c6f at device 7.1 on
pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <VIA 83C572 USB controller> port 0x1c20-0x1c3f irq 11 at device 7.2
on pci0
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <VIA 83C572 USB controller> port 0x1c40-0x1c5f irq 11 at device 7.3
on pci0
usb1: <VIA 83C572 USB controller> on uhci1
usb1: USB revision 1.0
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
aue0: LINKSYS Inc. LINKSYS USB Adapter, rev 1.10/1.01, addr 2
aue0: Ethernet address: 00:04:5a:95:47:aa
miibus0: <MII bus> on aue0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pci0: <unknown card> (vendor=0x1106, dev=0x3057) at 7.4
pcm0: <VIA VT82C686A> port 0x1c7c-0x1c7f,0x1c78-0x1c7b,0x1400-0x14ff irq
10 at device 7.5 on pci0
chip1: <VIA 82C686 AC97 Modem> port 0x1800-0x18ff irq 10 at device 7.6 on
pci0
orm0: <Option ROMs> at iomem
0xc0000-0xcffff,0xe9000-0xebfff,0xec000-0xeffff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
ad0: 30MB <SanDisk SDP3B-32> [490/4/32] at ata0-master PIO1
ad2: 342MB <IBM-DMDM-10340> [695/16/63] at ata1-master PIO1
Mounting root from ufs:/dev/ad2s1a

And here is my kernel config:

machine         i386
cpu             I586_CPU
cpu             I686_CPU
ident           xterminal
maxusers        32
#makeoptions    DEBUG=-g                #Build kernel with gdb(1) debug
symbols

options         MATH_EMULATE            #Support for x87 emulation
options         INET                    #InterNETworking
options         FFS                     #Berkeley Fast Filesystem
options         FFS_ROOT                #FFS usable as root device [keep
this!]
options         SOFTUPDATES             #Enable FFS soft updates support
options         UFS_DIRHASH             #Improve performance on big
directories
options         MFS                     #Memory Filesystem
options         MD_ROOT                 #MD is a potential root device
options         NFS                     #Network Filesystem
options         NFS_ROOT                #NFS usable as root device, NFS
required
options         MSDOSFS                 #MSDOS Filesystem
options         PROCFS                  #Process filesystem
options         COMPAT_43               #Compatible with BSD 4.3 [KEEP
THIS!]
options         SCSI_DELAY=5000         #Delay (in ms) before probing SCSI
options         UCONSOLE                #Allow users to grab the console
options         USERCONFIG              #boot -c editor
options         VISUAL_USERCONFIG       #visual boot -c editor
options         KTRACE                  #ktrace(1) support
options         SYSVSHM                 #SYSV-style shared memory
options         SYSVMSG                 #SYSV-style message queues
options         SYSVSEM                 #SYSV-style semaphores
options         P1003_1B                #Posix P1003_1B real-time
extensions
options         _KPOSIX_PRIORITY_SCHEDULING
options         ICMP_BANDLIM            #Rate limit bad replies
options         KBD_INSTALL_CDEV        # install a CDEV entry in /dev

device          isa
#device         eisa
device          pci

# Floppy drive
device          fd0

# ATA and ATAPI devices
device          ata0    at isa? port IO_WD1 irq 14
device          ata1    at isa? port IO_WD2 irq 15
device          ata
device          atadisk                 # ATA disk drives
#device         atapicd
options         ATA_STATIC_ID           #Static device numbering

# SCSI devices
device          scbus
device          da
device          cd

# atkbdc0 controls both the keyboard and the PS/2 mouse
device          atkbdc0 at isa? port IO_KBD
device          atkbd0  at atkbdc? irq 1 flags 0x1
device          psm0    at atkbdc? irq 12

device          vga0    at isa?

# splash screen/screen saver
pseudo-device   splash

# syscons is the default console driver, resembling an SCO console
device          sc0     at isa? flags 0x100

# Floating point support - do not disable.
device          npx0    at nexus? port IO_NPX irq 13

# Power management support (see LINT for more options)
device          apm0    at nexus? disable flags 0x20 # Advanced Power
Management

# Serial (COM) ports
device          sio0    at isa? port IO_COM1 flags 0x10 irq 4
device          sio1    at isa? port IO_COM2 irq 3
device          sio2    at isa? disable port IO_COM3 irq 5
device          sio3    at isa? disable port IO_COM4 irq 9

# PCI Ethernet NICs that use the common MII bus controller code.
# NOTE: Be sure to keep the 'device miibus' line in order to use these
NICs!
device          miibus0         # MII bus support
device          miibus
device          xl              # 3Com 3c905c support
device          pcn             # AMD PCnet32/PCI support

# Pseudo devices - the number indicates how many units to allocate.
pseudo-device   loop            # Network loopback
pseudo-device   ether           # Ethernet support
#pseudo-device  sl      1       # Kernel SLIP
#pseudo-device  ppp     1       # Kernel PPP
pseudo-device   tun             # Packet tunnel.
pseudo-device   pty             # Pseudo-ttys (telnet etc)
pseudo-device   md              # Memory "disks"
#pseudo-device  gif             # IPv6 and IPv4 tunneling
#pseudo-device  faith   1       # IPv6-to-IPv4 relaying (translation)

# The `bpf' pseudo-device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
pseudo-device   bpf             #Berkeley packet filter

# USB support
device          uhci            # UHCI PCI->USB interface
device          ohci            # OHCI PCI->USB interface
device          usb             # USB Bus (required)
device          ugen            # Generic
device          uhid            # "Human Interface Devices"
device          ukbd            # Keyboard
device          ulpt            # Printer
device          umass           # Disks/Mass storage - Requires scbus and
da
device          ums             # Mouse
#device         uscanner        # Scanners
#device         urio            # Diamond Rio MP3 Player
# USB Ethernet, requires mii
device          aue             # ADMtek USB ethernet
device          cue             # CATC USB ethernet
device          kue             # Kawasaki LSI USB ethernet

#Sound Support
device          pcm

Currently, I connect to the system with a USB ethernet adapter. Any help
would be appreciated, but keep in mind that this is a single board
computer - and the resources are locked. The BIOS can only modify the ATA
controllers, boot options and POST level.

Thanks in advance,
Seth Henry


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030102095717.G57482-100000>