LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 11-03-2004, 08:55 AM   #1
jtp51
Member
 
Registered: Dec 2002
Location: Omaha, Nebraska
Distribution: Ubuntu 8.10
Posts: 79

Rep: Reputation: 15
Slackware 10- Please confirm my steps used to remove a module from a pre-built kernel


Question:

Slackware 10: Kernel 2.4.26 - Please confirm my steps used to remove a module from a pre-built kernel.

Summary:

For example; in kernel 2.4.26 - the experimental module, Nvidia rivafb, is pre-built into the kernel. Thus, In an effort to remove it, what I did is the following:
[list=1][*]cd into /usr/src/linux[*]make menuconfig[*]made my change: thus removing the Nvidia rivafb module[*]saved my updated .config file[*]make dep[*]make clean[*]make bzImage[*]cp /usr/src/linux/arch/i386/boot/bzImage --> /boot/vmlinuz-2.4.26[*]make[*]make install[*]make modules[*]make modules_install[*]cd /boot[*]cp System.map --> /boot/System.map-2.4.26[*]cp .config --> /boot/config-2.4.26[*]mv vmlinuz vmlinuz.old[*]ln -s vmlinuz-2.4.26 vmlinuz[*]ln -s /boot/System.map-2.4.26 /boot/System.map[*]ln -s /boot/config-2.4.26 /boot/config[*]updated lilo accordingly...[*]/sbin/lilo[/list=1]

This seems to have worked, but it also seems to be too many steps. I'm not adding a kernel just making a modification to the kernel in use.

Thank you for reading this post.
 
Old 11-03-2004, 11:47 AM   #2
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Rep: Reputation: 45
If you want a few less steps, read the first thread in this post (or is it the first post in this thread?) .. read the first thing =)

http://www.linuxquestions.org/questi...threadid=49035
 
Old 11-03-2004, 12:24 PM   #3
jtp51
Member
 
Registered: Dec 2002
Location: Omaha, Nebraska
Distribution: Ubuntu 8.10
Posts: 79

Original Poster
Rep: Reputation: 15
I have read that post, already... thank you though.

Please note that "make oldconfig" will only prompt for new kernel options.

I want to remove a module from the pre-built 2.4.26 kernel.

Thank you.
 
Old 11-03-2004, 12:32 PM   #4
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Rep: Reputation: 45
Quote:
Originally posted by jtp51
I have read that post, already... thank you though.

Please note that "make oldconfig" will only prompt for new kernel options.

I want to remove a module from the pre-built 2.4.26 kernel.

Thank you.
I'm not refering to make oldconfig at all. I'm refering to the 8 odd steps you need instead of the 21 steps you're using...

make menuconfig (add or remove any modules and save)
make dep
make clean
make bzImage
make
make install
make modules
make modules_install

and reboot. That's it... And don't forget to uncomment the #export INSTALL_PATH=/boot line before you start..

EDIT: 8 even steps =) and i personally prefer make xconfig over menuconfig.

Last edited by xushi; 11-03-2004 at 12:33 PM.
 
Old 11-03-2004, 12:33 PM   #5
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
Re: Slackware 10- Please confirm my steps used to remove a module from a pre-built ke

Quote:
Originally posted by jtp51
Question:

Slackware 10: Kernel 2.4.26 - Please confirm my steps used to remove a module from a pre-built kernel.

Summary:

[list=1][*]cd into /usr/src/linux[*]make menuconfig[*]made my change: thus removing the Nvidia rivafb module[*]saved my updated .config file[*]make dep[*]make bzImage[*]cp arch/i386/boot/bzImage --> /boot/vmlinuz-2.4.26[*]cp System.map --> /boot/System.map-2.4.26[*]cp .config --> /boot/config-2.4.26[*]updated lilo accordingly...( this change depends on your previous kernel name: have you overwritten the old kernel, or has your new kernel a different name , in wich case you have to add a new " linux "- section in your " lilo.conf ")[*]/sbin/lilo[/list=1]

This seems to have worked, but it also seems to be too many steps. I'm not adding a kernel just making a modification to the kernel in use.


Thank you for reading this post.

11 easy steps for just changing the kernel


egag

Last edited by egag; 11-03-2004 at 12:43 PM.
 
Old 11-03-2004, 12:41 PM   #6
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
well ...xushi,

i think jtp51m is trying to be complete in all the needed commands
if i would take your style it would be:

----------
make menuconfig
make dep
make bzImage
----------

that's only three steps. ( but not complete )

egag

Last edited by egag; 11-03-2004 at 12:44 PM.
 
Old 11-03-2004, 12:47 PM   #7
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Rep: Reputation: 45
Quote:
Originally posted by egag
i think jtp51m is trying to be complete in all the needed commands
if i would take your style it would be:
----------
make menuconfig
make dep
make bzImage
----------
that's only three steps. ( but not complete )
Quote:
Original Post
This seems to have worked, but it also seems to be too many steps. I'm not adding a kernel just making a modification to the kernel in use.
I guess i misunderstood what he's asking about...
 
Old 11-03-2004, 06:02 PM   #8
jtp51
Member
 
Registered: Dec 2002
Location: Omaha, Nebraska
Distribution: Ubuntu 8.10
Posts: 79

Original Poster
Rep: Reputation: 15
xushi: you didn't misunderstand....

We are all on the same page.

Thank you for taking a look at this post.
 
  


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
Pre-built package for Perl on Solaris 5.8 ? Van Gogh Solaris / OpenSolaris 11 08-12-2004 11:10 PM
steps needed to remove a kernel? marlor Slackware 2 07-07-2004 03:48 PM
No pre-built modules jamaso Slackware 11 05-29-2004 09:07 AM
How to remove module from kernel without recompile? Stoic Linux - Software 10 09-23-2003 07:17 PM
iptables - module, or built into kernel? dunkyb Linux - General 3 02-16-2003 07:04 PM


All times are GMT -5. The time now is 03:57 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration