LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-09-2008, 12:49 PM   #1
mapsiddiqui
LQ Newbie
 
Registered: Jun 2008
Posts: 13

Rep: Reputation: 0
Question Wireless and audio drivers break after installing new kernel on Hardy


Dear all,

It was my first time compiling the kernel on a freshly installed Ubuntu Hardy (under windows, with wubi). The wireless and audio drivers were working perfectly fine before the new kernel was installed; and still work if I boot into the older kernel (2.6.24). However if I boot into the new kernel (2.6.25.7), they are disabled (in fact, I cannot even see the wireless configuration in the network setup window). And, of course, I have no clue if any other components might have been broken with the installation of the newer kernel.

Can someone provide some guidance here ? I admit, I am a

Thanks,
Anjum.
 
Old 07-11-2008, 12:20 AM   #2
Cotobear
Member
 
Registered: Nov 2007
Location: Canada
Distribution: Slackware 12.0
Posts: 100

Rep: Reputation: 16
What type of soundcard are you using? Did you enable the proper configuration options for the new kernel? Did you turn any options off that maybe you should have kept on under the sound menus?

Try letting alsa redetect your audio setup. In a console as root type alsaconf and let alsa try to detect your audio card. What happens?

What happens with your wireless? Does it fail to connect, does it fail to detect that there exists a wireless card? What type of card are you using, USB, PCMCIA? Do you use ndiswrapper?

In a console try typing ifconfig and iwconfig and see what comes up, you may need to be root to do this. Anything?

You haven't posted much information, and it's hard to guess what you might want to try.
 
Old 07-11-2008, 04:13 AM   #3
Greenfuse
Member
 
Registered: Nov 2004
Distribution: gentoo, arch centos
Posts: 164

Rep: Reputation: 22
last I heard, ubuntu does not have alsaconf. (Another black mark against ubuntu )

As Cotobear says, you probably need to do another <make menuconfig> to see what drivers you missed.

With third-party drivers (some wireless drivers in particular), you need to rebuild them to match with the new kernel.
 
Old 07-16-2008, 02:35 PM   #4
mapsiddiqui
LQ Newbie
 
Registered: Jun 2008
Posts: 13

Original Poster
Rep: Reputation: 0
Arrow

Thanks Cotobear and Greenfuse for your responses.

Cotobear,

Greenfuse is right - no alsaconf in Ubuntu (I wonder how the audio was working in the first place ). Here are the outputs of iwconfig and lpsci -v:
Code:
### lpsci -v output

00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 0c)
	Subsystem: Hewlett-Packard Company Unknown device 30cc
	Flags: bus master, fast devsel, latency 0
	Capabilities: [e0] Vendor Specific Information

00:01.0 PCI bridge: Intel Corporation Mobile PM965/GM965/GL960 PCI Express Root Port (rev 0c) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
	I/O behind bridge: 00002000-00002fff
	Memory behind bridge: c4000000-c6ffffff
	Prefetchable memory behind bridge: 00000000d0000000-00000000dfffffff
	Capabilities: [88] Subsystem: Hewlett-Packard Company Unknown device 30cc
	Capabilities: [80] Power Management version 3
	Capabilities: [90] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable+
	Capabilities: [a0] Express Root Port (Slot+) IRQ 0
	Capabilities: [100] Virtual Channel
	Capabilities: [140] Unknown (5)

00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 03) (prog-if 00 [UHCI])
	Subsystem: Hewlett-Packard Company Unknown device 30cc
	Flags: bus master, medium devsel, latency 0, IRQ 16
	I/O ports at 1800 [size=32]

00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 03) (prog-if 00 [UHCI])
	Subsystem: Hewlett-Packard Company Unknown device 30cc
	Flags: bus master, medium devsel, latency 0, IRQ 21
	I/O ports at 1820 [size=32]

00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 03) (prog-if 20 [EHCI])
	Subsystem: Hewlett-Packard Company Unknown device 30cc
	Flags: bus master, medium devsel, latency 0, IRQ 18
	Memory at f8404800 (32-bit, non-prefetchable) [size=1K]
	Capabilities: [50] Power Management version 2
	Capabilities: [58] Debug port

00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
	Subsystem: Hewlett-Packard Company Unknown device 30cc
	Flags: bus master, fast devsel, latency 0, IRQ 11
	Memory at f8400000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: [50] Power Management version 2
	Capabilities: [60] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable-
	Capabilities: [70] Express Unknown type IRQ 0
	Capabilities: [100] Virtual Channel
	Capabilities: [130] Unknown (5)

00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 03) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0
	Bus: primary=00, secondary=02, subordinate=03, sec-latency=0
	I/O behind bridge: 00004000-00007fff
	Memory behind bridge: f4000000-f7ffffff
	Prefetchable memory behind bridge: 00000000f0000000-00000000f3ffffff
	Capabilities: [40] Express Root Port (Slot+) IRQ 0
	Capabilities: [80] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable+
	Capabilities: [90] Subsystem: Hewlett-Packard Company Unknown device 30cc
	Capabilities: [a0] Power Management version 2
	Capabilities: [100] Virtual Channel
	Capabilities: [180] Unknown (5)

00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 03) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0
	Bus: primary=00, secondary=04, subordinate=05, sec-latency=0
	I/O behind bridge: 00008000-0000bfff
	Memory behind bridge: bc000000-bfffffff
	Prefetchable memory behind bridge: 00000000c8000000-00000000cbffffff
	Capabilities: [40] Express Root Port (Slot+) IRQ 0
	Capabilities: [80] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable+
	Capabilities: [90] Subsystem: Hewlett-Packard Company Unknown device 30cc
	Capabilities: [a0] Power Management version 2
	Capabilities: [100] Virtual Channel
	Capabilities: [180] Unknown (5)

00:1c.5 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 6 (rev 03) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0
	Bus: primary=00, secondary=06, subordinate=06, sec-latency=0
	I/O behind bridge: 0000c000-0000cfff
	Memory behind bridge: f8000000-f80fffff
	Prefetchable memory behind bridge: 0000000088000000-00000000880fffff
	Capabilities: [40] Express Root Port (Slot+) IRQ 0
	Capabilities: [80] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable+
	Capabilities: [90] Subsystem: Hewlett-Packard Company Unknown device 30cc
	Capabilities: [a0] Power Management version 2
	Capabilities: [100] Virtual Channel
	Capabilities: [180] Unknown (5)

00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 03) (prog-if 00 [UHCI])
	Subsystem: Hewlett-Packard Company Unknown device 30cc
	Flags: bus master, medium devsel, latency 0, IRQ 23
	I/O ports at 1840 [size=32]

00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 03) (prog-if 00 [UHCI])
	Subsystem: Hewlett-Packard Company Unknown device 30cc
	Flags: bus master, medium devsel, latency 0, IRQ 19
	I/O ports at 1860 [size=32]

00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 03) (prog-if 00 [UHCI])
	Subsystem: Hewlett-Packard Company Unknown device 30cc
	Flags: bus master, medium devsel, latency 0, IRQ 18
	I/O ports at 1880 [size=32]

00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 03) (prog-if 20 [EHCI])
	Subsystem: Hewlett-Packard Company Unknown device 30cc
	Flags: bus master, medium devsel, latency 0, IRQ 23
	Memory at f8404c00 (32-bit, non-prefetchable) [size=1K]
	Capabilities: [50] Power Management version 2
	Capabilities: [58] Debug port

00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f3) (prog-if 01 [Subtractive decode])
	Flags: bus master, fast devsel, latency 0
	Bus: primary=00, secondary=07, subordinate=07, sec-latency=32
	Memory behind bridge: f8100000-f81fffff
	Capabilities: [50] Subsystem: Hewlett-Packard Company Unknown device 30cc

00:1f.0 ISA bridge: Intel Corporation 82801HEM (ICH8M) LPC Interface Controller (rev 03)
	Subsystem: Hewlett-Packard Company Unknown device 30cc
	Flags: bus master, medium devsel, latency 0
	Capabilities: [e0] Vendor Specific Information

00:1f.1 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller (rev 03) (prog-if 8a [Master SecP PriP])
	Subsystem: Hewlett-Packard Company Unknown device 30cc
	Flags: bus master, medium devsel, latency 0, IRQ 19
	I/O ports at 01f0 [size=8]
	I/O ports at 03f4 [size=1]
	I/O ports at 0170 [size=8]
	I/O ports at 0374 [size=1]
	I/O ports at 18a0 [size=16]

