From owner-freebsd-current@FreeBSD.ORG Fri Oct 26 10:20:30 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 5BFF816A418 for ; Fri, 26 Oct 2007 10:20:30 +0000 (UTC) (envelope-from shoesoft@gmx.net) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id B695313C4A3 for ; Fri, 26 Oct 2007 10:20:29 +0000 (UTC) (envelope-from shoesoft@gmx.net) Received: (qmail invoked by alias); 26 Oct 2007 10:20:26 -0000 Received: from h081217094222.dyn.cm.kabsi.at (EHLO [192.168.0.1]) [81.217.94.222] by mail.gmx.net (mp047) with SMTP; 26 Oct 2007 12:20:26 +0200 X-Authenticated: #16703784 X-Provags-ID: V01U2FsdGVkX180tct60VU0Mb9RokQY1NzXRbRD4NFXnbcbmmD0+h 4HDF7/rQwFzlWu From: Stefan Ehmann To: freebsd-current@freebsd.org Date: Fri, 26 Oct 2007 12:20:24 +0200 User-Agent: KMail/1.9.7 References: <47209EB2.5080109@palisadesys.com> <200710251911.24346.shoesoft@gmx.net> <4720D849.2010409@errno.com> In-Reply-To: <4720D849.2010409@errno.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200710261220.24757.shoesoft@gmx.net> X-Y-GMX-Trusted: 0 Cc: 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 10:20:30 -0000 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