From owner-freebsd-current@freebsd.org Fri Apr 8 20:21:13 2016 Return-Path: Delivered-To: freebsd-current@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 8B933B097B9 for ; Fri, 8 Apr 2016 20:21:13 +0000 (UTC) (envelope-from otacilio.neto@bsd.com.br) Received: from mail-qg0-x242.google.com (mail-qg0-x242.google.com [IPv6:2607:f8b0:400d:c04::242]) (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 4AF9312FA for ; Fri, 8 Apr 2016 20:21:13 +0000 (UTC) (envelope-from otacilio.neto@bsd.com.br) Received: by mail-qg0-x242.google.com with SMTP id j35so10974050qge.1 for ; Fri, 08 Apr 2016 13:21:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsd.com.br; s=capeta; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=2CYdx+dMvsjWWG3GEZMlgf+ZKSJc3uGE/R0NLFzXYoM=; b=MlGKVW//1JFqJP2P6AWUvKwcdlO27qHz951tVb67qTWfB7cTpTdX+GSTJW6do1jC1I GZQ7nCu/WnLACWCxgZ2j1QjNOec0AJGIYOPf+Ed7aIaU+Lby8uioi+8QbTmdiM7pNX2G /Fg5Kuz+w7IDSjgqNU8Iwz4IcGVWA7hGamsOE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=2CYdx+dMvsjWWG3GEZMlgf+ZKSJc3uGE/R0NLFzXYoM=; b=Wx3kPUnHOMj22Lobyhvzgk2k0u/LUujq9t9LDP8YfpmkcVfnMFwwD3P209aSX/PAtM 9MOiEAYG3tknnAHtdYmHvztwoKGtX56In60npodcU5I3DpslFkSyPZUslAHby0eaA7MI yk7Zs/t2/XQqKxHEoggNjPwEuDlVVulguO0/6GVd3TTxXHYa7K3A5g2DJZDcaOGWJ0QY qWWDbUyNeGxAlCVPxCdlVek6TKzVHASM6i4DI39pR36O6PzPGzOA1yPigIfao/abqq40 fVZIdgOJLK3iu0zdV09ShP8OYUgQ9pi47VgUl6fZVLgI1W/AhyTRFHBAFOfw3oGEgCaX OGow== X-Gm-Message-State: AD7BkJIVi8itllKPt7CE8LDMMLL1nb4uMrPC1GBNtXJ/PBPonZ1lnr6HzHch0jJtn7M15A== X-Received: by 10.140.221.9 with SMTP id r9mr14568856qhb.77.1460146872312; Fri, 08 Apr 2016 13:21:12 -0700 (PDT) Received: from [192.168.0.18] ([187.60.94.34]) by smtp.googlemail.com with ESMTPSA id j67sm6167608qgj.35.2016.04.08.13.21.10 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 08 Apr 2016 13:21:11 -0700 (PDT) Subject: Re: WIFI urtwn possibly broken on 297561 To: Adrian Chadd References: <57080811.5030405@bsd.com.br> Cc: freebsd-current , "freebsd-arm@freebsd.org" From: =?UTF-8?B?T3RhY8OtbGlv?= Message-ID: <570812A5.1050600@bsd.com.br> Date: Fri, 8 Apr 2016 17:20:53 -0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Apr 2016 20:21:13 -0000 The parameter --ff looks like is not valid for my adapter. First I try using prompt: ===================================================================================================== Edit /etc/motd to change this login announcement. % su Apr 8 05:04:12 beaglebone su: ota to root on /dev/ttyu0 root@beaglebone:/usr/home/ota # ifconfig wlan0 -ff -amsdu ifconfig: SIOCS80211: Invalid argument root@beaglebone:/usr/home/ota # ifconfig wlan0 -ff ifconfig: SIOCS80211: Invalid argument root@beaglebone:/usr/home/ota # ifconfig wlan0 -amsdu root@beaglebone:/usr/home/ota # pkg update The package management tool is not yet installed on your system. Do you want to fetch and install it now? [y/N]: y Bootstrapping pkg from pkg+http://nostromo:8080/repo/101armv6-default/.latest, please wait... ^C root@beaglebone:/usr/home/ota # ping nostromo PING nostromo (192.168.0.26): 56 data bytes ^C --- nostromo ping statistics --- 13 packets transmitted, 0 packets received, 100.0% packet loss root@beaglebone:/usr/home/ota # ===================================================================================================== And in rc.conf ===================================================================================================== Feeding entropy:. ifconfig: SIOCIFCREATE2: Invalid argument cpsw0: link state changed to DOWN Starting Network: lo0 cpsw0. lo0: flags=8049 metric 0 mtu 16384 options=600003 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 inet 127.0.0.1 netmask 0xff000000 groups: lo nd6 options=21 cpsw0: flags=8843 metric 0 mtu 1500 options=8000b ether 90:59:af:4c:20:9a media: Ethernet autoselect (none) status: no carrier nd6 options=29 ELF ldconfig path: /lib /usr/lib /usr/lib/compat Soft Float compatibility ldconfig path: Starting devd. urtwn0: on usbu s1 urtwn0: MAC/BB RTL8192CU, RF 6052 2T2R urtwn0: enabling 11n wlan0: Ethernet address: 14:cc:20:12:ee:55 Created wlan(4) interfaces: wlan0. Starting wpa_supplicant. Starting dhclient. wlan0: no link .............. giving up /etc/rc.d/dhclient: WARNING: failed to start dhclient Starting Network: wlan0. wlan0: flags=8843 metric 0 mtu 1500 ether 14:cc:20:12:ee:55 groups: wlan ssid "" channel 10 (2457 MHz 11g) country US authmode WPA1+WPA2/802.11i privacy MIXED deftxkey UNDEF txpower 0 bmiss 7 scanvalid 60 protmode CTS wme roaming MANUAL bintval 0 media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) status: no carrier nd6 options=29 add net fe80::: gateway ::1 add net ff02::: gateway ::1 add net ::ffff:0.0.0.0: gateway ::1 add net ::0.0.0.0: gateway ::1 Waiting 30s for the default route interface: wlan0: link state changed to UP ..(wlan0) Creating and/or trimming log files. Starting syslogd. Clearing /tmp (X related). Updating motd:. Mounting late file systems:. Performing sanity check on sshd configuration. Could not load host key: /etc/ssh/ssh_host_dsa_key Starting sshd. Could not load host key: /etc/ssh/ssh_host_dsa_key Starting cron. Starting background file system checks in 60 seconds. Fri Apr 8 05:09:54 UTC 2016 FreeBSD/arm (beaglebone) (ttyu0) login: ota Password: FreeBSD 11.0-CURRENT (BEAGLEBONE-DEBUG) #1 r297561: Fri Apr 8 00:53:13 BRT 2016 Welcome to FreeBSD! Release Notes, Errata: https://www.FreeBSD.org/releases/ Security Advisories: https://www.FreeBSD.org/security/ FreeBSD Handbook: https://www.FreeBSD.org/handbook/ FreeBSD FAQ: https://www.FreeBSD.org/faq/ Questions List: https://lists.FreeBSD.org/mailman/listinfo/freebsd-questions/ FreeBSD Forums: https://forums.FreeBSD.org/ Documents installed with the system are in the /usr/local/share/doc/freebsd/ directory, or can be installed later with: pkg install en-freebsd-doc For other languages, replace "en" with a language code like de or fr. Show the version of FreeBSD installed: freebsd-version ; uname -a Please include that output and any error messages when posting questions. Introduction to manual pages: man man FreeBSD directory layout: man hier Edit /etc/motd to change this login announcement. % su Apr 8 05:10:25 beaglebone su: ota to root on /dev/ttyu0 root@beaglebone:/usr/home/ota # ping nostromo PING nostromo (192.168.0.26): 56 data bytes 64 bytes from 192.168.0.26: icmp_seq=0 ttl=64 time=76.013 ms 64 bytes from 192.168.0.26: icmp_seq=1 ttl=64 time=2.554 ms ^C --- nostromo ping statistics --- 2 packets transmitted, 2 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 2.554/39.284/76.013/36.730 ms root@beaglebone:/usr/home/ota # pkg update The package management tool is not yet installed on your system. Do you want to fetch and install it now? [y/N]: y Bootstrapping pkg from pkg+http://nostromo:8080/repo/101armv6-default/.latest, please wait... ^C root@beaglebone:/usr/home/ota # ping nostromo PING nostromo (192.168.0.26): 56 data bytes ^C --- nostromo ping statistics --- 9 packets transmitted, 0 packets received, 100.0% packet loss root@beaglebone:/usr/home/ota # cat /etc/rc.conf hostname="beaglebone" ifconfig_cpsw0="DHCP" sshd_enable="YES" # Nice if you have a network, else annoying. #ntpd_enable="YES" ntpd_sync_on_start="YES" # Uncomment to disable common services (more memory) #cron_enable="NO" #syslogd_enable="NO" sendmail_submit_enable="NO" sendmail_outbound_enable="NO" sendmail_msp_queue_enable="NO" # On first boot, enlarge the root filesystem to fill the SD card growfs_enable="YES" wlans_urtwn0="wlan0" ifconfig_wlan0="WPA SYNCDHCP -amsdu" ===================================================================================================== The behavior is the same. I did a test without the options -ff and -amsdu and get response after a lot of time: ===================================================================================================== ping nostromo PING nostromo (192.168.0.26): 56 data bytes ¦64 bytes from 192.168.0.26: icmp_seq=0 ttl=64 time=29700.789 ms 64 bytes from 192.168.0.26: icmp_seq=1 ttl=64 time=28686.953 ms 64 bytes from 192.168.0.26: icmp_seq=2 ttl=64 time=27662.899 ms 64 bytes from 192.168.0.26: icmp_seq=3 ttl=64 time=26640.436 ms 64 bytes from 192.168.0.26: icmp_seq=4 ttl=64 time=25614.867 ms 64 bytes from 192.168.0.26: icmp_seq=5 ttl=64 time=24590.894 ms 64 bytes from 192.168.0.26: icmp_seq=6 ttl=64 time=23566.904 ms 64 bytes from 192.168.0.26: icmp_seq=7 ttl=64 time=22542.891 ms 64 bytes from 192.168.0.26: icmp_seq=8 ttl=64 time=21518.889 ms 64 bytes from 192.168.0.26: icmp_seq=9 ttl=64 time=20494.831 ms 64 bytes from 192.168.0.26: icmp_seq=10 ttl=64 time=19470.858 ms 64 bytes from 192.168.0.26: icmp_seq=11 ttl=64 time=18446.867 ms 64 bytes from 192.168.0.26: icmp_seq=12 ttl=64 time=17422.918 ms 64 bytes from 192.168.0.26: icmp_seq=13 ttl=64 time=16400.771 ms 64 bytes from 192.168.0.26: icmp_seq=14 ttl=64 time=15374.826 ms 64 bytes from 192.168.0.26: icmp_seq=15 ttl=64 time=14350.861 ms 64 bytes from 192.168.0.26: icmp_seq=16 ttl=64 time=13325.829 ms 64 bytes from 192.168.0.26: icmp_seq=17 ttl=64 time=12303.424 ms 64 bytes from 192.168.0.26: icmp_seq=18 ttl=64 time=11277.698 ms 64 bytes from 192.168.0.26: icmp_seq=19 ttl=64 time=10254.808 ms 64 bytes from 192.168.0.26: icmp_seq=20 ttl=64 time=9231.029 ms 64 bytes from 192.168.0.26: icmp_seq=21 ttl=64 time=8206.789 ms 64 bytes from 192.168.0.26: icmp_seq=22 ttl=64 time=7182.765 ms 64 bytes from 192.168.0.26: icmp_seq=23 ttl=64 time=6158.762 ms 64 bytes from 192.168.0.26: icmp_seq=24 ttl=64 time=5134.735 ms 64 bytes from 192.168.0.26: icmp_seq=25 ttl=64 time=4111.212 ms 64 bytes from 192.168.0.26: icmp_seq=26 ttl=64 time=3086.722 ms 64 bytes from 192.168.0.26: icmp_seq=27 ttl=64 time=2062.736 ms 64 bytes from 192.168.0.26: icmp_seq=28 ttl=64 time=1038.563 ms 64 bytes from 192.168.0.26: icmp_seq=29 ttl=64 time=14.707 ms 64 bytes from 192.168.0.26: icmp_seq=30 ttl=64 time=17.124 ms 64 bytes from 192.168.0.26: icmp_seq=31 ttl=64 time=11.297 ms 64 bytes from 192.168.0.26: icmp_seq=32 ttl=64 time=15.849 ms 64 bytes from 192.168.0.26: icmp_seq=33 ttl=64 time=38.727 ms 64 bytes from 192.168.0.26: icmp_seq=34 ttl=64 time=19.729 ms 64 bytes from 192.168.0.26: icmp_seq=35 ttl=64 time=7.052 ms []'s -Otacilio Em 08/04/2016 16:55, Adrian Chadd escreveu: > hi, > > try 'ifconfig wlan0 -ff -amsdu' and try again > > > -a > > > On 8 April 2016 at 12:35, Otacílio wrote: >> Dears >> >> I'm testing the CURRENT version on a beaglebone black and have noted the >> follow behavior. On revision 297561 the wifi adapter stops works after a pkg >> update. I did the follow tests. >> Using the version 296898 (OK behavior) and 297561 (wrong behavior): >> >> FreeBSD beaglebone 11.0-CURRENT FreeBSD 11.0-CURRENT #1 r296898M: Wed Mar 16 >> 23:52:02 BRT 2016 >> ota@nostromo:/root/crochet/work/obj/arm.armv6/usr/src/sys/BEAGLEBONE-DEBUG >> arm >> >> ping nostromo ==> OK >> pkg update ==> OK >> ping nostromo==> OK >> network is OK >> >> I have tested using this follows adapters and on both the behavior is the >> same and OK on 296898 : >> urtwn0: on >> usbus1 >> urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R >> >> urtwn0: on >> usbus1 >> urtwn0: MAC/BB RTL8192CU, RF 6052 2T2R >> >> >> After update to this version >> FreeBSD beaglebone 11.0-CURRENT FreeBSD 11.0-CURRENT #1 r297561: Fri Apr 8 >> 00:53:13 BRT 2016 >> ota@nostromo:/root/crochet/work/obj/arm.armv6/usr/src/sys/BEAGLEBONE-DEBUG >> arm >> >> And I did the same tests using the same adapters and the wifi stops work >> after pkg update. >> >> >> And a complete log of the test: >> >> Edit /etc/motd to change this login announcement. >> % ping nostromo >> PING nostromo (192.168.0.26): 56 data bytes >> 64 bytes from 192.168.0.26: icmp_seq=0 ttl=64 time=98.318 ms >> 64 bytes from 192.168.0.26: icmp_seq=1 ttl=64 time=3.679 ms >> 64 bytes from 192.168.0.26: icmp_seq=2 ttl=64 time=58.809 ms >> 64 bytes from 192.168.0.26: icmp_seq=3 ttl=64 time=5.464 ms >> 64 bytes from 192.168.0.26: icmp_seq=4 ttl=64 time=10.979 ms >> ^C >> --- nostromo ping statistics --- >> 5 packets transmitted, 5 packets received, 0.0% packet loss >> round-trip min/avg/max/stddev = 3.679/35.450/98.318/37.431 ms >> % su >> pkg upApr 8 04:18:24 beaglebone su: ota to root on /dev/ttyu0 >> daroot@beaglebone:/usr/home/ota # pkg update >> The package management tool is not yet installed on your system. >> Do you want to fetch and install it now? [y/N]: y >> Bootstrapping pkg from >> pkg+http://nostromo:8080/repo/101armv6-default/.latest, please wait... >> ^C >> root@beaglebone:/usr/home/ota # ping nostromo >> PING nostromo (192.168.0.26): 56 data bytes >> ^C >> --- nostromo ping statistics --- >> 7 packets transmitted, 0 packets received, 100.0% packet loss >> root@beaglebone:/usr/home/ota # uname -a >> FreeBSD beaglebone 11.0-CURRENT FreeBSD 11.0-CURRENT #1 r297561: Fri Apr 8 >> 00:53:13 BRT 2016 >> ota@nostromo:/root/crochet/work/obj/arm.armv6/usr/src/sys/BEAGLEBONE-DEBUG >> arm >> >> this log is for the follow adapter but for the next one the behavior is the >> same >> >> urtwn0: on >> usbus1 >> urtwn0: MAC/BB RTL8192CU, RF 6052 2T2R >> >> urtwn0: on >> usbus1 >> urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R >> >> >> Someone knows whats going on? >> >> >> Thanks a lot >> -Otacílio >> >> >> >> _______________________________________________ >> freebsd-current@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-current >> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"