public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user]  Add a module post kernel config/build
@ 2007-04-18  9:15 reader
  2007-04-18 10:33 ` Boyd Stephen Smith Jr.
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: reader @ 2007-04-18  9:15 UTC (permalink / raw
  To: gentoo-user

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?

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user]  Add a module post kernel config/build
  2007-04-18  9:15 [gentoo-user] Add a module post kernel config/build reader
@ 2007-04-18 10:33 ` Boyd Stephen Smith Jr.
  2007-04-19  0:44   ` [gentoo-user] " reader
  2007-04-18 10:37 ` Alexander Skwar
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 14+ messages in thread
From: Boyd Stephen Smith Jr. @ 2007-04-18 10:33 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1360 bytes --]

On Wednesday 18 April 2007, reader@newsguy.com 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.                     ,= ,-_-. =. 
bss03@volumehost.net                      ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy           `-'(. .)`-' 
http://iguanasuicide.org/                      \_/     

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [gentoo-user]  Re: Add a module post kernel config/build
  2007-04-18  9:15 [gentoo-user] Add a module post kernel config/build reader
  2007-04-18 10:33 ` Boyd Stephen Smith Jr.
@ 2007-04-18 10:37 ` Alexander Skwar
  2007-04-18 12:50   ` Neil Bothwick
  2007-04-18 10:47 ` [gentoo-user] Add a module post kernel config/build Mike Williams
  2007-04-18 11:10 ` Etaoin Shrdlu
  3 siblings, 1 reply; 14+ messages in thread
From: Alexander Skwar @ 2007-04-18 10:37 UTC (permalink / raw
  To: gentoo-user

reader@newsguy.com <reader@newsguy.com> wrote:

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

As far FUSE is concerned, it might be advisable to stay away from the
in-kernel FUSE and use the standalone sys-fs/fuse package. At
least ntfs3g doesn't work with the in-kernel fuse.

Alexander Skwar

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user]  Add a module post kernel config/build
  2007-04-18  9:15 [gentoo-user] Add a module post kernel config/build reader
  2007-04-18 10:33 ` Boyd Stephen Smith Jr.
  2007-04-18 10:37 ` Alexander Skwar
@ 2007-04-18 10:47 ` Mike Williams
  2007-04-18 11:10 ` Etaoin Shrdlu
  3 siblings, 0 replies; 14+ messages in thread
From: Mike Williams @ 2007-04-18 10:47 UTC (permalink / raw
  To: gentoo-user

On Wednesday 18 April 2007 10:15:12 reader@newsguy.com 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
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user]  Add a module post kernel config/build
  2007-04-18  9:15 [gentoo-user] Add a module post kernel config/build reader
                   ` (2 preceding siblings ...)
  2007-04-18 10:47 ` [gentoo-user] Add a module post kernel config/build Mike Williams
@ 2007-04-18 11:10 ` Etaoin Shrdlu
  3 siblings, 0 replies; 14+ messages in thread
From: Etaoin Shrdlu @ 2007-04-18 11:10 UTC (permalink / raw
  To: gentoo-user

On Wednesday 18 April 2007 11:15, reader@newsguy.com 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.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user]  Re: Add a module post kernel config/build
  2007-04-18 10:37 ` Alexander Skwar
@ 2007-04-18 12:50   ` Neil Bothwick
  2007-04-18 13:35     ` [gentoo-user] FUSE (was: Add a module post kernel config/build) Alexander Skwar
  0 siblings, 1 reply; 14+ messages in thread
From: Neil Bothwick @ 2007-04-18 12:50 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 484 bytes --]

On Wed, 18 Apr 2007 12:37:07 +0200, Alexander Skwar wrote:

> As far FUSE is concerned, it might be advisable to stay away from the
> in-kernel FUSE and use the standalone sys-fs/fuse package. At
> least ntfs3g doesn't work with the in-kernel fuse.

Really? It works here, as do sshfs and encfs.


-- 
Neil Bothwick

Q: How many builders does it take to change a light bulb?
A: "If only it was just the light bulb......we'll have to replace the
ceiling and..........."

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [gentoo-user]  FUSE (was: Add a module post kernel config/build)
  2007-04-18 12:50   ` Neil Bothwick
@ 2007-04-18 13:35     ` Alexander Skwar
  2007-04-18 15:00       ` Neil Bothwick
  0 siblings, 1 reply; 14+ messages in thread
