X60s/X200s kernel 3.7.0 compiled no wifi. (Old 2.6.32, ubuntu wifi works)

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

X60s/X200s kernel 3.7.0 compiled no wifi. (Old 2.6.32, ubuntu wifi works)

Uwe Brauer-2


Hello

Here is the short question:

Did anybody successfully compile a kernel >= 3.7, within Ubuntu and got
the wifi to work for the machines mentioned above??



----------------------------------------------------------------
Rationale and longer story.

I am running a X60 and an X200, both with Kubuntu 10.04 (I know it is
outdated but I have my reasons) and wifi works without any problems.

I replaced in both machines my HHD with a SSD and reinstalled Kubuntu
10.04 again, using the jfs file system. I am very pleased with the
results.

However after the installation I found out that on the long time run I
should use trim, which was not supported for jfs in the 2.6.32-37
kernel. I could upgrade the kernel via the backport releases but these
backport releases did not include the kernel 3.7, which was the first
kernel to support TRIM for jfs. So I should reinstall Kubuntu using
either ext4 or xfs or compile  a new kernel.

So, I downloaded the 3.7.0 kernel on my X200 and run set of
commands which I have attached belows.

Now the relevant wifi intel driver 3945 for the X60s
and the PRO/Wireless 5100 for the X200s seem to be compiled.


However when I boot the new kernel and run the
ifconfig command there is only the wired card detected but no
wlan0 or eth0 device is found.

I am puzzled: if I boot the 2.6.32-37 kernel I have wifi support but not
with the 3.7 kernel.

What should I do.

Any help is strongly appreciated

Thanks

Uwe Brauer





I made lsmod on my X60 machine once with the new 3.7 kernel once with my
old 2.6.32 kernel. The difference is huge in my X60 machine
one line is particular interesting, namely
iwlcore               106661  1 iwl3945


this line is missing for the lsmod for the 3.7.0 kernel indeed this
module does not exist. What do I miss.


I don't hope I have to recompile the kernel?
Can somebody help me how to get the module loaded

thanks

Uwe Brauer


Commands used to compile the kernel:
sudo make menuconfig

sudo make
sudo make modules
sudo make modules_install

make INSTALL_MOD_STRIP=1 modules_install
sudo make install
sudo update-initramfs -u -k 3.7.0

cd /boot/grup

sudo cp grub.cfg grub-org.cfg


su

grub-mkconfig > /boot/grub/grub.cfg


sudo update-grub


--
The linux-thinkpad mailing list home page is at:
http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
Reply | Threaded
Open this post in threaded view
|

Re: X60s/X200s kernel 3.7.0 compiled no wifi. (Old 2.6.32, ubuntu wifi works)

Paul Bolle
On Thu, 2014-11-06 at 11:56 +0100, Uwe Brauer wrote:
> I am puzzled: if I boot the 2.6.32-37 kernel I have wifi support but not
> with the 3.7 kernel.

