[Soekris] NET-4501, FreeBSD 6, and ports/sysutils/watchdog
Michael Proto
mike at jellydonut.org
Sat Jul 29 20:09:08 UTC 2006
Hello,
I'm trying to get the watchdog facility working with the Elan CPU
present in the 4501. I've installed the sysutils/watchdog port and have
CPU_ELAN and CPU_SOEKRIS in my kernel. When I try to enable the
watchdogd daemon via running /usr/local/bin/watchdogd, I see the
following in /var/log/messages (and echoed to my console):
Jul 29 15:56:05 marconi /usr/local/bin/watchdogd: Watchdog enabled
Jul 29 15:56:05 marconi /usr/local/bin/watchdogd: Failed to reset the
watchdog
Jul 29 15:56:37 marconi last message repeated 2 times
Jul 29 15:58:45 marconi last message repeated 8 times
I've verified that /dev/elan-mmcr exists on my host:
MiniBSD6:/ # ls -l /dev/elan-mmcr
crw------- 1 root wheel 0, 45 Jul 18 23:43 /dev/elan-mmcr
If I kill the watchdogd process, I see the following:
Message from syslogd at marconi at Sat Jul 29 16:01:25 2006 ...
marconi /usr/local/bin/watchdogd: Failed to switch off the watchdog:
Inappropriate ioctl for device
Obviously, since the watchdog doesn't appear to be working, a "kill -9"
doesn't reboot the host as would be expected. Anyone have an idea of
what might be the problem? Do I need "options CPU_ELAN_PPS" in my
kernel? Would the sysctl kern.securelevel=2 be the cause?
Thanks!
-Proto
My kernel config and /var/run/dmesg.boot below
KERNEL:
# $FreeBSD: src/sys/i386/conf/GENERIC,v 1.429.2.7.2.2 2006/05/01
00:15:12 scottl Exp $
machine i386
cpu I486_CPU
ident MINIBSD6_STABLE_20060619_2032
# To statically compile in device wiring instead of /boot/device.hints
#hints "GENERIC.hints" # Default places to look for
devices.
makeoptions DEBUG=-g # Build kernel with gdb(1) debug
symbols
makeoptions MODULES_OVERRIDE="hifn"
#options SCHED_ULE # ULE scheduler
options SCHED_4BSD # 4BSD scheduler
options PREEMPTION # Enable kernel thread preemption
options INET # InterNETworking
#options INET6 # IPv6 communications protocols
options FFS # Berkeley Fast Filesystem
options MD_ROOT # MD is a potential root device
options PROCFS # Process filesystem (requires
PSEUDOFS)
options PSEUDOFS # Pseudo-filesystem framework
#options COMPAT_43 # Compatible with BSD 4.3 [KEEP
THIS!]
options SYSVSHM # SYSV-style shared memory
options SYSVMSG # SYSV-style message queues
options SYSVSEM # SYSV-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time
extensions
#options KBD_INSTALL_CDEV # install a CDEV entry in /dev
options ADAPTIVE_GIANT # Giant mutex is adaptive.
# Bus support.
device isa
device pci
# ATA and ATAPI devices
device ata
device atadisk # ATA disk drives
options ATA_STATIC_ID # Static device numbering
# Floating point support - do not disable.
device npx
# PCCARD (PCMCIA) support
# PCMCIA and cardbus bridge support
#device cbb # cardbus (yenta) bridge
#device pccard # PC Card (16-bit) bus
#device cardbus # CardBus (32-bit) bus
# Serial (COM) ports
device sio # 8250, 16[45]50 based serial ports
# 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
device wlan # 802.11 support
device wi # WaveLAN/Intersil/Symbol 802.11
wireless NICs.
device ath
device ath_hal # Atheros HAL (includes binary component)
#device ath_rate_amrr # AMRR rate control for ath driver
#device ath_rate_onoe # Onoe rate control for ath driver
device ath_rate_sample # SampleRate rate control for the ath driver
# Pseudo devices.
device loop # Network loopback
device mem # Memory and kernel memory devices
device io # I/O device
device random # Entropy device
device ether # Ethernet support
device sl # Kernel SLIP
device ppp # Kernel PPP
device tun # Packet tunnel.
device pty # Pseudo-ttys (telnet etc)
device md # Memory "disks"
device gif # IPv6 and IPv4 tunneling
#device faith # IPv6-to-IPv4 relaying (translation)
# The `bpf' device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
# Note that 'bpf' is required for DHCP.
device bpf # Berkeley packet filter
device pf
device pflog
device pfsync
device wlan_wep #802.11 WEP support
device wlan_ccmp #802.11 CCMP support
device wlan_tkip #802.11 TKIP support
device wlan_xauth #802.11 external authenticator
support
device wlan_acl #802.11 MAC ACL support
device crypto
device cryptodev
device gre
device vlan
device if_bridge
options ROOTDEVNAME=\"ufs:ad0a\"
options CPU_ELAN
options CPU_SOEKRIS
options CLK_USE_I8254_CALIBRATION
#options MP_WATCHDOG
options NO_SWAPPING
options HZ=500
options DEVICE_POLLING
options ALTQ
options ALTQ_CBQ
options ALTQ_RED
options ALTQ_RIO
options ALTQ_HFSC
options ALTQ_CDNR
options ALTQ_PRIQ
options FAST_IPSEC
options IPSEC_FILTERGIF
options PPP_BSDCOMP
options PPP_DEFLATE
options ZERO_COPY_SOCKETS
options TCP_DROP_SYNFIN
options NETGRAPH # netgraph(4) system
#options NETGRAPH_DEBUG # enable extra debugging, this
options NETGRAPH_ASYNC
options NETGRAPH_BPF
options NETGRAPH_BRIDGE
options NETGRAPH_ETHER
options NETGRAPH_GIF
options NETGRAPH_GIF_DEMUX
options NETGRAPH_IFACE
options NETGRAPH_IP_INPUT
options NETGRAPH_KSOCKET
options NETGRAPH_L2TP
#options NETGRAPH_MPPC_COMPRESSION
options NETGRAPH_MPPC_ENCRYPTION
options NETGRAPH_NETFLOW
options NETGRAPH_ONE2MANY
options NETGRAPH_PPP
options NETGRAPH_PPPOE
options NETGRAPH_PPTPGRE
options NETGRAPH_SOCKET
options NETGRAPH_TCPMSS
options NETGRAPH_TEE
options NETGRAPH_UI
options NETGRAPH_VJC
## strings -n 3 /boot/kernel/kernel | sed -n 's/^___//p'
options INCLUDE_CONFIG_FILE
/var/run/dmesg.boot:
Copyright (c) 1992-2006 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 6.1-STABLE #0: Tue Jul 18 13:05:47 EDT 2006
root at marconi-dev.localnet:/usr/src/sys/i386/compile/MINIBSD6
WARNING: MPSAFE network stack disabled, expect reduced performance.
Timecounter "i8254" frequency 1189164 Hz quality 0
CPU: AMD Enhanced Am486DX4/Am5x86 Write-Back (486-class CPU)
Origin = "AuthenticAMD" Id = 0x494 Stepping = 4
Features=0x1<FPU>
real memory = 67108864 (64 MB)
avail memory = 60416000 (57 MB)
wlan: mac acl policy registered
ath_hal: 0.9.16.16 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
cpu0 on motherboard
sysctl machdep.i8254_freq=1189161 returns 0
Timecounter "ELAN" frequency 8333333 Hz quality 1000
pcib0: <AMD Elan SC520 host to PCI bridge> pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
ath0: <Atheros 5212> mem 0xa0000000-0xa000ffff irq 10 at device 16.0 on pci0
ath0: [GIANT-LOCKED]
ath0: Ethernet address: 00:02:6f:21:e6:6c
ath0: mac 5.9 phy 4.3 radio 3.6
sis0: <NatSemi DP8381[56] 10/100BaseTX> port 0xe000-0xe0ff mem
0xa0010000-0xa0010fff irq 11 at device 18.0 on pci0
sis0: Silicon Revision: DP83815D
miibus0: <MII bus> on sis0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
sis0: Ethernet address: 00:00:24:c1:6b:2c
sis0: [GIANT-LOCKED]
sis1: <NatSemi DP8381[56] 10/100BaseTX> port 0xe100-0xe1ff mem
0xa0011000-0xa0011fff irq 5 at device 19.0 on pci0
sis1: Silicon Revision: DP83815D
miibus1: <MII bus> on sis1
ukphy1: <Generic IEEE 802.3u media interface> on miibus1
ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
sis1: Ethernet address: 00:00:24:c1:6b:2d
sis1: [GIANT-LOCKED]
sis2: <NatSemi DP8381[56] 10/100BaseTX> port 0xe200-0xe2ff mem
0xa0012000-0xa0012fff irq 9 at device 20.0 on pci0
sis2: Silicon Revision: DP83815D
miibus2: <MII bus> on sis2
ukphy2: <Generic IEEE 802.3u media interface> on miibus2
ukphy2: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
sis2: Ethernet address: 00:00:24:c1:6b:2e
sis2: [GIANT-LOCKED]
isa0: <ISA bus> on motherboard
orm0: <ISA Option ROM> at iomem 0xc8000-0xd0fff on isa0
ata0 at port 0x1f0-0x1f7,0x3f6 irq 14 on isa0
ata1 at port 0x170-0x177,0x376 irq 15 on isa0
sio0 at port 0x3f8-0x3ff irq 4 flags 0x30 on isa0
sio0: type 16550A, console
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
Timecounters tick every 2.000 msec
Elan-mmcr driver: MMCR at 0xc5b4a000.
Elan-mmcr Soekris net45xx comBIOS ver. 1.28 20050527 Copyright (C) 2000-2005
Fast IPsec: Initialized Security Association Processing.
ad0: 31MB <CFA 4.0> at ata0-master PIO0
Trying to mount root from ufs:/dev/ad0a
bridge0: Ethernet address: ac:de:48:79:9a:3a
sis2: Applying short cable fix (reg=f4)
sis2: Applying short cable fix (reg=f5)
sis2: Applying short cable fix (reg=e8)
sis0: Applying short cable fix (reg=f5)
sis1: Applying short cable fix (reg=f5)
sis2: Applying short cable fix (reg=e8)
sis1: Applying short cable fix (reg=e8)
More information about the Soekris-tech
mailing list