Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
making modules
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
mreff555
Apprentice
Apprentice


Joined: 10 Mar 2011
Posts: 231
Location: Philadelphia

PostPosted: Thu Jan 23, 2014 12:19 am    Post subject: making modules Reply with quote

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
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13622

PostPosted: Thu Jan 23, 2014 2:30 am    Post subject: Reply with quote

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
View user's profile Send private message
mreff555
Apprentice
Apprentice


Joined: 10 Mar 2011
Posts: 231
Location: Philadelphia

PostPosted: Thu Jan 23, 2014 2:48 am    Post subject: Reply with quote

So just copy the directory verbatim?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13622

PostPosted: Thu Jan 23, 2014 3:58 am    Post subject: Reply with quote

Which directory do you mean? If you are referring to /lib/modules/$(uname -r), then yes.
Back to top
View user's profile Send private message
TheLexx
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2005
Posts: 115
Location: Austin Tx

PostPosted: Fri Jan 24, 2014 5:04 am    Post subject: Reply with quote

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
View user's profile Send private message
mreff555
Apprentice
Apprentice


Joined: 10 Mar 2011
Posts: 231
Location: Philadelphia

PostPosted: Wed Mar 05, 2014 2:32 am    Post subject: Reply with quote

Thanks, that worked!!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum