LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware 10- Please confirm my steps used to remove a module from a pre-built kernel (http://www.linuxquestions.org/questions/slackware-14/slackware-10-please-confirm-my-steps-used-to-remove-a-module-from-a-pre-built-kernel-250584/)

jtp51 11-03-2004 07:55 AM

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.

xushi 11-03-2004 10:47 AM

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

jtp51 11-03-2004 11:24 AM

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.

xushi 11-03-2004 11:32 AM

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.

egag 11-03-2004 11:33 AM

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

egag 11-03-2004 11:41 AM

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

xushi 11-03-2004 11:47 AM

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...

jtp51 11-03-2004 05:02 PM

xushi: you didn't misunderstand....

We are all on the same page.

Thank you for taking a look at this post.


All times are GMT -5. The time now is 09:41 AM.