[Soekris] diskless booting - nic weirdness

Thomas Spreng spreng at socket.ch
Tue Aug 19 08:27:22 UTC 2003


Hi,

i have a problem concerning diskless booting via pxeboot/nfs with my
soekris net4521, running FreeBSD 4.8.

My setup is according to the m0n0bsd hackers (http://m0n0.ch/bsd/hack/)
guide unless the m0n0bsd root filesystem is under 
'/usr/minibsd' on the nfs server (but that's not the problem).

When i boot the soekris, everything goes fine until the network card
driver (sis) gets loaded. As soon as that happens the network connection
drops into a strange media type. Unfortunately i can't give more details
but the 100Mbps and the fullduplex led on the switch turns off (the link
led stays on). 
The booting continues then until it tries to mount the nfs root
filesystem which results in a 'nfs send error 65...'.

Actually i can't tell when the media type changes because the serial
terminal is lagging somehow but it is seems to happen when the sis driver
gets loaded (until then it's working fine in 100base/TX mode).
The hardware itself is working correctly as i can boot the m0n0wall/bsd
image from the cf-card without any problems.

does someone has an idea whats wrong?

cheers,
	tom

appending: dmesg, rc.conf & kernconf


dmesg:

reeBSD/i386 bootstrap loader, Revision 0.8
 toor at t30.internal.XXX.ch, Sat Aug  9 11:00:17 CEST 2003)
 xe_open: server addr: 192.168.0.25
 xe_open: server path: /usr/minibsd
 xe_open: gateway ip:  192.168.0.1 ght (C) 2000-2002 Soekris
Engineering.
 oading /boot/defaults/loader.conf
 kernel text=0x1d83f5 data=0x237a4+0x23408
syms=[0x4+0x2bbd0+0x4+0x32f97]
 it [Enter] to boot immediately, or any other key for command prompt.
 ooting [kernel]...                      CPU 80486 133 Mhz
Copyright (c) 1992-2003 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
PXE-M00:The Regents of the University of California. All rights
reserved.
FreeBSD 4.8-RELEASE #1: Mon Aug 11 15:02:46 CEST 2003
    toor at t30.internal.XXX.ch:/usr/src/sys/compile/M0N0BSD_NET45XX_IPSEC
Timecounter "i8254"  frequency 1189161 Hz--------------------------
CPU: AMD Enhanced Am486DX4/Am5x86 Write-Back (486-class CPU)00 00
  Origin = "AuthenticAMD"  Id = 0x494  Stepping = 400 A0001000 10
  Features=0x1<FPU>070000 0107 0210 10 3F 82 A0002000 020000A0 11
real memory  = 67108864 (65536K bytes) 3F 82 A0003000 020000A0 11
avail memory = 61755392 (60308K bytes) 3F 00 0000E101 A0004000 05
Preloaded elf kernel "kernel" at 0xc0380000. 0000E201 A0005000 09
md0: Malloc disk
Timecounter "ELAN"  frequency 8333333 Hzrl-P for entering Monitor.
npx0: <math processor> on motherboard
npx0: INT 16 interface.0 (build 082)
pcib0: <AMD Elan SC520 host to PCI bridge> on motherboard52)
pci0: <PCI bus> on pcib0bootix Technology GmbH, D-41466 Neuss.
hifn0 mem 0xa0001000-0xa0001fff,0xa0000000-0xa0000fff irq 10 at device
16.0 on pci0
hifn0: Hifn 7951, rev 0, 128KB sram, 193 sessions
pcic0: <TI PCI-1420 PCI-CardBus Bridge> mem 0xa0002000-0xa0002fff irq 11
at device 17.0 on pci0
pcic0: TI12XX PCI Config Reg: [pwr save][pci only]
pccard0: <PC Card 16-bit bus (classic)> on pcic0HCP IP: 192.168.0.1
pcic1: <TI PCI-1420 PCI-CardBus Bridge> mem 0xa0003000-0xa0003fff irq 11
at device 17.1 on pci0
pcic1: TI12XX PCI Config Reg: [pwr save][pci only]
pccard1: <PC Card 16-bit bus (classic)> on pcic1
sis0: <NatSemi DP83815 10/100BaseTX> port 0xe100-0xe1ff mem
0xa0004000-0xa0004fff irq 5 at device 18.0 on pci0
ocating the loader and the BTX
sis0: Ethernet address: 00:00:24:c0:e8:74
miibus0: <MII bus> on sis0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
sis1: <NatSemi DP83815 10/100BaseTX> port 0xe200-0xe2ff mem
0xa0005000-0xa0005fff irq 9 at device 19.0 on pci0
sis1: Ethernet address: 00:00:24:c0:e8:75
miibus1: <MII bus> on sis1
ukphy1: <Generic IEEE 802.3u media interface> on miibus1
ukphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isa0: <ISA bus> on motherboard
orm0: <Option ROM> at iomem 0xc8000-0xd1fff on isa0
ata0 at port 0x1f0-0x1f7,0x3f6 irq 14 on isa0
ata1 at port 0x170-0x177,0x376 irq 15 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A, console
Elan-mmcr driver: MMCR at 0xc5a5e000
IPsec: Initialized Security Association Processing.
Sending DHCP Discover packet from interface sis0 (00:00:24:c0:e8:74)
Sending DHCP Discover packet from interface sis1 (00:00:24:c0:e8:75)
Received DHCP Offer packet on sis0 from 192.168.0.25 (accepted) (no root
path)
Sending DHCP Request packet from interface sis0 (00:00:24:c0:e8:74)
Received DHCP Ack packet on sis0 from 192.168.0.25 (accepted) (got root
path)
DHCP timeout for interface sis1
sis0 at 192.168.0.100 server 192.168.0.25 boot file pxeboot
subnet mask 255.255.255.0 router 192.168.0.1 rootfs
192.168.0.25:/usr/minibsd
Adjusted interface sis0
Shutdown interface sis1
Mounting root from nfs:192.168.0.25:/usr/minibsd
missing device name
setrootbyname failed
NFS ROOT: 192.168.0.25:/usr/minibsd
Automatic boot in progress...
+++ mfs_mount of /var
Warning: Block size restiicts cylinders per group to 26.
+++ populate /var using /etc/mtree/BSD.var.dist
+++ create log files based on the contents of /etc/newsyslog.conf
+++ create lastlog
Warning: Block size restricts cylinders per group to 26.
63 blocks
Doing initial network setup: hostname.
ifconfig: ioctl (SIOCAIFADDR): File exists
nfs send error 65 for server 192.168.0.25:/usr/minibsd


rc.conf:

kern_securelevel_enable="NO"
nfs_reserved_port_only="YES"
sendmail_enable="NONE"
sshd_enable="YES"
usbd_enable="NO"
inetd_enable="NO"
portmap_enable="NO"
diskless_mount="/etc/rc.m0n0bsd"
update_motd="NO"
varsize="8192"
hostname="soekris.XXX.ch"
# pccard_enable="YES"
ifconfig_sis0="dhcp"
ifconfig_sis1="inet 192.168.0.100 netmask 255.255.255.0"
defaultrouter="192.168.0.1"
gateway_enable="YES"


kernconf:

machine         i386
cpu             I486_CPU
ident           M0N0BSD_NET45XX_IPSEC
maxusers        0

options         MATH_EMULATE            #Support for x87 emulation
options         INET                    #InterNETworking
options         INET6                   #IPv6 communications protocols
options         FAST_IPSEC              #new IPsec
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
# start --- netboot additions ---
options         BOOTP
options         BOOTP_NFSROOT
options         BOOTP_COMPAT
options         NFS                     #Network Filesystem Client
options         NFS_ROOT                #NFS usable as root device
# done --- netboot additions ---

options         MD_ROOT                 #MD is a potential root device
options         PROCFS                  #Process filesystem
options         COMPAT_43               #Compatible with BSD 4.3 [KEEP
THIS!]
options         SCSI_DELAY=15000        #Delay (in ms) before probing
SCSI
options         UCONSOLE                #Allow users to grab the console
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

