LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 12-05-2004, 02:26 PM   #1
johngcarlsson
Member
 
Registered: Jul 2004
Posts: 58

Rep: Reputation: 15
Newbie kernel recompile question


Hello,
I have a specific module compiled in my kernel which I would like to get rid of, and it is not loadable so I cannot use rmmod to delete it. I assume that I have to recompile my kernel to get rid of it. I downloaded the source RPMs from a mandrake repository, but I cannot find any guides for recompiling my kernel, keeping everything the same except for this one module. Can anybody help me with such a problem?
Thank you very much!
 
Old 12-05-2004, 02:52 PM   #2
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
Which "module" is it that you "must" delete?

Also, you want to

urpmi kernel-source

and you'll find the EXACT kernel source tree you are using in /usr/src/linux

DO NOT run make mrproper, make clean, etc. as these will blow away the current configuration.
 
Old 12-05-2004, 03:36 PM   #3
johngcarlsson
Member
 
Registered: Jul 2004
Posts: 58

Original Poster
Rep: Reputation: 15
I have a wireless card which uses a module called 'ndiswrapper'. In order to use this module I had to download the kernel source RPM. However, there is also a module called 'prism54' included in the kernel source which wants to act as the driver for this wireless card, even though it does not work. In fact, 'prism54' prevents 'ndiswrapper' from functioning properly. So, every time I start up, I have to do

modprobe -r prism54
modprobe -r ndiswrapper
modprobe ndiswrapper

and everything works fine. The reason I want to completely remove 'prism54' is for two reasons:

\it's annoying to have to type that every time
\it makes my bootup sequence last an additional 3 minutes, because the startup screen takes that long at the line 'bringing up interface eth1...' to give me an error message.

The problem comes from the fact that the source that I get in

urpmi kernel-source

already contains both 'ndiswrapper' (although an outdated version) and 'prism54', so I believe I must remove it by hand.

Thanks a lot!

Last edited by johngcarlsson; 12-05-2004 at 03:37 PM.
 
Old 12-05-2004, 06:11 PM   #4
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
No...

Prism54 is NOT "part of the kernel".

It's a seperate module altogether.

You do NOT need to compile anything.

Instead you need to prevent the card from being modprobed at startup.

Check the contents of

/etc/modules.conf
/etc/modprobe.conf
/etc/modprobe.preload
/etc/modules.devfs

Also set your eth1 interface NOT to start at boot, to eliminate the delays.

The kernel does not come with ndiswrapper, merely the headers to support it.

See my sig for setting up your URPMI sources then

urpmi ndiswrapper

Also ndiswrapper is included under the drivers directory of the official CD's.
 
Old 12-05-2004, 10:26 PM   #5
johngcarlsson
Member
 
Registered: Jul 2004
Posts: 58

Original Poster
Rep: Reputation: 15
Hello,
Hmm, I don't see any lines mentioning prism54 or ndiswrapper in the four files you mentioned. I see lines that modprobe all the USB devices, but I do not see anything for PCMCIA. Google hasn't been very helpful with these files either; should I add in a 'remove' line or something? I have, in modules.conf, the line
probeall usb-interface usb-ohci ehci-hcd
but these all look like they're USB related.
Thanks!!!

Last edited by johngcarlsson; 12-05-2004 at 10:42 PM.
 
Old 12-06-2004, 07:16 AM   #6
courtrrb
Member
 
Registered: Sep 2003
Location: Iowa, US
Distribution: MDK Since V6.5
Posts: 573

Rep: Reputation: 30
Why don't just do a urpme prism54-firmware in root? Then it wont even be loaded
 
Old 12-06-2004, 11:29 AM   #7
johngcarlsson
Member
 
Registered: Jul 2004
Posts: 58

Original Poster
Rep: Reputation: 15
I don't think I have any packages with that in their name...I thought that the only time I saw any prism54 driver was in installing the kernel source. Maybe I'm wrong?
 
Old 12-06-2004, 01:28 PM   #8
courtrrb
Member
 
Registered: Sep 2003
Location: Iowa, US
Distribution: MDK Since V6.5
Posts: 573

Rep: Reputation: 30
Evey time I do an update it wants to update the file prism54-firmware. I don't have anything that requires such firmware. So I just did a urpme prism54-firmware and it stop trying to update something I wasn't using.
 
Old 12-06-2004, 03:45 PM   #9
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
Quote:
Originally posted by johngcarlsson
Hello,
Hmm, I don't see any lines mentioning prism54 or ndiswrapper in the four files you mentioned. I see lines that modprobe all the USB devices, but I do not see anything for PCMCIA. Google hasn't been very helpful with these files either; should I add in a 'remove' line or something? I have, in modules.conf, the line
probeall usb-interface usb-ohci ehci-hcd
but these all look like they're USB related.
Thanks!!!
If so then it's NOT being loaded at boot by the kernel.

Rather you may have a script trying to load these files, if it's happening at all.

In all likelyhood it's the configuration you have selected for eth1.

I'd start by NOT having it come up at boot so you can manage it directly or invoke it from rc.local if required.
 
  


Reply



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
kernel recompile question Danforth Linux - General 2 04-26-2004 12:36 AM
2 sound card errors after kernel recompile. Need newbie help LearningToSlack Linux - Newbie 2 11-10-2003 03:46 PM
kernel recompile question akshunj Linux - Software 7 09-21-2003 09:05 AM
Quick Kernel Recompile Question PrimaryDataLoop Linux - Newbie 1 07-18-2003 04:10 AM
Kernel recompile question... phishman3579 Slackware 2 06-27-2003 10:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 09:55 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
Open Source Consulting | Domain Registration