From owner-freebsd-embedded@FreeBSD.ORG Thu Jul 10 04:02:36 2014 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C2991DB3; Thu, 10 Jul 2014 04:02:36 +0000 (UTC) Received: from zibbi.meraka.csir.co.za (zibbi.meraka.csir.co.za [146.64.24.58]) by mx1.freebsd.org (Postfix) with ESMTP id ED4C32C50; Thu, 10 Jul 2014 04:02:35 +0000 (UTC) Received: by zibbi.meraka.csir.co.za (Postfix, from userid 3973) id 8E9E6B842; Thu, 10 Jul 2014 06:02:27 +0200 (SAST) Date: Thu, 10 Jul 2014 06:02:27 +0200 From: John Hay To: Adrian Chadd Subject: Re: CAMBRIA and more than one atheros card Message-ID: <20140710040227.GA73872@zibbi.meraka.csir.co.za> References: <1404753166.65432.10.camel@revolution.hippie.lan> <20140707182814.GA75629@zibbi.meraka.csir.co.za> <20140707193252.GA79553@zibbi.meraka.csir.co.za> <20140708165438.GA83704@zibbi.meraka.csir.co.za> <20140709044612.GA51378@zibbi.meraka.csir.co.za> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140709044612.GA51378@zibbi.meraka.csir.co.za> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: "freebsd-wireless@freebsd.org" , "freebsd-embedded@freebsd.org" , Ian Lepore X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jul 2014 04:02:37 -0000 On Wed, Jul 09, 2014 at 06:46:12AM +0200, John Hay wrote: > Hi Guys, > > The problem is back / still there. I initially saw the problem during > boot, with the interface configs in rc.conf, but because it is so > mixed with the rest, I took it out and put it in the script, then > after multi-user boot was finished, I did a login and ran the script, > with the output I showed in the initial post. > > So I put the interface configs back into rc.conf and I'm seeing the > same problem, here is a cut during boot: > > ############### > Starting file system checks: > /dev/ad0s1a: FILE SYSTEM CLEAN; SKIPPING CHECKS > /dev/ad0s1a: clean, 93385 free (33 frags, 11669 blocks, 0.0% fragmentation) > Mounting local file systems:. > Writing entropy file:. > Setting hostname: tst-cambria-11. > wlan0: Ethernet address: 00:21:a4:35:70:42 > wlan1: Ethernet address: 00:21:a4:35:6c:96 > ath1: unable to start recv logic > wlan2: Ethernet address: 00:21:a4:32:38:c2 > ath2: unable to start recv logic > ############### > > Looking at the vmstat -z output the 256 Bucket fail is much higher than > if I let it boot to multiuser and then configured the interfaces. It > was in the 6000, while now it is much higher: > > Without wlan configs in rc.conf, but configured afterwards: > 16 Bucket: 64, 0, 15, 300, 3139, 16, 0 > 256 Bucket: 1024, 0, 31, 1, 592,6062, 0 > vmem btag: 28, 0, 4496, 256, 4496, 32, 0 > > With wlan configs in rc.conf: > 16 Bucket: 64, 0, 16, 299, 8611, 16, 0 > 256 Bucket: 1024, 0, 26, 6, 773,16928, 0 > vmem btag: 28, 0, 4405, 59, 4405, 30, 0 > > Both of them boot from a ro compact-flash with md /etc and /var, but > they are small 4.3M and 2.1M. I have hacked in the use of tmpfs, but > that did not make a difference. > I forgot to add my rc.conf. Maybe that will give a clue? ############## hostname="tst-cambria-11" wlans_ath0="wlan0" create_args_wlan0="wlanmode adhoc country ZA" ifconfig_wlan0_ipv6="inet6 auto_linklocal" wlans_ath1="wlan1" create_args_wlan1="wlanmode adhoc country ZA" ifconfig_wlan1_ipv6="inet6 auto_linklocal" wlans_ath2="wlan2" create_args_wlan2="wlanmode adhoc country ZA" ifconfig_wlan2_ipv6="inet6 auto_linklocal" ifconfig_npe0_ipv6="inet6 auto_linklocal" ifconfig_wlan0="-bgscan channel 140 ssid mesh bssid 02:8c:ca:fe:ca:00" ifconfig_wlan1="-bgscan channel 136 ssid mesh bssid 02:88:ca:fe:ca:00" ifconfig_wlan2="-bgscan channel 13 ssid hotspot bssid 02:0d:ca:fe:ca:00" ipv6_prefix_wlan0="fd35:ac5b:b116:10" ipv6_prefix_wlan1="fd35:ac5b:b116:10" ipv6_prefix_wlan2="fd35:ac5b:b116:38f4" ipv4_addrs_wlan2="10.56.244.1/24" ipv6_prefix_npe0="fd35:ac5b:b116:ee99" ipv4_addrs_npe0="10.238.153.1/24" varsize=5120 olsr_enable="NO" sendmail_enable="NO" sendmail_submit_enable="NO" sendmail_outbound_enable="NO" sendmail_msp_queue_enable="NO" devd_enable="NO" hostid_enable="NO" mixer_enable="NO" casperd_enable="NO" ######################## I checked booting with the above rc.conf that fails the second and third wlan, even if I then login and ifconfig destroy the wlans and run my script to configure them, they still fail. So why would the creation and configuration of the wlan interfaces work if it is not done during the boot, but after multi-user is reached? Regards John -- John Hay -- jhay@meraka.csir.co.za / jhay@meraka.org.za / jhay@FreeBSD.org