Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Oct 2016 01:24:14 +0300
From:      "Andriy Voskoboinyk" <avos@freebsd.org>
To:        "Peter Garshtja" <peter.garshtja@ambient-md.com>, "freebsd-wireless@freebsd.org" <freebsd-wireless@freebsd.org>, "Adrian Chadd" <adrian.chadd@gmail.com>
Cc:        "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Re: RPI2 AP
Message-ID:  <op.yo266ore4dikkl@localhost>
In-Reply-To: <CAJ-VmokZuKEr3Mmf2fcLaAqtE67y7-ejU_GrtxePt9Vkgyoc=A@mail.gmail.com>
References:  <CALFUBVFrV%2BNjSwSHNXqW3KeAgREHrifjr2rRr2BQaCAC_vgyvA@mail.gmail.com> <CAJ-VmokBzS8ejzgnriKgDFBmq7FL5e7L2j5_BbsJwrkxyQ-hbA@mail.gmail.com> <3684c340-3020-31f7-64f1-babf90be8565@ambient-md.com> <CAJ-VmonXYQ7ZcWoEU9ujaTPiFUEOwCODTR_PddpsapxeiQ=zSw@mail.gmail.com> <13052a1c-db9b-6e08-eb1a-d75b93c67c33@ambient-md.com> <CAJ-VmokZuKEr3Mmf2fcLaAqtE67y7-ejU_GrtxePt9Vkgyoc=A@mail.gmail.com>

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

<adrian.chadd@gmail.com>:

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
> <peter.garshtja@ambient-md.com> 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<STA,FF,IBSS,HOSTAP,SHSLOT,SHPREAMBLE,MONITOR,WPA=
1,WPA2,WME>
>> cryptocaps=3Db<WEP,TKIP,AES_CCM>
>> 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: <Open Firmware Device Tree>
>> simplebus0: <Flattened device tree simple bus> mem  =

>> 0x3f000000-0x3fffffff on
>> ofwbus0
>> local_intc0: <BCM2836 Interrupt Controller> mem 0x40000000-0x400000ff=
 on
>> simplebus0
>> generic_timer0: <ARMv7 Generic Timer> on ofwbus0
>> Timecounter "ARM MPCore Timecounter" frequency 19200000 Hz quality 10=
00
>> Event timer "ARM MPCore Eventtimer" frequency 19200000 Hz quality 100=
0
>> intc0: <BCM2835 Interrupt Controller> mem 0xb200-0xb3ff on simplebus0=

>> bcmwd0: <BCM2708/2835 Watchdog> mem 0x10001c-0x100027 on simplebus0
>> gpio0: <BCM2708/2835 GPIO controller> mem 0x200000-0x2000af on  =

>> simplebus0
>> gpio0: read-only pins: 46,48-53.
>> gpio0: reserved pins: 48-53.
>> gpiobus0: <OFW GPIO bus> on gpio0
>> gpioled0: <GPIO led> at pin 35 on gpiobus0
>> gpioled1: <GPIO led> at pin 47 on gpiobus0
>> gpioc0: <GPIO controller> on gpio0
>> iichb0: <BCM2708/2835 BSC controller> mem 0x205000-0x20501f on  =

>> simplebus0
>> iicbus0: <OFW I2C bus> on iichb0
>> iic0: <I2C generic I/O> on iicbus0
>> iichb1: <BCM2708/2835 BSC controller> mem 0x804000-0x80401f on  =

>> simplebus0
>> iicbus1: <OFW I2C bus> on iichb1
>> iic1: <I2C generic I/O> on iicbus1
>> spi0: <BCM2708/2835 SPI controller> mem 0x204000-0x20401f on simplebu=
s0
>> spibus0: <OFW SPI bus> on spi0
>> bcm_dma0: <BCM2835 DMA Controller> mem 0x7000-0x7fff,0xe05000-0xe05ff=
f  =