options         CLK_USE_I8254_CALIBRATION
options         CPU_ELAN
options         HZ=250

device          isa
device          eisa
device          pci

# 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
options         ATA_STATIC_ID           #Static device numbering

# 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          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

# PCCARD (PCMCIA) support
device          card
device          pcic0   at isa? irq 0 port 0x3e0 iomem 0xd0000
device          pcic1   at isa? irq 0 port 0x3e2 iomem 0xd4000 disable

# 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          miibus          # MII bus support
device          sis             # Silicon Integrated Systems SiS 900/SiS
7016

# PRISM I IEEE 802.11b wireless NIC.
device          awi
# WaveLAN/IEEE 802.11 wireless NICs. Note: the WaveLAN/IEEE really
# exists only as a PCMCIA device, so there is no ISA attachment needed
# and resources will always be dynamically assigned by the pccard code.
device          wi
# Aironet 4500/4800 802.11 wireless NICs. Note: the declaration below
will
# work for PCMCIA and PCI cards, as well as ISA cards set to ISA PnP
# mode (the factory default). If you set the switches on your ISA
# card for a manually chosen I/O address and IRQ, you must specify
# those parameters here.
device          an

# 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

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

pseudo-device   crypto          # core crypto support
pseudo-device   cryptodev       # /dev/crypto for access to h/w

device          hifn            # Hifn 7951, 7781, etc.

# ipf firewall options
# options       IPDIVERT        #divert sockets
# options       IPFILTER        #ipfilter support
# options       IPFILTER_LOG    #ipfilter logging
# options       IPSTEALTH       #support for stealth forwarding
# options       RANDOM_IP_ID
# options       TCP_DROP_SYNFIN #drop TCP packets with SYN+FIN
# options       IPSEC           #IP security
# options       IPSEC_ESP       #IP security (crypto; define w/ IPSEC)
# ipfw firewall options
# options       IPFIREWALL
# options       IPFW2
# options       DUMMYNET
# options       IPFIREWALL_DEFAULT_TO_ACCEPT    #allow everything by
default




More information about the Soekris-tech mailing list