how to add 'modules' without re-compiling the kernel
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
how to add 'modules' without re-compiling the kernel
Hello all,
i would like to add a module.
i know the kernel compilation method and have compiled it couple of times.
working on 2.4.26.
so what should be the steps of only adding module instead of compile the whole kernel.
should i proceed in the same way as i used to while kernel compilation ?
i follow the following steps
1. cd /usr/'src/linux
2. make mrproper.
3. make xconfig ..............here i first load the ".config" file.
4. save and exit from xconfig.
5. make dep.
6. vi Makefile
7. make clean
8. make bzImage
9. make modules
10 . make modules_install
.......
then making new directory in /boot........and copying bzimage and system.map there...etc.etc
now what shud i do if intending to add a single module..???
will it reamain there if i reboot the system or will have to add it every time ?
how to add 'modules' without re-compiling the kernel
I need help with step 6 (edit make file). Here's the scenario.
This is EXACTLY what I need to do to get netfilter's u32 module added to my slack 10.1 bare kernel (2.4.26). I need this module to use dsl-qos and priority route outbound voip traffic. Ive put the module in /usr/src/linux/net/ipv4/netfilter/ipt_u32.c using netfilter's patch-o-matic tool (./runme newnat defining iptables and linux kernel sources). I see the file was added after p-o-m completed.
Ive probably messed up the .config file as Ive saved a cpl of times after a "make menuconfig" and also issued a "make mrproper" command.
NOTE: I checked for a .config file before starting..wasnt there. I open and saved as .config_before_pom and .config_after_mrproper, then verified three files were present (.config and the two saved)...they were there. I then attempted to load both of the saved configs and they errored, closed menuconfig without saving changes, files were GONE!
I could put the default sources from the slack cd back into /usr/src/linux-2.4.26/ and the run patch-o-matic again if necessary. Let me know.
** anyone have an explanation what the command "make mrproper" does?? **
How do I add the u32 module to the default slack 10.1 bare.i kernel without compiling the whole kernel?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.