Kernel v2.6.39 shipped with commit be663ab67077 ("iwlwifi: split the
drivers for agn and legacy devices 3945/4965"). As a result iwl3945
depends on iwlegacy in v3.7. Does your v3.7 .config set CONFIG_IWLEGACY
to m or y?

> I made lsmod on my X60 machine once with the new 3.7 kernel once with my
> old 2.6.32 kernel. The difference is huge in my X60 machine
> one line is particular interesting, namely
> iwlcore               106661  1 iwl3945
>
> this line is missing for the lsmod for the 3.7.0 kernel indeed this
> module does not exist. What do I miss.
>
>[...]
>
> sudo make menuconfig

Please don't run make menuconfig as root!

> sudo make

Ditto.
 
> sudo make modules

Ditto.


Paul Bolle

--
The linux-thinkpad mailing list home page is at:
http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
Reply | Threaded
Open this post in threaded view
|

Re: X60s/X200s kernel 3.7.0 compiled no wifi. (Old 2.6.32, ubuntu wifi works)

Uwe Brauer-2

   > On Thu, 2014-11-06 at 11:56 +0100, Uwe Brauer wrote:

   > Kernel v2.6.39 shipped with commit be663ab67077 ("iwlwifi: split the
   > drivers for agn and legacy devices 3945/4965"). As a result iwl3945
   > depends on iwlegacy in v3.7. Does your v3.7 .config set CONFIG_IWLEGACY
   > to m or y?

It is set to m. Would it be simple to have it set to y?


In any case:
So I did sudo modprobe  iwlegacy  
and indeed now in lsmod that module shows up
I can run sudo ifonfig wlan0 up.

However neither wicd nor (k)networkmanager show the wireless device!

So I still don't have wifi.
   > Please don't run make menuconfig as root!

Ok since it was in /usr/src

 it looked logical. So if I change the ownership of the kernel source
 and run the make commands, should I run just the make install commands
 and root and let the permissions of the executable as they are?


Thanks for your help.



Uwe

--
The linux-thinkpad mailing list home page is at:
http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
Reply | Threaded
Open this post in threaded view
|

Re: X60s/X200s kernel 3.7.0 compiled no wifi. (Old 2.6.32, ubuntu wifi works)

Paul Bolle
On Thu, 2014-11-06 at 13:04 +0100, Uwe Brauer wrote:
>    > On Thu, 2014-11-06 at 11:56 +0100, Uwe Brauer wrote:
>
>    > Kernel v2.6.39 shipped with commit be663ab67077 ("iwlwifi: split the
>    > drivers for agn and legacy devices 3945/4965"). As a result iwl3945
>    > depends on iwlegacy in v3.7. Does your v3.7 .config set CONFIG_IWLEGACY
>    > to m or y?
>
> It is set to m. Would it be simple to have it set to y?

I don't think it matters much.

> In any case:
> So I did sudo modprobe  iwlegacy  
> and indeed now in lsmod that module shows up
> I can run sudo ifonfig wlan0 up.

Because iwl3945 shows up too?

> However neither wicd nor (k)networkmanager show the wireless device!
>
> So I still don't have wifi.

I don't really know or use these programs. So I'm _guessing_ your Ubuntu
10.04 userland expects v2.6.32 kernels and doesn't properly support v3.7
kernels, for whatever reason.

>    > Please don't run make menuconfig as root!
>
> Ok since it was in /usr/src

There must be a gazillion tutorials and books on compiling the Linux
kernel. I'm pretty sure they all suggest to build the kernel (in a
dedicated directory somewhere) in your home directory.

(On my ThinkPads, running Fedora 20 now, /usr/src/kernels/$release only
contains header files and Makefiles. I think it is only provided to
build out of tree modules.)

>  it looked logical. So if I change the ownership of the kernel source
>  and run the make commands, should I run just the make install commands
>  and root and let the permissions of the executable as they are?

What executable(s)?


Paul Bolle

--
The linux-thinkpad mailing list home page is at:
http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
Reply | Threaded
Open this post in threaded view
|

Re: X60s/X200s kernel 3.7.0 compiled no wifi. (Old 2.6.32, ubuntu wifi works)

Ivan T. Ivanov
In reply to this post by Uwe Brauer-2

Hi,

On Thu, 2014-11-06 at 13:04 +0100, Uwe Brauer wrote:
>    > On Thu, 2014-11-06 at 11:56 +0100, Uwe Brauer wrote:
>
>    > Kernel v2.6.39 shipped with commit be663ab67077 ("iwlwifi: split the
>    > drivers for agn and legacy devices 3945/4965"). As a result iwl3945
>    > depends on iwlegacy in v3.7. Does your v3.7 .config set CONFIG_IWLEGACY
>    > to m or y?
>
> It is set to m. Would it be simple to have it set to y?
>

I have x200 with Ultimate N WiFi Link 5300 and linux 3.15.x. As Paul mention,
iwlwifi was split. And now they are 2 parts. On my machine these are iwlwifi
and iwldvm. Usually this driver have to be build as module, because it uses
Intel firmware blob (iwlwifi-5150-2.ucode, I believe), which could be found
here[1] and is provided as package by your distribution, probably linux-firmware.
At the bottom [2] I have posted mine configuration about Intel WiFi card.

Regards,
Ivan


[1] http://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git

[2]

Symbol: IWLWIFI [=m]
  │ Type  : tristate
  │ Prompt: Intel Wireless WiFi Next Gen AGN - Wireless-N/Advanced-N/Ultimate-N (iwlwifi)
  │   Location:
  │     -> Device Drivers
  │       -> Network device support (NETDEVICES [=y])
  │ (1)     -> Wireless LAN (WLAN [=y])



Symbol: IWLMVM [=m]                                                                                
                                                            │
  │ Type  : tristate                                                                                
                                                                │
  │ Prompt: Intel Wireless WiFi MVM Firmware support                                                
                                                                │
  │   Location:                                                                                    
                                                                │
  │     -> Device Drivers                                                                          
                                                                │
  │       -> Network device support (NETDEVICES [=y])                                              
                                                                │
  │         -> Wireless LAN (WLAN [=y])                                                            
                                                                │
  │ (1)       -> Intel Wireless WiFi Next Gen AGN - Wireless-N/Advanced-N/Ultimate-N (iwlwifi)  
(IWLWIFI [=m])


Symbol: IWLMVM [=m]                                                                                
                                                            │
  │ Type  : tristate                                                                                
                                                                │
  │ Prompt: Intel Wireless WiFi MVM Firmware support                                                
                                                                │
  │   Location:                                                                                    
                                                                │
  │     -> Device Drivers                                                                          
                                                                │
  │       -> Network device support (NETDEVICES [=y])                                              
                                                                │
  │         -> Wireless LAN (WLAN [=y])                                                            
                                                                │
  │ (1)       -> Intel Wireless WiFi Next Gen AGN - Wireless-N/Advanced-N/Ultimate-N (iwlwifi)  
(IWLWIFI [=m])

linux # lsmod
Module                  Size  Used by
iwldvm                106520  0
iwlwifi                78168  1 iwldvm
 ...
--
The linux-thinkpad mailing list home page is at:
http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
Reply | Threaded
Open this post in threaded view
|

Re: X60s/X200s kernel 3.7.0 compiled no wifi. (Old 2.6.32, ubuntu wifi works)

Ivan T. Ivanov

On Thu, 2014-11-06 at 15:00 +0200, Ivan T. Ivanov wrote:
>
> At the bottom [2] I have posted mine configuration about Intel WiFi card.
>

Correction. Related symbols are:

IWLWIFI [=m], IWLDVM [=m], IWLMVM [=m] and IWLEGACY [=n].

Regards,
Ivan
--
The linux-thinkpad mailing list home page is at:
http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
Reply | Threaded
Open this post in threaded view
|

Re: X60s/X200s kernel 3.7.0 compiled no wifi. (Old 2.6.32, ubuntu wifi works)

Uwe Brauer-2
In reply to this post by Ivan T. Ivanov
>> "Ivan" == Ivan T Ivanov <[hidden email]> writes:

   > Hi,

   >>
   >> It is set to m. Would it be simple to have it set to y?
   >>

   > I have x200 with Ultimate N WiFi Link 5300 and linux 3.15.x. As
   > Paul mention, iwlwifi was split. And now they are 2 parts. On my
   > machine these are iwlwifi and iwldvm. Usually this driver have to
   > be build as module, because it uses Intel firmware blob
   > (iwlwifi-5150-2.ucode, I believe), which could be found here[1] and

I have this file installed.


   > is provided as package by your distribution, probably
   > linux-firmware. At the bottom [2] I have posted mine configuration
   > about Intel WiFi card.

Using the 3.7 kernel almost all these modules are loaded save the
iwlegacy which I load after booting (not sure how to configure the
system that it loads this module, but only if the 3.7 kernel is booted)

lsmod | grep iw
iwlegacy               55193  0
iwldvm                130343  0
mac80211              462917  2 iwlegacy,iwldvm
iwlwifi                76446  1 iwldvm
cfg80211              149752  4 iwlegacy,iwldvm,mac80211,iwlwifi
led_class               3098  3 iwlegacy,thinkpaacpi,iwldvm

The issue is now ifconfig gives:

pan0      Link encap:Ethernet  HWaddr 76:71:80:c4:62:9b  
          inet6 addr: fe80::7471:80ff:fec4:629b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:43 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:7053 (7.0 KB)

wlan0     Link encap:Ethernet  HWaddr 00:1e:65:dc:90:e0  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

This is almost the same result I obtain when using the older 2.6
kernels, save the pan0 interface. I have no idea what this is supposed
to be.

In any case wicd nor knetworkmanager find the card so I cannot connect
comfortably to a wifi red.

thanks

Uwe

--
The linux-thinkpad mailing list home page is at:
http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
Reply | Threaded
Open this post in threaded view
|

Re: X60s/X200s kernel 3.7.0 compiled no wifi. (Old 2.6.32, ubuntu wifi works)

Ivan T. Ivanov

On Thu, 2014-11-06 at 14:29 +0100, Uwe Brauer wrote:

>
> wlan0     Link encap:Ethernet  HWaddr 00:1e:65:dc:90:e0
>           UP BROADCAST MULTICAST  MTU:1500  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>

This looks ok to me.

> This is almost the same result I obtain when using the older 2.6
> kernels, save the pan0 interface. I have no idea what this is supposed
> to be.
>


> In any case wicd nor knetworkmanager find the card so I cannot connect
> comfortably to a wifi red.
>

I am also using wicd. You have properly filled "Wireless Interface: wlan0"
in wicd, right?

"wifi red" or wifi led? Check dmesg output, ensure that firmware file is
properly loaded (no errors like "*firmware file no found*")

Regards,
Ivan
--
The linux-thinkpad mailing list home page is at:
http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
Reply | Threaded
Open this post in threaded view
|

Re: X60s/X200s kernel 3.7.0 compiled no wifi. (Old 2.6.32, ubuntu wifi works)

Uwe Brauer-2
>> "Ivan" == Ivan T Ivanov <[hidden email]> writes:

   > On Thu, 2014-11-06 at 14:29 +0100, Uwe Brauer wrote:



   >> In any case wicd nor knetworkmanager find the card so I cannot connect
   >> comfortably to a wifi red.
   >>

   > I am also using wicd. You have properly filled "Wireless Interface: wlan0"
   > in wicd, right?


No: if I use the older kernel wicd show me the net around me, with teh
3.7 he simply tells me no wireless networks found. I could attach
screenshots of both

   > "wifi red" or wifi led? Check dmesg output, ensure that firmware file is
   > properly loaded (no errors like "*firmware file no found*")

Aha, there is indeed a huge difference:

Dmes (2.6)
[    7.096380] iwlagn 0000:03:00.0: firmware: requesting iwlwifi-5000-2.ucode
[    7.133424] iwlagn 0000:03:00.0: loaded firmware version 8.24.2.12
[    6.025870] iwlagn 0000:03:00.0: Detected Intel Wireless WiFi Link
5100AGN REV=0x54




The module iwlagn is present for the older kernels but not for 3.7
kernel. Indeed in the .config file for the older kernels I have
CONFIG_IWLAGN=m

While there is no such line in the .config file for the 3.7 kernel
however this might be caused by the split you mentioned.




Indeed dmesg for 3.7 does not show the line concerning the request for
firmware. I have
[    4.902443] iwldvm: Intel(R) Wireless WiFi Link AGN driver for Linux, in-tree:
[    4.902450] iwldvm: Copyright(c) 2003-2012 Intel Corporation
[    4.902484] iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEBUG disabled
[    4.902488] iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEBUGFS disabled
[    4.902491] iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEVICE_TRACING disabled
[    4.902495] iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEVICE_TESTMODE enabled
[    4.902498] iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_P2P enabled
[    4.902502] iwlwifi 0000:03:00.0: Detected Intel(R) WiFi Link 5100 AGN, REV=0x54
[    4.902588] iwlwifi 0000:03:00.0: L1 Disabled; Enabling L0S
[    4.934003] iwlwifi 0000:03:00.0: device EEPROM VER=0x11f, CALIB=0x4
[    4.934010] iwlwifi 0000:03:00.0: Device SKU: 0xF0
[    4.934015] iwlwifi 0000:03:00.0: Valid Tx ant: 0x2, Valid Rx ant: 0x3

But this is maybe not enough since he does not load
[    7.096380] iwlagn 0000:03:00.0: firmware: requesting iwlwifi-5000-2.ucode


So the question is how to activate the firmware and how to do
it automatically during booting.

Thanks again

Uwe

--
The linux-thinkpad mailing list home page is at:
http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
Reply | Threaded
Open this post in threaded view
|

Re: X60s/X200s kernel 3.7.0 compiled no wifi. (Old 2.6.32, ubuntu wifi works)

Ivan T. Ivanov

On Thu, 2014-11-06 at 15:20 +0100, Uwe Brauer wrote:
> >


> Indeed dmesg for 3.7 does not show the line concerning the request for
> firmware. I have
> [    4.902443] iwldvm: Intel(R) Wireless WiFi Link AGN driver for Linux, in-tree:
> [    4.902450] iwldvm: Copyright(c) 2003-2012 Intel Corporation
> [    4.902484] iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEBUG disabled
> [    4.902488] iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEBUGFS disabled
> [    4.902491] iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEVICE_TRACING disabled
> [    4.902495] iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEVICE_TESTMODE enabled
> [    4.902498] iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_P2P enabled
> [    4.902502] iwlwifi 0000:03:00.0: Detected Intel(R) WiFi Link 5100 AGN, REV=0x54
> [    4.902588] iwlwifi 0000:03:00.0: L1 Disabled; Enabling L0S
> [    4.934003] iwlwifi 0000:03:00.0: device EEPROM VER=0x11f, CALIB=0x4
> [    4.934010] iwlwifi 0000:03:00.0: Device SKU: 0xF0
> [    4.934015] iwlwifi 0000:03:00.0: Valid Tx ant: 0x2, Valid Rx ant: 0x3
>
> But this is maybe not enough since he does not load
> [    7.096380] iwlagn 0000:03:00.0: firmware: requesting iwlwifi-5000-2.ucode
>
>
> So the question is how to activate the firmware and how to do
> it automatically during booting.
>

Don't worry too much about this. The new driver just didn't print the message.
Enable IWLWIFI_DEBUG and you should see something like: "attempting to load firmware"
in kernel log. Probably message will be there. Try disabling IWLEGACY, I am
not sure what it is for.

Regards,
Ivan
--
The linux-thinkpad mailing list home page is at:
http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
Reply | Threaded
Open this post in threaded view
|

Re: X60s/X200s kernel 3.7.0 compiled no wifi. (Old 2.6.32, ubuntu wifi works)

Stefan Monnier
In reply to this post by Uwe Brauer-2
> wlan0     Link encap:Ethernet  HWaddr 00:1e:65:dc:90:e0  
>           UP BROADCAST MULTICAST  MTU:1500  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

If you have wlan0, it normally means the driver is loaded properly (and
firmware was found).  What does `iwconfig' or `iw dev' say?  What about
`iwlist scan?


        Stefan

--
The linux-thinkpad mailing list home page is at:
http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
Reply | Threaded
Open this post in threaded view
|

Re: X60s/X200s kernel 3.7.0 compiled no wifi. (Old 2.6.32, ubuntu wifi works)

Uwe Brauer-2
>> "Stefan" == Stefan Monnier <[hidden email]> writes:

   >> wlan0     Link encap:Ethernet  HWaddr 00:1e:65:dc:90:e0  
   >> UP BROADCAST MULTICAST  MTU:1500  Metric:1
   >> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
   >> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
   >> collisions:0 txqueuelen:1000
   >> RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

   > If you have wlan0, it normally means the driver is loaded properly (and
   > firmware was found).  What does `iwconfig' or `iw dev' say?  What about
   > `iwlist scan?
For the 3.7 kernel:
sudo iwconfig
pan0      no wireless extensions.

wlan0     no wireless extensions.

lo        no wireless extensions.

eth0      no wireless extensions.


sudo iwlist scan
pan0      Interface doesn't support scanning.

wlan0     Interface doesn't support scanning.

lo        Interface doesn't support scanning.

eth0      Interface doesn't support scanning.


For the official ubuntu kernels these commandos behave as expected.
I am really desperate.

Maybe I have to re install in order to get trim support via xfs or ext4
(although I prefer to keep jfs)

Uwe

--
The linux-thinkpad mailing list home page is at:
http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
Reply | Threaded
Open this post in threaded view
|

Re: X60s/X200s kernel 3.7.0 compiled no wifi. (Old 2.6.32, ubuntu wifi works)

Ivan T. Ivanov

On Thu, 2014-11-06 at 18:37 +0100, Uwe Brauer wrote:


> For the official ubuntu kernels these commandos behave as expected.
> I am really desperate.

Could it be some issue with udev version? Take a look here:
https://wiki.gentoo.org/wiki/Udev/upgrade

Ivan
--
The linux-thinkpad mailing list home page is at:
http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
Reply | Threaded
Open this post in threaded view
|

[SOLVED] (was: [ltp] X60s/X200s kernel 3.7.0 compiled no wifi. (Old 2.6.32, ubuntu wifi works))

Uwe Brauer-2
In reply to this post by Ivan T. Ivanov
>> "Ivan" == Ivan T Ivanov <[hidden email]> writes:

   > On Thu, 2014-11-06 at 15:00 +0200, Ivan T. Ivanov wrote:
   >>
   >> At the bottom [2] I have posted mine configuration about Intel WiFi card.
   >>

   > Correction. Related symbols are:

   > IWLWIFI [=m], IWLDVM [=m], IWLMVM [=m] and IWLEGACY [=n].

What I needed was the
 CONFIG_CFG80211_WEXT
option

Now it works and I have jfs+trim+wireless.

Uwe

smime.p7s (7K) Download Attachment