LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   Trouble installing 4965AGN (https://www.linuxquestions.org/questions/linux-wireless-networking-41/trouble-installing-4965agn-564428/)

tankqj 06-25-2007 03:44 PM

Trouble installing 4965AGN
 
Hello everyone,

I am having trouble installing Intel's drivers for their Wifi Link 4965AGN card. I have followed their instructions on Intel's Linux drivers install site.
But i get this error while running these commands:

tankqj@keithrichards:~/iwlwifi-0.0.32$ make
Makefile:20:
Makefile:21: WARNING: $SHELL not set to bash.
Makefile:22: If you experience build errors, try
Makefile:23: 'make SHELL=/bin/bash'.
Makefile:24:
Kernel Makefile not found at '/lib/modules/2.6.20-16-generic/source'
make: *** [compatible/kversion] Error 1
tankqj@keithrichards:~/iwlwifi-0.0.32$ make install
Makefile:20:
Makefile:21: WARNING: $SHELL not set to bash.
Makefile:22: If you experience build errors, try
Makefile:23: 'make SHELL=/bin/bash'.
Makefile:24:
make: *** No rule to make target `compatible/iwl4965.ko', needed by `install'. Stop.

Any ideas?
Thanks for the help in advance!

2Gnu 06-25-2007 03:48 PM

Is the kernel source installed?
Make & development tools?

tankqj 06-25-2007 11:06 PM

Sorry I'm kinda new to Linux. How do i check this?

2Gnu 06-26-2007 12:59 AM

ls -al /usr/src/linux
There should be a lot there. If not, you'll need to install the kernel source using either your package manager or from the CDs.

In addition to the kernel source, you'll need a compiler and some programs used for turning source code into executable binaries.

What distro are you using?

tankqj 06-26-2007 04:17 PM

I ran that command and it tells me there is no such file or directory...but under /usr/src i have these directories... linuxheaders-2.6.20-15-generic, linuxheaders-2.6.20-15, linuxheaders-2.6.20-16-generic, and linuxheaders-2.6.20-16. I am running Ubuntu 7.04 Fiesty Fawn

2Gnu 06-26-2007 06:45 PM

Using the Synaptic package manager, you should be able to grab something like automake and have it pull in the rest of the development packages and kernel source.

Don't know for sure, though. With Slack, I load everything manually.

Look through the Synaptic menu and look for kernel source and GCC and automake. Select them and see if that doesn't move the ball forward a bit.

short101 06-27-2007 09:46 AM

you need to have mac80211 installed as well. This means a kernel compile. The 4965 driver is very much a beta driver atm, the firmware was only released about two weeks ago, and very few people seem to be using from what I can tell. You need to follow the full instructions on the web site, starting with the mac80211 page
http://intellinuxwireless.org/?p=mac...HOWTO-mac80211
The driver is in the latest wireless-dev kernel which there is download instructions for on that page. You may be better off using ndiswrapper for the short term for this card, unless ubuntu have some module packages made up.

tankqj 06-28-2007 10:10 PM

I tried the kernel source, GCC, and automake synaptic packages and still getting the same error. I was following the directions on intellinuxwireless.org and this is where i get the error when trying to install the iwlwifi driver

http://intellinuxwireless.org/?p=iwl...=howto-iwlwifi

These are the steps that I followed. I did check to see if I have mac80211 installed when i follow those steps it tells me that I already have it installed by running:

modeprobe mac80211

And not getting any error messages.

short101 06-28-2007 10:21 PM

Install the 'build-essential' package (or check to make sure its installed)
If that is installed, do as the error says, and use this command
make SHELL=/bin/bash
i am pretty sure ubuntu uses bash as the default shell, so I am not sure whats going on there.

tankqj 06-28-2007 11:24 PM

Still get this same error.

tankqj@keithrichards:/bin$ cd /home/tankqj/iwlwifi-0.0.32/
tankqj@keithrichards:~/iwlwifi-0.0.32$ make
Makefile:20:
Makefile:21: WARNING: $SHELL not set to bash.
Makefile:22: If you experience build errors, try
Makefile:23: 'make SHELL=/bin/bash'.
Makefile:24:
Kernel Makefile not found at '/lib/modules/2.6.20-16-generic/source'
make: *** [compatible/kversion] Error 1

kojow7 06-29-2007 07:34 PM

4965AGN Ubuntu Asus G1S Laptop
 
Quote:

Originally Posted by tankqj
Still get this same error.

tankqj@keithrichards:/bin$ cd /home/tankqj/iwlwifi-0.0.32/
tankqj@keithrichards:~/iwlwifi-0.0.32$ make
Makefile:20:
Makefile:21: WARNING: $SHELL not set to bash.
Makefile:22: If you experience build errors, try
Makefile:23: 'make SHELL=/bin/bash'.
Makefile:24:
Kernel Makefile not found at '/lib/modules/2.6.20-16-generic/source'
make: *** [compatible/kversion] Error 1

Sounds like you and I are having the same problem. Perhaps we can work together. What type of laptop are you using? Mine is an Asus G1S but has the same 4965AGN card. Here is what I tried:

My first problem was that the Ubuntu live CD would not run properly. It kept taking me to a console screen that said: "/bin/sh: can't access tty; job control turned off". I followed the fix on this site: http://ubuntuforums.org/showthread.php?t=421588 - now the live CD was able to boot and install.

Now the real problem is getting the Intel 4965AGN to work ...


I think the mac80211 files that come with Ubuntu need to be updated and the kernel recompiled, so I followed the steps at: http://intellinuxwireless.org/?p=mac...HOWTO-mac80211

I made a symbolic link called "source" in /lib/modules/2.6.20-15-generic/ and pointed it to the same place that "build" was pointing to. I.e. /usr/src/linux-headers-2.6.20-15-generic

I did have problems with feisty freezing after an install, but someone told me it was a problem with rc80211_simple, so I just moved it: mv $(modprobe -l rc80211_simple) /root - if your feisty freezes on you, you might have to do that.

For some reason Feisty is not showing up as using the bash shell properly, so at the end of each line I just added SHELL=/bin/bash - not sure if this was necessary, but it didn't hurt.

I also needed to install build-essential and libncurses5-dev, both I was able to get (and their dependencies) from http://packages.ubuntu.com/feisty/devel/build-essential - I had to download them in my windows partition, because all I have is a wireless connexion so obviously can't run apt-get in linux.

Now when I get to the step where it says to "make modules", I get the following error: "No rule to make target 'arch/i386/kernel/msr.c', needed by 'arch/i386/kernel/msr.o'. Stop."

This is the point I am stuck at now.

tankqj 06-29-2007 08:04 PM

My laptop is a Dell Inspirion E1705. Sorry I wouldn't know how to help you with the freezing up but I'm still looking for the solution to the 4965AGN card fix.

kojow7 06-29-2007 08:10 PM

4965 now working for me with ndiswrapper
 
Quote:

Originally Posted by tankqj
My laptop is a Dell Inspirion E1705.

Good news for me now, I don't know if you are interested in getting your wireless to work with ndiswrapper or not. I tried it yesterday but I think I was missing build-essentials. Since I installed build-essentials to try to get iwlwifi to work, I again tried ndiswrapper and it worked. I am now using ubuntu wirelessly. Here is the guide I followed:

https://help.ubuntu.com/community/Wi...29%7C%28AGN%29

It worked like a charm. Though after completing all the steps I had to reboot to see my wireless. Once it rebooted I simply had to pick my wireless from the detected wireless list on the top bar.

kojow7 06-29-2007 08:15 PM

Ubuntu and Intel 4965
 
I should also point out I had to use the Windows XP drivers from the Intel site rather than the Vista Drivers.

tankqj 06-30-2007 03:43 AM

Quote:

Originally Posted by kojow7
I should also point out I had to use the Windows XP drivers from the Intel site rather than the Vista Drivers.


SUCCESS!!! I followed the steps for using ndiswrapper and used the XP drivers and it works. I had to completely reinstall my ubuntu but hey there were some bugs that I introduced into it. But now I am happy to inform everyone that I am running Ubuntu wirelessly with Intel's 4965AGN card. Thank you everyone for your help and guidance!


All times are GMT -5. The time now is 10:44 PM.