From owner-freebsd-mobile@FreeBSD.ORG Sun Mar 22 16:39:46 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4528B106566B; Sun, 22 Mar 2009 16:39:46 +0000 (UTC) (envelope-from jnordwick@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.234]) by mx1.freebsd.org (Postfix) with ESMTP id 0ADB08FC0A; Sun, 22 Mar 2009 16:39:45 +0000 (UTC) (envelope-from jnordwick@gmail.com) Received: by rv-out-0506.google.com with SMTP id l9so1437246rvb.43 for ; Sun, 22 Mar 2009 09:39:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=r/coHfXiGXllfzrXVJoeptlYGnRcR7WazgpR7y12V84=; b=Eif6rphoc7Fv7ZcoA2RM9AESxSD8QWzNRlJxT1Qq/172AgI2ARRRYdOyAz8IloD7N4 rb2lRYaMmBt7gDZ3TEtQp7NU63KjMjTJ9WLrDWXBeFl80q7Lv3oZFHqrg7Fvs+V+dYEJ Qwl4QozFIEK7FtZPl79j0XpjdX+3KBRxS5C08= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=YseI67XVljc4Iu/YKBsIO22XaaO/U5RK/r2Jfe+a0MmcyegIkSYgTP1lklS8NkflVk dmG2WkCtDsTb/JGLuIS3+2FlsISkkAvbLEny3411CzKpaiTXog2jsw2VmO4Adt5gKRhd 7XfCaQmwIrdjw18WMxh6TGUvzlJ4KMm3pGJb8= Received: by 10.141.197.21 with SMTP id z21mr1806618rvp.75.1237739985380; Sun, 22 Mar 2009 09:39:45 -0700 (PDT) Received: from ?192.168.1.4? ([76.91.169.132]) by mx.google.com with ESMTPS id g14sm8153972rvb.9.2009.03.22.09.39.44 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 22 Mar 2009 09:39:45 -0700 (PDT) Message-Id: From: Jason Nordwick To: Doug Barton In-Reply-To: <49C55B8C.50208@FreeBSD.org> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Sun, 22 Mar 2009 09:39:43 -0700 References: <02EF6260-D64F-4473-A5F6-C95246261BCE@gmail.com> <49C4775A.4060206@FreeBSD.org> <49C55B8C.50208@FreeBSD.org> X-Mailer: Apple Mail (2.930.3) Cc: freebsd-mobile@freebsd.org Subject: Re: Intel/Pro Wireless 3945ABG working! now slow :( X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Mar 2009 16:39:46 -0000 Thanks for all the help, but this didn't help at all. It is either slow or I get a page of no route to host messages from ping when trying to ping my wireless router (and it does support 11g). I think their might be a syntax error on one of the lines you gave me, but I'm going to just try and run either -current or -stable. (I used to track current daily, so this doesn't bother me too much). Can I install a snapshot release from the ftp site? Sysinstall seems to be having problems finding the snapshots from Main this morning. -j On Mar 21, 2009, at 2:26 PM, Doug Barton wrote: > Jason Nordwick wrote: >> Now that I have wireless working, I can copy and paste into >> messages, yeah! >> >> [jnordwick@jj ~]$ uname -a >> FreeBSD jj.nordwick.com 7.1-RELEASE FreeBSD 7.1-RELEASE > > You should consider upgrading to -stable. There have been a lot of > fixes in the 7.x branch since 7.1-release. > >> [jnordwick@jj ~]$ cat /etc/rc.conf >> ifconfig_wpi0="ssid mamalinz DHCP" > > Try doing this instead: > wlans_wpi0=wlan0 > ifconfig_wlan0="DHCP ssid mamalinz mode 11g" > > If your AP doesn't do 11g then leave off that last bit. > >> And I have no /etc/wpa_supplicant.conf > > Ok, so no encryption on your network at all? We also need the ifconfig > output as someone else mentioned. > >> The card works great with windows, and no other machine in the house >> (including Wii/PS3/PSP/Mac/Windows) have any problems connection or >> being >> speedy). >> >> For hardware, the machine is a Dell Inspiron E1705 dual core. So >> could there >> be SMP issues maybe? > > No, my laptop is SMP. > > > Doug > > -- > > This .signature sanitized for your protection > From owner-freebsd-mobile@FreeBSD.ORG Sun Mar 22 19:20:06 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D8417106564A for ; Sun, 22 Mar 2009 19:20:06 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx22.fluidhosting.com [204.14.89.5]) by mx1.freebsd.org (Postfix) with ESMTP id 6749C8FC08 for ; Sun, 22 Mar 2009 19:20:06 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 8825 invoked by uid 399); 22 Mar 2009 19:20:03 -0000 Received: from localhost (HELO lap.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 22 Mar 2009 19:20:03 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <49C68F61.4070204@FreeBSD.org> Date: Sun, 22 Mar 2009 12:20:01 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0.0.21 (X11/20090321) MIME-Version: 1.0 To: Jason Nordwick References: <02EF6260-D64F-4473-A5F6-C95246261BCE@gmail.com> <49C4775A.4060206@FreeBSD.org> <49C55B8C.50208@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 0.95.7 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-mobile@freebsd.org Subject: Re: Intel/Pro Wireless 3945ABG working! now slow :( X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Mar 2009 19:20:07 -0000 Jason Nordwick wrote: > Thanks for all the help, but this didn't help at all. It is either slow > or I get a page of no route to host messages from ping when trying to > ping my wireless router (and it does support 11g). I think their might > be a syntax error on one of the lines you gave me, There isn't, read the man page for wpi. BTW, I forgot to add that you should take out the ifconfig_wpi0 line that you had in your rc.conf. >> Try doing this instead: >> wlans_wpi0=wlan0 >> ifconfig_wlan0="DHCP ssid mamalinz mode 11g" If that doesn't work for you, you'll need to upgrade to the latest -stable. If you need help with that check the handbook, and/or ask on freebsd-questions@freebsd.org. Doug -- This .signature sanitized for your protection From owner-freebsd-mobile@FreeBSD.ORG Mon Mar 23 15:44:47 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EF6EC106566C for ; Mon, 23 Mar 2009 15:44:47 +0000 (UTC) (envelope-from nikolay.kanchev@amk-drives.bg) Received: from amk-drives.bg (mail.amk-drives.bg [213.91.234.2]) by mx1.freebsd.org (Postfix) with SMTP id AF46A8FC08 for ; Mon, 23 Mar 2009 15:44:46 +0000 (UTC) (envelope-from nikolay.kanchev@amk-drives.bg) Received: (qmail 77318 invoked from network); 23 Mar 2009 17:53:35 +0200 Received: from unknown (HELO ?192.168.0.13?) (nikolay.kanchev@amk-drives.bg@192.168.0.13) by 0 with SMTP; 23 Mar 2009 17:53:35 +0200 Message-ID: <49C7AD17.2080203@amk-drives.bg> Date: Mon, 23 Mar 2009 17:39:03 +0200 From: Nikolay Kanchev Organization: AMK User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: freebsd-mobile@freebsd.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Atheros AR5211 802.11a can't send packets X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Mar 2009 15:44:48 -0000 Hello list I have trouble with miniPCI Atheros AR5211 based card and 802.11a mode on Freebsd 7.1 and 7.2 PRERELEASE Notebook: Pentium M 1.5GHz from FreeBSD 7.2 generic kernel dmesg ------------------------ ath0: mem 0xe0200000-0xe020ffff irq 10 at device 6.0 on pci2 ath0: [ITHREAD] ath0: WARNING: using obsoleted if_watchdog interface ath0: Ethernet address: 00:ff:f3:a0:28:02 ath0: mac 4.2 phy 3.0 5ghz radio 1.7 2ghz radio 2.3 ------------------------ pciconf ------------------------ ath0@pci0:2:6:0: class=0x020000 card=0x7005144f chip=0x0012168c rev=0x01 hdr=0x00 vendor = 'Atheros Communications Inc.' device = 'AR5211 802.11a/b/g Mini-PCI Wireless Adapter' class = network subclass = ethernet ------------------------ When I try to operate in 802.11a mode the card associate with AP but can't send packets. I try ping and check that the packets go through firewall but disappear somewhere, in tcpdump I don't see send packets. I try to ping my notebook from other PC and in tcpdump I see "arp who-has" and other packets from other PC but again no packets from AR5211 card. In 802.11b mode card is working fine. I try the card on windows and its working. ahtstats output: 13 data frames received 2 data frames transmit 65 long on-chip tx retries 4 tx failed 'cuz too many retries 1M current transmit rate 28 beacon miss interrupts 1746 tx management frames 2385 tx frames discarded prior to association 1703 tx frames with no ack marked 884 rx failed 'cuz of bad CRC 30 periodic calibrations 2 rfgain value change 7 avg recv rssi -96 rx noise floor 24 phantom beacon misses 53 tx discarded 'cuz queue is full Antenna profile: [0] tx 1739 rx 0 [1] tx 0 rx 6942 "tx discarded 'cuz queue is full" counter increased with ping packets. I try AR5006 based PCcard and it working fine on FreeBSD 7.1 and 7.2 It seems that only AR5211 driver have problems and can't send packets. -- Best regards, Nikolay Kanchev From owner-freebsd-mobile@FreeBSD.ORG Mon Mar 23 15:53:34 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 42B76106566C for ; Mon, 23 Mar 2009 15:53:34 +0000 (UTC) (envelope-from nikolay.kanchev@amk-drives.bg) Received: from amk-drives.bg (mail.amk-drives.bg [213.91.234.2]) by mx1.freebsd.org (Postfix) with SMTP id 2E8B68FC0A for ; Mon, 23 Mar 2009 15:53:32 +0000 (UTC) (envelope-from nikolay.kanchev@amk-drives.bg) Received: (qmail 75032 invoked from network); 23 Mar 2009 17:35:41 +0200 Received: from unknown (HELO ?192.168.0.13?) (nikolay.kanchev@amk-drives.bg@192.168.0.13) by 0 with SMTP; 23 Mar 2009 17:35:41 +0200 Message-ID: <49C7A8E5.2090909@amk-drives.bg> Date: Mon, 23 Mar 2009 17:21:09 +0200 From: Nikolay Kanchev Organization: AMK User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: freebsd-mobile@freebsd.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Atheros AR5211 802.11a can't send packets X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Mar 2009 15:53:34 -0000 Hello list I have trouble with miniPCI Atheros AR5211 based card and 802.11a mode on Freebsd 7.1 and 7.2 PRERELEASE Notebook: Pentium M 1.5GHz from FreeBSD 7.2 generic kernel dmesg ------------------------ ath0: mem 0xe0200000-0xe020ffff irq 10 at device 6.0 on pci2 ath0: [ITHREAD] ath0: WARNING: using obsoleted if_watchdog interface ath0: Ethernet address: 00:ff:f3:a0:28:02 ath0: mac 4.2 phy 3.0 5ghz radio 1.7 2ghz radio 2.3 ------------------------ pciconf ------------------------ ath0@pci0:2:6:0: class=0x020000 card=0x7005144f chip=0x0012168c rev=0x01 hdr=0x00 vendor = 'Atheros Communications Inc.' device = 'AR5211 802.11a/b/g Mini-PCI Wireless Adapter' class = network subclass = ethernet ------------------------ When I try to operate in 802.11a mode the card associate with AP but can't send packets. I try ping and check that the packets go through firewall but disappear somewhere, in tcpdump I don't see send packets. I try to ping my notebook from other PC and in tcpdump I see "arp who-has" and other packets from other PC but again no packets from AR5211 card. In 802.11b mode card is working fine. I try the card on windows and its working. ahtstats output: 13 data frames received 2 data frames transmit 65 long on-chip tx retries 4 tx failed 'cuz too many retries 1M current transmit rate 28 beacon miss interrupts 1746 tx management frames 2385 tx frames discarded prior to association 1703 tx frames with no ack marked 884 rx failed 'cuz of bad CRC 30 periodic calibrations 2 rfgain value change 7 avg recv rssi -96 rx noise floor 24 phantom beacon misses 53 tx discarded 'cuz queue is full Antenna profile: [0] tx 1739 rx 0 [1] tx 0 rx 6942 "tx discarded 'cuz queue is full" counter increased with ping packets. I try AR5006 based PCcard and it working fine on FreeBSD 7.1 and 7.2 It seems that only AR5211 driver have problems and can't send packets. -- Best regards, Nikolay Kanchev From owner-freebsd-mobile@FreeBSD.ORG Mon Mar 23 16:29:34 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DFE0410656D3 for ; Mon, 23 Mar 2009 16:29:34 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id 897CC8FC17 for ; Mon, 23 Mar 2009 16:29:34 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from trouble.errno.com (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id n2NGTL8R026870 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 23 Mar 2009 09:29:21 -0700 (PDT) (envelope-from sam@freebsd.org) Message-ID: <49C7B8E1.20806@freebsd.org> Date: Mon, 23 Mar 2009 09:29:21 -0700 From: Sam Leffler Organization: FreeBSD Project User-Agent: Thunderbird 2.0.0.18 (X11/20081209) MIME-Version: 1.0 To: Nikolay Kanchev References: <49C7A8E5.2090909@amk-drives.bg> In-Reply-To: <49C7A8E5.2090909@amk-drives.bg> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC-x.dcc-servers-Metrics: ebb.errno.com; whitelist Cc: freebsd-mobile@freebsd.org Subject: Re: Atheros AR5211 802.11a can't send packets X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Mar 2009 16:29:40 -0000 Nikolay Kanchev wrote: > Hello list > > I have trouble with miniPCI Atheros AR5211 based card and 802.11a mode > on Freebsd 7.1 and 7.2 PRERELEASE > > Notebook: Pentium M 1.5GHz > > from FreeBSD 7.2 generic kernel > dmesg > ------------------------ > ath0: mem 0xe0200000-0xe020ffff irq 10 at device 6.0 on > pci2 > ath0: [ITHREAD] > ath0: WARNING: using obsoleted if_watchdog interface > ath0: Ethernet address: 00:ff:f3:a0:28:02 > ath0: mac 4.2 phy 3.0 5ghz radio 1.7 2ghz radio 2.3 > ------------------------ > > pciconf > ------------------------ > ath0@pci0:2:6:0: class=0x020000 card=0x7005144f chip=0x0012168c > rev=0x01 hdr=0x00 > vendor = 'Atheros Communications Inc.' > device = 'AR5211 802.11a/b/g Mini-PCI Wireless Adapter' > class = network > subclass = ethernet > ------------------------ > > When I try to operate in 802.11a mode the card associate with AP but > can't send packets. > I try ping and check that the packets go through firewall but > disappear somewhere, in tcpdump I don't see send packets. > I try to ping my notebook from other PC and in tcpdump I see "arp > who-has" and other packets from other PC but again no packets from > AR5211 card. > > In 802.11b mode card is working fine. > > I try the card on windows and its working. > > ahtstats output: > > 13 data frames received > 2 data frames transmit > 65 long on-chip tx retries > 4 tx failed 'cuz too many retries > 1M current transmit rate > 28 beacon miss interrupts > 1746 tx management frames > 2385 tx frames discarded prior to association > 1703 tx frames with no ack marked > 884 rx failed 'cuz of bad CRC > 30 periodic calibrations > 2 rfgain value change > 7 avg recv rssi > -96 rx noise floor > 24 phantom beacon misses > 53 tx discarded 'cuz queue is full > Antenna profile: > [0] tx 1739 rx 0 > [1] tx 0 rx 6942 > > "tx discarded 'cuz queue is full" counter increased with ping packets. > I try AR5006 based PCcard and it working fine on FreeBSD 7.1 and 7.2 > It seems that only AR5211 driver have problems and can't send packets. > A single snapshot of athstats isn't very useful; you need to collect stats before and after packets are lost to look for reasons why the packets do not go out. athstats 1 or similar is also useful when digging for problems. Alternatively learn about wlandebug and the debug facilities that let you get console msgs. I don't run RELENG_7 but I test 5211 in 11b and 11a, w/ and w/o security whenever I make hal changes so I doubt there's anything specific to the 5211. You also haven't provided basic info like how your card is configured. Sam From owner-freebsd-mobile@FreeBSD.ORG Mon Mar 23 18:11:29 2009 Return-Path: Delivered-To: mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E5A0A1065673 for ; Mon, 23 Mar 2009 18:11:29 +0000 (UTC) (envelope-from "") Received: from smtp-PE3-3-SHARED11.orcsweb.com (smtp-pe3-3-shared11.orcsweb.com [209.34.241.243]) by mx1.freebsd.org (Postfix) with ESMTP id 8846B8FC15 for ; Mon, 23 Mar 2009 18:11:29 +0000 (UTC) (envelope-from "") Message-ID: <633734133755916764@smtp-PE3-3-SHARED11.orcsweb.com> From: "System Administrator" To: mobile@freebsd.org Date: Mon, 23 Mar 2009 13:56:15 -0400 Cc: Subject: Delivery Failure X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Mar 2009 18:11:30 -0000 Could not deliver message to the following recipient(s): Failed Recipient: org@paragliding.com.do Reason: Remote host said: 550 No such user (org@paragliding.com.do) -- The header and top 20 lines of the message follows -- Received: from pe3-3-shared11.orcsweb.com [127.0.0.1] by smtp-PE3-3-SHARED11.orcsweb.com with SMTP; Mon, 23 Mar 2009 13:56:06 -0400 From: "jonny3 jonny3" To: Org@Paragliding.com.do Subject: Registration Form Date: Mon, 23 Mar 2009 13:56:06 -0400 Message-ID: <20090323-13560662-147ec@pe3-3-shared11.orcsweb.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="--=1AF278DD81294235AB15_4C88_4C68_BEAF" ----=1AF278DD81294235AB15_4C88_4C68_BEAF Content-Type: text/plain;charset="iso-8859-1" Content-Transfer-Encoding: 7bit New submission from Paragliding.com.do Names: jonny3 Surnames: jonny3 Country: UNDETERMINED Experience: UNDETERMINED Ranking: UNDETERMINED From owner-freebsd-mobile@FreeBSD.ORG Mon Mar 23 19:36:38 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2A7031065670 for ; Mon, 23 Mar 2009 19:36:38 +0000 (UTC) (envelope-from jmt@twilley.org) Received: from alpha.twilley.org (alpha.twilley.org [204.152.189.135]) by mx1.freebsd.org (Postfix) with ESMTP id 19EA88FC1E for ; Mon, 23 Mar 2009 19:36:38 +0000 (UTC) (envelope-from jmt@twilley.org) Received: from [10.202.10.160] (205.158.109.36.ptr.us.xo.net [205.158.109.36]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by alpha.twilley.org (Postfix) with ESMTPSA id DF4B023383C for ; Mon, 23 Mar 2009 12:21:15 -0700 (PDT) Message-ID: <49C7E0F8.9000701@twilley.org> Date: Mon, 23 Mar 2009 12:20:24 -0700 From: Jack Twilley User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: freebsd-mobile@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: RT2860 NDIS needs rate.bin, where is it? X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Mar 2009 19:36:38 -0000 NDIS finally works again in 8.0-CURRENT so I thought I'd try to get my RT2860 wireless working. I built the rt2860_sys.ko using ndisgen and copied rt2860.bin into /compat/ndis and kldloaded the new module. NDIS complains that it can't open /compat/ndis/rate.bin with errno 2. I don't have a rate.bin to give it, there wasn't one in the Windows bundle or the Linux one though it is referenced in the Linux driver source code. I tried copying rt2860.bin to rate.bin but that didn't work. I tried starting wpa_supplicant anyway, and got this: Starting wpa_supplicant. ioctl[SIOCG80211, op 98, len 32]: Invalid argument ELOOP: remaining socket: sock=5 eloop_data=0x28407140 user_data=0x2840e040 handler=0x8069f40 /etc/rc.d/wpa_supplicant: WARNING: failed to start wpa_supplicant Jack. From owner-freebsd-mobile@FreeBSD.ORG Mon Mar 23 20:36:21 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 54338106566B for ; Mon, 23 Mar 2009 20:36:21 +0000 (UTC) (envelope-from knowtree@aloha.com) Received: from relay.pixi.com (relay.pixi.com [206.127.224.101]) by mx1.freebsd.org (Postfix) with ESMTP id 09AC38FC1B for ; Mon, 23 Mar 2009 20:36:20 +0000 (UTC) (envelope-from knowtree@aloha.com) Received: from yoda.pixi.com (yoda.pixi.com [206.127.224.41]) by relay.pixi.com (8.13.8+Sun/8.13.6) with ESMTP id n2NKaHG0013785; Mon, 23 Mar 2009 10:36:17 -1000 (HST) Received: from webmail.pixi.com (yoda.pixi.com [206.127.224.120] (may be forged)) by yoda.pixi.com (8.13.1/8.13.1) with SMTP id n2NKaGXC016055; Mon, 23 Mar 2009 10:36:17 -1000 Message-Id: <200903232036.n2NKaGXC016055@yoda.pixi.com> To: Jack Twilley , freebsd-mobile@freebsd.org From: knowtree@aloha.com Date: Mon, 23 Mar 2009 10:36:17 HST X-Posting-IP: 141.190.32.72 X-Mailer: Endymion MailMan Standard Edition v3.2.19 Cc: Subject: Re: RT2860 NDIS needs rate.bin, where is it? X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Mar 2009 20:36:21 -0000 > NDIS finally works again in 8.0-CURRENT Is this the same thing as Project Evil? Gary Dunn Open Slate Project From owner-freebsd-mobile@FreeBSD.ORG Mon Mar 23 21:41:53 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BC3B3106567C for ; Mon, 23 Mar 2009 21:41:53 +0000 (UTC) (envelope-from onemda@gmail.com) Received: from mail-ew0-f171.google.com (mail-ew0-f171.google.com [209.85.219.171]) by mx1.freebsd.org (Postfix) with ESMTP id 552E78FC37 for ; Mon, 23 Mar 2009 21:41:53 +0000 (UTC) (envelope-from onemda@gmail.com) Received: by ewy19 with SMTP id 19so1595731ewy.43 for ; Mon, 23 Mar 2009 14:41:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=VOhzXpfVDdiE0IVHhHNxk1NlkV9sVauQTd/IrUfiezA=; b=pZcYxbbD4AcIBDYGjjlKJHU7aTiEtH9VXnq2rbHWoiEIv/B7TDP/pO7Fmo9qzosjAV g9s9MaddyVr9cmE0HlWhCGMAogsR3u8RL50o0/qBtMJDd4tiSHcNrIv6kaN3EwtnGa4T pulR7V4uiPp/KyCGBgr84mjNg82cnMA0WQ0Zo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=jag5w9ibnTzX1r8LU6+i+04vJbFUzQibTfErXZAFccvX+iVv80Xe5YEa62xUHCcEE0 dCzdeeF+8G4vL2O2K5+kAlP3zsTtpFGsCnOTjq/FfBEixmDdytla6o8EGbSEWFvLPoiB aPsmglp2xgzrcy5iSX1SIrhVwJmELUOjmO1rs= MIME-Version: 1.0 Received: by 10.210.34.5 with SMTP id h5mr2627314ebh.38.1237844512495; Mon, 23 Mar 2009 14:41:52 -0700 (PDT) In-Reply-To: <49C7E0F8.9000701@twilley.org> References: <49C7E0F8.9000701@twilley.org> Date: Mon, 23 Mar 2009 22:41:52 +0100 Message-ID: <3a142e750903231441g184fa5d1r57515c77d01e6dd4@mail.gmail.com> From: "Paul B. Mahol" To: Jack Twilley Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-mobile@freebsd.org Subject: Re: RT2860 NDIS needs rate.bin, where is it? X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Mar 2009 21:41:54 -0000 On 3/23/09, Jack Twilley wrote: > NDIS finally works again in 8.0-CURRENT so I thought I'd try to get my > RT2860 wireless working. I built the rt2860_sys.ko using ndisgen and > copied rt2860.bin into /compat/ndis and kldloaded the new module. NDIS > complains that it can't open /compat/ndis/rate.bin with errno 2. I > don't have a rate.bin to give it, there wasn't one in the Windows bundle > or the Linux one though it is referenced in the Linux driver source > code. I tried copying rt2860.bin to rate.bin but that didn't work. > > I tried starting wpa_supplicant anyway, and got this: > > Starting wpa_supplicant. > ioctl[SIOCG80211, op 98, len 32]: Invalid argument > ELOOP: remaining socket: sock=5 eloop_data=0x28407140 > user_data=0x2840e040 handler=0x8069f40 > /etc/rc.d/wpa_supplicant: WARNING: failed to start wpa_supplicant Please, tell me that you start wpa_supplicant with -Dndis flag. -- Paul From owner-freebsd-mobile@FreeBSD.ORG Mon Mar 23 21:43:09 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7713610656C3 for ; Mon, 23 Mar 2009 21:43:09 +0000 (UTC) (envelope-from onemda@gmail.com) Received: from mail-ew0-f171.google.com (mail-ew0-f171.google.com [209.85.219.171]) by mx1.freebsd.org (Postfix) with ESMTP id 085DF8FC17 for ; Mon, 23 Mar 2009 21:43:08 +0000 (UTC) (envelope-from onemda@gmail.com) Received: by ewy19 with SMTP id 19so1596164ewy.43 for ; Mon, 23 Mar 2009 14:43:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=ZBnuUFUgiSI10CKJR4ammnAEOdY6OY9jA1CQg1gEHhw=; b=M7UGKZa55fOi7wUPsYGA+EtAGNoq2NRh0FI4RqqNXE/v8pE5wuIiN7rUTbFF7/9HNb qOCcvjb5Umr5p+8yigo3piQyz0Ka4Q3eU8gaKPtDXDs0eMtIxYmf2cWi8Iz1MmUKzmO6 OAoUkhuZYgvsZ8lTL6rGcJjybb4aC5WKUztqQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=da/B8TxfhHalr3kT8J+kpIeBCTBdCv034OSZaTU62CO1YneoHv9mUXOUTRqswlwe8+ tg55W7MGDjP8KPGhh3XcTJGZL6UtBJ0PGAwn6PleHBPEtcRohx/GSMcTJpYEv+6kYEFw mnFEQrBtIuo/A+mKgFLqUccmXvv4fPRFLdUGI= MIME-Version: 1.0 Received: by 10.210.35.17 with SMTP id i17mr1424922ebi.74.1237844588153; Mon, 23 Mar 2009 14:43:08 -0700 (PDT) In-Reply-To: <200903232036.n2NKaGXC016055@yoda.pixi.com> References: <200903232036.n2NKaGXC016055@yoda.pixi.com> Date: Mon, 23 Mar 2009 22:43:08 +0100 Message-ID: <3a142e750903231443u2f0df96vbf66e7318d410992@mail.gmail.com> From: "Paul B. Mahol" To: knowtree@aloha.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Jack Twilley , freebsd-mobile@freebsd.org Subject: Re: RT2860 NDIS needs rate.bin, where is it? X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Mar 2009 21:43:11 -0000 On 3/23/09, knowtree@aloha.com wrote: >> NDIS finally works again in 8.0-CURRENT > > Is this the same thing as Project Evil? NDISulator a.k.a. Project Evil -- Paul From owner-freebsd-mobile@FreeBSD.ORG Mon Mar 23 22:04:12 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8826D10656D4; Mon, 23 Mar 2009 22:04:12 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id 066F48FC1A; Mon, 23 Mar 2009 22:04:11 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from vhoffman-macbook.local ([IPv6:2001:470:9099:0:214:51ff:feed:712d]) (authenticated bits=0) by unsane.co.uk (8.14.3/8.14.0) with ESMTP id n2NM5sQX092541 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Mon, 23 Mar 2009 22:05:54 GMT (envelope-from vince@unsane.co.uk) Message-ID: <49C8075A.2050008@unsane.co.uk> Date: Mon, 23 Mar 2009 22:04:10 +0000 From: Vincent Hoffman User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1b3pre) Gecko/20081204 Thunderbird/3.0b1 MIME-Version: 1.0 To: Doug Barton References: <02EF6260-D64F-4473-A5F6-C95246261BCE@gmail.com> <49C4775A.4060206@FreeBSD.org> <49C55B8C.50208@FreeBSD.org> <49C68F61.4070204@FreeBSD.org> In-Reply-To: <49C68F61.4070204@FreeBSD.org> X-Enigmail-Version: 0.96a Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Jason Nordwick , freebsd-mobile@freebsd.org Subject: Re: Intel/Pro Wireless 3945ABG working! now slow :( X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Mar 2009 22:04:13 -0000 On 22/3/09 19:20, Doug Barton wrote: > Jason Nordwick wrote: > >> Thanks for all the help, but this didn't help at all. It is either slow >> or I get a page of no route to host messages from ping when trying to >> ping my wireless router (and it does support 11g). I think their might >> be a syntax error on one of the lines you gave me, >> > > There isn't, read the man page for wpi. BTW, I forgot to add that you > should take out the ifconfig_wpi0 line that you had in your rc.conf. > > >>> Try doing this instead: >>> wlans_wpi0=wlan0 >>> ifconfig_wlan0="DHCP ssid mamalinz mode 11g" >>> > > If that doesn't work for you, you'll need to upgrade to the latest > -stable. If you need help with that check the handbook, and/or ask on > freebsd-questions@freebsd.org. > > > I dont think the wlan vap stuff has been merged to -STABLE (nothing in UPDATING anyway,) so as far as I know its still ifconfig_wpi0= in -STABLE. Current config is as Doug says and has been since last april. I'm about to update a server at home from 7.1 to -STABLE so I'd be interested to know if i'm wrong. Vince > Doug > > From owner-freebsd-mobile@FreeBSD.ORG Tue Mar 24 00:33:17 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C1552106566B for ; Tue, 24 Mar 2009 00:33:17 +0000 (UTC) (envelope-from jmt@twilley.org) Received: from alpha.twilley.org (alpha.twilley.org [204.152.189.135]) by mx1.freebsd.org (Postfix) with ESMTP id A8AB08FC13 for ; Tue, 24 Mar 2009 00:33:17 +0000 (UTC) (envelope-from jmt@twilley.org) Received: from [10.202.10.160] (205.158.109.36.ptr.us.xo.net [205.158.109.36]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by alpha.twilley.org (Postfix) with ESMTPSA id 8BF9223383C; Mon, 23 Mar 2009 17:33:16 -0700 (PDT) Message-ID: <49C82A4B.5090108@twilley.org> Date: Mon, 23 Mar 2009 17:33:15 -0700 From: Jack Twilley User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: "Paul B. Mahol" References: <49C7E0F8.9000701@twilley.org> <3a142e750903231441g184fa5d1r57515c77d01e6dd4@mail.gmail.com> In-Reply-To: <3a142e750903231441g184fa5d1r57515c77d01e6dd4@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-mobile@freebsd.org Subject: Re: RT2860 NDIS needs rate.bin, where is it? X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Mar 2009 00:33:18 -0000 Paul B. Mahol wrote: > On 3/23/09, Jack Twilley wrote: >> NDIS finally works again in 8.0-CURRENT so I thought I'd try to get my >> RT2860 wireless working. I built the rt2860_sys.ko using ndisgen and >> copied rt2860.bin into /compat/ndis and kldloaded the new module. NDIS >> complains that it can't open /compat/ndis/rate.bin with errno 2. I >> don't have a rate.bin to give it, there wasn't one in the Windows bundle >> or the Linux one though it is referenced in the Linux driver source >> code. I tried copying rt2860.bin to rate.bin but that didn't work. >> >> I tried starting wpa_supplicant anyway, and got this: >> >> Starting wpa_supplicant. >> ioctl[SIOCG80211, op 98, len 32]: Invalid argument >> ELOOP: remaining socket: sock=5 eloop_data=0x28407140 >> user_data=0x2840e040 handler=0x8069f40 >> /etc/rc.d/wpa_supplicant: WARNING: failed to start wpa_supplicant > > Please, tell me that you start wpa_supplicant with -Dndis flag. > I ran 'sh -x /etc/rc.d/wpa_supplicant start ndis0' to see how the script was starting the program. Here is the original command line: /usr/sbin/wpa_supplicant -s -B -i ndis0 -c /etc/wpa_supplicant.conf -D bsd -P /var/run/wpa_supplicant/ndis0.pid I replaced '-D bsd' with '-D ndis' and still got a return code of 255. I double-checked to ensure the module was loaded, and adding '-dd' did not increase the debug output. I also read the /etc/rc.d/wpa_supplicant script to see how it detected whether or not to use '-D ndis'. Turns out it calls a function named 'is_ndis_interface()' which checks a sysctl named 'net.wlan.${1#wlan}.%parent' but there is no 'net.wlan.ndis0.%parent', nor is there any 'net.wlan.ndis0' keys. There *is* 'net.ndis.0.%parent' which is set to pci1 and 'net.ndis.0.%driver' which is set to ndis -- the latter sounds like a possibly sensible test for '-D ndis' if you ask me. Anyway, the fact that the sysctl wasn't present makes me think the failure to load /compat/ndis/rate.bin might have caused 'ndis_attach()' to not call 'ndis_create_sysctls()', or 'ndis_attach_pci()' to not call 'ndis_attach()', or so on -- but I can't tell where 'NdisOpenFile()' gets called so I'm not sure. Does this sound reasonable? What do you think? Jack. From owner-freebsd-mobile@FreeBSD.ORG Tue Mar 24 01:18:36 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6534410656C0 for ; Tue, 24 Mar 2009 01:18:36 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx22.fluidhosting.com [204.14.89.5]) by mx1.freebsd.org (Postfix) with ESMTP id F01048FC14 for ; Tue, 24 Mar 2009 01:18:35 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 32543 invoked by uid 399); 24 Mar 2009 01:18:33 -0000 Received: from localhost (HELO lap.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 24 Mar 2009 01:18:33 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <49C834E7.4070601@FreeBSD.org> Date: Mon, 23 Mar 2009 18:18:31 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0.0.21 (X11/20090321) MIME-Version: 1.0 To: Vincent Hoffman References: <02EF6260-D64F-4473-A5F6-C95246261BCE@gmail.com> <49C4775A.4060206@FreeBSD.org> <49C55B8C.50208@FreeBSD.org> <49C68F61.4070204@FreeBSD.org> <49C8075A.2050008@unsane.co.uk> In-Reply-To: <49C8075A.2050008@unsane.co.uk> X-Enigmail-Version: 0.95.7 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Jason Nordwick , freebsd-mobile@freebsd.org Subject: Re: Intel/Pro Wireless 3945ABG working! now slow :( X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Mar 2009 01:18:36 -0000 Vincent Hoffman wrote: > I dont think the wlan vap stuff has been merged to -STABLE Don't guess. As I've said several times in this thread already, read the man page for wpi. Doug -- This .signature sanitized for your protection From owner-freebsd-mobile@FreeBSD.ORG Tue Mar 24 07:22:31 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F3309106566B for ; Tue, 24 Mar 2009 07:22:30 +0000 (UTC) (envelope-from onemda@gmail.com) Received: from mail-ew0-f171.google.com (mail-ew0-f171.google.com [209.85.219.171]) by mx1.freebsd.org (Postfix) with ESMTP id 5E2C38FC16 for ; Tue, 24 Mar 2009 07:22:29 +0000 (UTC) (envelope-from onemda@gmail.com) Received: by ewy19 with SMTP id 19so1688587ewy.43 for ; Tue, 24 Mar 2009 00:22:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=4EXYXIkJ7Rl+4Fh9cZ19+2mFonO8BPQJJsr1zjZhc4k=; b=V72dQMMgtPxjCJ2iZIvsZWtnE94K04lxplrcBPpHqbZt/evHhzC8FteMXVd1/vR8VP 0TxFA3gOd0UE7Wmcxt11UmdgUOfBwrF0nT3OaG7yPkyVRvyJSmDRkBrw/mjN7TJs3IgH xFQkcZwDKNFdzECUBusvE91/e1FWOO8/cWerM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=PPVUeQD7yGUmlJ1KWmqe7DAQdZj2MKUuq/fu16N599KsiFrAc4yoI2rEf3y+qCXNmH F69b2SUBSRaal4iELXwqy61jRTlWdTr36RMvh7yJ6f3GLEQOMU+KCa446+GrmMi3FkLJ FJhhG7gKYiNMceLd2tMoV1VcxUjPhe4d4vgJo= MIME-Version: 1.0 Received: by 10.210.136.10 with SMTP id j10mr5544141ebd.8.1237879349195; Tue, 24 Mar 2009 00:22:29 -0700 (PDT) In-Reply-To: <49C82A4B.5090108@twilley.org> References: <49C7E0F8.9000701@twilley.org> <3a142e750903231441g184fa5d1r57515c77d01e6dd4@mail.gmail.com> <49C82A4B.5090108@twilley.org> Date: Tue, 24 Mar 2009 08:22:29 +0100 Message-ID: <3a142e750903240022n10d8b8cdy3787cc6b423df3c8@mail.gmail.com> From: "Paul B. Mahol" To: Jack Twilley Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-mobile@freebsd.org Subject: Re: RT2860 NDIS needs rate.bin, where is it? X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Mar 2009 07:22:32 -0000 On 3/24/09, Jack Twilley wrote: > Paul B. Mahol wrote: >> On 3/23/09, Jack Twilley wrote: >>> NDIS finally works again in 8.0-CURRENT so I thought I'd try to get my >>> RT2860 wireless working. I built the rt2860_sys.ko using ndisgen and >>> copied rt2860.bin into /compat/ndis and kldloaded the new module. NDIS >>> complains that it can't open /compat/ndis/rate.bin with errno 2. I >>> don't have a rate.bin to give it, there wasn't one in the Windows bundle >>> or the Linux one though it is referenced in the Linux driver source >>> code. I tried copying rt2860.bin to rate.bin but that didn't work. >>> >>> I tried starting wpa_supplicant anyway, and got this: >>> >>> Starting wpa_supplicant. >>> ioctl[SIOCG80211, op 98, len 32]: Invalid argument >>> ELOOP: remaining socket: sock=5 eloop_data=0x28407140 >>> user_data=0x2840e040 handler=0x8069f40 >>> /etc/rc.d/wpa_supplicant: WARNING: failed to start wpa_supplicant >> >> Please, tell me that you start wpa_supplicant with -Dndis flag. >> > > I ran 'sh -x /etc/rc.d/wpa_supplicant start ndis0' to see how the script > was starting the program. Here is the original command line: > > /usr/sbin/wpa_supplicant -s -B -i ndis0 -c /etc/wpa_supplicant.conf -D > bsd -P /var/run/wpa_supplicant/ndis0.pid > > I replaced '-D bsd' with '-D ndis' and still got a return code of 255. > I double-checked to ensure the module was loaded, and adding '-dd' did > not increase the debug output. > > I also read the /etc/rc.d/wpa_supplicant script to see how it detected > whether or not to use '-D ndis'. Turns out it calls a function named > 'is_ndis_interface()' which checks a sysctl named > 'net.wlan.${1#wlan}.%parent' but there is no 'net.wlan.ndis0.%parent', > nor is there any 'net.wlan.ndis0' keys. There *is* 'net.ndis.0.%parent' > which is set to pci1 and 'net.ndis.0.%driver' which is set to ndis -- > the latter sounds like a possibly sensible test for '-D ndis' if you ask > me. > > Anyway, the fact that the sysctl wasn't present makes me think the > failure to load /compat/ndis/rate.bin might have caused 'ndis_attach()' > to not call 'ndis_create_sysctls()', or 'ndis_attach_pci()' to not call > 'ndis_attach()', or so on -- but I can't tell where 'NdisOpenFile()' > gets called so I'm not sure. > > Does this sound reasonable? What do you think? Probably, in my case net.wlan.0.%parent is ndis0 What is displayed on kldload and device attach on console? Try it with sysctl debug.ndis=1. -- Paul From owner-freebsd-mobile@FreeBSD.ORG Tue Mar 24 09:53:38 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 178351065673; Tue, 24 Mar 2009 09:53:38 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id 8C75C8FC13; Tue, 24 Mar 2009 09:53:37 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from vhoffman.lon.namesco.net (150.117-84-212.staticip.namesco.net [212.84.117.150]) (authenticated bits=0) by unsane.co.uk (8.14.3/8.14.0) with ESMTP id n2O9tEKN003365 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Tue, 24 Mar 2009 09:55:17 GMT (envelope-from vince@unsane.co.uk) Message-ID: <49C8AD9B.6010207@unsane.co.uk> Date: Tue, 24 Mar 2009 09:53:31 +0000 From: Vincent Hoffman User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1b3pre) Gecko/20081204 Thunderbird/3.0b1 MIME-Version: 1.0 To: Doug Barton References: <02EF6260-D64F-4473-A5F6-C95246261BCE@gmail.com> <49C4775A.4060206@FreeBSD.org> <49C55B8C.50208@FreeBSD.org> <49C68F61.4070204@FreeBSD.org> <49C8075A.2050008@unsane.co.uk> <49C834E7.4070601@FreeBSD.org> In-Reply-To: <49C834E7.4070601@FreeBSD.org> X-Enigmail-Version: 0.96a Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Jason Nordwick , freebsd-mobile@freebsd.org Subject: Re: Intel/Pro Wireless 3945ABG working! now slow :( X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Mar 2009 09:53:38 -0000 On 24/3/09 01:18, Doug Barton wrote: > Vincent Hoffman wrote: > >> I dont think the wlan vap stuff has been merged to -STABLE >> > > Don't guess. As I've said several times in this thread already, read > the man page for wpi. > > Doug > > Sorry Doug -STABLE doesnt use the multi-bss code. It still uses the old style config options http://svn.freebsd.org/viewvc/base/stable/7/share/man/man4/wpi.4?view=markup Is the multi-bss code likely to be MFCed? I assumed it was too big a change but it would be cool if it could. Vince From owner-freebsd-mobile@FreeBSD.ORG Tue Mar 24 17:12:26 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5329E1065969 for ; Tue, 24 Mar 2009 17:12:26 +0000 (UTC) (envelope-from jmt@twilley.org) Received: from alpha.twilley.org (alpha.twilley.org [204.152.189.135]) by mx1.freebsd.org (Postfix) with ESMTP id 2DEBA8FC18 for ; Tue, 24 Mar 2009 17:12:25 +0000 (UTC) (envelope-from jmt@twilley.org) Received: from [192.168.1.103] (c-24-6-104-13.hsd1.ca.comcast.net [24.6.104.13]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by alpha.twilley.org (Postfix) with ESMTPSA id 8283E23383C; Tue, 24 Mar 2009 10:12:25 -0700 (PDT) Message-ID: <49C91475.9080303@twilley.org> Date: Tue, 24 Mar 2009 10:12:21 -0700 From: Jack Twilley User-Agent: Thunderbird 2.0.0.19 (X11/20090209) MIME-Version: 1.0 To: "Paul B. Mahol" References: <49C7E0F8.9000701@twilley.org> <3a142e750903231441g184fa5d1r57515c77d01e6dd4@mail.gmail.com> <49C82A4B.5090108@twilley.org> <3a142e750903240022n10d8b8cdy3787cc6b423df3c8@mail.gmail.com> In-Reply-To: <3a142e750903240022n10d8b8cdy3787cc6b423df3c8@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-mobile@freebsd.org Subject: Re: RT2860 NDIS needs rate.bin, where is it? X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Mar 2009 17:12:29 -0000 Paul B. Mahol wrote: > On 3/24/09, Jack Twilley wrote: >> Paul B. Mahol wrote: >>> On 3/23/09, Jack Twilley wrote: >>>> NDIS finally works again in 8.0-CURRENT so I thought I'd try to get my >>>> RT2860 wireless working. I built the rt2860_sys.ko using ndisgen and >>>> copied rt2860.bin into /compat/ndis and kldloaded the new module. NDIS >>>> complains that it can't open /compat/ndis/rate.bin with errno 2. I >>>> don't have a rate.bin to give it, there wasn't one in the Windows bundle >>>> or the Linux one though it is referenced in the Linux driver source >>>> code. I tried copying rt2860.bin to rate.bin but that didn't work. >>>> >>>> I tried starting wpa_supplicant anyway, and got this: >>>> >>>> Starting wpa_supplicant. >>>> ioctl[SIOCG80211, op 98, len 32]: Invalid argument >>>> ELOOP: remaining socket: sock=5 eloop_data=0x28407140 >>>> user_data=0x2840e040 handler=0x8069f40 >>>> /etc/rc.d/wpa_supplicant: WARNING: failed to start wpa_supplicant >>> Please, tell me that you start wpa_supplicant with -Dndis flag. >>> >> I ran 'sh -x /etc/rc.d/wpa_supplicant start ndis0' to see how the script >> was starting the program. Here is the original command line: >> >> /usr/sbin/wpa_supplicant -s -B -i ndis0 -c /etc/wpa_supplicant.conf -D >> bsd -P /var/run/wpa_supplicant/ndis0.pid >> >> I replaced '-D bsd' with '-D ndis' and still got a return code of 255. >> I double-checked to ensure the module was loaded, and adding '-dd' did >> not increase the debug output. >> >> I also read the /etc/rc.d/wpa_supplicant script to see how it detected >> whether or not to use '-D ndis'. Turns out it calls a function named >> 'is_ndis_interface()' which checks a sysctl named >> 'net.wlan.${1#wlan}.%parent' but there is no 'net.wlan.ndis0.%parent', >> nor is there any 'net.wlan.ndis0' keys. There *is* 'net.ndis.0.%parent' >> which is set to pci1 and 'net.ndis.0.%driver' which is set to ndis -- >> the latter sounds like a possibly sensible test for '-D ndis' if you ask >> me. >> >> Anyway, the fact that the sysctl wasn't present makes me think the >> failure to load /compat/ndis/rate.bin might have caused 'ndis_attach()' >> to not call 'ndis_create_sysctls()', or 'ndis_attach_pci()' to not call >> 'ndis_attach()', or so on -- but I can't tell where 'NdisOpenFile()' >> gets called so I'm not sure. >> >> Does this sound reasonable? What do you think? > > Probably, in my case net.wlan.0.%parent is ndis0 > > What is displayed on kldload and device attach on console? > Try it with sysctl debug.ndis=1. > > Here is dmesg output from 'kldload rt2860_sys.ko' after running 'sysctl debug.ndis=1': no match for ZwWriteFile no match for ZwCreateFile no match for ZwReadFile ndis0: <802.11n Wireless LAN Card> mem 0xfbef0000-0xfbefffff irq 19 at device0.0 on pci1 ndis0: [ITHREAD] ndis0: NDIS API version: 5.0 NDIS: open file /compat/ndis/rate.bin failed: 2 attach done. halting done. /var/log/messages doesn't have anything new to add -- an unknown USB device is detected but that's the camera so I'm not worried. Jack. From owner-freebsd-mobile@FreeBSD.ORG Tue Mar 24 18:59:57 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B9B081065674 for ; Tue, 24 Mar 2009 18:59:57 +0000 (UTC) (envelope-from onemda@gmail.com) Received: from mail-ew0-f171.google.com (mail-ew0-f171.google.com [209.85.219.171]) by mx1.freebsd.org (Postfix) with ESMTP id 23AD18FC24 for ; Tue, 24 Mar 2009 18:59:56 +0000 (UTC) (envelope-from onemda@gmail.com) Received: by ewy19 with SMTP id 19so1943968ewy.43 for ; Tue, 24 Mar 2009 11:59:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=DGW4UTz0l4TONbzZsstYLwhqVlGBRB5B+CSsFa+r5ro=; b=buz8N5d1Zcyqv4AB1NOmSZ//lQbGeyCpYwjNfjecJ5sxJqx8umujJ0WwTxVANUUd63 e14Y0WQUe3T3uooHWjpm2BQo9azScIW9xgYxkjIhaYEpqKHXCFB0dov+EdVq2+SD55zj Bxj27lIE1XJahWuIdkyrWRPpDDxEK/ZqiRRLI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=ougjpFcYGbIHWzg3DOiQlPnu64CL1tlmjnadVo785Up2VjU7hWSOQpxjn/Sd1C3juL vHgyjzYrb6DYGqx4ThaAvMfBTsAxf/awWe3JxUNxT9xLBZUGPbikZbhx5HUkaEdF7yrg V3zNbBPn1pQDPM9ANb2VzHebybbELsztkbQ1I= MIME-Version: 1.0 Received: by 10.210.11.17 with SMTP id 17mr2221688ebk.7.1237921195803; Tue, 24 Mar 2009 11:59:55 -0700 (PDT) In-Reply-To: <49C91475.9080303@twilley.org> References: <49C7E0F8.9000701@twilley.org> <3a142e750903231441g184fa5d1r57515c77d01e6dd4@mail.gmail.com> <49C82A4B.5090108@twilley.org> <3a142e750903240022n10d8b8cdy3787cc6b423df3c8@mail.gmail.com> <49C91475.9080303@twilley.org> Date: Tue, 24 Mar 2009 19:59:55 +0100 Message-ID: <3a142e750903241159m57464eb7wd50a6e88fd1390c2@mail.gmail.com> From: "Paul B. Mahol" To: Jack Twilley Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-mobile@freebsd.org Subject: Re: RT2860 NDIS needs rate.bin, where is it? X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Mar 2009 18:59:58 -0000 On 3/24/09, Jack Twilley wrote: > Paul B. Mahol wrote: >> On 3/24/09, Jack Twilley wrote: >>> Paul B. Mahol wrote: >>>> On 3/23/09, Jack Twilley wrote: >>>>> NDIS finally works again in 8.0-CURRENT so I thought I'd try to get my >>>>> RT2860 wireless working. I built the rt2860_sys.ko using ndisgen and >>>>> copied rt2860.bin into /compat/ndis and kldloaded the new module. NDIS >>>>> complains that it can't open /compat/ndis/rate.bin with errno 2. I >>>>> don't have a rate.bin to give it, there wasn't one in the Windows >>>>> bundle >>>>> or the Linux one though it is referenced in the Linux driver source >>>>> code. I tried copying rt2860.bin to rate.bin but that didn't work. >>>>> >>>>> I tried starting wpa_supplicant anyway, and got this: >>>>> >>>>> Starting wpa_supplicant. >>>>> ioctl[SIOCG80211, op 98, len 32]: Invalid argument >>>>> ELOOP: remaining socket: sock=5 eloop_data=0x28407140 >>>>> user_data=0x2840e040 handler=0x8069f40 >>>>> /etc/rc.d/wpa_supplicant: WARNING: failed to start wpa_supplicant >>>> Please, tell me that you start wpa_supplicant with -Dndis flag. >>>> >>> I ran 'sh -x /etc/rc.d/wpa_supplicant start ndis0' to see how the script >>> was starting the program. Here is the original command line: >>> >>> /usr/sbin/wpa_supplicant -s -B -i ndis0 -c /etc/wpa_supplicant.conf -D >>> bsd -P /var/run/wpa_supplicant/ndis0.pid >>> >>> I replaced '-D bsd' with '-D ndis' and still got a return code of 255. >>> I double-checked to ensure the module was loaded, and adding '-dd' did >>> not increase the debug output. >>> >>> I also read the /etc/rc.d/wpa_supplicant script to see how it detected >>> whether or not to use '-D ndis'. Turns out it calls a function named >>> 'is_ndis_interface()' which checks a sysctl named >>> 'net.wlan.${1#wlan}.%parent' but there is no 'net.wlan.ndis0.%parent', >>> nor is there any 'net.wlan.ndis0' keys. There *is* 'net.ndis.0.%parent' >>> which is set to pci1 and 'net.ndis.0.%driver' which is set to ndis -- >>> the latter sounds like a possibly sensible test for '-D ndis' if you ask >>> me. >>> >>> Anyway, the fact that the sysctl wasn't present makes me think the >>> failure to load /compat/ndis/rate.bin might have caused 'ndis_attach()' >>> to not call 'ndis_create_sysctls()', or 'ndis_attach_pci()' to not call >>> 'ndis_attach()', or so on -- but I can't tell where 'NdisOpenFile()' >>> gets called so I'm not sure. >>> >>> Does this sound reasonable? What do you think? >> >> Probably, in my case net.wlan.0.%parent is ndis0 >> >> What is displayed on kldload and device attach on console? >> Try it with sysctl debug.ndis=1. >> >> > > Here is dmesg output from 'kldload rt2860_sys.ko' after running 'sysctl > debug.ndis=1': > > no match for ZwWriteFile > no match for ZwCreateFile > no match for ZwReadFile > ndis0: <802.11n Wireless LAN Card> mem 0xfbef0000-0xfbefffff irq 19 at > device0.0 on pci1 > ndis0: [ITHREAD] > ndis0: NDIS API version: 5.0 > NDIS: open file /compat/ndis/rate.bin failed: 2 > attach done. > halting done. > > /var/log/messages doesn't have anything new to add -- an unknown USB > device is detected but that's the camera so I'm not worried. Perhaps rate.bin is already in that firmware. But I dont understand why "dummy called" is not displayed. Either required functions are not implemented or already present one are wrongly implemented. What about of "ktrace kldload ./rt2860_sys.ko"? -- Paul From owner-freebsd-mobile@FreeBSD.ORG Tue Mar 24 19:29:32 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4255D106566B for ; Tue, 24 Mar 2009 19:29:32 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id ECE2C8FC23 for ; Tue, 24 Mar 2009 19:29:31 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from trouble.errno.com (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id n2OJTVHY037114 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 24 Mar 2009 12:29:31 -0700 (PDT) (envelope-from sam@freebsd.org) Message-ID: <49C9349B.4080707@freebsd.org> Date: Tue, 24 Mar 2009 12:29:31 -0700 From: Sam Leffler Organization: FreeBSD Project User-Agent: Thunderbird 2.0.0.18 (X11/20081209) MIME-Version: 1.0 To: "Paul B. Mahol" References: <49C7E0F8.9000701@twilley.org> <3a142e750903231441g184fa5d1r57515c77d01e6dd4@mail.gmail.com> <49C82A4B.5090108@twilley.org> <3a142e750903240022n10d8b8cdy3787cc6b423df3c8@mail.gmail.com> <49C91475.9080303@twilley.org> <3a142e750903241159m57464eb7wd50a6e88fd1390c2@mail.gmail.com> In-Reply-To: <3a142e750903241159m57464eb7wd50a6e88fd1390c2@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC-x.dcc-servers-Metrics: ebb.errno.com; whitelist Cc: Jack Twilley , freebsd-mobile@freebsd.org Subject: Re: RT2860 NDIS needs rate.bin, where is it? X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Mar 2009 19:29:33 -0000 Paul B. Mahol wrote: > On 3/24/09, Jack Twilley wrote: > >> Paul B. Mahol wrote: >> >>> On 3/24/09, Jack Twilley wrote: >>> >>>> Paul B. Mahol wrote: >>>> >>>>> On 3/23/09, Jack Twilley wrote: >>>>> >>>>>> NDIS finally works again in 8.0-CURRENT so I thought I'd try to get my >>>>>> RT2860 wireless working. I built the rt2860_sys.ko using ndisgen and >>>>>> copied rt2860.bin into /compat/ndis and kldloaded the new module. NDIS >>>>>> complains that it can't open /compat/ndis/rate.bin with errno 2. I >>>>>> don't have a rate.bin to give it, there wasn't one in the Windows >>>>>> bundle >>>>>> or the Linux one though it is referenced in the Linux driver source >>>>>> code. I tried copying rt2860.bin to rate.bin but that didn't work. >>>>>> >>>>>> I tried starting wpa_supplicant anyway, and got this: >>>>>> >>>>>> Starting wpa_supplicant. >>>>>> ioctl[SIOCG80211, op 98, len 32]: Invalid argument >>>>>> ELOOP: remaining socket: sock=5 eloop_data=0x28407140 >>>>>> user_data=0x2840e040 handler=0x8069f40 >>>>>> /etc/rc.d/wpa_supplicant: WARNING: failed to start wpa_supplicant >>>>>> >>>>> Please, tell me that you start wpa_supplicant with -Dndis flag. >>>>> >>>>> >>>> I ran 'sh -x /etc/rc.d/wpa_supplicant start ndis0' to see how the script >>>> was starting the program. Here is the original command line: >>>> >>>> /usr/sbin/wpa_supplicant -s -B -i ndis0 -c /etc/wpa_supplicant.conf -D >>>> bsd -P /var/run/wpa_supplicant/ndis0.pid >>>> >>>> I replaced '-D bsd' with '-D ndis' and still got a return code of 255. >>>> I double-checked to ensure the module was loaded, and adding '-dd' did >>>> not increase the debug output. >>>> >>>> I also read the /etc/rc.d/wpa_supplicant script to see how it detected >>>> whether or not to use '-D ndis'. Turns out it calls a function named >>>> 'is_ndis_interface()' which checks a sysctl named >>>> 'net.wlan.${1#wlan}.%parent' but there is no 'net.wlan.ndis0.%parent', >>>> nor is there any 'net.wlan.ndis0' keys. There *is* 'net.ndis.0.%parent' >>>> which is set to pci1 and 'net.ndis.0.%driver' which is set to ndis -- >>>> the latter sounds like a possibly sensible test for '-D ndis' if you ask >>>> me. >>>> >>>> Anyway, the fact that the sysctl wasn't present makes me think the >>>> failure to load /compat/ndis/rate.bin might have caused 'ndis_attach()' >>>> to not call 'ndis_create_sysctls()', or 'ndis_attach_pci()' to not call >>>> 'ndis_attach()', or so on -- but I can't tell where 'NdisOpenFile()' >>>> gets called so I'm not sure. >>>> >>>> Does this sound reasonable? What do you think? >>>> >>> Probably, in my case net.wlan.0.%parent is ndis0 >>> >>> What is displayed on kldload and device attach on console? >>> Try it with sysctl debug.ndis=1. >>> >>> >>> >> Here is dmesg output from 'kldload rt2860_sys.ko' after running 'sysctl >> debug.ndis=1': >> >> no match for ZwWriteFile >> no match for ZwCreateFile >> no match for ZwReadFile >> ndis0: <802.11n Wireless LAN Card> mem 0xfbef0000-0xfbefffff irq 19 at >> device0.0 on pci1 >> ndis0: [ITHREAD] >> ndis0: NDIS API version: 5.0 >> NDIS: open file /compat/ndis/rate.bin failed: 2 >> attach done. >> halting done. >> >> /var/log/messages doesn't have anything new to add -- an unknown USB >> device is detected but that's the camera so I'm not worried. >> > > Perhaps rate.bin is already in that firmware. But I dont understand > why "dummy called" is not displayed. Either required functions are not > implemented or already present one are wrongly implemented. > > What about of "ktrace kldload ./rt2860_sys.ko"? > It looks very much like the driver is using ZwCreateFile+ZwReadFile to collect the contents of rate.bin. You can try implementing them (google points directly at the msdn entries) but you'll still need the .bin file. Seems like a better solution is to just bring over the 2860 support from obsd. Several people started that before but lost interest. If anyone's motivated they can contact me directly. Sam From owner-freebsd-mobile@FreeBSD.ORG Tue Mar 24 21:35:53 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 321BA10656DF for ; Tue, 24 Mar 2009 21:35:53 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx22.fluidhosting.com [204.14.89.5]) by mx1.freebsd.org (Postfix) with ESMTP id B9B088FC14 for ; Tue, 24 Mar 2009 21:35:51 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 21779 invoked by uid 399); 24 Mar 2009 21:35:46 -0000 Received: from localhost (HELO ?192.168.0.24?) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 24 Mar 2009 21:35:46 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <49C95230.7010902@FreeBSD.org> Date: Tue, 24 Mar 2009 14:35:44 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Vincent Hoffman References: <02EF6260-D64F-4473-A5F6-C95246261BCE@gmail.com> <49C4775A.4060206@FreeBSD.org> <49C55B8C.50208@FreeBSD.org> <49C68F61.4070204@FreeBSD.org> <49C8075A.2050008@unsane.co.uk> <49C834E7.4070601@FreeBSD.org> <49C8AD9B.6010207@unsane.co.uk> In-Reply-To: <49C8AD9B.6010207@unsane.co.uk> X-Enigmail-Version: 0.95.7 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Jason Nordwick , freebsd-mobile@freebsd.org Subject: Re: Intel/Pro Wireless 3945ABG working! now slow :( X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Mar 2009 21:35:57 -0000 Vincent Hoffman wrote: > Sorry Doug -STABLE doesnt use the multi-bss code. It still uses the old > style config options > http://svn.freebsd.org/viewvc/base/stable/7/share/man/man4/wpi.4?view=markup That man page specifically mentions wlan, although it does go on to use the "older" ifconfig_wpi0=blah examples. Strange. In any case, what I told the OP to do was to _try_ the wlan style configuration since what he was doing wasn't working. He's since reported back that things are sort of working, although since we've never seen the results of an 'ifconfig' I still have no idea what he's actually doing. Feel free to leave me off future replies to this thread. Doug From owner-freebsd-mobile@FreeBSD.ORG Wed Mar 25 22:48:20 2009 Return-Path: Delivered-To: mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AC1801065670 for ; Wed, 25 Mar 2009 22:48:20 +0000 (UTC) (envelope-from anonymous@webxc01s11.ad.aruba.it) Received: from smtpsmart2.aruba.it (smtpweb101.aruba.it [62.149.158.101]) by mx1.freebsd.org (Postfix) with SMTP id EF47D8FC16 for ; Wed, 25 Mar 2009 22:48:19 +0000 (UTC) (envelope-from anonymous@webxc01s11.ad.aruba.it) Received: (qmail 27885 invoked by uid 89); 25 Mar 2009 22:21:36 -0000 Received: by simscan 1.2.0 ppid: 27859, pid: 27861, t: 1.8448s scanners: clamav: 0.88.4/m:40/d:1945 spam: 3.1.4 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on smtpsmart2.fe.aruba.it X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RDNS_NONE autolearn=disabled version=3.2.5 Received: from unknown (HELO webxc01s11.ad.aruba.it) (62.149.141.21) by smtpsmart2.fe.aruba.it with SMTP; 25 Mar 2009 22:21:34 -0000 Received: (qmail 26270 invoked by uid 11080933); 25 Mar 2009 22:21:35 -0000 Date: 25 Mar 2009 22:21:35 -0000 Message-ID: <20090325222135.26269.qmail@webxc01s11.ad.aruba.it> To: mobile@freebsd.org From: freemagic@freemagic.it@webxc01s11.ad.aruba.it Cc: Subject: New Submit GFSearc! X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Mar 2009 22:48:20 -0000 Welcome to Freemagic Search! We are located at http://www.freemagic.it/cgi-bin/cerca/motore.cgi YOUR SUBMISSION: ------------------------------------------------------------------ URL : http://zhou-rox.com/testing/editor/language/7screen.html Title : XlMmBywufrmhb Description : TkfwokCdaJaLhbyzP Keywords : pkQPcJghGqmsHLUMuI E-mail : mobile@freebsd.org ------------------------------------------------------------------ Anything in this file is e-mailed to visitors who submit their URL to your search engine. To maintain compatibility with older e-mail clients you should limit the length of any line in this file to 70 characters or less.------------------------------------------------------------------ Thanks again, --------------------------------------------- Freemagic Search freemagic\@freemagic.it http://www.freemagic.it/cgi-bin/cerca/motore.cgi --------------------------------------------- Powered by : EasySearch - Copyright 1999 http://www.getperl.com visit: www.gratisfree.it/top100gf/index.shtml visit: www.gratisfree.it/top100patgirl/index.html From owner-freebsd-mobile@FreeBSD.ORG Thu Mar 26 11:58:55 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 483A5106564A for ; Thu, 26 Mar 2009 11:58:55 +0000 (UTC) (envelope-from Matthias.Apitz@oclc.org) Received: from mail.pica.nl (mail.pica.nl [192.87.44.30]) by mx1.freebsd.org (Postfix) with ESMTP id CA6E38FC1E for ; Thu, 26 Mar 2009 11:58:54 +0000 (UTC) (envelope-from Matthias.Apitz@oclc.org) Received: from rebelion.Sisis.de ([10.0.1.29]) by mail.pica.nl with Microsoft SMTPSVC(6.0.3790.3959); Thu, 26 Mar 2009 12:58:52 +0100 Received: (from guru@localhost) by rebelion.Sisis.de (8.14.2/8.13.8/Submit) id n2QBwquG036496; Thu, 26 Mar 2009 12:58:52 +0100 (CET) (envelope-from matthias.apitz@oclc.org) X-Authentication-Warning: rebelion.Sisis.de: guru set sender to matthias.apitz@oclc.org using -f Date: Thu, 26 Mar 2009 12:58:52 +0100 From: Matthias Apitz To: freebsd-mobile@freebsd.org Message-ID: <20090326115852.GA36096@rebelion.Sisis.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.0-STABLE (i386) X-OriginalArrivalTime: 26 Mar 2009 11:58:52.0817 (UTC) FILETIME=[3B83D010:01C9AE0A] Subject: acer Aspire one 150L booted -CURRENT X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Mar 2009 11:58:55 -0000 Hello, For some other reason I have created an USB key with a -CURRENT kernel (to test something on my EeePC 900). A colleague of me owns an "acer Aspire one 150L" netbook http://en.wikipedia.org/wiki/Aspire_One and I let it boot from the key; it booted fine and WLAN and DHCP came up without any kind of problem; just to let you know if someone is thinking in replacing the Linpus or XP on it; boot msg are attached below; matthias Mar 25 17:09:25 tinyCurrent syslogd: kernel boot file is /boot/kernel/kernel Mar 25 17:09:25 tinyCurrent kernel: Copyright (c) 1992-2009 The FreeBSD Project. Mar 25 17:09:25 tinyCurrent kernel: Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 Mar 25 17:09:25 tinyCurrent kernel: The Regents of the University of California. All rights reserved. Mar 25 17:09:25 tinyCurrent kernel: FreeBSD is a registered trademark of The FreeBSD Foundation. Mar 25 17:09:25 tinyCurrent kernel: FreeBSD 8.0-CURRENT #0: Sun Mar 22 11:47:41 CET 2009 Mar 25 17:09:25 tinyCurrent kernel: root@rebelion.Sisis.de:/usr/src/myHEAD/obj/usr/src/myHEAD/src/sys/GENERIC Mar 25 17:09:25 tinyCurrent kernel: WARNING: WITNESS option enabled, expect reduced performance. Mar 25 17:09:25 tinyCurrent kernel: Timecounter "i8254" frequency 1193182 Hz quality 0 Mar 25 17:09:25 tinyCurrent kernel: CPU: Intel(R) Atom(TM) CPU N270 @ 1.60GHz (1599.20-MHz 686-class CPU) Mar 25 17:09:25 tinyCurrent kernel: Origin = "GenuineIntel" Id = 0x106c2 Stepping = 2 Mar 25 17:09:25 tinyCurrent kernel: Features=0xbfe9fbff Mar 25 17:09:25 tinyCurrent kernel: Features2=0x40c39d> Mar 25 17:09:25 tinyCurrent kernel: AMD Features2=0x1 Mar 25 17:09:25 tinyCurrent kernel: TSC: P-state invariant Mar 25 17:09:25 tinyCurrent kernel: Logical CPUs per core: 2 Mar 25 17:09:25 tinyCurrent kernel: real memory = 1062141952 (1012 MB) Mar 25 17:09:25 tinyCurrent kernel: avail memory = 1021136896 (973 MB) Mar 25 17:09:25 tinyCurrent kernel: ACPI APIC Table: Mar 25 17:09:25 tinyCurrent kernel: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs Mar 25 17:09:25 tinyCurrent kernel: cpu0 (BSP): APIC ID: 0 Mar 25 17:09:25 tinyCurrent kernel: cpu1 (AP/HT): APIC ID: 1 Mar 25 17:09:25 tinyCurrent kernel: ioapic0: Changing APIC ID to 4 Mar 25 17:09:25 tinyCurrent kernel: ioapic0 irqs 0-23 on motherboard Mar 25 17:09:25 tinyCurrent kernel: kbd1 at kbdmux0 Mar 25 17:09:25 tinyCurrent kernel: acpi0: on motherboard Mar 25 17:09:25 tinyCurrent kernel: acpi0: [ITHREAD] Mar 25 17:09:25 tinyCurrent kernel: acpi0: Power Button (fixed) Mar 25 17:09:25 tinyCurrent kernel: Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 Mar 25 17:09:25 tinyCurrent kernel: acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0 Mar 25 17:09:25 tinyCurrent kernel: acpi_ec0: port 0x62,0x66 on acpi0 Mar 25 17:09:25 tinyCurrent kernel: acpi_hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Mar 25 17:09:25 tinyCurrent kernel: Timecounter "HPET" frequency 14318180 Hz quality 900 Mar 25 17:09:25 tinyCurrent kernel: acpi_button0: on acpi0 Mar 25 17:09:25 tinyCurrent kernel: acpi_lid0: on acpi0 Mar 25 17:09:25 tinyCurrent kernel: acpi_button1: on acpi0 Mar 25 17:09:25 tinyCurrent kernel: battery0: on acpi0 Mar 25 17:09:25 tinyCurrent kernel: acpi_acad0: on acpi0 Mar 25 17:09:25 tinyCurrent kernel: pcib0: port 0xcf8-0xcff on acpi0 Mar 25 17:09:25 tinyCurrent kernel: pci0: on pcib0 Mar 25 17:09:25 tinyCurrent kernel: vgapci0: port 0x60c0-0x60c7 mem 0x58480000-0x584fffff,0x40000000-0x4fffffff,0x58500000-0x5853ffff irq 16 at device 2.0 on pci0 Mar 25 17:09:25 tinyCurrent kernel: agp0: on vgapci0 Mar 25 17:09:25 tinyCurrent kernel: agp0: detected 7932k stolen memory Mar 25 17:09:25 tinyCurrent kernel: agp0: aperture size is 256M Mar 25 17:09:25 tinyCurrent kernel: vgapci1: mem 0x58400000-0x5847ffff at device 2.1 on pci0 Mar 25 17:09:25 tinyCurrent kernel: pci0: at device 27.0 (no driver attached) Mar 25 17:09:25 tinyCurrent kernel: pcib1: at device 28.0 on pci0 Mar 25 17:09:25 tinyCurrent kernel: pci1: on pcib1 Mar 25 17:09:25 tinyCurrent kernel: pcib2: at device 28.1 on pci0 Mar 25 17:09:25 tinyCurrent kernel: pci2: on pcib2 Mar 25 17:09:25 tinyCurrent kernel: re0: port 0x3000-0x30ff mem 0x51010000-0x51010fff,0x51000000-0x5100ffff irq 17 at device 0.0 on pci2 Mar 25 17:09:25 tinyCurrent kernel: re0: Using 1 MSI messages Mar 25 17:09:25 tinyCurrent kernel: re0: Chip rev. 0x24800000 Mar 25 17:09:25 tinyCurrent kernel: re0: MAC rev. 0x00000000 Mar 25 17:09:25 tinyCurrent kernel: miibus0: on re0 Mar 25 17:09:25 tinyCurrent kernel: rlphy0: PHY 1 on miibus0 Mar 25 17:09:25 tinyCurrent kernel: rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto Mar 25 17:09:25 tinyCurrent kernel: re0: Ethernet address: 00:1e:68:ea:e4:36 Mar 25 17:09:25 tinyCurrent kernel: re0: [FILTER] Mar 25 17:09:25 tinyCurrent kernel: pcib3: at device 28.2 on pci0 Mar 25 17:09:25 tinyCurrent kernel: pci3: on pcib3 Mar 25 17:09:25 tinyCurrent kernel: ath0: mem 0x55200000-0x5520ffff irq 18 at device 0.0 on pci3 Mar 25 17:09:25 tinyCurrent kernel: ath0: [ITHREAD] Mar 25 17:09:25 tinyCurrent kernel: ath0: AR2425 mac 14.2 RF5424 phy 7.0 Mar 25 17:09:25 tinyCurrent kernel: pcib4: at device 28.3 on pci0 Mar 25 17:09:25 tinyCurrent kernel: pci4: on pcib4 Mar 25 17:09:25 tinyCurrent kernel: uhci0: port 0x6080-0x609f irq 16 at device 29.0 on pci0 Mar 25 17:09:25 tinyCurrent kernel: uhci0: [ITHREAD] Mar 25 17:09:25 tinyCurrent kernel: uhci0: LegSup = 0x0f10 Mar 25 17:09:25 tinyCurrent kernel: usbus0: on uhci0 Mar 25 17:09:25 tinyCurrent kernel: uhci1: port 0x6060-0x607f irq 17 at device 29.1 on pci0 Mar 25 17:09:25 tinyCurrent kernel: uhci1: [ITHREAD] Mar 25 17:09:25 tinyCurrent kernel: uhci1: LegSup = 0x0f00 Mar 25 17:09:25 tinyCurrent kernel: usbus1: on uhci1 Mar 25 17:09:25 tinyCurrent kernel: uhci2: port 0x6040-0x605f irq 18 at device 29.2 on pci0 Mar 25 17:09:25 tinyCurrent kernel: uhci2: [ITHREAD] Mar 25 17:09:25 tinyCurrent kernel: uhci2: LegSup = 0x0f00 Mar 25 17:09:25 tinyCurrent kernel: usbus2: on uhci2 Mar 25 17:09:25 tinyCurrent kernel: uhci3: port 0x6020-0x603f irq 19 at device 29.3 on pci0 Mar 25 17:09:25 tinyCurrent kernel: uhci3: [ITHREAD] Mar 25 17:09:25 tinyCurrent kernel: uhci3: LegSup = 0x0f00 Mar 25 17:09:25 tinyCurrent kernel: usbus3: on uhci3 Mar 25 17:09:25 tinyCurrent kernel: ehci0: mem 0x58544400-0x585447ff irq 16 at device 29.7 on pci0 Mar 25 17:09:25 tinyCurrent kernel: ehci0: [ITHREAD] Mar 25 17:09:25 tinyCurrent kernel: usbus4: EHCI version 1.0 Mar 25 17:09:25 tinyCurrent kernel: usbus4: on ehci0 Mar 25 17:09:25 tinyCurrent kernel: pcib5: at device 30.0 on pci0 Mar 25 17:09:25 tinyCurrent kernel: pci5: on pcib5 Mar 25 17:09:25 tinyCurrent kernel: isab0: at device 31.0 on pci0 Mar 25 17:09:25 tinyCurrent kernel: isa0: on isab0 Mar 25 17:09:25 tinyCurrent kernel: atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x60a0-0x60af irq 17 at device 31.2 on pci0 Mar 25 17:09:25 tinyCurrent kernel: ata0: on atapci0 Mar 25 17:09:25 tinyCurrent kernel: ata0: [ITHREAD] Mar 25 17:09:25 tinyCurrent kernel: ata1: on atapci0 Mar 25 17:09:25 tinyCurrent kernel: ata1: [ITHREAD] Mar 25 17:09:25 tinyCurrent kernel: pci0: at device 31.3 (no driver attached) Mar 25 17:09:25 tinyCurrent kernel: atrtc1: port 0x70-0x77 on acpi0 Mar 25 17:09:25 tinyCurrent kernel: atrtc1: Warning: Couldn't map I/O. Mar 25 17:09:25 tinyCurrent kernel: atkbdc0: port 0x60,0x64 irq 1 on acpi0 Mar 25 17:09:25 tinyCurrent kernel: atkbd0: irq 1 on atkbdc0 Mar 25 17:09:25 tinyCurrent kernel: kbd0 at atkbd0 Mar 25 17:09:25 tinyCurrent kernel: atkbd0: [GIANT-LOCKED] Mar 25 17:09:25 tinyCurrent kernel: atkbd0: [ITHREAD] Mar 25 17:09:25 tinyCurrent kernel: psm0: irq 12 on atkbdc0 Mar 25 17:09:25 tinyCurrent kernel: psm0: [GIANT-LOCKED] Mar 25 17:09:25 tinyCurrent kernel: psm0: [ITHREAD] Mar 25 17:09:25 tinyCurrent kernel: psm0: model Generic PS/2 mouse, device ID 0 Mar 25 17:09:25 tinyCurrent kernel: cpu0: on acpi0 Mar 25 17:09:25 tinyCurrent kernel: est0: on cpu0 Mar 25 17:09:25 tinyCurrent kernel: p4tcc0: on cpu0 Mar 25 17:09:25 tinyCurrent kernel: cpu1: on acpi0 Mar 25 17:09:25 tinyCurrent kernel: est1: on cpu1 Mar 25 17:09:25 tinyCurrent kernel: p4tcc1: on cpu1 Mar 25 17:09:25 tinyCurrent kernel: pmtimer0 on isa0 Mar 25 17:09:25 tinyCurrent kernel: orm0: at iomem 0xcf000-0xcffff pnpid ORM0000 on isa0 Mar 25 17:09:25 tinyCurrent kernel: sc0: at flags 0x100 on isa0 Mar 25 17:09:25 tinyCurrent kernel: sc0: VGA <16 virtual consoles, flags=0x300> Mar 25 17:09:25 tinyCurrent kernel: vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Mar 25 17:09:25 tinyCurrent kernel: atrtc0: at port 0x70 irq 8 on isa0 Mar 25 17:09:25 tinyCurrent kernel: atrtc0: Warning: Couldn't map I/O. Mar 25 17:09:25 tinyCurrent kernel: atrtc0: Warning: Couldn't map Interrupt. Mar 25 17:09:25 tinyCurrent kernel: ppc0: parallel port not found. Mar 25 17:09:25 tinyCurrent kernel: Timecounters tick every 1.000 msec Mar 25 17:09:25 tinyCurrent kernel: usbus2: 12Mbps Full Speed USB v1.0 Mar 25 17:09:25 tinyCurrent kernel: usbus3: 12Mbps Full Speed USB v1.0 Mar 25 17:09:25 tinyCurrent kernel: usbus4: 480Mbps High Speed USB v2.0 Mar 25 17:09:25 tinyCurrent kernel: usbus0: 12Mbps Full Speed USB v1.0 Mar 25 17:09:25 tinyCurrent kernel: usbus1: 12Mbps Full Speed USB v1.0 Mar 25 17:09:25 tinyCurrent kernel: ad0: 114473MB at ata0-master SATA150 Mar 25 17:09:25 tinyCurrent kernel: ugen2.1: at usbus2 Mar 25 17:09:25 tinyCurrent kernel: uhub0: on usbus2 Mar 25 17:09:25 tinyCurrent kernel: ugen3.1: at usbus3 Mar 25 17:09:25 tinyCurrent kernel: uhub1: on usbus3 Mar 25 17:09:25 tinyCurrent kernel: ugen4.1: at usbus4 Mar 25 17:09:25 tinyCurrent kernel: uhub2: on usbus4 Mar 25 17:09:25 tinyCurrent kernel: ugen0.1: at usbus0 Mar 25 17:09:25 tinyCurrent kernel: uhub3: on usbus0 Mar 25 17:09:25 tinyCurrent kernel: ugen1.1: at usbus1 Mar 25 17:09:25 tinyCurrent kernel: uhub4: on usbus1 Mar 25 17:09:25 tinyCurrent kernel: SMP: AP CPU #1 Launched! Mar 25 17:09:25 tinyCurrent kernel: WARNING: WITNESS option enabled, expect reduced performance. Mar 25 17:09:25 tinyCurrent kernel: GEOM_LABEL: Label for provider ad0s1 is msdosfs/PQSERVICE. Mar 25 17:09:25 tinyCurrent kernel: GEOM_LABEL: Label for provider ad0s1 is ext2fs/linpus. Mar 25 17:09:25 tinyCurrent kernel: Root mount waiting for: usbus4 usbus3 usbus2 usbus1 usbus0 Mar 25 17:09:25 tinyCurrent kernel: uhub0: 2 ports with 2 removable, self powered Mar 25 17:09:25 tinyCurrent kernel: Root mount waiting for: usbus4 usbus3 usbus1 usbus0 Mar 25 17:09:25 tinyCurrent kernel: uhub1: 2 ports with 2 removable, self powered Mar 25 17:09:25 tinyCurrent kernel: Root mount waiting for: usbus4 usbus1 usbus0 Mar 25 17:09:25 tinyCurrent kernel: uhub3: 2 ports with 2 removable, self powered Mar 25 17:09:25 tinyCurrent kernel: Root mount waiting for: usbus4 usbus1 Mar 25 17:09:25 tinyCurrent kernel: uhub4: 2 ports with 2 removable, self powered Mar 25 17:09:25 tinyCurrent kernel: Root mount waiting for: usbus4 Mar 25 17:09:25 tinyCurrent last message repeated 3 times Mar 25 17:09:25 tinyCurrent kernel: uhub2: 8 ports with 8 removable, self powered Mar 25 17:09:25 tinyCurrent kernel: ugen4.2: at usbus4 Mar 25 17:09:25 tinyCurrent kernel: umass0: on usbus4 Mar 25 17:09:25 tinyCurrent kernel: umass0: SCSI over Bulk-Only; quirks = 0x0000 Mar 25 17:09:25 tinyCurrent kernel: Root mount waiting for: usbus4 Mar 25 17:09:25 tinyCurrent kernel: umass0:0:0:-1: Attached to scbus0 Mar 25 17:09:25 tinyCurrent kernel: da0 at umass-sim0 bus 0 target 0 lun 0 Mar 25 17:09:25 tinyCurrent kernel: da0: Removable Direct Access SCSI-2 device Mar 25 17:09:25 tinyCurrent kernel: da0: 40.000MB/s transfers Mar 25 17:09:25 tinyCurrent kernel: da0: 7712MB (15794176 512 byte sectors: 255H 63S/T 983C) Mar 25 17:09:25 tinyCurrent kernel: Root mount waiting for: usbus4 Mar 25 17:09:25 tinyCurrent kernel: ugen4.3: at usbus4 Mar 25 17:09:25 tinyCurrent kernel: Trying to mount root from ufs:/dev/da0s1a Mar 25 17:09:25 tinyCurrent kernel: wlan0: Ethernet address: 00:23:4d:3c:4b:00 Mar 25 17:09:25 tinyCurrent root: /etc/rc: WARNING: Dump device does not exist. Savecore not run. Mar 25 17:09:37 tinyCurrent login: ROOT LOGIN (root) ON ttyv0 -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.oclc.org/ http://www.UnixArea.de/ From owner-freebsd-mobile@FreeBSD.ORG Fri Mar 27 16:31:39 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 395E710657AB for ; Fri, 27 Mar 2009 16:31:39 +0000 (UTC) (envelope-from jnordwick@gmail.com) Received: from mail-gx0-f176.google.com (mail-gx0-f176.google.com [209.85.217.176]) by mx1.freebsd.org (Postfix) with ESMTP id 457618FC1B for ; Fri, 27 Mar 2009 16:31:31 +0000 (UTC) (envelope-from jnordwick@gmail.com) Received: by gxk24 with SMTP id 24so2911993gxk.19 for ; Fri, 27 Mar 2009 09:31:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=ENfeEfHKPj9/Jw8S9W9c9PlVtARB5VagVmgkaSPy7dI=; b=LGwQCxS1i0a4U2PDeekEvgk5UUCl0IRLflO0MG0f1dgN/goLuIqefcRFnFuo+2jWvn GPi2+iSuW8vYc0R0QT7QKJ68X3d1V19TvR0Ba7z80kbwXTBzEcoOAfEqa/FZYw6sZoHN MJ9e6nDqES5vYtY+0E0tgUVnsrTziXiddVB68= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Yo3XmjaOb1UQv8IgrDp246Do7gKYnp/kIHxwqhMZWYUNJTV1ks4eihSgUFrIji+QIX L5NrveeruZrleO56OBep1311JJeBGmDbtHP8uSBvLoppFjh202BytFHMr0zjVTk3mXK/ MHd0kt+dasSEdQ0hMO2DiDsuP1r0ID1huJ5VQ= MIME-Version: 1.0 Received: by 10.142.207.8 with SMTP id e8mr972915wfg.78.1238171489918; Fri, 27 Mar 2009 09:31:29 -0700 (PDT) Date: Fri, 27 Mar 2009 09:31:29 -0700 Message-ID: From: Jason Nordwick To: freebsd-mobile@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Switching from wired to wireless getting "network down" X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Mar 2009 16:31:42 -0000 I just updated to the current -STABLE (7.2-PRERELEASE is the same thing? hopefully). When I boot with the network cable plugged in, but then try to unplug it and up my wireless, it doesn't seem to work although the ifconfig shows I am joined to my wireless network. Is there some magic I need to do to reset the routing tables or something? -j From owner-freebsd-mobile@FreeBSD.ORG Fri Mar 27 17:04:30 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6887B106566C for ; Fri, 27 Mar 2009 17:04:30 +0000 (UTC) (envelope-from jnordwick@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.174]) by mx1.freebsd.org (Postfix) with ESMTP id 351628FC12 for ; Fri, 27 Mar 2009 17:04:30 +0000 (UTC) (envelope-from jnordwick@gmail.com) Received: by wf-out-1314.google.com with SMTP id 24so1261742wfg.7 for ; Fri, 27 Mar 2009 10:04:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=j6m3GzO33TSbSKkGGXjEJMfplCCz4WXp4qyBqU4Zp/s=; b=pXtpIJd2JsVlIAEsYVeYBdcw5sJgQtaVhvjYPH90k8Jl5U+FQAetCGRltxOwe1j/rs x6mmKG7KyC5/cXox02/ck0KQgFHyR+L7P8HQc/OcqtbgarTN2Li0x2XDZcYPBvTavIeh Wa4/7N7h7vEiAj5gOkGH7kG3lK7iM3c/dYk8s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=v5jpIwIJtFAjScS5xGLoSou8T+5t9LaxqgIS7xpsWbETNdEN0zesjIHI7JmHSjxOHR K8pxA6qKfBLevEOOGlw0N/3JuKVJzHTE2ySbUkqkpsPXVkAxU3XF3LoBPdzhwMNCmU48 R5csGpjawnaVw2cezmR/E7UhOKGCvPWs9B6eQ= MIME-Version: 1.0 Received: by 10.142.179.2 with SMTP id b2mr969968wff.280.1238173469822; Fri, 27 Mar 2009 10:04:29 -0700 (PDT) In-Reply-To: References: Date: Fri, 27 Mar 2009 10:04:29 -0700 Message-ID: From: Jason Nordwick To: freebsd-mobile@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Switching from wired to wireless getting "network down" X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Mar 2009 17:04:30 -0000 This appears to be the case. "route get 192.168.1.1" (my netgear wireless) shows that it still wants to use bfe0 instead of the wpi0 interface. How do I get it so that when I unplug my cable and my wireless is up, it changes the routing table? -j On Fri, Mar 27, 2009 at 9:31 AM, Jason Nordwick wrote: > I just updated to the current -STABLE (7.2-PRERELEASE is the same thing? > hopefully). > > When I boot with the network cable plugged in, but then try to unplug it > and up my wireless, it doesn't seem to work although the ifconfig shows I am > joined to my wireless network. Is there some magic I need to do to reset the > routing tables or something? > > -j > > From owner-freebsd-mobile@FreeBSD.ORG Fri Mar 27 20:16:36 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7348A1065672 for ; Fri, 27 Mar 2009 20:16:36 +0000 (UTC) (envelope-from knowtree@aloha.com) Received: from relay.pixi.com (relay.pixi.com [206.127.224.101]) by mx1.freebsd.org (Postfix) with ESMTP id 517628FC25 for ; Fri, 27 Mar 2009 20:16:36 +0000 (UTC) (envelope-from knowtree@aloha.com) Received: from yoda.pixi.com (yoda.pixi.com [206.127.224.41]) by relay.pixi.com (8.13.8+Sun/8.13.6) with ESMTP id n2RKGZnW018206; Fri, 27 Mar 2009 10:16:35 -1000 (HST) Received: from webmail.pixi.com (yoda.pixi.com [206.127.224.120] (may be forged)) by yoda.pixi.com (8.13.1/8.13.1) with SMTP id n2RKGZ1m001583; Fri, 27 Mar 2009 10:16:35 -1000 Message-Id: <200903272016.n2RKGZ1m001583@yoda.pixi.com> To: freebsd-mobile@freebsd.org, freebsd-current@freebsd.org From: knowtree@aloha.com Date: Fri, 27 Mar 2009 10:16:35 HST X-Posting-IP: 141.190.32.72 X-Mailer: Endymion MailMan Standard Edition v3.2.19 Cc: Subject: Re: Intel 5100AGN ndis driver problem X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Mar 2009 20:16:36 -0000 On 3/21/09, Ganbold wrote: > Paul B. Mahol wrote: >> On 3/19/09, Ganbold wrote: >> >>> Hi, >>> >>> I'm trying to use ndis driver for Intel 5100AGN and got >>> following error: >>> >>> beastie# grep ndis /var/log/messages >>> Mar 19 23:41:21 beastie kernel: ndis0: mem >>> 0xf4300000-0xf4301fff irq 17 at device 0.0 on pci3 >>> Mar 19 23:41:21 beastie kernel: ndis0: [ITHREAD] >>> Mar 19 23:41:21 beastie kernel: ndis0: NDIS API version: 5.1 >>> Mar 19 23:41:21 beastie kernel: ndis0: NDIS ERROR: 40001b7c (unknown error) >>> >>> Mar 19 23:41:21 beastie kernel: ndis0: NDIS ERROR: 40001b7c (unknown error) >>> Mar 19 23:41:21 beastie root: Unknown USB device: vendor 0x08ff product >>> 0x2810 bus uhub1 >>> Mar 19 23:41:21 beastie root: Unknown USB device: vendor 0x0a5c product >>> 0x2145 bus uhub1 >>> Mar 19 23:41:21 beastie root: Unknown USB device: vendor 0x17ef product >>> 0x1004 bus uhub3 >>> Mar 19 23:41:53 beastie kernel: ugen1.3: at >>> usbus1 (disconnected) >>> Mar 19 23:41:57 beastie kernel: ugen1.3: at usbus1 >>> Mar 19 23:41:57 beastie root: Unknown USB device: vendor 0x0a5c product >>> 0x2145 bus uhub1 >>> Mar 19 23:45:36 beastie kernel: wlan0: Ethernet address: 00:21:6b:9a:23:8e >>> Mar 19 23:52:02 beastie kernel: pid 9861 (initial thread) is using >>> legacy pty devices >>> Mar 20 00:08:06 beastie kernel: ndis0: NDIS ERROR: 40001b7c (unknown error) >>> ... >>> ndis0 at pci0:3:0:0: class=0x028000 card=0x12118086 chip=0x42378086 >>> rev=0x00 hdr=0x00 >>> vendor = 'Intel Corporation' >>> class = network >>> >>> I'm running: >>> beastie# uname -an >>> FreeBSD beastie.micom.mng.net 8.0-CURRENT FreeBSD 8.0-CURRENT #5 >>> r190040M: Thu Mar 19 21:45:37 ULAT 2009 >>> tsgan at beastie.micom.mng.net:/usr/obj/usr/src/sys/DEVIL_WITNESS i386 >>> >>> >>> Any idea how to fix this issue? >>> Please let me know if you need more info. >>> >> >> How you generate ndis module? >> Post whole output _after_ is module loaded >> _not_ just lines containing ndis. >> >> also enable debug.ndis sysctl. >> >I generated module issuing following command: > >ndisgen NETw5x32.inf NETw5x32.sys > >After module is generated, loading modules gives (debug.ndis=1): > > >Mar 21 16:18:33 beastie kernel: no match for KeBugCheck >Mar 21 16:18:33 beastie kernel: ndis0: mem >0xf4300000-0xf4301fff irq 17 at device 0.0 on pci3 >Mar 21 16:18:33 beastie kernel: ndis0: [ITHREAD] >Mar 21 16:18:33 beastie kernel: ndis0: NDIS API version: 5.1 >Mar 21 16:18:33 beastie kernel: ndis0: NDIS ERROR: 40001b7c (unknown error) >Mar 21 16:18:33 beastie root: Unknown USB device: vendor 0x08ff product >0x2810 bus uhub1 >Mar 21 16:18:33 beastie root: Unknown USB device: vendor 0x0a5c product >0x2145 bus uhub1 >Mar 21 16:18:33 beastie root: Unknown USB device: vendor 0x17ef product >0x1004 bus uhub3 >Mar 21 16:18:34 beastie kernel: attach done. >Mar 21 16:18:35 beastie kernel: halting done. > >Ganbold I am seeing the exact same thing on 7.1-RELEASE, minus the USB errors. I have the same Intel chipset in a Fujitsu T1010 laptop. I downloaded the XP driver from Intel, had the same file names as above. When I ran ndisgen it asked me for the names of the files even through I specified them on the command line. Other than that the build process seemed fine. When I used kldload to test it I got the unknown error message but the system seemed happy so I set it up to load from loader.conf and added an entry for it in /etc/rc.conf. When I rebooted the hardware probe hung at the ndis driver. After I managed to boot without the kernel module I tried again to load with kldload. After the NDIS ERROR line I see WARNING: using obsoleted if_watchdog interface Next comes the MAC address, then a page fault followed by a reboot. I tried it several times with same results. Is there anything I can do to help solve this? Again I am running 7.1 not HEAD. Gary Dunn Open Slate Project Honolulu From owner-freebsd-mobile@FreeBSD.ORG Fri Mar 27 21:22:36 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1F24C10656BA; Fri, 27 Mar 2009 21:22:36 +0000 (UTC) (envelope-from onemda@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.25]) by mx1.freebsd.org (Postfix) with ESMTP id 708B28FC17; Fri, 27 Mar 2009 21:22:35 +0000 (UTC) (envelope-from onemda@gmail.com) Received: by ey-out-2122.google.com with SMTP id 4so243514eyf.7 for ; Fri, 27 Mar 2009 14:22:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=bIBG5zVZ35HALnDPPn1n+LyEPeY6rFsY+HQn3/JxJA0=; b=mYnnrU9634nlurhiJqXkBRx+71xhqKuP8iVS8dtj08ZJWFBDjwDl/Z3v4NKQgiT1/S OcHef+PC1IhbC1J1F1NXA9YHZoiu5emyr9GuOdplyjOR+/vrI8+yb/l6EJEYdPu4TRKE eLint0/zdaKhtxJ5AX4M1ZZI2N9D68jKeU8pY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=w9UBT0a3D+X2AiN56/gQuqoHt9W34Muya25A/5hSGUNov4TOB3Fw39mcX6tueyKowZ JvKoocMNezFwtAegSPMIopuvqG581/SXszIq7BhPMjY7OOOskAwn5ukKrpXSmXQ4ImU8 j66KcTQMM4uGGLAv1+oBSMOVkkDq0BeY8LGCU= MIME-Version: 1.0 Received: by 10.210.45.17 with SMTP id s17mr1914074ebs.93.1238188953910; Fri, 27 Mar 2009 14:22:33 -0700 (PDT) In-Reply-To: <200903272016.n2RKGZ1m001583@yoda.pixi.com> References: <200903272016.n2RKGZ1m001583@yoda.pixi.com> Date: Fri, 27 Mar 2009 22:22:33 +0100 Message-ID: <3a142e750903271422x6917ff87p663411f27fe63484@mail.gmail.com> From: "Paul B. Mahol" To: knowtree@aloha.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, freebsd-mobile@freebsd.org Subject: Re: Intel 5100AGN ndis driver problem X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Mar 2009 21:22:37 -0000 On 3/27/09, knowtree@aloha.com wrote: > On 3/21/09, Ganbold wrote: >> Paul B. Mahol wrote: >>> On 3/19/09, Ganbold wrote: >>> >>>> Hi, >>>> >>>> I'm trying to use ndis driver for Intel 5100AGN and got >>>> following error: >>>> >>>> beastie# grep ndis /var/log/messages >>>> Mar 19 23:41:21 beastie kernel: ndis0: mem >>>> 0xf4300000-0xf4301fff irq 17 at device 0.0 on pci3 >>>> Mar 19 23:41:21 beastie kernel: ndis0: [ITHREAD] >>>> Mar 19 23:41:21 beastie kernel: ndis0: NDIS API version: 5.1 >>>> Mar 19 23:41:21 beastie kernel: ndis0: NDIS ERROR: 40001b7c (unknown >>>> error) >>>> >>>> Mar 19 23:41:21 beastie kernel: ndis0: NDIS ERROR: 40001b7c (unknown >>>> error) >>>> Mar 19 23:41:21 beastie root: Unknown USB device: vendor 0x08ff product >>>> 0x2810 bus uhub1 >>>> Mar 19 23:41:21 beastie root: Unknown USB device: vendor 0x0a5c product >>>> 0x2145 bus uhub1 >>>> Mar 19 23:41:21 beastie root: Unknown USB device: vendor 0x17ef product >>>> 0x1004 bus uhub3 >>>> Mar 19 23:41:53 beastie kernel: ugen1.3: at >>>> usbus1 (disconnected) >>>> Mar 19 23:41:57 beastie kernel: ugen1.3: at >>>> usbus1 >>>> Mar 19 23:41:57 beastie root: Unknown USB device: vendor 0x0a5c product >>>> 0x2145 bus uhub1 >>>> Mar 19 23:45:36 beastie kernel: wlan0: Ethernet address: >>>> 00:21:6b:9a:23:8e >>>> Mar 19 23:52:02 beastie kernel: pid 9861 (initial thread) is using >>>> legacy pty devices >>>> Mar 20 00:08:06 beastie kernel: ndis0: NDIS ERROR: 40001b7c (unknown >>>> error) >>>> ... >>>> ndis0 at pci0:3:0:0: class=0x028000 card=0x12118086 chip=0x42378086 >>>> rev=0x00 hdr=0x00 >>>> vendor = 'Intel Corporation' >>>> class = network >>>> >>>> I'm running: >>>> beastie# uname -an >>>> FreeBSD beastie.micom.mng.net 8.0-CURRENT FreeBSD 8.0-CURRENT #5 >>>> r190040M: Thu Mar 19 21:45:37 ULAT 2009 >>>> tsgan at beastie.micom.mng.net:/usr/obj/usr/src/sys/DEVIL_WITNESS i386 >>>> >>>> >>>> Any idea how to fix this issue? >>>> Please let me know if you need more info. >>>> >>> >>> How you generate ndis module? >>> Post whole output _after_ is module loaded >>> _not_ just lines containing ndis. >>> >>> also enable debug.ndis sysctl. >>> >>I generated module issuing following command: >> >>ndisgen NETw5x32.inf NETw5x32.sys >> >>After module is generated, loading modules gives (debug.ndis=1): >> >> >>Mar 21 16:18:33 beastie kernel: no match for KeBugCheck >>Mar 21 16:18:33 beastie kernel: ndis0: mem >>0xf4300000-0xf4301fff irq 17 at device 0.0 on pci3 >>Mar 21 16:18:33 beastie kernel: ndis0: [ITHREAD] >>Mar 21 16:18:33 beastie kernel: ndis0: NDIS API version: 5.1 >>Mar 21 16:18:33 beastie kernel: ndis0: NDIS ERROR: 40001b7c (unknown error) >>Mar 21 16:18:33 beastie root: Unknown USB device: vendor 0x08ff product >>0x2810 bus uhub1 >>Mar 21 16:18:33 beastie root: Unknown USB device: vendor 0x0a5c product >>0x2145 bus uhub1 >>Mar 21 16:18:33 beastie root: Unknown USB device: vendor 0x17ef product >>0x1004 bus uhub3 >>Mar 21 16:18:34 beastie kernel: attach done. >>Mar 21 16:18:35 beastie kernel: halting done. >> >>Ganbold > > I am seeing the exact same thing on 7.1-RELEASE, minus the USB errors. I > have the same Intel chipset in a Fujitsu T1010 laptop. I downloaded the XP > driver from Intel, had the same file names as above. When I ran ndisgen it > asked me for the names of the files even through I specified them on the > command line. Other than that the build process seemed fine. When I used > kldload to test it I got the unknown error message but the system seemed > happy so I set it up to load from loader.conf and added an entry for it in > /etc/rc.conf. When I rebooted the hardware probe hung at the ndis driver. > > After I managed to boot without the kernel module I tried again to load > with kldload. After the NDIS ERROR line I see > > WARNING: using obsoleted if_watchdog interface > > Next comes the MAC address, then a page fault followed by a reboot. I tried > it several times with same results. That panic should be fixed in CURRENT, if not, post backtrace from textdump for the start. > Is there anything I can do to help solve this? Again I am running 7.1 not > HEAD. Something in NDISulator initialization code looks to be broken, but current showstopper are error codes that are not documented anywhere. -- Paul From owner-freebsd-mobile@FreeBSD.ORG Sat Mar 28 01:59:46 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D3461065670 for ; Sat, 28 Mar 2009 01:59:46 +0000 (UTC) (envelope-from oberman@es.net) Received: from mailgw.es.net (mail1.es.net [IPv6:2001:400:201:1::2]) by mx1.freebsd.org (Postfix) with ESMTP id EC3718FC16 for ; Sat, 28 Mar 2009 01:59:45 +0000 (UTC) (envelope-from oberman@es.net) Received: from ptavv.es.net (ptavv.es.net [IPv6:2001:400:910::29]) by mailgw.es.net (8.14.3/8.14.3) with ESMTP id n2S1xiGi017482 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 27 Mar 2009 18:59:45 -0700 Received: from ptavv.es.net (ptavv.es.net [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id D382F1CC09; Fri, 27 Mar 2009 18:59:44 -0700 (PDT) To: Jason Nordwick In-reply-to: Your message of "Fri, 27 Mar 2009 10:04:29 PDT." Date: Fri, 27 Mar 2009 18:59:44 -0700 From: "Kevin Oberman" Message-Id: <20090328015944.D382F1CC09@ptavv.es.net> Cc: freebsd-mobile@freebsd.org Subject: Re: Switching from wired to wireless getting "network down" X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Mar 2009 01:59:47 -0000 > Date: Fri, 27 Mar 2009 10:04:29 -0700 > From: Jason Nordwick > Sender: owner-freebsd-mobile@freebsd.org > > This appears to be the case. "route get 192.168.1.1" (my netgear wireless) > shows that it still wants to use bfe0 instead of the wpi0 interface. How do > I get it so that when I unplug my cable and my wireless is up, it changes > the routing table? > > -j > > > On Fri, Mar 27, 2009 at 9:31 AM, Jason Nordwick wrote: > > > I just updated to the current -STABLE (7.2-PRERELEASE is the same thing? > > hopefully). > > > > When I boot with the network cable plugged in, but then try to unplug it > > and up my wireless, it doesn't seem to work although the ifconfig shows I am > > joined to my wireless network. Is there some magic I need to do to reset the > > routing tables or something? It make it really hard to follow a thread. > Why not? > > Please don't top post. Depends on your configuration. Do you use DHCP or static network configurations? If it is DHCP, I suspect /etc/rc.d/dhclient restart would do the trick. If it is status: route add default abc.def.gh.ij should do the trick. Going the other way can be a tiny bit more involved. 'ifconfig wlan0 down' first or 'route delete default' to get rid of the current static. (Note: wlan0 on stable needs to be replaced with the name of your wireless interface.) -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 Key fingerprint:059B 2DDF 031C 9BA3 14A4 EADA 927D EBB3 987B 3751 From owner-freebsd-mobile@FreeBSD.ORG Sat Mar 28 16:26:16 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5BA691065672 for ; Sat, 28 Mar 2009 16:26:16 +0000 (UTC) (envelope-from clarkjp@charter.net) Received: from mail.cluebytwelve.org (clueby12.org [198.186.190.239]) by mx1.freebsd.org (Postfix) with ESMTP id 223DA8FC0A for ; Sat, 28 Mar 2009 16:26:15 +0000 (UTC) (envelope-from clarkjp@charter.net) Received: from localdomain.local (24-158-157-74.dhcp.jcsn.tn.charter.com [24.158.157.74]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.cluebytwelve.org (Postfix) with ESMTPSA id B29151B5D0 for ; Sat, 28 Mar 2009 11:08:59 -0500 (CDT) Received: by localdomain.local (Postfix, from userid 1001) id A3C4A4AC44; Sat, 28 Mar 2009 11:08:58 -0500 (CDT) Date: Sat, 28 Mar 2009 11:08:58 -0500 From: "J. Porter Clark" To: freebsd-mobile@freebsd.org Message-ID: <20090328160858.GA57695@auricle.charter.net> References: <1238217783.00093348.1238205603@10.7.7.3> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Orig-To: "Kevin Oberman" User-Agent: Mutt/1.5.19 (2009-01-05) Subject: Re: Switching from wired to wireless getting "network down" X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Mar 2009 16:26:16 -0000 >> Date: Fri, 27 Mar 2009 10:04:29 -0700 >> From: Jason Nordwick >> Sender: owner-freebsd-mobile@freebsd.org >> >> This appears to be the case. "route get 192.168.1.1" (my netgear wireless) >> shows that it still wants to use bfe0 instead of the wpi0 interface. How do >> I get it so that when I unplug my cable and my wireless is up, it changes >> the routing table? >> >> -j >> >> >> On Fri, Mar 27, 2009 at 9:31 AM, Jason Nordwick wrote: >> >> > I just updated to the current -STABLE (7.2-PRERELEASE is the same thing? >> > hopefully). >> > >> > When I boot with the network cable plugged in, but then try to unplug it >> > and up my wireless, it doesn't seem to work although the ifconfig shows I am >> > joined to my wireless network. Is there some magic I need to do to reset the >> > routing tables or something? >Depends on your configuration. Do you use DHCP or static network >configurations? If it is DHCP, I suspect /etc/rc.d/dhclient restart >would do the trick. If it is status: >route add default abc.def.gh.ij >should do the trick. >Going the other way can be a tiny bit more involved. 'ifconfig wlan0 >down' first or 'route delete default' to get rid of the current >static. (Note: wlan0 on stable needs to be replaced with the name of >your wireless interface.) I've been playing around with this sort of setup, too, where I want a command line to change from wired to wireless (at the same IP address, even) and back again. I haven't found the magic solution, particularly one that doesn't have a lot of hardcoded network config in it. I'm also somewhat ticked that "route flush" doesn't really flush all routes like the man page says. 8-) Eventually, I usually arrive at a point where I can't find my way back and have to reboot to get some work done. Some things I've been using are "route delete " and "route add -ifp default". Might be a good idea to "arp -a -d", too. -- J. Porter Clark From owner-freebsd-mobile@FreeBSD.ORG Sat Mar 28 16:35:47 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4B9571065698 for ; Sat, 28 Mar 2009 16:35:47 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id F3ACA8FC35 for ; Sat, 28 Mar 2009 16:35:46 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from trouble.errno.com (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id n2SGZk2f070025 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 28 Mar 2009 09:35:46 -0700 (PDT) (envelope-from sam@freebsd.org) Message-ID: <49CE51E2.4000807@freebsd.org> Date: Sat, 28 Mar 2009 09:35:46 -0700 From: Sam Leffler Organization: FreeBSD Project User-Agent: Thunderbird 2.0.0.18 (X11/20081209) MIME-Version: 1.0 To: "J. Porter Clark" References: <1238217783.00093348.1238205603@10.7.7.3> <20090328160858.GA57695@auricle.charter.net> In-Reply-To: <20090328160858.GA57695@auricle.charter.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC--Metrics: ebb.errno.com; whitelist Cc: freebsd-mobile@freebsd.org Subject: Re: Switching from wired to wireless getting "network down" X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Mar 2009 16:35:47 -0000 J. Porter Clark wrote: >>> Date: Fri, 27 Mar 2009 10:04:29 -0700 >>> From: Jason Nordwick >>> Sender: owner-freebsd-mobile@freebsd.org >>> >>> This appears to be the case. "route get 192.168.1.1" (my netgear wireless) >>> shows that it still wants to use bfe0 instead of the wpi0 interface. How do >>> I get it so that when I unplug my cable and my wireless is up, it changes >>> the routing table? >>> >>> -j >>> >>> >>> On Fri, Mar 27, 2009 at 9:31 AM, Jason Nordwick wrote: >>> >>> >>>> I just updated to the current -STABLE (7.2-PRERELEASE is the same thing? >>>> hopefully). >>>> >>>> When I boot with the network cable plugged in, but then try to unplug it >>>> and up my wireless, it doesn't seem to work although the ifconfig shows I am >>>> joined to my wireless network. Is there some magic I need to do to reset the >>>> routing tables or something? >>>> > > >> Depends on your configuration. Do you use DHCP or static network >> configurations? If it is DHCP, I suspect /etc/rc.d/dhclient restart >> would do the trick. If it is status: >> route add default abc.def.gh.ij >> should do the trick. >> > > >> Going the other way can be a tiny bit more involved. 'ifconfig wlan0 >> down' first or 'route delete default' to get rid of the current >> static. (Note: wlan0 on stable needs to be replaced with the name of >> your wireless interface.) >> > > I've been playing around with this sort of setup, too, where I > want a command line to change from wired to wireless (at the > same IP address, even) and back again. I haven't found the > magic solution, particularly one that doesn't have a lot of > hardcoded network config in it. I'm also somewhat ticked that > "route flush" doesn't really flush all routes like the man page > says. 8-) Eventually, I usually arrive at a point where I can't > find my way back and have to reboot to get some work done. > > Some things I've been using are "route delete " > and "route add -ifp default". Might be a good idea > to "arp -a -d", too. > > If this is 7.x or later, have you tried using lagg(4) to do automatic failover? The man page says wpa doesn't work but after talking to Andrew we think that's no longer true. I haven't had a chance to try it myself. Sam From owner-freebsd-mobile@FreeBSD.ORG Sat Mar 28 16:46:27 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7267C106566C; Sat, 28 Mar 2009 16:46:27 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id 262B18FC14; Sat, 28 Mar 2009 16:46:26 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from trouble.errno.com (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id n2SGkQ1V070110 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 28 Mar 2009 09:46:26 -0700 (PDT) (envelope-from sam@freebsd.org) Message-ID: <49CE5462.1010105@freebsd.org> Date: Sat, 28 Mar 2009 09:46:26 -0700 From: Sam Leffler Organization: FreeBSD Project User-Agent: Thunderbird 2.0.0.18 (X11/20081209) MIME-Version: 1.0 To: Andrew Thompson References: <1238217783.00093348.1238205603@10.7.7.3> <20090328160858.GA57695@auricle.charter.net> <49CE51E2.4000807@freebsd.org> <20090328164216.GA68623@citylink.fud.org.nz> In-Reply-To: <20090328164216.GA68623@citylink.fud.org.nz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC--Metrics: ebb.errno.com; whitelist Cc: "J. Porter Clark" , freebsd-mobile@freebsd.org Subject: Re: Switching from wired to wireless getting "network down" X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Mar 2009 16:46:27 -0000 Andrew Thompson wrote: > On Sat, Mar 28, 2009 at 09:35:46AM -0700, Sam Leffler wrote: > >> J. Porter Clark wrote: >> >>> >>> >>>> Depends on your configuration. Do you use DHCP or static network >>>> configurations? If it is DHCP, I suspect /etc/rc.d/dhclient restart >>>> would do the trick. If it is status: >>>> route add default abc.def.gh.ij >>>> should do the trick. >>>> >>> >>> >>>> Going the other way can be a tiny bit more involved. 'ifconfig wlan0 >>>> down' first or 'route delete default' to get rid of the current >>>> static. (Note: wlan0 on stable needs to be replaced with the name of >>>> your wireless interface.) >>>> >>>> >>> I've been playing around with this sort of setup, too, where I >>> want a command line to change from wired to wireless (at the >>> same IP address, even) and back again. I haven't found the >>> magic solution, particularly one that doesn't have a lot of >>> hardcoded network config in it. I'm also somewhat ticked that >>> "route flush" doesn't really flush all routes like the man page >>> says. 8-) Eventually, I usually arrive at a point where I can't >>> find my way back and have to reboot to get some work done. >>> >>> Some things I've been using are "route delete " >>> and "route add -ifp default". Might be a good idea >>> to "arp -a -d", too. >>> >>> >>> >> If this is 7.x or later, have you tried using lagg(4) to do automatic >> failover? The man page says wpa doesn't work but after talking to Andrew >> we think that's no longer true. I haven't had a chance to try it myself. >> > > This is becuase lagg(4) will set the interface down/up when grabbing it > and wpa_supplicant does not get restarted. This may work now but looking > through /etc/devd.conf I dont see a rule to handle it (only ATTACH and > LINK_UP events). A new devd event may need to be added to handle this > situation. Patches welcome. > I believe LINK_UP should be sufficient but we need to check. Sam From owner-freebsd-mobile@FreeBSD.ORG Sat Mar 28 16:53:06 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 109571065670 for ; Sat, 28 Mar 2009 16:53:06 +0000 (UTC) (envelope-from oberman@es.net) Received: from mailgw.es.net (mail1.es.net [IPv6:2001:400:201:1::2]) by mx1.freebsd.org (Postfix) with ESMTP id EED428FC0C for ; Sat, 28 Mar 2009 16:53:05 +0000 (UTC) (envelope-from oberman@es.net) Received: from ptavv.es.net (ptavv.es.net [IPv6:2001:400:910::29]) by mailgw.es.net (8.14.3/8.14.3) with ESMTP id n2SGr4WC019692 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 28 Mar 2009 09:53:05 -0700 Received: from ptavv.es.net (ptavv.es.net [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id B566F1CC09; Sat, 28 Mar 2009 09:53:04 -0700 (PDT) To: "J. Porter Clark" In-reply-to: Your message of "Sat, 28 Mar 2009 11:08:58 CDT." <20090328160858.GA57695@auricle.charter.net> Date: Sat, 28 Mar 2009 09:53:04 -0700 From: "Kevin Oberman" Message-Id: <20090328165304.B566F1CC09@ptavv.es.net> Cc: freebsd-mobile@freebsd.org Subject: Re: Switching from wired to wireless getting "network down" X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Mar 2009 16:53:06 -0000 > Date: Sat, 28 Mar 2009 11:08:58 -0500 > From: "J. Porter Clark" > Sender: owner-freebsd-mobile@freebsd.org > > >> Date: Fri, 27 Mar 2009 10:04:29 -0700 > >> From: Jason Nordwick > >> Sender: owner-freebsd-mobile@freebsd.org > >> > >> This appears to be the case. "route get 192.168.1.1" (my netgear wireless) > >> shows that it still wants to use bfe0 instead of the wpi0 interface. How do > >> I get it so that when I unplug my cable and my wireless is up, it changes > >> the routing table? > >> > >> -j > >> > >> > >> On Fri, Mar 27, 2009 at 9:31 AM, Jason Nordwick wrote: > >> > >> > I just updated to the current -STABLE (7.2-PRERELEASE is the same thing? > >> > hopefully). > >> > > >> > When I boot with the network cable plugged in, but then try to unplug it > >> > and up my wireless, it doesn't seem to work although the ifconfig shows I am > >> > joined to my wireless network. Is there some magic I need to do to reset the > >> > routing tables or something? > > >Depends on your configuration. Do you use DHCP or static network > >configurations? If it is DHCP, I suspect /etc/rc.d/dhclient restart > >would do the trick. If it is status: > >route add default abc.def.gh.ij > >should do the trick. > > >Going the other way can be a tiny bit more involved. 'ifconfig wlan0 > >down' first or 'route delete default' to get rid of the current > >static. (Note: wlan0 on stable needs to be replaced with the name of > >your wireless interface.) > > I've been playing around with this sort of setup, too, where I > want a command line to change from wired to wireless (at the > same IP address, even) and back again. I haven't found the > magic solution, particularly one that doesn't have a lot of > hardcoded network config in it. I'm also somewhat ticked that > "route flush" doesn't really flush all routes like the man page > says. 8-) Eventually, I usually arrive at a point where I can't > find my way back and have to reboot to get some work done. > > Some things I've been using are "route delete " > and "route add -ifp default". Might be a good idea > to "arp -a -d", too. OK. Here is the script I use to switch between the wired and wireless at work. I use it often, so I know it works with 7.1-Stable of early February. It switches between wired (bge0) and wireless (ath0). All addressing is static on bge0 and DHCP on ath0, though this really does not matter if your rc.conf is correct for both interfaces. By using the rc.d scripts, I take care of a lot of annoying details because they already DTRT. #!/usr/bin/perl use strict; my ($data); # Get the current default route interface ($data) = `netstat -rnf inet | grep default`; if (grep /bge0/, $data) { # Move to wireless (ath0) # make sure that the wireless driver is loaded! $data = `kldstat | grep if_ath.ko`; if ($?) {`kldload if_ath`;} # Move to wireless (ath0) ($data) = `/etc/rc.d/routing stop`; print $data; ($data) = `/etc/rc.d/netif stop bge0`; print $data; ($data) = `/etc/rc.d/netif start ath0`; print $data; print "Connected via wireless\n"; } else { # Move to .1 wire (bge0) ($data) = `/etc/rc.d/netif stop ath0`; print $data; ($data) = `route delete default`; print $data; ($data) = `/etc/rc.d/netif start bge0`; print $data; ($data) = `/etc/rc.d/routing start`; print $data; print STDERR "Connected via ESnet on bge0\n"; } -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 Key fingerprint:059B 2DDF 031C 9BA3 14A4 EADA 927D EBB3 987B 3751 From owner-freebsd-mobile@FreeBSD.ORG Sat Mar 28 16:56:22 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7745E106567C for ; Sat, 28 Mar 2009 16:56:22 +0000 (UTC) (envelope-from jnordwick@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.233]) by mx1.freebsd.org (Postfix) with ESMTP id DBA038FC08 for ; Sat, 28 Mar 2009 16:56:21 +0000 (UTC) (envelope-from jnordwick@gmail.com) Received: by rv-out-0506.google.com with SMTP id l9so2063063rvb.43 for ; Sat, 28 Mar 2009 09:56:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=YJgO83lMWxsWSiHdSFs+uxmCk6sfvZUKUP77qrIYaV8=; b=AZB7XzIcNLL2kA7qSa/hHGaOB6WlB+0z+OWWOd+zgoJI0ddTwtIJjijuBsH6hqcVRW GW/4a6z3svMR6RnjIFjTNc1qnymCe7T10dupNqLy1TUHv3hMVXVUSZF6QOIvJDFSplej p3OjsW75MgQzh5bfa/Pch++n1KsBDrwniIpN0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Yx/UsliygdN/CPau4Gg50jaGmoSGXpNlKHZd1Z5lUTJh6NFTBPstcg4xfEdIfEQxZe q4R4OSyOMM+/vJMDRsscEYIIe2LPHxlWFz3pr5RxFLEiw+2/EeUvo4CaA7G9e34jX8ux CIqKaUZxU3qKC9PB7C0r7fOtEJ8hpq/scdomI= MIME-Version: 1.0 Received: by 10.142.88.4 with SMTP id l4mr1395584wfb.112.1238259380872; Sat, 28 Mar 2009 09:56:20 -0700 (PDT) In-Reply-To: <49CE51E2.4000807@freebsd.org> References: <1238217783.00093348.1238205603@10.7.7.3> <20090328160858.GA57695@auricle.charter.net> <49CE51E2.4000807@freebsd.org> Date: Sat, 28 Mar 2009 09:56:20 -0700 Message-ID: From: Jason Nordwick To: Sam Leffler Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-mobile@freebsd.org Subject: Re: Switching from wired to wireless getting "network down" X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Mar 2009 16:56:22 -0000 That busted my networking. I did: kldload if_lagg ifconfig lagg0 create ifconfig lagg0 lagproto failover lagport bfe0 lagport wpi0 192.168.1.1 netmask 255.255.255.0 Now when I ping 192.168.1.1, I get a "device busy" messages from ping. Oops. I think I need to reboot to clear this up. -j On Sat, Mar 28, 2009 at 9:35 AM, Sam Leffler wrote: > J. Porter Clark wrote: > >> Date: Fri, 27 Mar 2009 10:04:29 -0700 >>>> From: Jason Nordwick >>>> Sender: owner-freebsd-mobile@freebsd.org >>>> >>>> This appears to be the case. "route get 192.168.1.1" (my netgear >>>> wireless) >>>> shows that it still wants to use bfe0 instead of the wpi0 interface. How >>>> do >>>> I get it so that when I unplug my cable and my wireless is up, it >>>> changes >>>> the routing table? >>>> >>>> -j >>>> >>>> >>>> On Fri, Mar 27, 2009 at 9:31 AM, Jason Nordwick >>>> wrote: >>>> >>>> >>>> >>>>> I just updated to the current -STABLE (7.2-PRERELEASE is the same >>>>> thing? >>>>> hopefully). >>>>> >>>>> When I boot with the network cable plugged in, but then try to unplug >>>>> it >>>>> and up my wireless, it doesn't seem to work although the ifconfig shows >>>>> I am >>>>> joined to my wireless network. Is there some magic I need to do to >>>>> reset the >>>>> routing tables or something? >>>>> >>>>> >>>> >> >> >>> Depends on your configuration. Do you use DHCP or static network >>> configurations? If it is DHCP, I suspect /etc/rc.d/dhclient restart >>> would do the trick. If it is status: >>> route add default abc.def.gh.ij >>> should do the trick. >>> >> >> >> >>> Going the other way can be a tiny bit more involved. 'ifconfig wlan0 >>> down' first or 'route delete default' to get rid of the current >>> static. (Note: wlan0 on stable needs to be replaced with the name of >>> your wireless interface.) >>> >>> >> >> I've been playing around with this sort of setup, too, where I >> want a command line to change from wired to wireless (at the >> same IP address, even) and back again. I haven't found the >> magic solution, particularly one that doesn't have a lot of >> hardcoded network config in it. I'm also somewhat ticked that >> "route flush" doesn't really flush all routes like the man page >> says. 8-) Eventually, I usually arrive at a point where I can't >> find my way back and have to reboot to get some work done. >> >> Some things I've been using are "route delete " >> and "route add -ifp default". Might be a good idea >> to "arp -a -d", too. >> >> >> > If this is 7.x or later, have you tried using lagg(4) to do automatic > failover? The man page says wpa doesn't work but after talking to Andrew we > think that's no longer true. I haven't had a chance to try it myself. > > Sam > > > _______________________________________________ > freebsd-mobile@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-mobile > To unsubscribe, send any mail to "freebsd-mobile-unsubscribe@freebsd.org" > From owner-freebsd-mobile@FreeBSD.ORG Sat Mar 28 17:05:53 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8B66E1065673 for ; Sat, 28 Mar 2009 17:05:53 +0000 (UTC) (envelope-from clarkjp@charter.net) Received: from mail.cluebytwelve.org (clueby12.org [198.186.190.239]) by mx1.freebsd.org (Postfix) with ESMTP id 4CDB28FC12 for ; Sat, 28 Mar 2009 17:05:53 +0000 (UTC) (envelope-from clarkjp@charter.net) Received: from localdomain.local (24-158-157-74.dhcp.jcsn.tn.charter.com [24.158.157.74]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.cluebytwelve.org (Postfix) with ESMTPSA id AE3E71B5D0 for ; Sat, 28 Mar 2009 12:05:52 -0500 (CDT) Received: by localdomain.local (Postfix, from userid 1001) id C344E4AC44; Sat, 28 Mar 2009 12:05:51 -0500 (CDT) Date: Sat, 28 Mar 2009 12:05:51 -0500 From: "J. Porter Clark" To: freebsd-mobile@freebsd.org Message-ID: <20090328170551.GA58425@auricle.charter.net> References: <1238217783.00093348.1238205603@10.7.7.3> <20090328160858.GA57695@auricle.charter.net> <49CE51E2.4000807@freebsd.org> <20090328164216.GA68623@citylink.fud.org.nz> <49CE5462.1010105@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49CE5462.1010105@freebsd.org> Organization: http://www.angelfire.com/ego/porterclark/ User-Agent: Mutt/1.5.19 (2009-01-05) Subject: Re: Switching from wired to wireless getting "network down" X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Mar 2009 17:05:54 -0000 On Sat, Mar 28, 2009 at 09:46:26AM -0700, Sam Leffler wrote: > > Andrew Thompson wrote: > > On Sat, Mar 28, 2009 at 09:35:46AM -0700, Sam Leffler wrote: > > > >> J. Porter Clark wrote: > >>>> > >>> I've been playing around with this sort of setup, too, where I > >>> want a command line to change from wired to wireless (at the > >>> same IP address, even) and back again. I haven't found the > >>> magic solution, particularly one that doesn't have a lot of > >>> hardcoded network config in it. I'm also somewhat ticked that > >>> "route flush" doesn't really flush all routes like the man page > >>> says. 8-) Eventually, I usually arrive at a point where I can't > >>> find my way back and have to reboot to get some work done. > >>> > >>> Some things I've been using are "route delete " > >>> and "route add -ifp default". Might be a good idea > >>> to "arp -a -d", too. > >>> > >> If this is 7.x or later, have you tried using lagg(4) to do automatic > >> failover? The man page says wpa doesn't work but after talking to Andrew > >> we think that's no longer true. I haven't had a chance to try it myself. > > > > This is becuase lagg(4) will set the interface down/up when grabbing it > > and wpa_supplicant does not get restarted. This may work now but looking > > through /etc/devd.conf I dont see a rule to handle it (only ATTACH and > > LINK_UP events). A new devd event may need to be added to handle this > > situation. Patches welcome. > > I believe LINK_UP should be sufficient but we need to check. FreeBSD-STABLE (says 7.2-PRERELEASE at the moment). I haven't tried lagg(4), because I didn't know it existed, but I will look into it--it sounds like just what I need, if it works! In fact, I am only doing WEP on this network. The laptop that I'm using is an employer-issued Dell Latitude E6500, which has the dreaded Intel 5100AGN among its faults. To get wireless working, I'm ignoring that and using an old Agere Orinoco Gold card (wi), which AFAIK doesn't know how to do WPA--I could be wrong. The reason I'm having to switch between it and the wired interface is that I can get no better than about 3 Mbps through the wireless card, and I actually have 10 Mbps downlink service here. So I do wired when I need performance and wireless when I need mobility, at least until support for the 5100 arrives. -- J. Porter Clark From owner-freebsd-mobile@FreeBSD.ORG Sat Mar 28 17:09:20 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CDED510656C3; Sat, 28 Mar 2009 17:09:20 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from mail.netplex.net (mail.netplex.net [204.213.176.10]) by mx1.freebsd.org (Postfix) with ESMTP id 859A98FC0C; Sat, 28 Mar 2009 17:09:20 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.netplex.net (8.14.3/8.14.3/NETPLEX) with ESMTP id n2SGuBAs024202; Sat, 28 Mar 2009 12:56:11 -0400 (EDT) X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.netplex.net) X-Greylist: Message whitelisted by DRAC access database, not delayed by milter-greylist-4.0 (mail.netplex.net [204.213.176.10]); Sat, 28 Mar 2009 12:56:11 -0400 (EDT) Date: Sat, 28 Mar 2009 12:56:11 -0400 (EDT) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Sam Leffler In-Reply-To: <49CE51E2.4000807@freebsd.org> Message-ID: References: <1238217783.00093348.1238205603@10.7.7.3> <20090328160858.GA57695@auricle.charter.net> <49CE51E2.4000807@freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: "J. Porter Clark" , freebsd-mobile@freebsd.org Subject: Re: Switching from wired to wireless getting "network down" X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Eischen List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Mar 2009 17:09:21 -0000 On Sat, 28 Mar 2009, Sam Leffler wrote: > J. Porter Clark wrote: >> I've been playing around with this sort of setup, too, where I >> want a command line to change from wired to wireless (at the >> same IP address, even) and back again. I haven't found the >> magic solution, particularly one that doesn't have a lot of >> hardcoded network config in it. I'm also somewhat ticked that >> "route flush" doesn't really flush all routes like the man page >> says. 8-) Eventually, I usually arrive at a point where I can't >> find my way back and have to reboot to get some work done. >> >> Some things I've been using are "route delete " >> and "route add -ifp default". Might be a good idea >> to "arp -a -d", too. >> >> > If this is 7.x or later, have you tried using lagg(4) to do automatic > failover? The man page says wpa doesn't work but after talking to Andrew we > think that's no longer true. I haven't had a chance to try it myself. Yeah, but as far as I can recall, lagg isn't able to change the MAC address on the cloned wlanX interface. lagg with wireless and wired interfaces used to work before wlan cloning was added. I haven't tested it in a while, though. Has this been fixed? -- DE From owner-freebsd-mobile@FreeBSD.ORG Sat Mar 28 17:09:53 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2805010656F7 for ; Sat, 28 Mar 2009 17:09:53 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from pele.citylink.co.nz (pele.citylink.co.nz [202.8.44.226]) by mx1.freebsd.org (Postfix) with ESMTP id B060B8FC15 for ; Sat, 28 Mar 2009 17:09:52 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by pele.citylink.co.nz (Postfix) with ESMTP id 21333FF32; Sun, 29 Mar 2009 05:42:21 +1300 (NZDT) X-Virus-Scanned: Debian amavisd-new at citylink.co.nz Received: from pele.citylink.co.nz ([127.0.0.1]) by localhost (pele.citylink.co.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZvRwwuVArBm8; Sun, 29 Mar 2009 05:42:17 +1300 (NZDT) Received: from citylink.fud.org.nz (unknown [202.8.44.45]) by pele.citylink.co.nz (Postfix) with ESMTP; Sun, 29 Mar 2009 05:42:17 +1300 (NZDT) Received: by citylink.fud.org.nz (Postfix, from userid 1001) id CC6691142F; Sun, 29 Mar 2009 05:42:16 +1300 (NZDT) Date: Sat, 28 Mar 2009 09:42:16 -0700 From: Andrew Thompson To: Sam Leffler Message-ID: <20090328164216.GA68623@citylink.fud.org.nz> References: <1238217783.00093348.1238205603@10.7.7.3> <20090328160858.GA57695@auricle.charter.net> <49CE51E2.4000807@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49CE51E2.4000807@freebsd.org> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: "J. Porter Clark" , freebsd-mobile@freebsd.org Subject: Re: Switching from wired to wireless getting "network down" X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Mar 2009 17:09:53 -0000 On Sat, Mar 28, 2009 at 09:35:46AM -0700, Sam Leffler wrote: > J. Porter Clark wrote: >> >>> Depends on your configuration. Do you use DHCP or static network >>> configurations? If it is DHCP, I suspect /etc/rc.d/dhclient restart >>> would do the trick. If it is status: >>> route add default abc.def.gh.ij >>> should do the trick. >> >> >>> Going the other way can be a tiny bit more involved. 'ifconfig wlan0 >>> down' first or 'route delete default' to get rid of the current >>> static. (Note: wlan0 on stable needs to be replaced with the name of >>> your wireless interface.) >>> >> >> I've been playing around with this sort of setup, too, where I >> want a command line to change from wired to wireless (at the >> same IP address, even) and back again. I haven't found the >> magic solution, particularly one that doesn't have a lot of >> hardcoded network config in it. I'm also somewhat ticked that >> "route flush" doesn't really flush all routes like the man page >> says. 8-) Eventually, I usually arrive at a point where I can't >> find my way back and have to reboot to get some work done. >> >> Some things I've been using are "route delete " >> and "route add -ifp default". Might be a good idea >> to "arp -a -d", too. >> >> > If this is 7.x or later, have you tried using lagg(4) to do automatic > failover? The man page says wpa doesn't work but after talking to Andrew > we think that's no longer true. I haven't had a chance to try it myself. This is becuase lagg(4) will set the interface down/up when grabbing it and wpa_supplicant does not get restarted. This may work now but looking through /etc/devd.conf I dont see a rule to handle it (only ATTACH and LINK_UP events). A new devd event may need to be added to handle this situation. Patches welcome. Andrew From owner-freebsd-mobile@FreeBSD.ORG Sat Mar 28 17:17:10 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2246B106566C for ; Sat, 28 Mar 2009 17:17:10 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id E347D8FC1A for ; Sat, 28 Mar 2009 17:17:09 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from trouble.errno.com (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id n2SHH9pk070317 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 28 Mar 2009 10:17:09 -0700 (PDT) (envelope-from sam@freebsd.org) Message-ID: <49CE5B95.1010502@freebsd.org> Date: Sat, 28 Mar 2009 10:17:09 -0700 From: Sam Leffler Organization: FreeBSD Project User-Agent: Thunderbird 2.0.0.18 (X11/20081209) MIME-Version: 1.0 To: Daniel Eischen References: <1238217783.00093348.1238205603@10.7.7.3> <20090328160858.GA57695@auricle.charter.net> <49CE51E2.4000807@freebsd.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC--Metrics: ebb.errno.com; whitelist Cc: "J. Porter Clark" , freebsd-mobile@freebsd.org Subject: Re: Switching from wired to wireless getting "network down" X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Mar 2009 17:17:10 -0000 Daniel Eischen wrote: > On Sat, 28 Mar 2009, Sam Leffler wrote: > >> J. Porter Clark wrote: >>> I've been playing around with this sort of setup, too, where I >>> want a command line to change from wired to wireless (at the >>> same IP address, even) and back again. I haven't found the >>> magic solution, particularly one that doesn't have a lot of >>> hardcoded network config in it. I'm also somewhat ticked that >>> "route flush" doesn't really flush all routes like the man page >>> says. 8-) Eventually, I usually arrive at a point where I can't >>> find my way back and have to reboot to get some work done. >>> >>> Some things I've been using are "route delete " >>> and "route add -ifp default". Might be a good idea >>> to "arp -a -d", too. >>> >>> >> If this is 7.x or later, have you tried using lagg(4) to do automatic >> failover? The man page says wpa doesn't work but after talking to >> Andrew we think that's no longer true. I haven't had a chance to try >> it myself. > > Yeah, but as far as I can recall, lagg isn't able to change the > MAC address on the cloned wlanX interface. lagg with wireless > and wired interfaces used to work before wlan cloning was added. > I haven't tested it in a while, though. Has this been fixed? > You can change the mac address of a wlan ifnet (just verified); the problem is that it needs to be propagated to the physical ifnet as well for it to matter (the right thing happens if you do it when you clone the ifnet but not if you force it after, and I'm not sure you can make it work). I'm starting to remember now about this. Was there a PR filed? I completely forgot about this issue and it's likely to happen again w/o one. Sam From owner-freebsd-mobile@FreeBSD.ORG Sat Mar 28 22:49:45 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BEB14106564A; Sat, 28 Mar 2009 22:49:45 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from mail.netplex.net (mail.netplex.net [204.213.176.10]) by mx1.freebsd.org (Postfix) with ESMTP id 5E8F28FC15; Sat, 28 Mar 2009 22:49:44 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.netplex.net (8.14.3/8.14.3/NETPLEX) with ESMTP id n2SMnhh6019609; Sat, 28 Mar 2009 18:49:43 -0400 (EDT) X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.netplex.net) X-Greylist: Message whitelisted by DRAC access database, not delayed by milter-greylist-4.0 (mail.netplex.net [204.213.176.10]); Sat, 28 Mar 2009 18:49:44 -0400 (EDT) Date: Sat, 28 Mar 2009 18:49:43 -0400 (EDT) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Sam Leffler In-Reply-To: <49CE5B95.1010502@freebsd.org> Message-ID: References: <1238217783.00093348.1238205603@10.7.7.3> <20090328160858.GA57695@auricle.charter.net> <49CE51E2.4000807@freebsd.org> <49CE5B95.1010502@freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: "J. Porter Clark" , freebsd-mobile@freebsd.org Subject: Re: Switching from wired to wireless getting "network down" X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Eischen List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Mar 2009 22:49:46 -0000 On Sat, 28 Mar 2009, Sam Leffler wrote: > Daniel Eischen wrote: >> On Sat, 28 Mar 2009, Sam Leffler wrote: >> >>> J. Porter Clark wrote: >>>> I've been playing around with this sort of setup, too, where I >>>> want a command line to change from wired to wireless (at the >>>> same IP address, even) and back again. I haven't found the >>>> magic solution, particularly one that doesn't have a lot of >>>> hardcoded network config in it. I'm also somewhat ticked that >>>> "route flush" doesn't really flush all routes like the man page >>>> says. 8-) Eventually, I usually arrive at a point where I can't >>>> find my way back and have to reboot to get some work done. >>>> >>>> Some things I've been using are "route delete " >>>> and "route add -ifp default". Might be a good idea >>>> to "arp -a -d", too. >>>> >>>> >>> If this is 7.x or later, have you tried using lagg(4) to do automatic >>> failover? The man page says wpa doesn't work but after talking to Andrew >>> we think that's no longer true. I haven't had a chance to try it myself. >> >> Yeah, but as far as I can recall, lagg isn't able to change the >> MAC address on the cloned wlanX interface. lagg with wireless >> and wired interfaces used to work before wlan cloning was added. >> I haven't tested it in a while, though. Has this been fixed? >> > You can change the mac address of a wlan ifnet (just verified); the problem > is that it needs to be propagated to the physical ifnet as well for it to > matter (the right thing happens if you do it when you clone the ifnet but not Right, that's what I meant above - the MAC gets set on wlan0, but not on ath0, for instance. > if you force it after, and I'm not sure you can make it work). I'm starting > to remember now about this. Was there a PR filed? I completely forgot about > this issue and it's likely to happen again w/o one. No, there's no PR as far as I can tell. I'll try and set up a test system to duplicate it again, so I have proper information for a PR. I seem to recall that if wlanX is your primary/first lagg interface, then it uses the MAC address from the underlying interface as lagg's MAC address. In this case it works, but that's not the usual case 'cause you'd rather use a faster wired interface first if it exists. So this works: ifconfig lagg0 laggproto failover laggport wlan0 laggport bge0 but this doesn't: ifconfig lagg0 laggproto failover laggport bge0 laggport wlan0 In the latter case, lagg only works when bge0 is up. -- DE From owner-freebsd-mobile@FreeBSD.ORG Sat Mar 28 22:55:17 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 136DA1065673; Sat, 28 Mar 2009 22:55:17 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id C945F8FC12; Sat, 28 Mar 2009 22:55:16 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from trouble.errno.com (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id n2SMtE9n071799 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 28 Mar 2009 15:55:14 -0700 (PDT) (envelope-from sam@freebsd.org) Message-ID: <49CEAAD2.7050203@freebsd.org> Date: Sat, 28 Mar 2009 15:55:14 -0700 From: Sam Leffler Organization: FreeBSD Project User-Agent: Thunderbird 2.0.0.18 (X11/20081209) MIME-Version: 1.0 To: Daniel Eischen References: <1238217783.00093348.1238205603@10.7.7.3> <20090328160858.GA57695@auricle.charter.net> <49CE51E2.4000807@freebsd.org> <49CE5B95.1010502@freebsd.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC-x.dcc-servers-Metrics: ebb.errno.com; whitelist Cc: "J. Porter Clark" , freebsd-mobile@freebsd.org Subject: Re: Switching from wired to wireless getting "network down" X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Mar 2009 22:55:17 -0000 Daniel Eischen wrote: > On Sat, 28 Mar 2009, Sam Leffler wrote: > >> Daniel Eischen wrote: >>> On Sat, 28 Mar 2009, Sam Leffler wrote: >>> >>>> J. Porter Clark wrote: >>>>> I've been playing around with this sort of setup, too, where I >>>>> want a command line to change from wired to wireless (at the >>>>> same IP address, even) and back again. I haven't found the >>>>> magic solution, particularly one that doesn't have a lot of >>>>> hardcoded network config in it. I'm also somewhat ticked that >>>>> "route flush" doesn't really flush all routes like the man page >>>>> says. 8-) Eventually, I usually arrive at a point where I can't >>>>> find my way back and have to reboot to get some work done. >>>>> >>>>> Some things I've been using are "route delete " >>>>> and "route add -ifp default". Might be a good idea >>>>> to "arp -a -d", too. >>>>> >>>>> >>>> If this is 7.x or later, have you tried using lagg(4) to do >>>> automatic failover? The man page says wpa doesn't work but after >>>> talking to Andrew we think that's no longer true. I haven't had a >>>> chance to try it myself. >>> >>> Yeah, but as far as I can recall, lagg isn't able to change the >>> MAC address on the cloned wlanX interface. lagg with wireless >>> and wired interfaces used to work before wlan cloning was added. >>> I haven't tested it in a while, though. Has this been fixed? >>> >> You can change the mac address of a wlan ifnet (just verified); the >> problem is that it needs to be propagated to the physical ifnet as >> well for it to matter (the right thing happens if you do it when you >> clone the ifnet but not > > Right, that's what I meant above - the MAC gets set on wlan0, > but not on ath0, for instance. > >> if you force it after, and I'm not sure you can make it work). I'm >> starting to remember now about this. Was there a PR filed? I >> completely forgot about this issue and it's likely to happen again >> w/o one. > > No, there's no PR as far as I can tell. I'll try and set up a > test system to duplicate it again, so I have proper information > for a PR. > > I seem to recall that if wlanX is your primary/first lagg > interface, then it uses the MAC address from the underlying > interface as lagg's MAC address. In this case it works, > but that's not the usual case 'cause you'd rather use a > faster wired interface first if it exists. > > So this works: > > ifconfig lagg0 laggproto failover laggport wlan0 laggport bge0 > > but this doesn't: > > ifconfig lagg0 laggproto failover laggport bge0 laggport wlan0 > > In the latter case, lagg only works when bge0 is up. > I'm fixing various issues in handling the mac address (in head). I can now use lagg w/o wpa so long as you force the mac address manually. If there had been a PR this problem would not have been lost. Sam From owner-freebsd-mobile@FreeBSD.ORG Sat Mar 28 22:56:39 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 17A1C1065674; Sat, 28 Mar 2009 22:56:39 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from mail.netplex.net (mail.netplex.net [204.213.176.10]) by mx1.freebsd.org (Postfix) with ESMTP id C4AD98FC16; Sat, 28 Mar 2009 22:56:38 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.netplex.net (8.14.3/8.14.3/NETPLEX) with ESMTP id n2SMuah0021619; Sat, 28 Mar 2009 18:56:36 -0400 (EDT) X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.netplex.net) X-Greylist: Message whitelisted by DRAC access database, not delayed by milter-greylist-4.0 (mail.netplex.net [204.213.176.10]); Sat, 28 Mar 2009 18:56:36 -0400 (EDT) Date: Sat, 28 Mar 2009 18:56:36 -0400 (EDT) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Sam Leffler In-Reply-To: Message-ID: References: <1238217783.00093348.1238205603@10.7.7.3> <20090328160858.GA57695@auricle.charter.net> <49CE51E2.4000807@freebsd.org> <49CE5B95.1010502@freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: "J. Porter Clark" , freebsd-mobile@freebsd.org Subject: Re: Switching from wired to wireless getting "network down" X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Eischen List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Mar 2009 22:56:39 -0000 On Sat, 28 Mar 2009, Daniel Eischen wrote: > No, there's no PR as far as I can tell. I'll try and set up a > test system to duplicate it again, so I have proper information > for a PR. > > I seem to recall that if wlanX is your primary/first lagg > interface, then it uses the MAC address from the underlying > interface as lagg's MAC address. In this case it works, > but that's not the usual case 'cause you'd rather use a > faster wired interface first if it exists. > > So this works: > > ifconfig lagg0 laggproto failover laggport wlan0 laggport bge0 > > but this doesn't: > > ifconfig lagg0 laggproto failover laggport bge0 laggport wlan0 > > In the latter case, lagg only works when bge0 is up. Also note that lagg(4) still references ath0 in its example instead of wlan0. # ifconfig em0 up # ifconfig ath0 nwid my_net up # ifconfig lagg0 laggproto failover laggport em0 laggport ath0 \ 192.168.1.1 netmask 255.255.255.0 -- DE From owner-freebsd-mobile@FreeBSD.ORG Sat Mar 28 23:01:57 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F3E5A10656C7; Sat, 28 Mar 2009 23:01:56 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from mail.netplex.net (mail.netplex.net [204.213.176.10]) by mx1.freebsd.org (Postfix) with ESMTP id AB6758FC16; Sat, 28 Mar 2009 23:01:56 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.netplex.net (8.14.3/8.14.3/NETPLEX) with ESMTP id n2SN1thE023504; Sat, 28 Mar 2009 19:01:55 -0400 (EDT) X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.netplex.net) X-Greylist: Message whitelisted by DRAC access database, not delayed by milter-greylist-4.0 (mail.netplex.net [204.213.176.10]); Sat, 28 Mar 2009 19:01:55 -0400 (EDT) Date: Sat, 28 Mar 2009 19:01:55 -0400 (EDT) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Sam Leffler In-Reply-To: <49CEAAD2.7050203@freebsd.org> Message-ID: References: <1238217783.00093348.1238205603@10.7.7.3> <20090328160858.GA57695@auricle.charter.net> <49CE51E2.4000807@freebsd.org> <49CE5B95.1010502@freebsd.org> <49CEAAD2.7050203@freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: "J. Porter Clark" , freebsd-mobile@freebsd.org Subject: Re: Switching from wired to wireless getting "network down" X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Eischen List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Mar 2009 23:01:57 -0000 On Sat, 28 Mar 2009, Sam Leffler wrote: > Daniel Eischen wrote: >> On Sat, 28 Mar 2009, Sam Leffler wrote: >> >>> if you force it after, and I'm not sure you can make it work). I'm >>> starting to remember now about this. Was there a PR filed? I completely >>> forgot about this issue and it's likely to happen again w/o one. >> >> No, there's no PR as far as I can tell. I'll try and set up a >> test system to duplicate it again, so I have proper information >> for a PR. >> >> I seem to recall that if wlanX is your primary/first lagg >> interface, then it uses the MAC address from the underlying >> interface as lagg's MAC address. In this case it works, >> but that's not the usual case 'cause you'd rather use a >> faster wired interface first if it exists. >> >> So this works: >> >> ifconfig lagg0 laggproto failover laggport wlan0 laggport bge0 >> >> but this doesn't: >> >> ifconfig lagg0 laggproto failover laggport bge0 laggport wlan0 >> >> In the latter case, lagg only works when bge0 is up. >> > > I'm fixing various issues in handling the mac address (in head). I can now > use lagg w/o wpa so long as you force the mac address manually. If there > had been a PR this problem would not have been lost. I am sorry :( I do remember trying to figure out how to do this myself and did have an outstanding email with you and/or Andrew that went unanswered. I got side-tracked on something else after that and never got back to it. -- DE From owner-freebsd-mobile@FreeBSD.ORG Sat Mar 28 23:30:28 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 83A0B1065670; Sat, 28 Mar 2009 23:30:28 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from pele.citylink.co.nz (pele.citylink.co.nz [202.8.44.226]) by mx1.freebsd.org (Postfix) with ESMTP id 3FA558FC0C; Sat, 28 Mar 2009 23:30:28 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by pele.citylink.co.nz (Postfix) with ESMTP id 6FDF3FF3E; Sun, 29 Mar 2009 12:30:27 +1300 (NZDT) X-Virus-Scanned: Debian amavisd-new at citylink.co.nz Received: from pele.citylink.co.nz ([127.0.0.1]) by localhost (pele.citylink.co.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xGJwIJjzzkoo; Sun, 29 Mar 2009 12:30:23 +1300 (NZDT) Received: from citylink.fud.org.nz (unknown [202.8.44.45]) by pele.citylink.co.nz (Postfix) with ESMTP; Sun, 29 Mar 2009 12:30:23 +1300 (NZDT) Received: by citylink.fud.org.nz (Postfix, from userid 1001) id 482EF1142F; Sun, 29 Mar 2009 12:30:23 +1300 (NZDT) Date: Sat, 28 Mar 2009 16:30:23 -0700 From: Andrew Thompson To: Daniel Eischen Message-ID: <20090328233023.GA69292@citylink.fud.org.nz> References: <1238217783.00093348.1238205603@10.7.7.3> <20090328160858.GA57695@auricle.charter.net> <49CE51E2.4000807@freebsd.org> <49CE5B95.1010502@freebsd.org> <49CEAAD2.7050203@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Cc: Sam Leffler , "J. Porter Clark" , freebsd-mobile@freebsd.org Subject: Re: Switching from wired to wireless getting "network down" X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Mar 2009 23:30:28 -0000 On Sat, Mar 28, 2009 at 07:01:55PM -0400, Daniel Eischen wrote: > On Sat, 28 Mar 2009, Sam Leffler wrote: > >> Daniel Eischen wrote: >>> On Sat, 28 Mar 2009, Sam Leffler wrote: >>>> Daniel Eischen wrote: >>> So this works: >>> >>> ifconfig lagg0 laggproto failover laggport wlan0 laggport bge0 >>> >>> but this doesn't: >>> >>> ifconfig lagg0 laggproto failover laggport bge0 laggport wlan0 >>> >>> In the latter case, lagg only works when bge0 is up. >>> >> >> I'm fixing various issues in handling the mac address (in head). I can >> now use lagg w/o wpa so long as you force the mac address manually. If >> there had been a PR this problem would not have been lost. > > I am sorry :( I do remember trying to figure out how to do this > myself and did have an outstanding email with you and/or Andrew that > went unanswered. I got side-tracked on something else after that > and never got back to it. Probably me, sorry about that. Andrew