00:1f.2 SATA controller: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA AHCI Controller (rev 03) (prog-if 01 [AHCI 1.0])
	Subsystem: Hewlett-Packard Company Unknown device 30cc
	Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 219
	I/O ports at 18d8 [size=8]
	I/O ports at 18cc [size=4]
	I/O ports at 18d0 [size=8]
	I/O ports at 18c8 [size=4]
	I/O ports at 18e0 [size=32]
	Memory at f8404000 (32-bit, non-prefetchable) [size=2K]
	Capabilities: [80] Message Signalled Interrupts: Mask- 64bit- Queue=0/2 Enable+
	Capabilities: [70] Power Management version 3
	Capabilities: [a8] #12 [0010]

00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 03)
	Subsystem: Hewlett-Packard Company Unknown device 30cc
	Flags: medium devsel, IRQ 10
	Memory at 88100000 (32-bit, non-prefetchable) [size=256]
	I/O ports at 1c00 [size=32]

01:00.0 VGA compatible controller: nVidia Corporation GeForce 8400M GS (rev a1) (prog-if 00 [VGA controller])
	Subsystem: Hewlett-Packard Company Unknown device 30cc
	Flags: bus master, fast devsel, latency 0, IRQ 5
	Memory at c6000000 (32-bit, non-prefetchable) [size=16M]
	Memory at d0000000 (64-bit, prefetchable) [size=256M]
	Memory at c4000000 (64-bit, non-prefetchable) [size=32M]
	I/O ports at 2000 [size=128]
	Capabilities: [60] Power Management version 2
	Capabilities: [68] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable-
	Capabilities: [78] Express Endpoint IRQ 0
	Capabilities: [100] Virtual Channel
	Capabilities: [128] Power Budgeting
	Capabilities: [600] Unknown (11)

02:00.0 Network controller: Intel Corporation PRO/Wireless 4965 AG or AGN Network Connection (rev 61)
	Subsystem: Intel Corporation Unknown device 1100
	Flags: bus master, fast devsel, latency 0, IRQ 5
	Memory at f4000000 (64-bit, non-prefetchable) [size=8K]
	Capabilities: [c8] Power Management version 3
	Capabilities: [d0] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable-
	Capabilities: [e0] Express Endpoint IRQ 0
	Capabilities: [100] Advanced Error Reporting
	Capabilities: [140] Device Serial Number 71-3f-d2-ff-ff-e8-13-00

06:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E PCI Express Fast Ethernet controller (rev 01)
	Subsystem: Hewlett-Packard Company Unknown device 30cc
	Flags: bus master, fast devsel, latency 0, IRQ 218
	I/O ports at c000 [size=256]
	Memory at f8000000 (64-bit, non-prefetchable) [size=4K]
	[virtual] Expansion ROM at 88000000 [disabled] [size=128K]
	Capabilities: [40] Power Management version 2
	Capabilities: [48] Vital Product Data
	Capabilities: [50] Message Signalled Interrupts: Mask- 64bit+ Queue=0/1 Enable+
	Capabilities: [60] Express Endpoint IRQ 0
	Capabilities: [84] Vendor Specific Information
	Capabilities: [100] Advanced Error Reporting
	Capabilities: [12c] Virtual Channel
	Capabilities: [148] Device Serial Number 36-81-ec-10-00-00-10-03
	Capabilities: [154] Power Budgeting

07:09.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 05) (prog-if 10 [OHCI])
	Subsystem: Hewlett-Packard Company Unknown device 30cc
	Flags: bus master, medium devsel, latency 32, IRQ 20
	Memory at f8100000 (32-bit, non-prefetchable) [size=2K]
	Capabilities: [dc] Power Management version 2

07:09.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 22)
	Subsystem: Hewlett-Packard Company Unknown device 30cc
	Flags: bus master, medium devsel, latency 32, IRQ 21
	Memory at f8100800 (32-bit, non-prefetchable) [size=256]
	Capabilities: [80] Power Management version 2

07:09.2 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 12)
	Subsystem: Hewlett-Packard Company Unknown device 30cc
	Flags: bus master, medium devsel, latency 32, IRQ 11
	Memory at f8100c00 (32-bit, non-prefetchable) [size=256]
	Capabilities: [80] Power Management version 2

07:09.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 12)
	Subsystem: Hewlett-Packard Company Unknown device 30cc
	Flags: bus master, medium devsel, latency 32, IRQ 11
	Memory at f8101000 (32-bit, non-prefetchable) [size=256]
	Capabilities: [80] Power Management version 2

