No wireless ipw3945 after upgrading kernel to 2.6.25[Solved]

Issues Related to Networking (Wired and Wireless)

Moderator: Moderators

Re: No wireless ipw3945 after upgrading kernel to 2.6.25

Postby dave_p_b » Wed May 21, 2008 0:08

Hi

My kernel is the latest 2.6.25 and I use the default config file /usr/portage/local/layman/sabayon/sys-kernel/linux-sabayon/files/linux-sabayon-2.6.25-amd64.config. I think this kernel has better support for the iwl drivers.

All the best

Dave
dave_p_b
Old Dear Hen
 
Posts: 607
Joined: Fri Dec 15, 2006 1:39
Location: Exeter, UK

Re: No wireless ipw3945 after upgrading kernel to 2.6.25

Postby Fitzcarraldo » Wed May 21, 2008 1:19

So we are both using the default 2.6.25 .config file as installed by merging linux-sabayon-2.6.25. And we're both using 64-bit versions too. And we've already established that the config file I used for building the kernel is, with the exception of the date in the header, identical to the file /usr/portage/local/layman/sabayon/sys-kernel/linux-sabayon/files/linux-sabayon-2.6.25-amd64.config on my laptop (which I freshly installed by "emerge -C linux-sabayon" and then "emerge -1v linux-sabayon" as explained in the other thread I referenced earlier). Also, I did not change anything manually in the kernel, I just accepted the defaults and let genkernel do its thing.

So what I don't understand is why there are differences in the two excerpts of .config that we posted earlier. When you ran genkernel, did you make some manual adjustments to the kernel or just accept the defaults and let genkernel do its thing? If you made no changes manually and if we have the same .config downloaded from the SL repository, why are there differences? Does merging linux-sabayon or running genkernel change things automatically in the built kernel depending on one's hardware? I was under the impression they didn't, as there are so many things in our .config files that we don't need or have installed yet still appear in /usr/src/linux/.config.

Am I correct in thinking you can use NetworkManager/KNetworkManager and WPA-encrypted networks without any problem?

Anyway, I decided that I would give the Gentoo Wiki HowTo http://gentoo-wiki.com/HARDWARE_ipw3945 another chance, despite its poor structure, contradictions (e.g. the kernel config in Section 1 contradicts the kernel config in Section 4.2) and other errors. I worked through it methodically (*), making educated allowances for the contradictions, and the result is just the same: KNetworkManager can see all networks (unencrypted, WEP-encrypted and WPA-encrypted) but cannot access WPA-encrpyted networks simply because the only option offered in KNetworkManager's 'Use Encyption' pull-down menu is WEP.

* I even did not enable the LED option in the kernel config because the HowTo doesn't (it says it has no effect, which is not true). So now I don't even have the LED illuminated to indicate that the WiFi Kill Switch on my laptop is in the WiFi Enabled position. Tomorrow I'll rebuild the kernel, yet again, with the off-the-shelf linux-sabayon-2.6.25 .config file so that at least the LED comes back on when I have the Kill Switch in the relevant position.

Well, I have reached a dead end, I think. The combination of very green software (kernel-2.6.25 and iwlwifi) and the Baselayout-2/OpenRC changes have, at least in the case of my hardware, been a big disappointment. I believe I still have the ability to access unencrypted networks and WEP-encrypted networks (not that I'm interested in the latter), so hopefully I can still use my laptop for work away from home. At home it'll just have to be the wired network connection from now on as I'm not changing my hub from WPA to the less-secure WEP for the sake of one PC on the network. If anyone comes up with any bright ideas or sees an up-to-date HowTo for Intel PRO/Wireless 3945 that takes into account the Baselayout-2/OpenRC migration then please let me know! Thanks.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7981
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: No wireless ipw3945 after upgrading kernel to 2.6.25

Postby DontPanic » Wed May 21, 2008 2:25

How recently have you re-built the sys-kernel/linux-sabayon package using emerge or equo?

I notice that a few wireless patches where pushed up to the sys-kernel/linux-sabayon-2.6.25.ebuild on May 16th, but there was no version increment. So even if your Sabayon overlay is up-to-date, portage (not sure about equo) may not have seen the need to re-build the package.

I really have no idea if any of these patches are applicable to your problem, other than to observe that 'wireless' is in the name of a few of the patches. So it may be worthwhile to eliminate this possibility.

Another experiment to try would be to use equo to download one of lxnay's binary packages for that kernel version (if you haven't already done this).
Gigabyte GA-P35-DS3L - Intel(R) Core(TM)2 Duo CPU E6750@ 2.66GHz
nVidia GeForce 7600 GS
2 GB RAM
DontPanic
Old Dear Hen
 
Posts: 742
Joined: Mon Jul 09, 2007 20:29
Location: Mobile, AL, USA

Re: No wireless ipw3945 after upgrading kernel to 2.6.25

Postby Fitzcarraldo » Wed May 21, 2008 12:58

In answer to your question, several times per day over the last few days (16 May to 21 May). In fact, my latest re-build of the sys-kernel/linux-sabayon-2.6.25 package finished about an hour ago.

I'm using emerge/Portage, not equo/Entropy. I really don't want to go down the binary equo/Entropy route.

The kernel configurations and network configuration file changes specified in the Gentoo Intel Pro/Wireless 3945 Wiki and in the Gentoo Forum threads I have seen do not help. At best they result in the same functionality I get if I build the 2.6.25 kernel using the bog-standard .config from linux-sabayon-2.6.25; at worst they result in a loss of all wireless.

Basically, I think it now boils down to WPA-encrypted networking not being accessible. Wireless itself appears to be working: I can see both WPA-encrypted and WEP-encrypted networks listed in KNetworkManager | Wireless Networks (apparently there are no unencrypted networks in my vicinity at the moment). When I am next in a public place with my laptop I'll try to access a non-encrypted network, and I bet that I will be able to. I think the problem is now simply WPA.

With the recent changes made by the Baselayout-2/OpenRC migration, coupled with the apparent obsolescence of wpa_supplicant (see SL Forum links below), there is a lot of obsolete/non-applicable information in the Gentoo Wiki guide on Intel PRO/Wireless 3945 and in the Gentoo Forum thread on iwlwifi. Most (all?) of the information appears to relate to installations that have not been migrated to Baselayout-2/OpenRC and/or are still using wpa_supplicant. What I need is to find someone who has migrated a system that uses Intel PRO/Wireless 3945 to Baselayout-2/OpenRC, has a 2.6.25 kernel and uses WPA-encrypted networking. My gut feeling now is that it's down to sorting out the network configuration files.

viewtopic.php?p=76665#p76665

viewtopic.php?p=76968#p76968
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7981
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: No wireless ipw3945 after upgrading kernel to 2.6.25

Postby Tiago » Wed May 21, 2008 13:04

SO I fixed my problem by using the Loop 3 DVD to update my system and now everything works with the 2.6.25 kernel. Here's my config file and you'll notice that the IPW3945 is there:

Code: Select all
CONFIG_IWLWIFI=y
# CONFIG_IWLWIFI_DEBUG is not set
CONFIG_IWLWIFI_SENSITIVITY=y
CONFIG_IWLWIFI_SPECTRUM_MEASUREMENT=y
CONFIG_IWLWIFI_QOS=y
CONFIG_IWL4965=m
# CONFIG_IWL3945 is not set
CONFIG_ZD1211RW_MAC80211=m
# CONFIG_ZD1211RW_MAC80211_DEBUG is not set
CONFIG_IPW3945=m
# CONFIG_IPW3945_DEBUG is not set
CONFIG_IPW3945_MONITOR=y
CONFIG_IPW3945_PROMISCUOUS=y
CONFIG_IPW3945_SIM_RX=y


This wasn't there before and for some reason it is now :? . Apparently the config files included in the DVD are different from the ones available through the update in portage.

I also have baselayout 2.2.0 and openrc-0.2.3-r1 installed, the only difference is I'm using the 32 bit version and I dont have a WPA network to connect to. I was just checking my system and everything is the same as it was before, the only difference is this config file...

I hope this helps.

PS - The problem isn't just with WPA. I couldn't connect to my WEP encrypted network either... As soon as I set the password on knetworkmanager the connection process would fail and if I tried it manually it would just say it couldn't commit to the network.
Tiago
Young Hen
 
Posts: 31
Joined: Mon Oct 29, 2007 17:13
Location: Madrid, Spain

Re: No wireless ipw3945 after upgrading kernel to 2.6.25

Postby Fitzcarraldo » Wed May 21, 2008 13:34

That's interesting.

I was assuming that I would be able to connect to a WEP-encrypted network, but maybe the same thing would happen in my case.

I have a 3.5 Loop 3-r1 LiveDVD but, despite the fact that the MD5 checksum is correct and I burnt at x1, and also verified the burn was good afterwards (see the procedure in the sticky thread and SL Wiki), it freezes on booting -- there's a thread about it in the SL Forum. So I cannot get my hands on the LiveDVD .config file. Can I ask a favour, please? Would you be so kind as to PM me the .config file (or, alternatively, e-mail it to me at fitzcarraldo1 at hotmail dot com). Thanks.

Thinking on the hoof, maybe the network configuration files on the LiveDVD for WPA-encrypted networking would be of help in my investigation. Could I therefore ask another favour? Would you send me also the following short text files (or post them in this thread) from the LiveDVD?:

/etc/udev/rules.d/70-persistent-net.rules

/etc/conf.d/net

/etc/wpa_supplicant/wpa_supplicant.conf

/etc/conf.d/modules

(I think those are the ones that affect networking generally, and WPA-encrypted networking also). Thanks again.

By the way, IPW3945 is deprecated according to the Gentoo Wiki, so I'm not using ipw3945, but iwlwifi (iwl3945). However, it is apparently very green. I am considering experimenting moving back to ipw3945 to see if that makes a difference (even though Baselayout-2/OpenRC has been applied).
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7981
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: No wireless ipw3945 after upgrading kernel to 2.6.25

Postby Tiago » Wed May 21, 2008 13:53

Ok here's everything you asked I hope. These files are the default ones on the DVD as I haven't had the time to build m system properly and I really can't afford to do that now. Good luck on your investigation :P

/etc/udev/rules.d/70-persistent-net.rules
Code: Select all
# This file was automatically generated by the /lib/udev/write_net_rules
# program run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single line.

# PCI device 0x8086:0x1092 (e100)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:a0:d1:6e:48:12", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x8086:0x4222 (iwl3945)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:19:d2:71:24:49", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"


It might be just me or is the fact that the wlan0 interface is referred to the iwl3945 module/driver a bit weird since it's not even on the config file for the kernel??

/etc/conf.d/net
Code: Select all
dhcp_wmaster0="nosendhost"
dns_domain_wmaster0="localdomain"
nis_domain_wmaster0="localdomain"
dhcp_wlan0="nosendhost"
dns_domain_wlan0="localdomain"
nis_domain_wlan0="localdomain"
dhcp_eth0="nosendhost"
dns_domain_eth0="localdomain"
nis_domain_eth0="localdomain"


