From owner-freebsd-embedded@FreeBSD.ORG Tue Oct 5 20:03:56 2010 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6A2C4106564A for ; Tue, 5 Oct 2010 20:03:56 +0000 (UTC) (envelope-from sven@hazejager.nl) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 1127A8FC0C for ; Tue, 5 Oct 2010 20:03:55 +0000 (UTC) Received: by wyb29 with SMTP id 29so6180473wyb.13 for ; Tue, 05 Oct 2010 13:03:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.227.138.141 with SMTP id a13mr9352998wbu.208.1286307599447; Tue, 05 Oct 2010 12:39:59 -0700 (PDT) Received: by 10.227.128.207 with HTTP; Tue, 5 Oct 2010 12:39:59 -0700 (PDT) X-Originating-IP: [83.98.246.247] Date: Tue, 5 Oct 2010 21:39:59 +0200 Message-ID: From: Sven Hazejager To: freebsd-embedded@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: ath0 bpf errors nanobsd 8.1-p1 on Alix X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Oct 2010 20:03:56 -0000 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 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