>> on
>> simplebus0
>> mbox0: <BCM2835 VideoCore Mailbox> mem 0xb880-0xb8bf on simplebus0
>> sdhci_bcm0: <Broadcom 2708 SDHCI controller> mem 0x300000-0x3000ff on=

>> simplebus0
>> mmc0: <MMC/SD bus> on sdhci_bcm0
>> uart0: <PrimeCell UART (PL011)> mem 0x201000-0x201fff on simplebus0
>> uart0: console (115200,n,8,1)
>> vchiq0: <BCM2835 VCHIQ> mem 0xb800-0xb84f on simplebus0
>> vchiq: local ver 8 (min 3), remote ver 8.
>> pcm0: <VCHIQ audio> on vchiq0
>> bcm283x_dwcotg0: <DWC OTG 2.0 integrated USB controller (bcm283x)> me=
m
>> 0x980000-0x99ffff on simplebus0
>> usbus0 on bcm283x_dwcotg0
>> cpulist0: <Open Firmware CPU Group> on ofwbus0
>> cpu0: <Open Firmware CPU> on cpulist0
>> bcm2835_cpufreq0: <CPU Frequency Control> on cpu0
>> cpu1: <Open Firmware CPU> on cpulist0
>> cpu2: <Open Firmware CPU> on cpulist0
>> cpu3: <Open Firmware CPU> on cpulist0
>> fb0: <BCM2835 VT framebuffer driver> 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: <software crypto>
>> Timecounters tick every 10.000 msec
>> usbus0: 480Mbps High Speed USB v2.0
>> ugen0.1: <DWCOTG> at usbus0
>> uhub0: <DWCOTG OTG Root HUB, class 9/0, rev 2.00/1.00, addr 1> on usb=
us0
>> mmcsd0: 8GB <SDHC SL08G 8.0 SN 2948251B MFG 08/2015 by 3 SD> 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: <vendor 0x0424> at usbus0
>> uhub1: <vendor 0x0424 product 0x9514, class 9/0, rev 2.00/2.00, addr =
2>  =

>> on
>> usbus0
>> uhub1: MTT enabled
>> random: unblocking device.
>> uhub1: 5 ports with 4 removable, self powered
>> ugen0.3: <vendor 0x0424> at usbus0
>> smsc0: <vendor 0x0424 product 0xec00, rev 2.00/2.00, addr 3> on usbus=
0
>> smsc0: chip 0xec00, rev. 0002
>> miibus0: <MII bus> on smsc0
>> ukphy0: <Generic IEEE 802.3u media interface> PHY 1 on miibus0
>> ukphy0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
>> ue0: <USB Ethernet> on smsc0
>> ue0: Ethernet address: b8:27:eb:f2:8e:4e
>> ugen0.4: <Realtek> 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: <Realtek 802.11n NIC, class 0/0, rev 2.00/0.00, addr 4> 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
>> <peter.garshtja@ambient-md.com> 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: <Open Firmware Device Tree>
>> simplebus0: <Flattened device tree simple bus> mem  =

>> 0x3f000000-0x3fffffff on
>> ofwbus0
>> local_intc0: <BCM2836 Interrupt Controller> mem 0x40000000-0x400000ff=
 on
>> simplebus0
>> generic_timer0: <ARMv7 Generic Timer> on ofwbus0
>> Timecounter "ARM MPCore Timecounter" frequency 19200000 Hz quality 10=
00
>> Event timer "ARM MPCore Eventtimer" frequency 19200000 Hz quality 100=
0
>> intc0: <BCM2835 Interrupt Controller> mem 0xb200-0xb3ff on simplebus0=

>> bcmwd0: <BCM2708/2835 Watchdog> mem 0x10001c-0x100027 on simplebus0
>> gpio0: <BCM2708/2835 GPIO controller> mem 0x200000-0x2000af on  =