/etc/conf.d/modules (This one won't harm anyone :P)
Code: Select all
# You can define a list modules for a specific kernel version,
# a released kernel version, a main kernel version or just a list.
#modules_2_6_23_gentoo_r5="ieee1394 ohci1394"
#modules_2_6_23="tun ieee1394"
modules_2_6=""
#modules="ohci1394"

# Give the modules some arguments if needed, per version if necessary.
#module_ieee1394_args="debug"
#module_ieee1394_args_2_6_23_gentoo_r5="ieee1394 ohci1394"
#module_ieee1394_args_2_6_23="tun ieee1394"
#module_ieee1394_args_2_6="tun"

# You should consult your kernel documentation and configuration
# for a list of modules and their options.


/etc/wpa_supplicant/wpa_supplicant.conf
Code: Select all
# This is a network block that connects to any unsecured access point.
# We give it a low priority so any defined blocks are preferred.
network={
   key_mgmt=NONE
   priority=-9999999
}


I'm sending the config file to your e-mail right now.
Tiago
Young Hen
 
Posts: 31
Joined: Mon Oct 29, 2007 17:13
Location: Madrid, Spain

Re: No wireless ipw3945 after upgrading kernel to 2.6.25

Postby Fitzcarraldo » Wed May 21, 2008 14:20

Muy amable. Tu es un santo, Tiago! :wink:

Tiago wrote:It might be just me or is the fact that the wlan0 interface is referred to the iwl3945 module/driver a bit weird since it's not even on the config file for the kernel??

It is wierd, since I think you're using ipw3945, not iwl3945. But then you've got both in your .config file, so maybe you are using iwl3945. If not, probably it works anyway because the syntax for ipw3945 is as follows:

Code: Select all
# PCI device 0x8086:0x4222 (ipw3945)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:18:de:4a:8e:a8", ATTR{type}=="1", NAME="wlan0"

Notice that there is only one difference between the two (ignoring our different MAC addresses, of course)? I bet that the ipw3945 module could still parse that iwl3945 line.

Anyway, it's easy to find out whether you're using ipw3945 or iwl3945: would you paste the output from lsmod, please?

Here's mine:

Code: Select all
# lsmod
Module                  Size  Used by
nls_iso8859_1           6528  1
nls_cp437               8320  1
coretemp                9856  0
eeprom                  9488  0
snd_seq_dummy           5380  0
snd_seq_oss            33600  0
snd_seq_midi_event      9344  1 snd_seq_oss
snd_seq                55568  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device          9876  3 snd_seq_dummy,snd_seq_oss,snd_seq
ipv6                  295144  18
vboxdrv              1633360  0
pcmcia                 42136  0
iwl3945                95844  0
mac80211              173480  1 iwl3945
i2c_i801               11804  0
i2c_core               27552  2 eeprom,i2c_i801
intel_agp              30704  0
e1000e                 97060  0
gspca                 630800  0
acer_wmi               14152  0
led_class               7176  2 iwl3945,acer_wmi
yenta_socket           28300  3
rsrc_nonstatic         12928  1 yenta_socket
joydev                 14464  0
fglrx                1758048  27
irda                  130244  0
compat_ioctl32         10112  1 gspca
videodev               34816  2 gspca,compat_ioctl32
serio_raw               8580  0
pcspkr                  4608  0
iTCO_wdt               14800  0
snd_hda_intel         407084  1
snd_hwdep              11656  1 snd_hda_intel
v4l1_compat            13316  1 videodev
crc_ccitt               3584  1 irda
iTCO_vendor_support     5636  1 iTCO_wdt
tg3                   114180  0
e1000                 118208  0
scsi_wait_scan          2816  0
sl811_hcd              14464  0
uhci_hcd               26016  0
ehci_hcd               36492  0
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7981
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: No wireless ipw3945 after upgrading kernel to 2.6.25

Postby chickpea » Wed May 21, 2008 15:08

Fitz, are you perhaps running into the wpa issue I was having in the OpenRC thread? Have you checked your ps aux | grep wpa to see if you have several instances of wpa_supplicant loading at boot? If you kill them, you will be able to connect to WPA encrypted networks normally. I think you tried this before and it wasn't the problem, but I am still curious because really all other solutions have not panned out.
chickpea
Sagely Hen
 
Posts: 1084
Joined: Fri Jan 05, 2007 15:08
Location: Washington, DC

Re: No wireless ipw3945 after upgrading kernel to 2.6.25

Postby Tiago » Wed May 21, 2008 15:21

Code: Select all
Module                  Size  Used by
ipv6                  245700  18
pcmcia                 36980  0
nvidia               7096244  24
video                  20368  0
tifm_7xx1               8320  0
output                  4480  1 video
sdhci                  17164  0
mmc_core               44060  1 sdhci
tifm_core              10652  1 tifm_7xx1
yenta_socket           25100  1
iwl3945                84952  0
mac80211              151832  1 iwl3945
e100                   33548  0
battery                13828  0
rsrc_nonstatic         12672  1 yenta_socket
pcspkr                  3968  0
joydev                 11968  0
i2c_i801               10128  0
intel_agp              25924  0
ac                      6788  0
serio_raw               7428  0
iTCO_wdt               12580  0
led_class               6148  1 iwl3945
snd_hda_intel         299416  1
i2c_core               23188  2 nvidia,i2c_i801
iTCO_vendor_support     4740  1 iTCO_wdt
tg3                   104580  0
e1000                 105536  0
scsi_wait_scan          2304  0
sl811_hcd              12416  0
uhci_hcd               22928  0
ehci_hcd               32524  0


Ok so I'm definitely using iwl... I'm completely lost now. This is the exact same setup I had before using the Loop 3 DVD to fix my system. My only guess is that there might be something broken in the sources from portage.
Tiago
Young Hen
 
Posts: 31
Joined: Mon Oct 29, 2007 17:13
Location: Madrid, Spain

PreviousNext

Return to Networking and Wireless

Who is online

Users browsing this forum: No registered users and 1 guest