ath0 bpf errors nanobsd 8.1-p1 on Alix
Sven Hazejager
sven at hazejager.nl
Tue Oct 5 20:03:56 UTC 2010
All,
I'm having some challenging issues getting nanoBSD 8.1-p1 on an Alix
to work. It seems that ath0 and the BPF do not work together resulting
in dhcpd and hostapd failing to load. I'm sure I'm doing something
wrong here. Perhaps something regarding ath* statements in kernel
config. All is working fine on 7.3. Any suggestions?
Thanks,
Sven
Symptoms, boot output:
...
Starting Network: lo0 vr0 vr1 ath0.
...
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
ether 00:80:48:67:54:6c
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
...
Starting dhcpd.
Internet Systems Consortium DHCP Server V3.1.3
Copyright 2004-2009 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 0 leases to leases file.
Listening on BPF/vr0/00:0d:b9:19:aa:94/192.168.0/24
Sending on BPF/vr0/00:0d:b9:19:aa:94/192.168.0/24
Oct 4 21:06:12 algol dhcpd: ath0: not foundath0: not found
/etc/rc: WARNING: failed to start dhcpd
...
Starting hostapd.
Configuration file: /etc/hostapd.conf
pcap_open_live:
ifname='ath0'
bsd driver initialization failed.
rmdir[ctrl_interface]: No such file or directory
/etc/rc: WARNING: failed to start hostapd
...
Kernel config:
cpu I586_CPU
cpu I686_CPU # For testing
ident ALIX
options SCHED_ULE # ULE scheduler
options PREEMPTION # Enable kernel thread preemption
options INET # InterNETworking
options INET6 # IPv6 communications protocols
#options SCTP # Stream Control Transmission Protocol
options FFS # Berkeley Fast Filesystem
options SOFTUPDATES # Enable FFS soft updates support
#options UFS_ACL # Support for access control lists
options UFS_DIRHASH # Improve performance on big directories
#options UFS_GJOURNAL # Enable gjournal-based UFS journaling
#options MD_ROOT # MD is a potential root device
options PROCFS # Process filesystem (requires PSEUDOFS)
options PSEUDOFS # Pseudo-filesystem framework
options GEOM_PART_GPT # GUID Partition Tables.
options GEOM_LABEL # Provides labelization
options COMPAT_43TTY # BSD 4.3 TTY compat [KEEP THIS!]
#options COMPAT_FREEBSD4 # Compatible with FreeBSD4
#options COMPAT_FREEBSD5 # Compatible with FreeBSD5
#options COMPAT_FREEBSD6 # Compatible with FreeBSD6
#options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI
#options KTRACE # ktrace(1) support
options STACK # stack(9) support
options SYSVSHM # SYSV-style shared memory
options SYSVMSG # SYSV-style message queues
options SYSVSEM # SYSV-style semaphores
options P1003_1B_SEMAPHORES # POSIX-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time
extensions
options KBD_INSTALL_CDEV # install a CDEV entry in /dev
#options AUDIT # Security event auditing
#options KDTRACE_HOOKS # Kernel DTrace hooks
options PRINTF_BUFR_SIZE=128 # Prevent printf output being
interspersed.
options FLOWTABLE # per-cpu routing cache
# ALIX specific
options CPU_GEODE
options CPU_SOEKRIS
options NO_F00F_HACK
device crypto
device glxsb
# Bus support.
device pci
# ATA and ATAPI devices
device ata
device atadisk # ATA disk drives
options ATA_STATIC_ID # Static device numbering
# SCSI peripherals
device scbus # SCSI bus (required for SCSI)
device da # Direct Access (disks)
# syscons is the default console driver, resembling an SCO console
#device sc
# Serial (COM) ports
device uart # Generic UART driver
# 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 vr # VIA Rhine, Rhine II
# Wireless NIC cards
device wlan # 802.11 support
device wlan_wep # 802.11 WEP support
device wlan_ccmp # 802.11 CCMP support
device wlan_tkip # 802.11 TKIP support
device wlan_amrr # AMRR transmit rate control algorithm
device wlan_xauth
device ath # Atheros pci/cardbus NIC's
device ath_hal # Atheros HAL (Hardware Access Layer)
options AH_SUPPORT_AR5416 # enable AR5416 tx/rx descriptors
device ath_rate_sample # SampleRate tx rate control for ath
# Pseudo devices.
device loop # Network loopback
device random # Entropy device
device ether # Ethernet support
device tun # Packet tunnel.
device pty # Pseudo-ttys (telnet etc)
device md # Memory "disks"
device gif # IPv6 and IPv4 tunneling
#device firmware # firmware assist module
# 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
# USB support
device ohci # OHCI PCI->USB interface
device ehci # EHCI PCI->USB interface (USB 2.0)
device usb # USB Bus (required)
device umass # Disks/Mass storage - Requires scbus and da
device uftdi
device ucom
More information about the freebsd-embedded
mailing list