[gentoo-user] Add a module post kernel config/build

2007-04-18 Thread reader
Summary:
How can I add an additional module once I've configured/built a kernel?

Details: After looking thru the handbook, especially section about
kernel config, I don't see information about how to add a module once
a kernel is built and running.

Using `genkernel all' on latest sources (linux-2.6.20-gentoo-r6) I
ended up with no `fuse' module.

Far as I know I've been getting a fuse module when using `genkernal'
on previous kernels.

What is proceedure for adding that module now?

-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Add a module post kernel config/build

2007-04-18 Thread Boyd Stephen Smith Jr.
On Wednesday 18 April 2007, [EMAIL PROTECTED] wrote about '[gentoo-user]  
Add a module post kernel config/build':
 Summary:
 How can I add an additional module once I've configured/built a kernel?

 Details: After looking thru the handbook, especially section about
 kernel config, I don't see information about how to add a module once
 a kernel is built and running.

For in-tree modules, go into the kernel source directory, use menuconfig or 
whatever to set that configuration setting to 'm', make, make 
modules-install.  (Or, at least, that's my preferred method modulo typos.)

Changing kernel settings doesn't always require a new kernel image; here's 
a table (please view in a fixed width font.

Old New Result
N   M   Rebuild modules
N   Y   Rebuild image
M   N   No rebuild needed
M   Y   Rebuild image [1]
Y   N   Rebuild image
Y   M   Rebuild image

If the image needs rebuilding, you'll also need to rebuild all modules.  
You'll also want to re-install anything you had to rebuild.

[1]: Remove the module from /lib/modules to make sure you don't try and 
load it twice.

-- 
Boyd Stephen Smith Jr. ,= ,-_-. =. 
[EMAIL PROTECTED]  ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy   `-'(. .)`-' 
http://iguanasuicide.org/  \_/ 


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Add a module post kernel config/build

2007-04-18 Thread Etaoin Shrdlu
On Wednesday 18 April 2007 11:15, [EMAIL PROTECTED] wrote:

 Summary:
 How can I add an additional module once I've configured/built a
 kernel?

 Details: After looking thru the handbook, especially section about
 kernel config, I don't see information about how to add a module once
 a kernel is built and running.

 Using `genkernel all' on latest sources (linux-2.6.20-gentoo-r6) I
 ended up with no `fuse' module.

 Far as I know I've been getting a fuse module when using `genkernal'
 on previous kernels.

 What is proceedure for adding that module now?

I never used genkernel, but if you have the kernel source tree available, 
you can just cd into it, adjust your configuration (using make *config), 
then do make  make modules_install. Only the new stuff you added 
will be rebuilt and installed (ie, the fuse module in your case), 
assuming you did not delete the already compiled object files inside the 
tree.
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Add a module post kernel config/build

2007-04-18 Thread Mike Williams
On Wednesday 18 April 2007 10:15:12 [EMAIL PROTECTED] wrote:
 Summary:
 How can I add an additional module once I've configured/built a kernel?

 Details: After looking thru the handbook, especially section about
 kernel config, I don't see information about how to add a module once
 a kernel is built and running.

 Using `genkernel all' on latest sources (linux-2.6.20-gentoo-r6) I
 ended up with no `fuse' module.

 Far as I know I've been getting a fuse module when using `genkernal'
 on previous kernels.

 What is proceedure for adding that module now?

genkernel --menuconfig all

You can also add --no-clean and --no-menuconfig to stop it clearing out 
already compiled code, but you run the risk to getting symbols messed up 
(quite unlikely though).

-- 
Mike Williams
-- 
[EMAIL PROTECTED] mailing list