LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Kernel Recompile With iwlwifi Support? (https://www.linuxquestions.org/questions/linux-newbie-8/kernel-recompile-with-iwlwifi-support-763560/)

Diomedes 10-21-2009 06:53 PM

Kernel Recompile With iwlwifi Support?
 
Hey everybody.
I have a laptop with an Intel wireless card. I need wireless access to get things done. I'm currently happily running Slackware 13, but sadly it doesn't support the iwl3945 driver out of the box. I have to admit, first off, that I'm still a newbie when it comes to most of the internal workings of Linux. I have verified that the mac80211 subsystem referred to at intellinuxwireless.org is not present on my system. I am supposed to recompile the kernel with mac80211 enabled, and install a kernel module for it. I follow the instructions (i.e. make & install the mac80211 source, go to the modules directory and make menuconfig, then select the only option I could find with '80211' in it), but when I tried to compile as prescribed, it told me there were errors in /net/drivers, I think. I'm not sure what I'm doing here, so I don't want to go to far on my own initiative lest I screw something up.
Has anyone had this problem? What am I doing wrong? I'm using kernel version 2.6.29.6-smp, and the source for that version is installed.

Thanks
Dio

rkski 10-21-2009 07:35 PM

From the homepage at www.intellinuxwireless.org:

Quote:

Note: The iwlwifi driver has been merged into mainline kernel since 2.6.24. If you are using kernels after this release, please use the intree (drivers/net/wireless/iwlwifi) driver directly. After 2.6.26 the intree driver iwlagn also supports the new 5100BG, 5100ABG, 5100AGN, 5300AGN, 5350AGN, 5150AGN, 1000BGN, and 6000AGN series hardwares.

Diomedes 10-21-2009 07:48 PM

I saw that, but I'm not sure how to implement that solution. I couldn't find any info on it, so I just played it safe and followed the site's instructions.
Is that saying to recompile the kernel including those drivers?

Diomedes 10-21-2009 07:57 PM

Okay, I found iwl3945.ko. Sorry, I don't have any experience messing with the kernel or modules. How do I tell the system to load the module on boot?
All I could find is that if it's in the /lib/modules tree it should already load automatically. It's already there, so I'm not sure.

Diomedes 10-21-2009 08:39 PM

I have iwl945.ko in /lib/modules/2.6.29.6-smp/kernel/drivers/net/wireless/iwlwifi, and I have iwlwifi-3945.ucode in /lib/firmware/iwlwifi-3945.ucode.

rkski 10-21-2009 08:40 PM

1st you don't have to mess with the kernel in this case.
Regarding the module, in my system, I have a line in /etc/modprobe.conf:

Code:

alias wlan0 iwl4965
The above is for redhat-based systems. Hopefully someone will chime in on how it's done in slackware.
Good luck!

Diomedes 10-21-2009 09:09 PM

It's really that easy? I'll give it a try and see what happens. Thanks for the help, either way!

Diomedes 10-21-2009 10:49 PM

Nothing... It didn't seem to hurt anything, but nothing's changed. The .ucode I have in /lib/firmware is the most current version from intellinuxwireless.org, and I just stuck it into the directory. Is there some magic dance I should have done for either this or the iwl3945.ko (i.e. install script, configuration command, etc)?

cola 10-21-2009 10:55 PM

Quote:

Originally Posted by Diomedes (Post 3727987)
Nothing... It didn't seem to hurt anything, but nothing's changed. The .ucode I have in /lib/firmware is the most current version from intellinuxwireless.org, and I just stuck it into the directory. Is there some magic dance I should have done for either this or the iwl3945.ko (i.e. install script, configuration command, etc)?

Can you please post:
Code:

uname -a
fdisk -l
ls -l /boot


rkski 10-21-2009 11:24 PM

You need to configure the card in /etc/sysconfig/network-interfaces (i believe is the file for Slackware) and reboot.

Search in the networking forums here for 'slackware network interface config' to see a sample file.

Good luck.

ps. if you install the 'wicd' package it should do all the configuring for you through GUI.

Diomedes 10-22-2009 01:01 AM

Beautiful! I built wicd, started X, it ran automatically and here I am! Thank you very much. I really wish I understood how to do it myself, but at least now it'll be easier to learn. :P Thanks tons.
By the way, for future reference, in Slack that config file is /etc/rc.d/rc.inet1.conf, the configuration file for the script /etc/rc.d/rc.inet1, which seems to run at boot time. That seems to be why I always thought something was wrong. Man, Slackware is unforgiving. :)

rkski 10-22-2009 01:52 AM

Great to hear it's working! Now you can study the changes wicd made to the config files and possibly tweak things.


All times are GMT -5. The time now is 07:02 PM.