View previous topic :: View next topic |
Author |
Message |
jfranz2 n00b
Joined: 24 Oct 2014 Posts: 37
|
Posted: Sun Oct 04, 2015 9:50 pm Post subject: Can I put a new module in the kernel without rebuilding it? |
|
|
I want to put in...
Code: |
CONFIG_UINPUT
CONFIG_JOYDEV
|
...as modules but do not want to wait out an entire kernel rebuild. Can I install these modules with and have them work without rebuilding? I am mostly new to kernel configuration and mainly used genkernel before doing my own config without it. _________________ #TYBG |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10587 Location: Somewhere over Atlanta, Georgia
|
Posted: Sun Oct 04, 2015 10:59 pm Post subject: |
|
|
Yes you can!
Just change the .config with "make menuconfig" or your favorite variant and then run Code: | # make modules
# make modules_install | - John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54212 Location: 56N 3W
|
Posted: Sun Oct 04, 2015 11:02 pm Post subject: |
|
|
jfranz2,
Maybe.
If you can enable these modules in meunconfig only by setting options to <M> you have a good chance.
If meunconfig forces you to choose between off and built in, then probably not.
Kernel rebulds need not take a long time. Genkernel starts out with make clean, unless you tell it not to, so it has to rebuild everything.
Left to its own devices, make looks at the timestamps on existing binary files and the source files used to build the binary.
If the sources are all older than the binary, make does nothing.
There are a few gotchas along the way. All the parts of the kernel must be compiled with identical versions of gcc. The kernel checks at module load time.
There are a few meunconfig options that give strange broken results if you skip the make clean step but you will notice when you reboot. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
jfranz2 n00b
Joined: 24 Oct 2014 Posts: 37
|
Posted: Mon Oct 05, 2015 12:00 am Post subject: |
|
|
John R. Graham wrote: | Yes you can!
Just change the .config with "make menuconfig" or your favorite variant and then run Code: | # make modules
# make modules_install | - John |
Cheers, they're working.
NeddySeagoon wrote: | jfranz2,
Maybe.
If you can enable these modules in meunconfig only by setting options to <M> you have a good chance.
If meunconfig forces you to choose between off and built in, then probably not.
Kernel rebulds need not take a long time. Genkernel starts out with make clean, unless you tell it not to, so it has to rebuild everything.
Left to its own devices, make looks at the timestamps on existing binary files and the source files used to build the binary.
If the sources are all older than the binary, make does nothing.
There are a few gotchas along the way. All the parts of the kernel must be compiled with identical versions of gcc. The kernel checks at module load time.
There are a few meunconfig options that give strange broken results if you skip the make clean step but you will notice when you reboot. |
That explains it, my previous kernel build was built by another version of GCC. I will know this for next time. _________________ #TYBG |
|
Back to top |
|
|
|