View previous topic :: View next topic |
Author |
Message |
mreff555 Apprentice


Joined: 10 Mar 2011 Posts: 231 Location: Philadelphia
|
Posted: Thu Jan 23, 2014 12:19 am Post subject: making modules |
|
|
Short question:
when buulding a kernel is the make modules command dependant on object files, or any other files compiled while assembling the kernel?
Long question:
I generally have two linux systems on one machine. They are both Gentoo and share a common boot partition. One is my daily use system and one is a system I just experiement with. In this case I am reinstalling the prototyping system. Since I am fairly proactive with kernel maintenance, I had no plans on altering the kernel for this install. If I install the exact same kernel sources on my new system, with intention of using the exact same kernel for both systems, do I need to rebuild the kernel for the new system, or can I just make the moduless, install them and not even worry about the kernel? |
|
Back to top |
|
 |
Hu Moderator

Joined: 06 Mar 2007 Posts: 14398
|
Posted: Thu Jan 23, 2014 2:30 am Post subject: |
|
|
Why not just build the modules once and use them in both systems? Your question sounds like you plan to build the modules twice, which seems like a waste of effort. |
|
Back to top |
|
 |
mreff555 Apprentice


Joined: 10 Mar 2011 Posts: 231 Location: Philadelphia
|
Posted: Thu Jan 23, 2014 2:48 am Post subject: |
|
|
So just copy the directory verbatim? |
|
Back to top |
|
 |
Hu Moderator

Joined: 06 Mar 2007 Posts: 14398
|
Posted: Thu Jan 23, 2014 3:58 am Post subject: |
|
|
Which directory do you mean? If you are referring to /lib/modules/$(uname -r), then yes. |
|
Back to top |
|
 |
TheLexx Tux's lil' helper


Joined: 04 Dec 2005 Posts: 135 Location: Austin Tx
|
Posted: Fri Jan 24, 2014 5:04 am Post subject: |
|
|
I copy kernels and there modules all the time I prefer to use the command "cp --archive". If you look in the running system you will see a directory in /lib/modules/ that corisponds to eack kernel that can run on that system. Just mount the new-root to the running system and cd to (new-root mount point)/lib/modules/ directory then "cp --archive /lib/modules/(kernel version) .". |
|
Back to top |
|
 |
mreff555 Apprentice


Joined: 10 Mar 2011 Posts: 231 Location: Philadelphia
|
Posted: Wed Mar 05, 2014 2:32 am Post subject: |
|
|
Thanks, that worked!! |
|
Back to top |
|
 |
|