07:09.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev ff) (prog-if ff)
	!!! Unknown header type 7f


### iwconfig output
eth0      Link encap:Ethernet  HWaddr 00:1b:24:b1:3e:ad  
          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)
          Interrupt:218 Base address:0xa000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1538 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1538 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:76900 (75.0 KB)  TX bytes:76900 (75.0 KB)
Let me know how to proceed. Again if the information is not sufficient remember I'm a total n00b.

-A.
 
Old 07-16-2008, 08:37 PM   #5
Greenfuse
Member
 
Registered: Nov 2004
Distribution: gentoo, arch centos
Posts: 164

Rep: Reputation: 22
Before you compile a kernel you need to configure it to determine what drivers it will include, either built-in or as modules (I prefer the flexibility of having them as modules).

For sound to work you will need the alsa drivers, plus the driver particular to your sound card. In your case the sound card is an Intel 82801H, which uses the snd-intel8x0 driver.

For your new kernel to support your Intel 4965 wireless interface you need the wlwifi driver.

There are different tools for configuring a kernel prior to compiling it. The one I use, run from a command prompt, is < make menuconfig > (with Ubuntu you will probably need to run it as sudo). When using this tool I search for drivers by typing a slash followed by the name of the driver (eg /wlwifi) then pressing the <Enter> key.

Check your documentation for how to configure and compile a Ubuntu kernel and make sure the drivers you need are included.

If the drivers are in the kernel, and the sound and wireless are still not working, there are some command line tools that can help you to track down the problems. (again, you will need to use 'sudo' but I will just provide the commands)

To list all of the modules which are loaded:
lsmod

To see if a particular module has been loaded, (eg wlwifi):
lsmod | grep wlwifi

to manually load a module (eg snd-intel8x0):
modprobe snd-intel8x0

to manually remove a module:
modprobe -r <name_of_module>

To see debugging and error messages provided by the kernel:
dmesg

Dmesg on its own shows too much, so to show the last ten lines:
dmesg | tail

To see the lines from dmesg which contain a particular word (eg <snd> to see what the kernel has to tell you about the sound system):
dmesg | grep snd

Last edited by Greenfuse; 07-16-2008 at 08:38 PM.
 
Old 07-16-2008, 08:59 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,847

Rep: Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823
Mmmmm . IMHO Ubuntu ain't the place to try your first (vanilla) kernel compile. I looked at it a couple of years back out of interest, and it was just too much work - mind you, I wanted my normal build; no modules, no initrd.
Have you had a look at this on the wiki ???.
 
Old 07-17-2008, 02:59 PM   #7
mapsiddiqui
LQ Newbie
 
Registered: Jun 2008
Posts: 13

Original Poster
Rep: Reputation: 0
Question

Greenfuse,

Thanks a tonne for the wonderfully detailed explanation! I intend to compile the kernel all over again later today and will post my experiences here. Stay tuned..

syg00,

So what did you do ? on what system did you first compile the kernel and what all problems did you face ? Btw, I got the kernel compilation how-to from this site. It worked perfectly for me (just the compilation part ) and I thought I had mastered the kernel!!

Thanks,
Anjum.

Last edited by mapsiddiqui; 07-17-2008 at 02:59 PM. Reason: Forgot to add signature
 
Old 07-17-2008, 08:45 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,847

Rep: Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823
Quote:
Originally Posted by mapsiddiqui View Post
It worked perfectly for me (just the compilation part ) and I thought I had mastered the kernel!!
Running a set of scripts is hardly mastering the kernel...
Looks like a significant step was omitted from your how-to; generally you need the config from your current environment as a starting point. See the wiki entry I posted.
 
Old 07-21-2008, 03:48 PM   #9
mapsiddiqui
LQ Newbie
 
Registered: Jun 2008
Posts: 13

Original Poster
Rep: Reputation: 0
Angry

Guys, I still haven't gotten over the issue yet. As advised, I started "make menuconfig" and marked all the necessary drivers (wireless, Intel 4965 AGN and ALSA). Though, I couldn't make them compulsory and had to contend with them being compiled as modules. Now when I restart (in 2.6.26), I can see the wireless connection (under network configuration GUI) but it doesnt detect the available networks automatically. I even tried manually adding my wireless network but that wouldn't help either. The problem with audio is somewhat similar; I compiled the kernel with ALSA support (in menuconfig) but when I click on the volume; I get an error message saying " either a device was not found or your soundcard is not configured".

