How do I install module from Hardy backport?

Asked by BC7333

I would like to get the led for my network adapter working with Hardy beta.

https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/176090 states that the appropriate module is available in backport.

How do I install the new iwlwifi 3945 module?

Thanks!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
BC7333
Solved:
Last query:
Last reply:
Revision history for this message
Bhavani Shankar (bhavi) said :
#1

Hello :

First open up your sources.list

sudo gedit /etc/apt/sources.list

And copy this and paste it there...

deb http://archive.ubuntu.com/ubuntu hardy-backports main universe multiverse restricted

and save the file

More about backports here:

https://help.ubuntu.com/community/UbuntuBackports

Secondly download the file from here:

http://intellinuxwireless.org/iwlwifi/downloads/iwlwifi-3945-ucode-2.14.1.5.tgz

Navigate to the directory containing the file you downloaded and issue these two commands:

sudo tar xf iwlwifi-3945-ucode-2.14.1.5.gz
cd iwlwifi-3945-ucode-2.14.1.5

You can now read the README either via a file browser or with this command:

less README.iwlwifi-3945-ucode

Basically it tells you to put the firmware in the proper place with this command:

sudo cp iwlwifi-3945.ucode /lib/firmware

Now try a re-boot and see if you can configure a wireless connection, if not, post back.

Regards

Bhavani Shankar.

Revision history for this message
BC7333 (brian-abtrafco) said :
#2

Bhavani Shankar,

Thanks for your quick response.

I followed your instructions, but had to make some small modifications as below:

brian@brian-laptop:~/Desktop/Downloads$ sudo tar xf iwlwifi-3945-ucode-2.14.1.5.tgz
brian@brian-laptop:~/Desktop/Downloads$ cd iwlwifi-3945-ucode-2.14.1.5
brian@brian-laptop:~/Desktop/Downloads/iwlwifi-3945-ucode-2.14.1.5$ ls
iwlwifi-3945-1.ucode LICENSE.iwlwifi-3945-ucode README.iwlwifi-3945-ucode
brian@brian-laptop:~/Desktop/Downloads/iwlwifi-3945-ucode-2.14.1.5$ sudo cp iwlwifi-3945.ucode /lib/firmware
cp: cannot stat `iwlwifi-3945.ucode': No such file or directory
brian@brian-laptop:~/Desktop/Downloads/iwlwifi-3945-ucode-2.14.1.5$ sudo cp iwlwifi-3945-1.ucode /lib/firmware
brian@brian-laptop:~/Desktop/Downloads/iwlwifi-3945-ucode-2.14.1.5$

Rebooted and wireless works.

Now to get the led working, I followed the instructions here:
---------------------------------
http://intellinuxwireless.org/?p=iwlwifi&n=howto-iwlwifi

Next, download, build, and install the iwlwifi driver.
Download, build, and install from snapshots

% wget \
  http://intellinuxwireless.org/iwlwifi/downloads/iwlwifi-1.2.25.tgz
% tar xvf iwlwifi-1.2.25.tgz
% cd iwlwifi-1.2.25
% make
% make install
---------------------------------------

with the following result when I did make:

brian@brian-laptop:~/Desktop/Downloads/iwlwifi-1.2.25$ make
Makefile:24:
Makefile:25: WARNING: $SHELL not set to bash.
Makefile:26: If you experience build errors, try
Makefile:27: 'make SHELL=/bin/bash'.
Makefile:28:
Kernel Makefile not found at '/lib/modules/2.6.24-15-rt/source'
chmod: cannot access `compatible/*': No such file or directory
/bin/sh: cannot create compatible/kversion: Directory nonexistent
-e
Makefile has been modified by generate_compatible, please run `make' again

make: *** [compatible/kversion] Error 1
brian@brian-laptop:~/Desktop/Downloads/iwlwifi-1.2.25$

Thanks!

Revision history for this message
Bhavani Shankar (bhavi) said :
#3

Did you install mac80211 drivers first?

http://intellinuxwireless.org/?p=mac80211&n=howto-mac80211

Regards

Bhavani Shankar.

Revision history for this message
BC7333 (brian-abtrafco) said :
#4

Thanks,

I am using iwl drivers now, but as your link indicates I probably should upgrade mac80211 also.

First step in the page you referred to:

brian@brian-laptop:~$ ls /lib/modules/$(uname -r)/build/Makefile
ls: cannot access /lib/modules/2.6.24-15-rt/build/Makefile: No such file or directory
brian@brian-laptop:~$

So... seems I need to get the sources installed for this kernel, upgrade mac80211 then the iwl driver.

but...

brian@brian-laptop:~$ uname -r
2.6.24-15-rt
brian@brian-laptop:~$ apt-get install kernel-headers-2.6.24-15-rt
E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
brian@brian-laptop:~$ sudo apt-get install kernel-headers-2.6.24-15-rt
[sudo] password for brian:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package kernel-headers-2.6.24-15-rt
brian@brian-laptop:~$

any ideas?

Revision history for this message
Bhavani Shankar (bhavi) said :
#5

Hello:

The command is:

sudo apt-get install linux-headers-`uname -r`

Btw I am going to sleep as its night here.... :) So see you tomorrow

Good luck in your efforts

Regards

Bhavani Shankar.

Revision history for this message
BC7333 (brian-abtrafco) said :
#6

These modules now available in synaptic so was able to download/install directly with synaptic.

Thanks for your input Bhavani!

Revision history for this message
Clayton Dukes (cdukes) said :
#7

What module? I added the backports but what do I search on?
Added: deb http://archive.ubuntu.com/ubuntu hardy-backports main universe multiverse restricted
to /etc/apt/sources.list and updated, but when I search on iwl, iwlwifi, or intel nothing hits. How can I get the latest for my 4965 card? (I'm having trouble with wpa enterprise tkip).

Revision history for this message
BC7333 (brian-abtrafco) said :
#8

linux-backports-modules-hardy

Search for it in synaptic.

More info here: https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/176090

On my laptop, I have to turn wireless on using function keys and do:

sudo ifdown wlan0
then
sudo ifup wlan0

in terminal mode then the light works.

Revision history for this message
Clayton Dukes (cdukes) said :
#9

>Search for it in synaptic
Yes, I gathered that, the problem is *what* to search for.

Revision history for this message
BC7333 (brian-abtrafco) said :
#10

>>Yes, I gathered that, the problem is *what* to search for.

Open System>Administration>Synaptic Package Manager

Click on the search icon

Enter or copy/paste from here: linux-backports-modules-hardy

You should see a list of backport modules

I used linux-backports-modules-hardy-generic 2.6.24.16.18

Revision history for this message
Clayton Dukes (cdukes) said :
#11

Ohhhhh!
I totally misunderstood that. I thought you were saying to add the linux backports to /etc/apt, not that the name of the file to search for was called "linux-backports-modules-hardy".
My apologies, thanks for the help (and patience!)