From owner-freebsd-current@FreeBSD.ORG Fri Oct 26 12:46:03 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3754A16A41B for ; Fri, 26 Oct 2007 12:46:03 +0000 (UTC) (envelope-from lihong.chen@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.184]) by mx1.freebsd.org (Postfix) with ESMTP id 00E0413C4BD for ; Fri, 26 Oct 2007 12:46:02 +0000 (UTC) (envelope-from lihong.chen@gmail.com) Received: by rv-out-0910.google.com with SMTP id l15so690945rvb for ; Fri, 26 Oct 2007 05:46:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding:sender; bh=zdrp1KOUzwQ0dE9plJ9Kzb8QQgJXo4WwiFsk63+MqV4=; b=QSnDBfkFQ6x5lRpbZxvCO4Jeq+WQnHAG0SsNgpgmLo4ZbLERzTkKsteI+qIu/ztIlayowbWcXb9+WOtnrwf8v//hQ1hT1o1E0jDXKM14SwMH+0W+ioL2X1FB/sbfCL/0SfQoJSdc0PNUbJRCPy4QfnC7b/JKqcauHbQ+FIGr5hE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding:sender; b=HX6vM6YWLgHYhAbyPHPO+ISF/yQMF8wYs77pa7Q7+Gi8rFe4MmZbnncfKRZxxy9X+LraHbSJvcInZuqLSSJyJLLzhsRcG9pYvMP/NkQ3dBerUtQVgLYDsBOzqMV76PcC+ZdJ3pQxgP6Cdslm9b3iOslcRkrF0tmtooVOTQTicuE= Received: by 10.141.45.16 with SMTP id x16mr1459571rvj.1193401194663; Fri, 26 Oct 2007 05:19:54 -0700 (PDT) Received: from ?59.126.144.152? ( [59.126.144.152]) by mx.google.com with ESMTPS id a8sm4168470poa.2007.10.26.05.19.51 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 26 Oct 2007 05:19:53 -0700 (PDT) From: "Eric L. Chen" To: Stefan Ehmann In-Reply-To: <200710261220.24757.shoesoft@gmx.net> References: <47209EB2.5080109@palisadesys.com> <200710251911.24346.shoesoft@gmx.net> <4720D849.2010409@errno.com> <200710261220.24757.shoesoft@gmx.net> Content-Type: text/plain Date: Fri, 26 Oct 2007 20:19:45 +0800 Message-Id: <1193401185.1606.4.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Sender: "Eric L. Chen" Cc: freebsd-current@freebsd.org, pluknet Subject: Re: iwi0 firmware error on Dell Inspiron 6000 w/ Intel PRO/Wireless 2200BG X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Oct 2007 12:46:03 -0000 On Fri, 2007-10-26 at 12:20 +0200, Stefan Ehmann wrote: > On Thursday 25 October 2007 19:54:17 Sam Leffler wrote: > > Stefan Ehmann wrote: > > > On Thursday 25 October 2007 18:28:47 pluknet wrote: > > >> On 25/10/2007, Guy Helmer wrote: > > >>> I just upgraded a laptop to FreeBSD RELENG_7 checked out on 20071016. > > >>> Previously, iwi0 had worked OK under FreeBSD 6.2. After updating to 7, > > >>> though, iwi0 reports "firmware error" and nothing more happens. I have > > >>> set legal.intel_iwi.license_ack=1 in /boot/loader.conf. wpa_supplicant > > >>> and dhclient are running with the same configurations that worked under > > >>> FreeBSD 6. I'm using the GENERIC kernel with SCHED_ULE instead of > > >>> SCHED_4BSD, and the loaded modules are: > > >>> > > >>> Id Refs Address Size Name > > >>> 1 23 0xc0400000 8d0750 kernel > > >>> 2 1 0xc0cd1000 111b8 geom_eli.ko > > >>> 3 2 0xc0ce3000 25ff8 crypto.ko > > >>> 4 2 0xc0d09000 ab40 zlib.ko > > >>> 5 1 0xc0d14000 6e48 snd_ich.ko > > >>> 6 2 0xc0d1b000 4a52c sound.ko > > >>> 7 1 0xc0d66000 69164 acpi.ko > > >>> 10 1 0xc32fb000 22000 linux.ko > > >>> 11 1 0xc3595000 21000 radeon.ko > > >>> 12 1 0xc35b6000 f000 drm.ko > > >>> 13 1 0xc31ff000 f000 if_iwi.ko > > >>> 14 1 0xc3e4f000 30000 iwi_bss.ko > > >>> > > >>> ifconfig iwi0 reports: > > >>> > > >>> iwi0: flags=8803 metric 0 mtu 1500 > > >>> ether 00:12:f0:12:1c:24 > > >>> inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255 > > >>> media: IEEE 802.11 Wireless Ethernet autoselect > > >>> status: no carrier > > >>> ssid "" channel 8 (2447 Mhz 11g) > > >>> authmode WPA1+WPA2/802.11i privacy ON deftxkey 1 txpowmax 100 > > >>> bmiss 10 scanvalid 60 bgscan bgscanintvl 300 bgscanidle 250 > > >>> roam:rssi11g 14 roam:rate11g 5 protmode CTS roaming MANUAL > > >>> bintval 100 > > >>> > > >>> I've tried setting debug.iwi=1, and the kernel messages regarding iwi0 > > >>> are: > > >>> > > >>> Oct 25 08:09:11 aquarius kernel: iwi0: > > >>> mem 0xdfcfd000-0xdfcfdfff irq 17 at device 3.0 on pci3 Oct 25 08:09:11 > > >>> aquarius kernel: iwi0: Ethernet address: 00:12:f0:12:1c:24 Oct 25 > > >>> 08:09:11 aquarius kernel: iwi0: [ITHREAD] > > >>> Oct 25 08:09:14 aquarius kernel: iwi0: firmware error > > >>> Oct 25 08:10:17 aquarius kernel: iwi_newstate: SCAN -> INIT flags 0x0 > > >>> Oct 25 08:10:31 aquarius kernel: iwi_newstate: INIT -> INIT flags 0x0 > > >>> Oct 25 08:10:31 aquarius kernel: iwi_newstate: INIT -> SCAN flags 0x1 > > >>> Oct 25 08:10:57 aquarius kernel: iwi_newstate: SCAN -> SCAN flags 0x1 > > >>> Oct 25 08:10:57 aquarius kernel: iwi_newstate: SCAN -> SCAN flags 0x1 > > >>> > > >>> Any ideas? > > >>> > > >>> Guy > > >>> > > >>> -- > > >>> Guy Helmer, Ph.D. > > >>> Chief System Architect > > >>> Palisade Systems, Inc. > > >> > > >> Me too. > > >> (It works in authmode OPEN though, see my case on > > >> http://lists.freebsd.org/pipermail/freebsd-current/2007-August/076397.ht > > >>ml) > > > > > > On my notebook, I get similar errors most of the time. The problems > > > started some months ago. > > > > > > If I don't configure iwi0 via /etc/rc.conf, I can get WPA working > > > something like this: > > > > > > ifconfig iwi0 up > > > wpa_supplicant -d -i iwi0 -c /etc/wpa_supplicant.conf > > > dhclient iwi0 > > > > > > IIRC it worked most of the time via /etc/rc.conf if I disabled > > > WITNESS/INVARIANTS. Haven't been using the notebook too much lately, so > > > I'm not sure if this is still true. > > > > I just tested this on a t42 w/ 2200 card and it worked for me. Try > > setting debug.iwi to something like 2 or 5 and collect a log. The > > firmware is very finnicky and getting it to integrate w/ wpa_supplicant > > was a challenge. > > I upgraded to a fresh CURRENT. > > Most of the time it works during startup. I couldn't reproduce the firmware > error message with debug.iwi enabled. > > What used to work and now causes the firmware error message is when I > kldunload if_iwi. This used to work some time ago, e.g. iwi was automatically > reloaded and successfully associated. (I use this for suspend/resume) > > I only get wpa_supplicant to work again if I do ifconfig iwi down/up. > > Here's the log > http://stud4.tuwien.ac.at/~e0125637/fbsd/iwi.log My laptop (Acer TravelMate 4102) has this problem, too. The workaround is: 1. Turn off radio switch. 2. sudo kldunload if_iwi 3. Goto 2. if console printed "firmware error." 4. Trun on radio switch. 5. Wi-Fi is workable now.