From: Alexander Skwar @ 2007-04-18 13:35 UTC (permalink / raw
  To: gentoo-user

Neil Bothwick <neil@digimed.co.uk> wrote:

> On Wed, 18 Apr 2007 12:37:07 +0200, Alexander Skwar wrote:
> 
>> As far FUSE is concerned, it might be advisable to stay away from the
>> in-kernel FUSE and use the standalone sys-fs/fuse package. At
>> least ntfs3g doesn't work with the in-kernel fuse.
> 
> Really? It works here, as do sshfs and encfs.

Hm. Not so sure anymore. I seem to remember, that either sys-fs/ntfs3g
or sys-fs/fuse would completely refuse to build, if in-kernel fuse was
built.

But checking out the ebuilds on the CVS, I can't seem to be able to back
this statement I made.

While we're at the topic of fuse - which version is more recent?
The one in gentoo kernel or the one in the seperate package?

Alexander Skwar

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user]  FUSE (was: Add a module post kernel config/build)
  2007-04-18 13:35     ` [gentoo-user] FUSE (was: Add a module post kernel config/build) Alexander Skwar
@ 2007-04-18 15:00       ` Neil Bothwick
  2007-04-19  0:40         ` [gentoo-user] " reader
  0 siblings, 1 reply; 14+ messages in thread
From: Neil Bothwick @ 2007-04-18 15:00 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 385 bytes --]

On Wed, 18 Apr 2007 15:35:49 +0200, Alexander Skwar wrote:

> Hm. Not so sure anymore. I seem to remember, that either sys-fs/ntfs3g
> or sys-fs/fuse would completely refuse to build, if in-kernel fuse was
> built.

sys-fs/fuse builds the tools but not the module if the kernel module is
detected.


-- 
Neil Bothwick

When childhood dies, its corpses are called adults.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [gentoo-user]  Re: FUSE (was: Add a module post kernel config/build)
  2007-04-18 15:00       ` Neil Bothwick
@ 2007-04-19  0:40         ` reader
  2007-04-19  4:42           ` Nistor Andrei
  2007-04-19  6:58           ` Alexander Skwar
  0 siblings, 2 replies; 14+ messages in thread
From: reader @ 2007-04-19  0:40 UTC (permalink / raw
  To: gentoo-user

Neil Bothwick <neil@digimed.co.uk> writes:

> On Wed, 18 Apr 2007 15:35:49 +0200, Alexander Skwar wrote:
>
>> Hm. Not so sure anymore. I seem to remember, that either sys-fs/ntfs3g
>> or sys-fs/fuse would completely refuse to build, if in-kernel fuse was
>> built.
>
> sys-fs/fuse builds the tools but not the module if the kernel module is
> detected.

I have sys-fs/fuse installed. 
# eix -I fuse
[I] sys-fs/fuse
     Available versions:  2.6.1 2.6.3
     Installed versions:  2.6.3(06:56:33 03/20/07)(-kernel_FreeBSD kernel_linux)
     Homepage:            http://fuse.sourceforge.net
     Description:         An interface for filesystems implemented in userspace.

[I] sys-fs/sshfs-fuse
     Available versions:  1.6 (~)1.7
     Installed versions:  1.7(06:38:10 02/22/07)
     Homepage:            http://fuse.sourceforge.net/sshfs.html
     Description:         Fuse-filesystem utilizing the sftp service.

 Should I have a fuse module?

/usr/src/linux/.config has:

grep -i fuse .config
# CONFIG_FUSE_FS is not set

I believe this is how I've been setup for some time.  The previous
kernel `.config' file also contains the line:
 # CONFIG_FUSE_FS is not set
but I've had no problem loading the fuse module.

In this case, after emerge -uvD world and building the new
(linux-2.6.20-gentoo-r6) kernel with genkernal I cannot load the fuse
module.  It is not present in /lib/modules/under new kernel
(...20..r6) but is present in previous modules directory

root # find /lib/modules -iname '*fuse*'
/lib/modules/2.6.19-gentoo-r4/fs/fuse.ko
/lib/modules/2.6.19-gentoo-r4/kernel/fs/fuse
/lib/modules/2.6.19-gentoo-r4/kernel/fs/fuse/fuse.ko

I guess I'm kind of lost here, as to what has happened...












-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* [gentoo-user]  Re: Add a module post kernel config/build
  2007-04-18 10:33 ` Boyd Stephen Smith Jr.
@ 2007-04-19  0:44   ` reader
  0 siblings, 0 replies; 14+ messages in thread
From: reader @ 2007-04-19  0:44 UTC (permalink / raw
  To: gentoo-user

"Boyd Stephen Smith Jr." <bss03@volumehost.net> writes:

> On Wednesday 18 April 2007, reader@newsguy.com 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.)
>
[...]

