From owner-freebsd-wireless@freebsd.org Sun Oct 9 22:24:23 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 6A881C0BBC0; Sun, 9 Oct 2016 22:24:23 +0000 (UTC) (envelope-from andriyvos@gmail.com) Received: from mail-lf0-f49.google.com (mail-lf0-f49.google.com [209.85.215.49]) (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 D7230C7D; Sun, 9 Oct 2016 22:24:22 +0000 (UTC) (envelope-from andriyvos@gmail.com) Received: by mail-lf0-f49.google.com with SMTP id b81so93812780lfe.1; Sun, 09 Oct 2016 15:24:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:cc:subject:references:date:mime-version :content-transfer-encoding:from:message-id:in-reply-to:user-agent; bh=NVH/5Ta2qEMQVL/dObZ9uNxT0ArF/pk7n7IgdywfD+I=; b=mnYU+sAls4/fq6abt5MfG27lQxwUzKHt6+lG06/LWyZINu0SouiH/N8hYfE9tKCgHO oMxxMDDkLisFI5i8r92rbbs6mBZIriBGVWwnNasMwQ/dmfKkxpLmmkyXDv+KPyYBjy6x 6c7PKyRi1PjDE2Eu9vogpgFFI3jA5SSP/SstIcvzfnXghkq6ovay8iXCyuMVdOxsdfTe +KzIPLW307FHMpoJfeUz+03ioFporRJFyaQLPUVaVWZNd+jB+800RfuTX40F5nhpvFaN 0gef25j5bR0vPsdNb8ZGNzjnrs4bWUKuB5+biu3xwf9EFdYXcCi/PPsXCQfH6yXMUTzD sRiw== X-Gm-Message-State: AA6/9Rk9M2LW5N8/MldGiZBdP9ezZkXUr6EgCwy2/mW+lmDco4GhpQSaRRxTggxcFa0Xlw== X-Received: by 10.25.18.97 with SMTP id h94mr12710701lfi.106.1476051854499; Sun, 09 Oct 2016 15:24:14 -0700 (PDT) Received: from localhost (host-176-37-109-22.la.net.ua. [176.37.109.22]) by smtp.gmail.com with ESMTPSA id b71sm5466842lfb.42.2016.10.09.15.24.13 (version=TLS1 cipher=AES128-SHA bits=128/128); Sun, 09 Oct 2016 15:24:14 -0700 (PDT) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: "Peter Garshtja" , "freebsd-wireless@freebsd.org" , "Adrian Chadd" Cc: "freebsd-arm@freebsd.org" Subject: Re: RPI2 AP References: <3684c340-3020-31f7-64f1-babf90be8565@ambient-md.com> <13052a1c-db9b-6e08-eb1a-d75b93c67c33@ambient-md.com> Date: Mon, 10 Oct 2016 01:24:14 +0300 MIME-Version: 1.0 Content-Transfer-Encoding: Quoted-Printable From: "Andriy Voskoboinyk" Message-ID: In-Reply-To: User-Agent: Opera Mail/12.16 (FreeBSD) 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:24:23 -0000 Mon, 10 Oct 2016 01:22:00 +0300 =D0=B1=D1=83=D0=BB=D0=BE =D0=BD=D0=B0=D0= =BF=D0=B8=D1=81=D0=B0=D0=BD=D0=BE Adrian Chadd = : Have you tried to use the driver from https://github.com/s3erios/rtwn ? > 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=3D"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=3D591c541 >> cryptocaps=3Db >> htcaps=3D6000c<> >> ------------------------------ >> >> 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 behavio= r = >> 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, 1= 994 >> 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_Ex= t >> 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 =3D 989851648 (943 MB) >> avail memory =3D 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 10= 00 >> Event timer "ARM MPCore Eventtimer" frequency 19200000 Hz quality 100= 0 >> 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 simplebu= s0 >> spibus0: on spi0 >> bcm_dma0: mem 0x7000-0x7fff,0xe05000-0xe05ff= f = >> 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: me= m >> 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 usb= us0 >> 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 usbus= 0 >> 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=3D"YES" to /boot/loader.conf and reboo= ting? >> >> >> -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 r30654= 4M >> >> >> Below is dmesg >> >> >> Copyright (c) 1992-2016 The FreeBSD Project. >> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1= 994 >> 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_Ex= t >> 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 =3D 989851648 (943 MB) >> avail memory =3D 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 10= 00 >> Event timer "ARM MPCore Eventtimer" frequency 19200000 Hz quality 100= 0 >> 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 simplebu= s0 >> spibus0: on spi0 >> bcm_dma0: mem 0x7000-0x7fff,0xe05000-0xe05ff= f = >> 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: me= m >> 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 usb= us0 >> 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 usbus= 0 >> 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= " >> >> > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to = > "freebsd-wireless-unsubscribe@freebsd.org"