From owner-freebsd-wireless@freebsd.org Sun Oct 9 22:22:02 2016 Return-Path: Delivered-To: freebsd-wireless@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BECF8C0BB38; Sun, 9 Oct 2016 22:22:02 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-it0-x236.google.com (mail-it0-x236.google.com [IPv6:2607:f8b0:4001:c0b::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 81F10B81; Sun, 9 Oct 2016 22:22:02 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-it0-x236.google.com with SMTP id z65so54930320itc.0; Sun, 09 Oct 2016 15:22:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=B7EPTlsI4G18YWl8Gqv99gHK6oJWO1ja8qOG598UxMQ=; b=YQk2c3ruPWNpzkUWm3MD6WfGZTkIqNe0Co16TOEWq7RUXF/sgvfQxALWB9vCY5S3TH VT90T0M3vjHfNr/0qWhewry+5wnOJYLw/5eDLPUZ8MURYfIln1PayPKRAlJqZX6fOv9g cl/hOurwi/mvWq3C4ta3D6Dw3vWyh9S1vIShXwvbqpwYI0UggjspH5pmLJDj5FB7rZRw 6EXhbeuXTB/UpfbPv143QeoSy3Ype5WDH0FyjjjRxPXaBHllOjw7rJ7K+LP4d5wmGKI6 STQ2CqK20khyGG9WqhpDBhgifB7fHdSlt8MeeGTYxmSBXuQHOPd5VIXagqDGXcJY8VIU HUZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=B7EPTlsI4G18YWl8Gqv99gHK6oJWO1ja8qOG598UxMQ=; b=kG+ucCXXqnprW6RQGb6L0Yw66E5f5e/Owcrx1JZaHX3YlTLSIu3y8ONaJIdn7RCGt7 XcZARn+K1th+ipqOaUps3ekE6FTt6DSerY9TDsPT9owH5QxYN5KLgACAYWBw27ZaTuUA 6U8wYAwDGs9iQjq2HSkbIyh76pL0lMo1W+UMhxoYvcKbZNop2d5J/dwgEaop70cNNf9B mmqFx26z/Wd/FgUZDJxMdE32hwMkQdL0HlVEEZQZ46W5iWddwMs+n7iSj3NLJlaHpFGZ FlOtaYLfhSZ5o7I0y2j1VY18Wu7c8ak2PCyVeJD10F9kVXzfdzUpekszjk4S2po/91Hp pkCA== X-Gm-Message-State: AA6/9RkjlnMs5r4vfnT/8IIB7KLVG9nqHgrmu5NpBZTwvxaMS+TdwrsQ5ClsDO+nC401g72Zi0rDV+y36EeYRA== X-Received: by 10.36.228.195 with SMTP id o186mr7128882ith.39.1476051721818; Sun, 09 Oct 2016 15:22:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.141.129 with HTTP; Sun, 9 Oct 2016 15:22:00 -0700 (PDT) In-Reply-To: <13052a1c-db9b-6e08-eb1a-d75b93c67c33@ambient-md.com> References: <3684c340-3020-31f7-64f1-babf90be8565@ambient-md.com> <13052a1c-db9b-6e08-eb1a-d75b93c67c33@ambient-md.com> From: Adrian Chadd Date: Sun, 9 Oct 2016 15:22:00 -0700 Message-ID: Subject: Re: RPI2 AP To: Peter Garshtja , "freebsd-wireless@freebsd.org" Cc: "freebsd-arm@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Oct 2016 22:22:02 -0000 hiya, ok. We'll need some more debugging from the driver and net80211. Andriy? Any ideas? -a On 8 October 2016 at 08:11, Peter Garshtja wrote: > Good Morning Adrian, > > I added and rebooted RPI2, but the result is the same > > wlan_amrr_load="YES" to /boot/loader.conf > > ifconfig wlan0 list sta > ADDR AID CHAN RATE RSSI IDLE TXSEQ RXSEQ CAPS FLAG > 50:55:27:ff:dc:04 1 5 54M 20.5 0 2482 38240 EPS AQE RSN > WME > 00:13:ef:66:18:49 2 5 1M 14.0 0 7130 27104 EPS AQE RSN > WME > > After ~ 5 minutes all the stations were disconnected > > 10:43 # ifconfig wlan0 list sta > 10:43 # ifconfig wlan0 list sta > 10:43 # > > WLAN interface details > ------------------------------ > ifconfig wlan0 list caps > drivercaps=591c541 > cryptocaps=b > htcaps=6000c<> > ------------------------------ > > Kernel modules loaded > > Id Refs Address Size Name > 1 31 0xc0100000 9bfaec kernel > 2 1 0xc0ac0000 a168 wlan_amrr.ko > 3 7 0xc0acb000 59a18 wlan.ko > 4 1 0xc46d2000 11000 if_bridge.ko > 5 1 0xc46e3000 e000 bridgestp.ko > 6 1 0xc4731000 d000 if_vlan.ko > 7 1 0xc484c000 27000 if_urtwn.ko > 8 1 0xc4774000 b000 firmware.ko > 9 1 0xc46bf000 a000 pflog.ko > 10 1 0xc4b2c000 3a000 pf.ko > 11 1 0xc4e25000 9000 wlan_xauth.ko > 12 1 0xc4888000 a000 wlan_wep.ko > 13 1 0xc4ef9000 b000 wlan_tkip.ko > 14 1 0xc4f0c000 e000 wlan_ccmp.ko > > I have 2 different wifi dongles with the same chipset and the behavior is > the same. > > Also here is the dmesg after reboot > > Copyright (c) 1992-2016 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 is a registered trademark of The FreeBSD Foundation. > FreeBSD 11.0-RELEASE-p1 #0 r306544M: Fri Sep 30 18:26:52 EDT 2016 > ptg@rpi2:/root/crochet/work/obj/arm.armv6/usr/src/sys/RPI2 arm > FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM > 3.8.0) > VT: init without driver. > sema_sysinit > CPU: Cortex A7 rev 5 (Cortex-A core) > Supported features: ARM_ISA THUMB2 JAZELLE THUMBEE ARMv4 Security_Ext > WB enabled LABT branch prediction disabled > LoUU:2 LoC:3 LoUIS:2 > Cache level 1: > 32KB/64B 4-way data cache WB Read-Alloc Write-Alloc > 32KB/32B 2-way instruction cache Read-Alloc > Cache level 2: > 512KB/64B 8-way unified cache WB Read-Alloc Write-Alloc > real memory = 989851648 (943 MB) > avail memory = 955379712 (911 MB) > > FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs > random: entropy device external interface > kbd0 at kbdmux0 > ofwbus0: > simplebus0: mem 0x3f000000-0x3fffffff on > ofwbus0 > local_intc0: mem 0x40000000-0x400000ff on > simplebus0 > generic_timer0: on ofwbus0 > Timecounter "ARM MPCore Timecounter" frequency 19200000 Hz quality 1000 > Event timer "ARM MPCore Eventtimer" frequency 19200000 Hz quality 1000 > intc0: mem 0xb200-0xb3ff on simplebus0 > bcmwd0: mem 0x10001c-0x100027 on simplebus0 > gpio0: mem 0x200000-0x2000af on simplebus0 > gpio0: read-only pins: 46,48-53. > gpio0: reserved pins: 48-53. > gpiobus0: on gpio0 > gpioled0: at pin 35 on gpiobus0 > gpioled1: at pin 47 on gpiobus0 > gpioc0: on gpio0 > iichb0: mem 0x205000-0x20501f on simplebus0 > iicbus0: on iichb0 > iic0: on iicbus0 > iichb1: mem 0x804000-0x80401f on simplebus0 > iicbus1: on iichb1 > iic1: on iicbus1 > spi0: mem 0x204000-0x20401f on simplebus0 > spibus0: on spi0 > bcm_dma0: mem 0x7000-0x7fff,0xe05000-0xe05fff on > simplebus0 > mbox0: mem 0xb880-0xb8bf on simplebus0 > sdhci_bcm0: mem 0x300000-0x3000ff on > simplebus0 > mmc0: on sdhci_bcm0 > uart0: mem 0x201000-0x201fff on simplebus0 > uart0: console (115200,n,8,1) > vchiq0: mem 0xb800-0xb84f on simplebus0 > vchiq: local ver 8 (min 3), remote ver 8. > pcm0: on vchiq0 > bcm283x_dwcotg0: mem > 0x980000-0x99ffff on simplebus0 > usbus0 on bcm283x_dwcotg0 > cpulist0: on ofwbus0 > cpu0: on cpulist0 > bcm2835_cpufreq0: on cpu0 > cpu1: on cpulist0 > cpu2: on cpulist0 > cpu3: on cpulist0 > fb0: on ofwbus0 > fbd0 on fb0 > VT: initialize with new VT driver "fb". > fb0: 1680x1050(1680x1050@0,0) 24bpp > fb0: fbswap: 1, pitch 5040, base 0x3d384000, screen_size 5322240 > cryptosoft0: > Timecounters tick every 10.000 msec > usbus0: 480Mbps High Speed USB v2.0 > ugen0.1: at usbus0 > uhub0: on usbus0 > mmcsd0: 8GB at mmc0 > 41.6MHz/4bit/65535-block > bcm2835_cpufreq0: ARM 600MHz, Core 250MHz, SDRAM 400MHz, Turbo OFF > Release APs > Trying to mount root from ufs:/dev/mmcsd0s2a [rw,noatime]... > warning: no time-of-day clock registered, system time will not be set > accurately > uhub0: 1 port with 1 removable, self powered > ugen0.2: at usbus0 > uhub1: on > usbus0 > uhub1: MTT enabled > random: unblocking device. > uhub1: 5 ports with 4 removable, self powered > ugen0.3: at usbus0 > smsc0: on usbus0 > smsc0: chip 0xec00, rev. 0002 > miibus0: on smsc0 > ukphy0: PHY 1 on miibus0 > ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > ue0: on smsc0 > ue0: Ethernet address: b8:27:eb:f2:8e:4e > ugen0.4: at usbus0 > bridge0: Ethernet address: 02:fd:a6:82:73:00 > ue0: changing name to 'mgmt' > smsc0: chip 0xec00, rev. 0002 > mgmt: link state changed to DOWN > vlan0: changing name to 'wan' > vlan1: changing name to 'lan' > mgmt: link state changed to UP > lan: link state changed to UP > wan: link state changed to UP > urtwn0: on usbus0 > urtwn0: MAC/BB RTL8188EU, RF 6052 1T1R > urtwn0: enabling 11n > wlan0: Ethernet address: 00:c6:d2:21:c9:34 > wlan0: promiscuous mode enabled > bridge0: link state changed to UP > pflog0: promiscuous mode enabled > mgmt: promiscuous mode enabled > lan: promiscuous mode enabled > > > Thanks, > Peter > > > On 10/8/2016 12:51 AM, Adrian Chadd wrote: > > heh, try adding wlan_amrr_load="YES" to /boot/loader.conf and rebooting? > > > -a > > > On 7 October 2016 at 18:59, Peter Garshtja > wrote: > > Greetings, > > Here is uname - 11.0-RELEASE-p1 FreeBSD 11.0-RELEASE-p1 #0 r306544M > > > Below is dmesg > > > Copyright (c) 1992-2016 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 is a registered trademark of The FreeBSD Foundation. > FreeBSD 11.0-RELEASE-p1 #0 r306544M: Fri Sep 30 18:26:52 EDT 2016 > ptg@rpi2:/root/crochet/work/obj/arm.armv6/usr/src/sys/RPI2 arm > FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM > 3.8.0) > VT: init without driver. > sema_sysinit > CPU: Cortex A7 rev 5 (Cortex-A core) > Supported features: ARM_ISA THUMB2 JAZELLE THUMBEE ARMv4 Security_Ext > WB enabled LABT branch prediction disabled > LoUU:2 LoC:3 LoUIS:2 > Cache level 1: > 32KB/64B 4-way data cache WB Read-Alloc Write-Alloc > 32KB/32B 2-way instruction cache Read-Alloc > Cache level 2: > 512KB/64B 8-way unified cache WB Read-Alloc Write-Alloc > real memory = 989851648 (943 MB) > avail memory = 956411904 (912 MB) > FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs > random: entropy device external interface > kbd0 at kbdmux0 > ofwbus0: > simplebus0: mem 0x3f000000-0x3fffffff on > ofwbus0 > local_intc0: mem 0x40000000-0x400000ff on > simplebus0 > generic_timer0: on ofwbus0 > Timecounter "ARM MPCore Timecounter" frequency 19200000 Hz quality 1000 > Event timer "ARM MPCore Eventtimer" frequency 19200000 Hz quality 1000 > intc0: mem 0xb200-0xb3ff on simplebus0 > bcmwd0: mem 0x10001c-0x100027 on simplebus0 > gpio0: mem 0x200000-0x2000af on simplebus0 > gpio0: read-only pins: 46,48-53. > gpio0: reserved pins: 48-53. > gpiobus0: on gpio0 > gpioled0: at pin 35 on gpiobus0 > gpioled1: at pin 47 on gpiobus0 > gpioc0: on gpio0 > iichb0: mem 0x205000-0x20501f on simplebus0 > iicbus0: on iichb0 > iic0: on iicbus0 > iichb1: mem 0x804000-0x80401f on simplebus0 > iicbus1: on iichb1 > iic1: on iicbus1 > spi0: mem 0x204000-0x20401f on simplebus0 > spibus0: on spi0 > bcm_dma0: mem 0x7000-0x7fff,0xe05000-0xe05fff on > simplebus0 > mbox0: mem 0xb880-0xb8bf on simplebus0 > sdhci_bcm0: mem 0x300000-0x3000ff on > simplebus0 > mmc0: on sdhci_bcm0 > uart0: mem 0x201000-0x201fff on simplebus0 > uart0: console (115200,n,8,1) > vchiq0: mem 0xb800-0xb84f on simplebus0 > vchiq: local ver 8 (min 3), remote ver 8. > pcm0: on vchiq0 > bcm283x_dwcotg0: mem > 0x980000-0x99ffff on simplebus0 > usbus0 on bcm283x_dwcotg0 > cpulist0: on ofwbus0 > cpu0: on cpulist0 > bcm2835_cpufreq0: on cpu0 > cpu1: on cpulist0 > cpu2: on cpulist0 > cpu3: on cpulist0 > fb0: on ofwbus0 > fbd0 on fb0 > VT: initialize with new VT driver "fb". > fb0: 1680x1050(1680x1050@0,0) 24bpp > fb0: fbswap: 1, pitch 5040, base 0x3d384000, screen_size 5322240 > cryptosoft0: > Timecounters tick every 10.000 msec > usbus0: 480Mbps High Speed USB v2.0 > ugen0.1: at usbus0 > uhub0: on usbus0 > mmcsd0: 8GB at mmc0 > 41.6MHz/4bit/65535-block > bcm2835_cpufreq0: ARM 600MHz, Core 250MHz, SDRAM 400MHz, Turbo OFF > Release APs > Trying to mount root from ufs:/dev/mmcsd0s2a [rw,noatime]... > WARNING: / was not properly dismounted > warning: no time-of-day clock registered, system time will not be set > accurately > uhub0: 1 port with 1 removable, self powered > ugen0.2: at usbus0 > uhub1: on > usbus0 > uhub1: MTT enabled > uhub1: 5 ports with 4 removable, self powered > random: unblocking device. > ugen0.3: at usbus0 > smsc0: on usbus0 > smsc0: chip 0xec00, rev. 0002 > miibus0: on smsc0 > ukphy0: PHY 1 on miibus0 > ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > ue0: on smsc0 > ue0: Ethernet address: b8:27:eb:f2:8e:4e > ugen0.4: at usbus0 > bridge0: Ethernet address: 02:fd:a6:82:73:00 > ue0: changing name to 'mgmt' > smsc0: chip 0xec00, rev. 0002 > mgmt: link state changed to DOWN > vlan0: changing name to 'wan' > vlan1: changing name to 'lan' > mgmt: link state changed to UP > lan: link state changed to UP > wan: link state changed to UP > urtwn0: on usbus0 > > *urtwn0: MAC/BB RTL8188EU, RF 6052 1T1R > > *urtwn0: enabling 11n > mgmt: link state changed to DOWN > lan: link state changed to DOWN > wan: link state changed to DOWN > mgmt: link state changed to UP > lan: link state changed to UP > wan: link state changed to UP > ieee80211_load_module: load the wlan_amrr module by hand for now. > wlan0: Ethernet address: 00:c6:d2:21:c9:34 > wlan0: promiscuous mode enabled > bridge0: link state changed to UP > pflog0: promiscuous mode enabled > mgmt: promiscuous mode enabled > lan: promiscuous mode enabled > > Thanks in advance, > > Peter > > On 10/7/2016 4:36 PM, Adrian Chadd wrote: > > + freebsd-wireless > > can you post a 'dmesg' output? That way we can see which urtwn NIC it > is and whether it logged anything. > > > > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" > >