>> simplebus0
>> gpio0: read-only pins: 46,48-53.
>> gpio0: reserved pins: 48-53.
>> gpiobus0: <OFW GPIO bus> on gpio0
>> gpioled0: <GPIO led> at pin 35 on gpiobus0
>> gpioled1: <GPIO led> at pin 47 on gpiobus0
>> gpioc0: <GPIO controller> on gpio0
>> iichb0: <BCM2708/2835 BSC controller> mem 0x205000-0x20501f on  =

>> simplebus0
>> iicbus0: <OFW I2C bus> on iichb0
>> iic0: <I2C generic I/O> on iicbus0
>> iichb1: <BCM2708/2835 BSC controller> mem 0x804000-0x80401f on  =

>> simplebus0
>> iicbus1: <OFW I2C bus> on iichb1
>> iic1: <I2C generic I/O> on iicbus1
>> spi0: <BCM2708/2835 SPI controller> mem 0x204000-0x20401f on simplebu=
s0
>> spibus0: <OFW SPI bus> on spi0
>> bcm_dma0: <BCM2835 DMA Controller> mem 0x7000-0x7fff,0xe05000-0xe05ff=
f  =

>> on
>> simplebus0
>> mbox0: <BCM2835 VideoCore Mailbox> mem 0xb880-0xb8bf on simplebus0
>> sdhci_bcm0: <Broadcom 2708 SDHCI controller> mem 0x300000-0x3000ff on=

>> simplebus0
>> mmc0: <MMC/SD bus> on sdhci_bcm0
>> uart0: <PrimeCell UART (PL011)> mem 0x201000-0x201fff on simplebus0
>> uart0: console (115200,n,8,1)
>> vchiq0: <BCM2835 VCHIQ> mem 0xb800-0xb84f on simplebus0
>> vchiq: local ver 8 (min 3), remote ver 8.
>> pcm0: <VCHIQ audio> on vchiq0
>> bcm283x_dwcotg0: <DWC OTG 2.0 integrated USB controller (bcm283x)> me=
m
>> 0x980000-0x99ffff on simplebus0
>> usbus0 on bcm283x_dwcotg0
>> cpulist0: <Open Firmware CPU Group> on ofwbus0
>> cpu0: <Open Firmware CPU> on cpulist0
>> bcm2835_cpufreq0: <CPU Frequency Control> on cpu0
>> cpu1: <Open Firmware CPU> on cpulist0
>> cpu2: <Open Firmware CPU> on cpulist0
>> cpu3: <Open Firmware CPU> on cpulist0
>> fb0: <BCM2835 VT framebuffer driver> 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: <software crypto>
>> Timecounters tick every 10.000 msec
>> usbus0: 480Mbps High Speed USB v2.0
>> ugen0.1: <DWCOTG> at usbus0
>> uhub0: <DWCOTG OTG Root HUB, class 9/0, rev 2.00/1.00, addr 1> on usb=
us0
>> mmcsd0: 8GB <SDHC SL08G 8.0 SN 2948251B MFG 08/2015 by 3 SD> 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: <vendor 0x0424> at usbus0
>> uhub1: <vendor 0x0424 product 0x9514, class 9/0, rev 2.00/2.00, addr =
2>  =

>> on
>> usbus0
>> uhub1: MTT enabled
>> uhub1: 5 ports with 4 removable, self powered
>> random: unblocking device.
>> ugen0.3: <vendor 0x0424> at usbus0
>> smsc0: <vendor 0x0424 product 0xec00, rev 2.00/2.00, addr 3> on usbus=
0
>> smsc0: chip 0xec00, rev. 0002
>> miibus0: <MII bus> on smsc0
>> ukphy0: <Generic IEEE 802.3u media interface> PHY 1 on miibus0
>> ukphy0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
>> ue0: <USB Ethernet> on smsc0
>> ue0: Ethernet address: b8:27:eb:f2:8e:4e
>> ugen0.4: <Realtek> 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: <Realtek 802.11n NIC, class 0/0, rev 2.00/0.00, addr 4> 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"



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