Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jul 2014 06:02:27 +0200
From:      John Hay <jhay@meraka.org.za>
To:        Adrian Chadd <adrian@freebsd.org>
Cc:        "freebsd-wireless@freebsd.org" <freebsd-wireless@freebsd.org>, "freebsd-embedded@freebsd.org" <freebsd-embedded@freebsd.org>, Ian Lepore <ian@freebsd.org>
Subject:   Re: CAMBRIA and more than one atheros card
Message-ID:  <20140710040227.GA73872@zibbi.meraka.csir.co.za>
In-Reply-To: <20140709044612.GA51378@zibbi.meraka.csir.co.za>
References:  <CAJ-VmompzxOYXQ0_bmGsRHH7dGahEEGRsv-OqPMgAdB2NVOaaw@mail.gmail.com> <1404753166.65432.10.camel@revolution.hippie.lan> <CAJ-Vmo=zY%2B6J24s3Ux5LR7UVaQ3N5=eXHfAG-cOxXWbhJoHCGA@mail.gmail.com> <20140707182814.GA75629@zibbi.meraka.csir.co.za> <CAJ-VmokGC6-DHQP1V9exEq-VPW-oN972uYSbZQDuq4KiPb1SeA@mail.gmail.com> <CALCpEUG1hCqHW8dKxSzPeaAJW5aevY_wHwWzoF%2Bfv9ypju-8wg@mail.gmail.com> <20140707193252.GA79553@zibbi.meraka.csir.co.za> <CAJ-VmonOuB89FjreKEjBPf_m03dv886k%2BDs_Eo=pigquLnJ%2B_w@mail.gmail.com> <20140708165438.GA83704@zibbi.meraka.csir.co.za> <20140709044612.GA51378@zibbi.meraka.csir.co.za>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140710040227.GA73872>