[SOLVED] Can't get wireless(iwl3945ABG) working on Thinkpad

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Valvar
n00b
n00b
Posts: 6
Joined: Fri Mar 08, 2013 9:54 pm

[SOLVED] Can't get wireless(iwl3945ABG) working on Thinkpad

Post by Valvar »

Greetings,

Sorry for this nooby issue, but after installing Gentoo for the first time I am unable to get the wireless working on my Thinkpad T60.

lspci output:

Code: Select all

 $ sudo lspci | grep -i network
03:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection (rev 02)
I have followed http://wiki.gentoo.org/wiki/Wifi and http://en.gentoo-wiki.com/wiki/Iwlwifi but to no avail.

lsmod gives an empty output (does not list any modules at all).

Trying to load the module:

Code: Select all

$ sudo modprobe -v iwl3945
insmod /lib/modules/3.7.9-gentoo/kernel/drivers/net/wireless/iwlegacy/iwlegacy.ko 
modprobe: ERROR: could not insert 'iwl3945': Exec format error

Ifconfig gives:

Code: Select all

$ sudo ifconfig wlan0 up
wlan0: ERROR while getting interface flags: No such device
iwconfig:

Code: Select all

sudo iwconfig
sit0      no wireless extensions.

lo        no wireless extensions.

eth0      no wireless extensions.
I have udev and wicd installed, and my ethernet connection works fine.[/code] I apologize if I overlooked something simple; I don't have very much experience with issues like this one.
Last edited by Valvar on Sun Mar 10, 2013 4:43 pm, edited 1 time in total.
User avatar
NeddySeagoon
Administrator
Administrator
Posts: 56071
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

Post by NeddySeagoon »

Valvar,

Welcome to Gentoo.

You need to get to the bottom of

Code: Select all

 modprobe: ERROR: could not insert 'iwl3945': Exec format error
There may well be more information in the output of dmesg

Make friends with wgetpaste and use it to put your dmesg output onto a pastebin site.
Tell us the URL you get back.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Valvar
n00b
n00b
Posts: 6
Joined: Fri Mar 08, 2013 9:54 pm

Post by Valvar »

NeddySeagoon wrote:Valvar,

Welcome to Gentoo.

You need to get to the bottom of

Code: Select all

 modprobe: ERROR: could not insert 'iwl3945': Exec format error
There may well be more information in the output of dmesg

Make friends with wgetpaste and use it to put your dmesg output onto a pastebin site.
Tell us the URL you get back.

http://bpaste.net/show/82413/
User avatar
NeddySeagoon
Administrator
Administrator
Posts: 56071
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

Post by NeddySeagoon »

Valvar,

Look at the end of your dmesg. The 'version magic' strings for some loadable modules and your kernel do not match.
There are several causes for this. e.g. different parts we compiled with different gcc versions, a key configuration change was made to the kernel but it was only partly rebuilt, you system time went backwards ...

The fix is always the same.
Rebuild your kernel starting with the make clean step, so everything in the kernel must be rebuilt.

Code: Select all

cd /usr/src/linux
make clean
then rebuild and reinstall your kernel as you did before. Finally reboot into your new kernel.

At this point the date/time in

Code: Select all

uname -a
should be very recent as it shows the kernel build date and time.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Valvar
n00b
n00b
Posts: 6
Joined: Fri Mar 08, 2013 9:54 pm

Post by Valvar »

NeddySeagoon wrote:Valvar,

Look at the end of your dmesg. The 'version magic' strings for some loadable modules and your kernel do not match.
There are several causes for this. e.g. different parts we compiled with different gcc versions, a key configuration change was made to the kernel but it was only partly rebuilt, you system time went backwards ...

The fix is always the same.
Rebuild your kernel starting with the make clean step, so everything in the kernel must be rebuilt.

Code: Select all

cd /usr/src/linux
make clean
then rebuild and reinstall your kernel as you did before. Finally reboot into your new kernel.

At this point the date/time in

Code: Select all

uname -a
should be very recent as it shows the kernel build date and time.
After following your instructions I realized I had been compiling the kernel improperly all this time. After several hours of head-scratching I managed to get everything working perfectly. Thank you very much!
Post Reply