I did check the loaded modules with lsmod; for wireless i could see iwlcore and iwl4965 (not sure of the exact spelling at this time) but still cannot configure the wireless (iwconfig just displays the wireless adapter details and the manual network that I set up).

Thats it folks, I have no clue how to move on. Please helpppp!!!

God bless you all!
-Anjum.
 
Old 07-22-2008, 12:44 AM   #10
Cotobear
Member
 
Registered: Nov 2007
Location: Canada
Distribution: Slackware 12.0
Posts: 100

Rep: Reputation: 16
Now that you've compiled in support for alsa, the first thing you must do is run alsaconf. Let it automatically detect your sound card, and than type alsamixer to set the volume. You can type alsactl store to store the settings for future sessions.

Then again. This is considering you'd use alsa. I'm not sure how it would be different for Ubuntu.

As for your wireless, it sounds like you are somewhat sidestepping the network configuration GUI provided by using a combination of iwconfig/ifconfig and the GUI. Someone more familiar with Ubuntu may direct you better, but there should be a startup script that defines your network settings.. most likely in the place where all your startup scripts are located. In this you can manually add all the information required for your network. For example, in Slackware, the file resides as /etc/rc.d/rc.wireless.conf and contains network connection settings. Perhaps this file exists for Ubuntu?

As some checks, is the wireless detecting anything at all? Is there any way (i.e. lights) that you can check to see if it is being utilized? Perhaps the computer isn't recognizing the hardware properly.

I agree with Syg though about Ubuntu not being a good first place to try a kernel build. Ubuntu seeks to automate processes for the end-user, however building a kernel is far from sticking to automation, and chances are parts of Ubuntu depend on a specific build of a kernel based on Ubuntu's requirements in combination with your own.
 
Old 07-22-2008, 06:43 PM   #11
Greenfuse
Member
 
Registered: Nov 2004
Distribution: gentoo, arch centos
Posts: 164

Rep: Reputation: 22
mapsiddiqui
For your wireless, you might find useful information on this page. Try the commands I suggest in this thread, and learn about wpa_supplicant.

For sound, do you have the alsa modules loaded?:

# lsmod | grep snd
 
Old 07-25-2008, 09:14 PM   #12
mapsiddiqui
LQ Newbie
 
Registered: Jun 2008
Posts: 13

Original Poster
Rep: Reputation: 0
Lightbulb

Sorry guys for the delayed post; I was hopelessly busy for the past few days. Anyways, I got my audio working (of course, after recompiling the kernel). The missing component was snd_hda_intel module which I figured out from the existing kernel's module list. Now here's the interesting thing; sound works in the new kernel but none of the snd modules show up in lsmod output. I am guessing the reason is that I didn't compile it as a module, rather as a required component and hence I dont see it in the loadable module list.
A small but annoying problem with audio still remains: the touchpad audio controls somehow got associated with the Dummy Mixer (OSS Mixer) which I had compiled alongwith the kernel as a required component because it was present in the existing kernel's module list. Is there a way to reassociate it without having to compile again ?