All good info and tips.  Thanks Boyd.

Etaoin Shrdlu <shrdlu@unlimitedmail.org> writes:

[...]

> 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.

Again... good and helpfull info... thanks.

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user]  Re: FUSE (was: Add a module post kernel config/build)
  2007-04-19  0:40         ` [gentoo-user] " reader
@ 2007-04-19  4:42           ` Nistor Andrei
  2007-04-19  6:58           ` Alexander Skwar
  1 sibling, 0 replies; 14+ messages in thread
From: Nistor Andrei @ 2007-04-19  4:42 UTC (permalink / raw
  To: gentoo-user

On Thursday 19 April 2007, reader@newsguy.com wrote:
> Neil Bothwick <neil@digimed.co.uk> writes:
> > On Wed, 18 Apr 2007 15:35:49 +0200, Alexander Skwar wrote:
> >> Hm. Not so sure anymore. I seem to remember, that either sys-fs/ntfs3g
> >> or sys-fs/fuse would completely refuse to build, if in-kernel fuse was
> >> built.
> >
> > sys-fs/fuse builds the tools but not the module if the kernel module is
> > detected.
>
> I have sys-fs/fuse installed.
> # eix -I fuse
> [I] sys-fs/fuse
>      Available versions:  2.6.1 2.6.3
>      Installed versions:  2.6.3(06:56:33 03/20/07)(-kernel_FreeBSD
> kernel_linux) Homepage:            http://fuse.sourceforge.net
>      Description:         An interface for filesystems implemented in
> userspace.
>
> [I] sys-fs/sshfs-fuse
>      Available versions:  1.6 (~)1.7
>      Installed versions:  1.7(06:38:10 02/22/07)
>      Homepage:            http://fuse.sourceforge.net/sshfs.html
>      Description:         Fuse-filesystem utilizing the sftp service.
>
>  Should I have a fuse module?
>
> /usr/src/linux/.config has:
>
> grep -i fuse .config
> # CONFIG_FUSE_FS is not set
>
> I believe this is how I've been setup for some time.  The previous
> kernel `.config' file also contains the line:
>  # CONFIG_FUSE_FS is not set
> but I've had no problem loading the fuse module.
>
> In this case, after emerge -uvD world and building the new
> (linux-2.6.20-gentoo-r6) kernel with genkernal I cannot load the fuse
> module.  It is not present in /lib/modules/under new kernel
> (...20..r6) but is present in previous modules directory
>
> root # find /lib/modules -iname '*fuse*'
> /lib/modules/2.6.19-gentoo-r4/fs/fuse.ko
> /lib/modules/2.6.19-gentoo-r4/kernel/fs/fuse
> /lib/modules/2.6.19-gentoo-r4/kernel/fs/fuse/fuse.ko
>
> I guess I'm kind of lost here, as to what has happened...


Try "module-rebuild -X rebuild". Usually, after a kernel upgrade, you have to 
re-emerge all the kernel modules you have installed from portage. 
Module-rebuild does it for you ;)
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* [gentoo-user]  Re: FUSE (was: Add a module post kernel config/build)
  2007-04-19  0:40         ` [gentoo-user] " reader
  2007-04-19  4:42           ` Nistor Andrei
@ 2007-04-19  6:58           ` Alexander Skwar
  2007-04-19 10:45             ` reader
  1 sibling, 1 reply; 14+ messages in thread
From: Alexander Skwar @ 2007-04-19  6:58 UTC (permalink / raw
  To: gentoo-user

reader@newsguy.com <reader@newsguy.com> wrote:

> I have sys-fs/fuse installed.
> # eix -I fuse
> [I] sys-fs/fuse
>      Available versions:  2.6.1 2.6.3
>      Installed versions:  2.6.3(06:56:33 03/20/07)(-kernel_FreeBSD
>      kernel_linux)
>      Homepage:            http://fuse.sourceforge.net
>      Description:         An interface for filesystems implemented in
>      userspace.
> 
> [I] sys-fs/sshfs-fuse
>      Available versions:  1.6 (~)1.7
>      Installed versions:  1.7(06:38:10 02/22/07)
>      Homepage:            http://fuse.sourceforge.net/sshfs.html
>      Description:         Fuse-filesystem utilizing the sftp service.
> 
>  Should I have a fuse module?

If you've build fuse for the currently running kernel, then
yes, you should've.

> root # find /lib/modules -iname '*fuse*'
> /lib/modules/2.6.19-gentoo-r4/fs/fuse.ko
> /lib/modules/2.6.19-gentoo-r4/kernel/fs/fuse
> /lib/modules/2.6.19-gentoo-r4/kernel/fs/fuse/fuse.ko
> 
> I guess I'm kind of lost here, as to what has happened...

hm. What's unclear? You have build fuse only for this kernel
version. When you update your kernel, you'll need to rebuild
all the external modules (fuse, maybe alsa, ...). module-rebuild
is your friend.


Alexander Skwar

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* [gentoo-user]  Re: FUSE (was: Add a module post kernel config/build)
  2007-04-19  6:58           ` Alexander Skwar
@ 2007-04-19 10:45             ` reader
  2007-04-19 13:15               ` Neil Bothwick
  0 siblings, 1 reply; 14+ messages in thread
From: reader @ 2007-04-19 10:45 UTC (permalink / raw
  To: gentoo-user

Alexander Skwar <listen@alexander.skwar.name> writes:

> reader@newsguy.com <reader@newsguy.com> wrote:
>
>> I have sys-fs/fuse installed.
>> # eix -I fuse
>> [I] sys-fs/fuse
>>      Available versions:  2.6.1 2.6.3
>>      Installed versions:  2.6.3(06:56:33 03/20/07)(-kernel_FreeBSD
>>      kernel_linux)
>>      Homepage:            http://fuse.sourceforge.net
>>      Description:         An interface for filesystems implemented in
>>      userspace.
>> 
>> [I] sys-fs/sshfs-fuse
>>      Available versions:  1.6 (~)1.7
>>      Installed versions:  1.7(06:38:10 02/22/07)
>>      Homepage:            http://fuse.sourceforge.net/sshfs.html
>>      Description:         Fuse-filesystem utilizing the sftp service.
>> 
>>  Should I have a fuse module?
>
> If you've build fuse for the currently running kernel, then
> yes, you should've.
>
>> root # find /lib/modules -iname '*fuse*'
>> /lib/modules/2.6.19-gentoo-r4/fs/fuse.ko
>> /lib/modules/2.6.19-gentoo-r4/kernel/fs/fuse
>> /lib/modules/2.6.19-gentoo-r4/kernel/fs/fuse/fuse.ko
>> 
>> I guess I'm kind of lost here, as to what has happened...
>
> hm. What's unclear? You have build fuse only for this kernel
> version. When you update your kernel, you'll need to rebuild
> all the external modules (fuse, maybe alsa, ...). module-rebuild
> is your friend.

Whats unclear is why I have to do anything extra for this kernel when
I did not in past 2.   

I don't understand why it didn't get built with `genkernel all' as in
previous 2 kernels.

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user]  Re: FUSE (was: Add a module post kernel config/build)
  2007-04-19 10:45             ` reader
@ 2007-04-19 13:15               ` Neil Bothwick
  0 siblings, 0 replies; 14+ messages in thread
From: Neil Bothwick @ 2007-04-19 13:15 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 692 bytes --]

Hello reader@newsguy.com,

> > hm. What's unclear? You have build fuse only for this kernel
> > version. When you update your kernel, you'll need to rebuild
> > all the external modules (fuse, maybe alsa, ...). module-rebuild
> > is your friend.  
> 
> Whats unclear is why I have to do anything extra for this kernel when
> I did not in past 2.   

You probably ran module-rebuild without realising it covered fuse too.

You could avoid all this hassle by enabling fuse in your kernel. Out of
tree drivers cause extras hassle and should only be used when the
in-kernel drivers are not suitable for your needs.


-- 
Neil Bothwick

He's dead, Jim. Just like your career.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2007-04-19 13:27 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-18  9:15 [gentoo-user] Add a module post kernel config/build reader
2007-04-18 10:33 ` Boyd Stephen Smith Jr.
2007-04-19  0:44   ` [gentoo-user] " reader
2007-04-18 10:37 ` Alexander Skwar
2007-04-18 12:50   ` Neil Bothwick
2007-04-18 13:35     ` [gentoo-user] FUSE (was: Add a module post kernel config/build) Alexander Skwar
2007-04-18 15:00       ` Neil Bothwick
2007-04-19  0:40         ` [gentoo-user] " reader
2007-04-19  4:42           ` Nistor Andrei
2007-04-19  6:58           ` Alexander Skwar
2007-04-19 10:45             ` reader
2007-04-19 13:15               ` Neil Bothwick
2007-04-18 10:47 ` [gentoo-user] Add a module post kernel config/build Mike Williams
2007-04-18 11:10 ` Etaoin Shrdlu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox