Summary: | iwl4965 driver fails to initialize wifi in sys-kernel/gentoo-sources-2.6.31-r6 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Michal Špondr <michal.spondr> |
Component: | [OLD] Core system | Assignee: | Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel> |
Status: | RESOLVED NEEDINFO | ||
Severity: | normal | CC: | dnt2y, matt+bugzilla, pi3orama, qdii, sam.walters |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Michal Špondr
2009-11-26 20:18:36 UTC
In dmesg output I found these lines: iwlagn 0000:04:00.0: PCI INT A disabled cfg80211: Using static regulatory domain info cfg80211: Regulatory domain: US (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) (2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm) (5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm) (5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm) (5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm) (5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2300 mBm) (5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm) cfg80211: Calling CRDA for country: US iwlagn: Intel(R) Wireless WiFi Link AGN driver for Linux, 1.3.27ks iwlagn: Copyright(c) 2003-2009 Intel Corporation iwlagn 0000:04:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17 iwlagn 0000:04:00.0: setting latency timer to 64 iwlagn 0000:04:00.0: Detected Intel Wireless WiFi Link 4965AGN REV=0x4 iwlagn 0000:04:00.0: Tunable channels: 13 802.11bg, 19 802.11a channels phy0: Selected rate control algorithm 'iwl-agn-rs' I found information on this problem here: http://www.gossamer-threads.com/lists/linux/kernel/1113886 However I am dog tired and have not been able to sift through it and fully understand what's going on. My temporary (and embarrassingly crude) workaround has been to install the package 'net-wireless/rfkill' and run 'while true; do sudo rfkill unblock wifi; done' while logging into the network. I then kill it and everything works fine. BTW, I'm running sys-kernel/tuxonice-sources-2.6.31 HTH This one shows for iwl3945 as well, under the same conditions as the original post. DMESG: iwl3945 0000:03:00.0: PCI INT A disabled [ 4170.956984] iwl3945: Intel(R) PRO/Wireless 3945ABG/BG Network Connection driver for Linux, 1.2.26k [ 4170.956987] iwl3945: Copyright(c) 2003-2009 Intel Corporation [ 4170.957354] iwl3945 0000:03:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17 [ 4170.957374] iwl3945 0000:03:00.0: setting latency timer to 64 [ 4171.014794] iwl3945 0000:03:00.0: Tunable channels: 11 802.11bg, 13 802.11a channels [ 4171.014798] iwl3945 0000:03:00.0: Detected Intel Wireless WiFi Link 3945ABG [ 4171.014996] iwl3945 0000:03:00.0: irq 31 for MSI/MSI-X [ 4171.016818] phy1: Selected rate control algorithm 'iwl-3945-rs' [ 4171.574506] iwl3945 0000:03:00.0: firmware: requesting iwlwifi-3945-2.ucode [ 4171.579470] iwl3945 0000:03:00.0: loaded firmware version 15.32.2.9 --------------------------- tail /var/log/messages: kernel: [ 4171.014794] iwl3945 0000:03:00.0: Tunable channels: 11 802.11bg, 13 802.11a channels Nov 30 14:11:21 keremidka kernel: [ 4171.014798] iwl3945 0000:03:00.0: Detected Intel Wireless WiFi Link 3945ABG Nov 30 14:11:21 kernel: [ 4171.014996] iwl3945 0000:03:00.0: irq 31 for MSI/MSI-X Nov 30 14:11:21 kernel: [ 4171.016818] phy1: Selected rate control algorithm 'iwl-3945-rs' Nov 30 14:11:21 kernel: [ 4171.574506] iwl3945 0000:03:00.0: firmware: requesting iwlwifi-3945-2.ucode Nov 30 14:11:21 kernel: [ 4171.579470] iwl3945 0000:03:00.0: loaded firmware version 15.32.2.9 Nov 30 14:11:31 rc-scripts: Failed to configure wireless for wlan0 ------------------- (In reply to comment #2) > I found information on this problem here: > http://www.gossamer-threads.com/lists/linux/kernel/1113886 However I am dog > tired and have not been able to sift through it and fully understand what's > going on. My temporary (and embarrassingly crude) workaround has been to > install the package 'net-wireless/rfkill' and run 'while true; do sudo rfkill > unblock wifi; done' while logging into the network. I then kill it and > everything works fine. BTW, I'm running sys-kernel/tuxonice-sources-2.6.31 > > HTH > This is a FYI to all still trying... I've tried the "temporary (and embarrassingly crude)" workaround, which seems to be doing the trick using sys-kernel/gentoo-sources-2.6.31-r6. Have you tested with gentoo-sources-2.6.32? (In reply to comment #5) > Have you tested with gentoo-sources-2.6.32? > Unfortunately same problem with gentoo-sources-2.6.32. I meet the same "Unknown error 132" problem. However, my wireless card (IWL3945ABG) is still usable. The problem is occurs after I update my kernel to 2.6.31-r6. My old kernel is OK and its version is 2.6.30-r8. This problem doesn't prevent me to connect to the net, but if I switch the card off and then turn it on, ifplugd is unable to do the reconnection, and I have to stop the /etc/init.d/net.wlan0 and restart it. (In reply to comment #7) > I meet the same "Unknown error 132" problem. However, my wireless card > (IWL3945ABG) is still usable. > > The problem is occurs after I update my kernel to 2.6.31-r6. My old kernel is > OK and its version is 2.6.30-r8. > > This problem doesn't prevent me to connect to the net, but if I switch the card > off and then turn it on, ifplugd is unable to do the reconnection, and I have > to stop the /etc/init.d/net.wlan0 and restart it. > I had the similar problem, too (with iwl4965). I had to remove all iwl4965-related modules via rmmod, modprobe them again and the wifi worked. I could live with that... Now I can't connect via wifi at all. Same problem with iwlagn on my brand-new Dell Inspiron 13z w/ IWL5100 (haven't tested anything older than 2.6.33-rc1). Workaround: disable RF kill switch in the BIOS (it had a name like "Wireless Switch" or something) I had this problem using kubuntu 9.10 on a sony vaio but it seems that it's been solved now (fingers crossed). I had been trying to play with rmmod and modprobe (reloading the drivers modules) but was not successful. Try this: - su - rfkill block all -- switch off wlan from hardware switch - rfkill unblock all -- switch on wlan from hardware switch If this does not work yet, go to the software repositories, and download and install all sources, headers, backport modules, etc related to your kernel. Hope that this could have been of help. Regards, Joel (In reply to comment #0) > I can't enable my wifi connection, because it fails with SIOCSIFFLAGS: Unknown > error 132 > > Reproducible: Always > > Steps to Reproduce: > 1. Move to new Gentoo kernel sources sys-kernel/gentoo-sources-2.6.31-r6 > 2. Load iwl4965 module > 3. Try to connect via wifi > > Actual Results: > The driver can't start the wifi. It fails with: > SIOCSIFFLAGS: Unknown error 132 > > Expected Results: > Wifi connection should run normally > > lsmod |grep iwl > iwlagn 90424 0 > iwlcore 114840 1 iwlagn > led_class 4608 1 iwlcore > mac80211 155592 2 iwlagn,iwlcore > cfg80211 94512 3 iwlagn,iwlcore,mac80211 > > In previous Gentoo kernel (sys-kernel/gentoo-sources-2.6.30-r5) my wifi worked > correctly. > > emerge --info > Portage 2.1.6.13 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.9_p20081201-r2, > 2.6.31-gentoo-r6 x86_64) > ================================================================= > System uname: > Linux-2.6.31-gentoo-r6-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7250_@_2.00GHz-with-gentoo-1.12.13 > Timestamp of tree: Thu, 26 Nov 2009 18:15:02 +0000 > app-shells/bash: 4.0_p28 > dev-java/java-config: 2.1.9-r1 > dev-lang/python: 2.6.2-r1 > dev-util/cmake: 2.6.4 > sys-apps/baselayout: 1.12.13 > sys-apps/sandbox: 1.6-r2 > sys-devel/autoconf: 2.13, 2.63-r1 > sys-devel/automake: 1.7.9-r1, 1.9.6-r2, 1.10.2 > sys-devel/binutils: 2.18-r3 > sys-devel/gcc-config: 1.4.1 > sys-devel/libtool: 2.2.6a > virtual/os-headers: 2.6.27-r2 > ACCEPT_KEYWORDS="amd64" > CBUILD="x86_64-pc-linux-gnu" > CFLAGS="-O2 -pipe -march=core2" > CHOST="x86_64-pc-linux-gnu" > CONFIG_PROTECT="/etc" > CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ > /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d > /etc/terminfo /etc/udev/rules.d" > CXXFLAGS="-O2 -pipe -march=core2" > DISTDIR="/usr/portage/distfiles" > FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms > strict unmerge-orphans userfetch" > GENTOO_MIRRORS="http://distfiles.gentoo.org > http://distro.ibiblio.org/pub/linux/distributions/gentoo" > LANG="cs_CZ.UTF-8" > LDFLAGS="-Wl,-O1" > LINGUAS="cs" > MAKEOPTS="-j3" > PKGDIR="/usr/portage/packages" > PORTAGE_CONFIGROOT="/" > PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress > --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles > --exclude=/local --exclude=/packages" > PORTAGE_TMPDIR="/var/tmp" > PORTDIR="/usr/portage" > SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" > USE="X alsa amd64 ao audiofile bindist bluetooth bzip2 cairo cdda cddb cli > cracklib crypt cups dbus dri dvd dvdr flac gdbm geoip gif glut gnome gnutls gpm > gstreamer gtk2 hal iconv imagemagick ipv6 jpeg jpeg2k lm_sensors mikmod mmap > mmx modules mp3 mplayer mudflap multilib ncurses nls nptl nptlonly ogg openal > opengl openmp pam pcre pdf plotutils png pppd qt3support qt4 quicktime readline > reflection sdl session sharedmem smartcard spl sqlite sse sse2 ssl ssse3 sysfs > tcpd threads trayicon truetype type1 unicode vim-syntax vorbis wifi xinerama > xorg xulrunner zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym > copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat > linear meter mmap_emul mulaw multi null plug rate route share shm softvol" > APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm > authn_default authn_file authz_dbm authz_default authz_groupfile authz_host > authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir > disk_cache env expires ext_filter file_cache filter headers include info > log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling > status unique_id userdir usertrack vhost_alias" ELIBC="glibc" > INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" > LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses > text" LINGUAS="cs" USERLAND="GNU" VIDEO_CARDS="nvidia" > Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, > PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, > PORTDIR_OVERLAY > Hello. This problem is occurring to me too. I am using kernel version 2.6.32-r1. Portage 2.1.7.16 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.11-r1, 2.6.32-gentoo-r1 x86_64) ================================================================= System uname: Linux-2.6.32-gentoo-r1-x86_64-Intel-R-_Core-TM-_i7_CPU_Q_720_@_1.60GHz-with-gentoo-2.0.1 Timestamp of tree: Sun, 03 Jan 2010 18:00:01 +0000 app-shells/bash: 4.0_p35 dev-java/java-config: 2.1.10 dev-lang/python: 2.6.4, 3.1.1-r1 dev-util/cmake: 2.8.0 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.6.0 sys-apps/sandbox: 2.2 sys-devel/autoconf: 2.13, 2.65 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -msse4 -mcx16 -msahf -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=core2 -msse4 -mcx16 -msahf -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://91.121.125.139/gentoo-distfiles/" LANG="es_ES.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="fr us es" MAKEOPTS="-j10 -l16" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/layman/sunrise /usr/local/portage/layman/wirelay" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 berkdb bzip2 cairo cdda cddb cli consolekit cracklib crypt cups cxx dbus dri dvd emerald extras ffmpeg flac fortran gdbm gecko glitz gnome gnutls gpm gsm gtk hal iconv ipv6 jpeg kdrive laptop ldap mmx modules mp3 mpeg mudflap multilib ncurses nls nptl nptlonly ogg openal opengl openmp pam pcre perl png policykit pppd python qt3 qt4 readline reflection sdl session sip spl sse sse2 sse3 sse4 ssl ssse3 svg sysfs tcpd threads tk truetype unicode vorbis wav xcb xinerama xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr us es" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS It seems that this bug totally prevents ifconfig to configure the card (ifconfig is even unable to turn on the interface). Although with some problems, wpa_supplicant is still usable. I hope this information can provide a workaround. Help me figure out if I got this right: You gentlemen are all getting "rfkill is enabled; disable it to proceed" errors. You have no hardware rfkill switch, right? [1] Your laptop manufacturer has a key binding to disable/enable rfkill, but it just doesn't work in Linux. If you were to add the key binding yourself (like comment #2's link suggests), everything would be fine, right? If I'm right on the above, I *think* that the laptop-mode mailing list is the best place for this. [1]: If you do, just switch it's state and you are done. (In reply to comment #13) > Help me figure out if I got this right: > > You gentlemen are all getting "rfkill is enabled; disable it to proceed" > errors. > You have no hardware rfkill switch, right? [1] > Your laptop manufacturer has a key binding to disable/enable rfkill, but it > just doesn't work in Linux. I'm not sure what the "rfkill switch" is, but I have a small switch on the side of laptop to switch on/off wifi. If I turn wifi on, I'm still not able to run wireless connection. However I haven't something like "laptop-mode" installed before and the wireless connection worked. So I don't know how to report this bug, because I don't understand the problem at all. (In reply to comment #13) > Help me figure out if I got this right: > > You gentlemen are all getting "rfkill is enabled; disable it to proceed" > errors. > You have no hardware rfkill switch, right? [1] > Your laptop manufacturer has a key binding to disable/enable rfkill, but it > just doesn't work in Linux. > > If you were to add the key binding yourself (like comment #2's link suggests), > everything would be fine, right? > > If I'm right on the above, I *think* that the laptop-mode mailing list is the > best place for this. > > [1]: If you do, just switch it's state and you are done. > Hardware switch is not just a key (like space and letters), there are related circuits and chips to control the card. If you turn off the switch, no OS can turn on the card. I've found the rfkill utility and used it: # rfkill list 4: hci0: Bluetooth Soft blocked: no Hard blocked: no 5: phy1: Wireless LAN Soft blocked: no Hard blocked: no So apparently it isn't switched off. Then I try to take it up: # LC_ALL="C" ifconfig wlan0 up SIOCSIFFLAGS: No such file or directory # LC_ALL="C" dhcpcd wlan0 wlan0: dhcpcd 4.0.15 starting wlan0: read_interface: No such file or directory |