Now for the wireless; I compiled the 4965 AGN driver as a required module as well. The problem is that it requires some firmware microcode in order to work. Here's the partial dmesg output:
Code:
[   73.866378] firmware: requesting iwlwifi-4965-1.ucode
[   73.870189] iwl4965: iwlwifi-4965-1.ucode firmware file req failed: Reason -2
[   73.870189] iwl4965: Could not read microcode: -2
[   73.870189] ACPI: PCI interrupt for device 0000:02:00.0 disabled
[   93.606994] ACPI: PCI Interrupt 0000:02:00.0[A] -> GSI 16 (level, low) -> IRQ 16
[   93.607107] PM: Writing back config space on device 0000:02:00.0 at offset 1 (was 100102, writing 40100106)
[   93.607301] firmware: requesting iwlwifi-4965-1.ucode
[   93.614067] iwl4965: iwlwifi-4965-1.ucode firmware file req failed: Reason -2
[   93.614067] iwl4965: Could not read microcode: -2
[   93.614067] ACPI: PCI interrupt for device 0000:02:00.0 disabled
[  116.242738] ACPI: PCI Interrupt 0000:02:00.0[A] -> GSI 16 (level, low) -> IRQ 16
[  116.246462] PM: Writing back config space on device 0000:02:00.0 at offset 1 (was 100102, writing 40100106)
[  116.246462] firmware: requesting iwlwifi-4965-1.ucode
[  116.246744] iwl4965: iwlwifi-4965-1.ucode firmware file req failed: Reason -2
[  116.246744] iwl4965: Could not read microcode: -2
[  116.246744] ACPI: PCI interrupt for device 0000:02:00.0 disabled
[  134.562176] ACPI: PCI Interrupt 0000:02:00.0[A] -> GSI 16 (level, low) -> IRQ 16
[  134.562295] PM: Writing back config space on device 0000:02:00.0 at offset 1 (was 100102, writing 40100106)
[  134.562492] firmware: requesting iwlwifi-4965-1.ucode
[  134.583002] iwl4965: iwlwifi-4965-1.ucode firmware file req failed: Reason -2
[  134.583014] iwl4965: Could not read microcode: -2
[  134.585670] ACPI: PCI interrupt for device 0000:02:00.0 disabled
[  153.208398] ACPI: PCI Interrupt 0000:02:00.0[A] -> GSI 16 (level, low) -> IRQ 16
[  153.208514] PM: Writing back config space on device 0000:02:00.0 at offset 1 (was 100102, writing 40100106)
[  153.208710] firmware: requesting iwlwifi-4965-1.ucode
[  153.213548] iwl4965: iwlwifi-4965-1.ucode firmware file req failed: Reason -2
[  153.213559] iwl4965: Could not read microcode: -2
[  153.213647] ACPI: PCI interrupt for device 0000:02:00.0 disabled
[  171.435903] ACPI: PCI Interrupt 0000:02:00.0[A] -> GSI 16 (level, low) -> IRQ 16
[  171.435991] PM: Writing back config space on device 0000:02:00.0 at offset 1 (was 100102, writing 40100106)
[  171.436135] firmware: requesting iwlwifi-4965-1.ucode
[  171.439528] iwl4965: iwlwifi-4965-1.ucode firmware file req failed: Reason -2
[  171.439533] iwl4965: Could not read microcode: -2
[  171.439592] ACPI: PCI interrupt for device 0000:02:00.0 disabled
So I am not sure whats the deal here ? How to get around this ?

Also, I might go for the kernel compile again this time putting both audio and wifi drivers as modules. Then I would want to know how to load these modules automatically at startup ?

Thanks,
Anjum.
 
Old 07-26-2008, 11:14 PM   #13
Greenfuse
Member
 
Registered: Nov 2004
Distribution: gentoo, arch centos
Posts: 164

Rep: Reputation: 22
Firmware is a driver, or a component of a driver, which is not available in the kernel because of licensing issues.

Your driver is looking for iwlwifi-4965.ucode which needs to be in /lib/firmware

You will need to download the ucode (microcode), unpack it
$ tar xvf iwlwifi-4965-ucode-4.44.17.tgz

and place it in /lib/firmware
$ sudo cp iwlwifi-4965-ucode-4.44.17/iwlwifi-4965.ucode /lib/firmware/

I found the instructions for this here (along with instructions for installing the module, which you do not need to do because you have made it with your new kernel)
 
Old 07-28-2008, 03:05 AM   #14
mapsiddiqui
LQ Newbie
 
Registered: Jun 2008
Posts: 13

Original Poster
Rep: Reputation: 0
Angry

Thanks Greenfuse for your reply.

I did download the microcode shortly after putting up my previous post and the driver started to work. However, a few seconds after connecting it stops working (even though the nm-applet shows as connected). I had earlier downloaded and copied the latest microcode from Intel's site. After seeing your post, I downloaded the exact same file as yours and copied the microcode to the firmware directory. Still there is no avail. The connection dies in a few moments after starting up.

Here is a snippet of dmesg:
Code:
[   34.301088] firmware: requesting iwlwifi-4965-1.ucode
[   34.797496] r8169: eth0: link down
[   55.841379] NET: Registered protocol family 10
[   55.841379] lo: Disabled Privacy Extensions
[   55.845379] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   55.845934] ADDRCONF(NETDEV_UP): eth0: link is not ready
[   60.837252] CPU0 attaching NULL sched-domain.
[   60.837265] CPU1 attaching NULL sched-domain.
[   60.838104] CPU0 attaching sched-domain:
[   60.838112]  domain 0: span 0-1
[   60.838117]   groups: 0 1
[   60.838126] CPU1 attaching sched-domain:
[   60.838130]  domain 0: span 0-1
[   60.838134]   groups: 1 0
[   67.161992] NET: Registered protocol family 17
[   70.453963] wlan0: Initial auth_alg=0
[   70.453963] wlan0: authenticate with AP 00:17:31:fb:0f:4b
[   70.455772] wlan0: RX authentication from 00:17:31:fb:0f:4b (alg=0 transaction=2 status=0)
[   70.455772] wlan0: authenticated
[   70.455772] wlan0: associate with AP 00:17:31:fb:0f:4b
[   70.457721] wlan0: RX AssocResp from 00:17:31:fb:0f:4b (capab=0x411 status=0 aid=3)
[   70.457721] wlan0: associated
[   70.457721] wlan0: switched to short barker preamble (BSSID=00:17:31:fb:0f:4b)
[   70.458823] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   87.885806] wlan0: no IPv6 routers present
Any clues as to what is going on here ?

By the way, I am sure that there is no problem with the router and/or the net connection. I am connected right now in windows xp with another laptop and at the same time, I am not able to access any websites from Ubuntu (on my other laptop).
 
Old 07-28-2008, 03:28 AM   #15
mapsiddiqui
LQ Newbie
 
Registered: Jun 2008
Posts: 13

Original Poster
Rep: Reputation: 0
Another problem: If I try to reconnect to my network the router just keeps knocking me off. Here are the relevant lines from dmesg:

Code:
[   35.325435] firmware: requesting iwlwifi-4965-1.ucode
[   35.665735] r8169: eth0: link down
[   56.296687] NET: Registered protocol family 10
[   56.296687] lo: Disabled Privacy Extensions
[   56.299732] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   56.301187] ADDRCONF(NETDEV_UP): eth0: link is not ready
[   61.370626] CPU0 attaching NULL sched-domain.
[   61.370639] CPU1 attaching NULL sched-domain.
[   61.371556] CPU0 attaching sched-domain:
[   61.371567]  domain 0: span 0-1
[   61.371572]   groups: 0 1
[   61.371581] CPU1 attaching sched-domain:
[   61.371585]  domain 0: span 0-1
[   61.371589]   groups: 1 0
[   68.417845] NET: Registered protocol family 17
[   71.778398] wlan0: Initial auth_alg=0
[   71.778398] wlan0: authenticate with AP 00:17:31:fb:0f:4b
[   71.780225] wlan0: RX authentication from 00:17:31:fb:0f:4b (alg=0 transaction=2 status=0)
[   71.780225] wlan0: authenticated
[   71.780225] wlan0: associate with AP 00:17:31:fb:0f:4b
[   71.782896] wlan0: RX AssocResp from 00:17:31:fb:0f:4b (capab=0x411 status=0 aid=3)
[   71.782896] wlan0: associated
[   71.782896] wlan0: switched to short barker preamble (BSSID=00:17:31:fb:0f:4b)
[   71.789716] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   91.758019] wlan0: no IPv6 routers present
[  164.630011] usb 3-4: USB disconnect, address 2
[ 1111.082545] wlan0: Initial auth_alg=0
[ 1111.082545] wlan0: authenticate with AP 00:17:31:fb:0f:4b
[ 1111.085055] wlan0: RX authentication from 00:17:31:fb:0f:4b (alg=0 transaction=2 status=0)
[ 1111.085055] wlan0: authenticated
[ 1111.085055] wlan0: associate with AP 00:17:31:fb:0f:4b
[ 1111.087228] wlan0: RX AssocResp from 00:17:31:fb:0f:4b (capab=0x411 status=0 aid=3)
[ 1111.087228] wlan0: associated
[ 1693.923714] wlan0: deauthenticate(reason=3)
[ 1701.033161] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1701.033162] wlan0: deauthenticated
[ 1701.033162] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1701.033162] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1701.033162] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1701.033162] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1701.033162] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1701.033162] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1701.033162] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1701.033162] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1701.033162] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1701.033162] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1701.033162] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1701.033162] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1701.033162] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1701.033162] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1701.033162] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1701.038615] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1701.038636] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1701.038657] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1701.038678] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1701.038698] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1701.038718] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1701.038738] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1701.038758] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1701.038778] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1701.038798] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1701.038818] wlan0: authenticate with AP 00:17:31:fb:0f:4b
[ 1701.043434] wlan0: Initial auth_alg=0
[ 1701.043434] wlan0: authenticate with AP 00:17:31:fb:0f:4b
[ 1701.043434] wlan0: RX authentication from 00:17:31:fb:0f:4b (alg=0 transaction=2 status=0)
[ 1701.043434] wlan0: authenticated
[ 1701.043434] wlan0: associate with AP 00:17:31:fb:0f:4b
[ 1701.056205] wlan0: authentication frame received from 00:17:31:fb:0f:4b, but not in authenticate state - ignored
[ 1701.056217] wlan0: RX AssocResp from 00:17:31:fb:0f:4b (capab=0x411 status=0 aid=3)
[ 1701.056222] wlan0: associated
[ 1701.056242] wlan0: switched to short barker preamble (BSSID=00:17:31:fb:0f:4b)
[ 1701.063079] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 1711.554447] wlan0: no IPv6 routers present
[ 1755.335678] wlan0: deauthenticate(reason=3)
[ 1787.134747] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1787.134747] wlan0: deauthenticated
[ 1787.134747] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1787.134747] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1787.134747] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1787.134747] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1787.134747] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1787.134747] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1787.134747] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1787.134747] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1787.134747] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1787.134747] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1787.134747] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1787.134747] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1787.134785] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1787.134809] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1787.134831] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1787.134854] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1787.134877] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1787.134900] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1787.134923] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1787.134946] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1787.134970] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1787.134991] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1787.135012] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1787.135035] wlan0: authenticate with AP 00:17:31:fb:0f:4b
[ 1787.140146] wlan0: RX deauthentication from 00:17:31:fb:0f:4b (reason=7)
[ 1787.140166] wlan0: RX authentication from 00:17:31:fb:0f:4b (alg=0 transaction=2 status=0)
[ 1787.140173] wlan0: authenticated
[ 1787.140179] wlan0: associate with AP 00:17:31:fb:0f:4b
[ 1787.143520] wlan0: Initial auth_alg=0
[ 1787.143529] wlan0: authenticate with AP 00:17:31:fb:0f:4b
[ 1787.143548] wlan0: association frame received from 00:17:31:fb:0f:4b, but not in associate state - ignored
[ 1787.145984] wlan0: RX authentication from 00:17:31:fb:0f:4b (alg=0 transaction=2 status=0)
[ 1787.145994] wlan0: authenticated
[ 1787.146000] wlan0: associate with AP 00:17:31:fb:0f:4b
[ 1787.154299] wlan0: Initial auth_alg=0
[ 1787.154299] wlan0: authenticate with AP 00:17:31:fb:0f:4b
[ 1787.154299] wlan0: association frame received from 00:17:31:fb:0f:4b, but not in associate state - ignored
[ 1787.157540] wlan0: RX authentication from 00:17:31:fb:0f:4b (alg=0 transaction=2 status=0)
[ 1787.157550] wlan0: authenticated
[ 1787.157556] wlan0: associate with AP 00:17:31:fb:0f:4b
[ 1787.159755] wlan0: RX ReassocResp from 00:17:31:fb:0f:4b (capab=0x411 status=0 aid=3)
[ 1787.159755] wlan0: associated
[ 1787.159755] wlan0: switched to short barker preamble (BSSID=00:17:31:fb:0f:4b)
[ 1831.612621] wlan0: deauthenticate(reason=3)
This does not happen in windows.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Restricted Nvidia drivers not listed in Hardware Drivers (8.04 Hardy Heron, liveCD) shroomy_bee Ubuntu 4 07-06-2008 11:16 AM
How to install wireless and audio drivers? Nagubadi Fedora - Installation 1 12-28-2006 06:50 PM
need help installing asus audio drivers in opensuse leprkhn Linux - Software 3 12-25-2006 02:03 PM
Installing NVIDIA drivers made packages break timelord726 Linux - Newbie 1 08-01-2004 07:16 PM
Connection screwed up after installing Audio Drivers Darock Linux - General 0 05-26-2004 06:11 PM


All times are GMT -5. The time now is 05:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration