RE: FreeBSD Kernel Recompile, Does not exclude modules

2004-07-12 Thread Steven Adams
Hey..

Hehe yes I rebooted the server..

It was weird because now its not there anymore..

I had to add it to /etc/rc.conf

But in /etc/default/rc.conf its default is NO..


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of epilogue
Sent: Monday, 12 July 2004 2:27 PM
Cc: [EMAIL PROTECTED]
Subject: Re: FreeBSD Kernel Recompile, Does not exclude modules

On Mon, 12 Jul 2004 09:00:00 +1000
Steven Adams [EMAIL PROTECTED] wrote:

 I already made a custom kernel and disabled usb in /etc/rc.conf
 
 I guess they aren't causing me any harm ill just leave them alone for
 now..:)
 
 Thanks tho

hello steven,

this will probably sound silly, and if you think so too, i'll take your
silence as 'yes, silly bunny.'

1) have you rebooted since the changes to rc.conf?

2) does your rc.conf entry include the   marks?
  usbd_enable=NO

3) does a 'usbd_enable' line appear 'more than once' in your rc.conf? 
several rc.conf entries are generated by the installation.  perhaps you've
got two.  you may have created your NO entry at the top of the
file and have a YES entry a few lines down.

anyhoo.  hope that this gives you something to double check.


cheers,
epi

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Matthew Seaman
 Sent: Sunday, 11 July 2004 11:50 PM
 To: Steven Adams
 Cc: 'Arjan Van Leeuwen'; [EMAIL PROTECTED]
 Subject: Re: FreeBSD Kernel Recompile, Does not exclude modules
 
 On Sun, Jul 11, 2004 at 10:09:54PM +1000, Steven Adams wrote:
 
  Ive already disabled usbd_enable=no in /etc/rc.conf
  
  But still I get theses
  
  root   399  0.0  0.0 0   12  ??  DL   Sat04PM   0:00.03  (usb0)
  root   400  0.0  0.0 0   12  ??  DL   Sat04PM   0:00.00  (usbtask)
  
  And yes I ran make install, I know it worked because I also compiled in
  quota support which is now working and wasn't previously.
  
  I am a 5year slackware linux user just moved over to FreeBSD so im used
  to the linux kernel, that's why its confused me a little. FreeBSD is
  looking great tho.. :)
  
  But yeh wondering how I get rid of them 2 processes.
 
 Those are not ordinary processes.  Rather they are kernel threads (or
 some such description) -- along the same lines as the vmdaemon,
 swapper or syncer threads.
 
 In order to get rid of them, you'ld have to compile a custom kernel
 with all of the usb support ripped out *and* you'ld have to take steps
 to prevent the kernel autoloading a usb.ko kernel module on boot up.
 
 If you have inadvertently loaded a usb kld module -- use kldstat(8) to
 see if that is the case -- then you should be able to unload it with
 kldunload(8), so long as it's not actually busy doing stuff.
 
 On the whole though, I wouldn't bother too much about those usb kernel
 thread things.  They're generally harmless and they don't have any
 impact on the rest of the system if there are no USB peripherals in
 use.
 
   Cheers,
 
   Matthew
 
 -- 
 Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
   Savill Way
 PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
 Tel: +44 1628 476614  Bucks., SL7 1TH UK
 
 
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]
 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


FreeBSD Kernel Recompile, Does not exclude modules

2004-07-11 Thread Steven Adams
Hey,

 

Reading from the FreeBSD Handbook I have compiled a new kernel that works
fine.

 

In my config file I commented out a few things I don't need eg USB etc.

 

But for some reason when it booted back up into the new kernel, from ps aux
it shows usb is up and running..

 

/boot/kernel shows that usb.ko is there.

 

I don't understand why its included which I commented it out

 

Am I doing something wrong?

 

Thanks

Steve

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD Kernel Recompile, Does not exclude modules

2004-07-11 Thread Kent Stewart
On Sunday 11 July 2004 12:25 am, Steven Adams wrote:
 Hey,



 Reading from the FreeBSD Handbook I have compiled a new kernel that
 works fine.



 In my config file I commented out a few things I don't need eg USB
 etc.



 But for some reason when it booted back up into the new kernel, from
 ps aux it shows usb is up and running..



 /boot/kernel shows that usb.ko is there.



 I don't understand why its included which I commented it out



 Am I doing something wrong?



Did you do a make kernel to build and install the new kernel?

Kent


 Thanks

 Steve

 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]

-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD Kernel Recompile, Does not exclude modules

2004-07-11 Thread Arjan Van Leeuwen
Hi Steve,

On Sun, 11 Jul 2004 17:25:40 +1000, Steven Adams [EMAIL PROTECTED] wrote:
 Hey,
 
 Reading from the FreeBSD Handbook I have compiled a new kernel that works
 fine.
 
 In my config file I commented out a few things I don't need eg USB etc.
 
 But for some reason when it booted back up into the new kernel, from ps aux
 it shows usb is up and running..

You mean that the program usbd is running. This is a userland program
that detects new USB devices and starts some predefined sequence of
commands when a certain device enters the system. You can turn it off
by adding usbd_enable=NO to /etc/rc.conf.

 
 /boot/kernel shows that usb.ko is there.
 
 I don't understand why its included which I commented it out

There's a difference between 'compiling something into the kernel' and
using a kernel module. usb.ko is a kernel loadable module - a module
that you can load with kldload if you need it. It's not compiled into
the kernel. When you had 'device usb' in your kernel, usb would be
compiled into the kernel and you'd never need to load the kernel
loadable module for it. Now, you've removed usb from your kernel
configuration file, so usb support is not in your kernel. Should you
need it later, you can always load the module.

If the module is not loaded, it doesn't take up any resources (except
for the hard drive space it uses), so it shouldn't bother you.

If you really don't want to compile any modules at all when building
your kernel (for example, to save time when building a kernel), add
NO_MODULES=true to /etc/make.conf.

Arjan
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: FreeBSD Kernel Recompile, Does not exclude modules

2004-07-11 Thread Steven Adams
Hi, 

Ive already disabled usbd_enable=no in /etc/rc.conf

But still I get theses

root   399  0.0  0.0 0   12  ??  DL   Sat04PM   0:00.03  (usb0)
root   400  0.0  0.0 0   12  ??  DL   Sat04PM   0:00.00  (usbtask)

And yes I ran make install, I know it worked because I also compiled in
quota support which is now working and wasn't previously.

I am a 5year slackware linux user just moved over to FreeBSD so im used to
the linux kernel, that's why its confused me a little. FreeBSD is looking
great tho.. :)

But yeh wondering how I get rid of them 2 processes.

Thanks
Steve

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Arjan Van Leeuwen
Sent: Sunday, 11 July 2004 9:14 PM
To: Steven Adams
Cc: [EMAIL PROTECTED]
Subject: Re: FreeBSD Kernel Recompile, Does not exclude modules

Hi Steve,

On Sun, 11 Jul 2004 17:25:40 +1000, Steven Adams [EMAIL PROTECTED]
wrote:
 Hey,
 
 Reading from the FreeBSD Handbook I have compiled a new kernel that works
 fine.
 
 In my config file I commented out a few things I don't need eg USB etc.
 
 But for some reason when it booted back up into the new kernel, from ps
aux
 it shows usb is up and running..

You mean that the program usbd is running. This is a userland program
that detects new USB devices and starts some predefined sequence of
commands when a certain device enters the system. You can turn it off
by adding usbd_enable=NO to /etc/rc.conf.

 
 /boot/kernel shows that usb.ko is there.
 
 I don't understand why its included which I commented it out

There's a difference between 'compiling something into the kernel' and
using a kernel module. usb.ko is a kernel loadable module - a module
that you can load with kldload if you need it. It's not compiled into
the kernel. When you had 'device usb' in your kernel, usb would be
compiled into the kernel and you'd never need to load the kernel
loadable module for it. Now, you've removed usb from your kernel
configuration file, so usb support is not in your kernel. Should you
need it later, you can always load the module.

If the module is not loaded, it doesn't take up any resources (except
for the hard drive space it uses), so it shouldn't bother you.

If you really don't want to compile any modules at all when building
your kernel (for example, to save time when building a kernel), add
NO_MODULES=true to /etc/make.conf.

Arjan
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD Kernel Recompile, Does not exclude modules

2004-07-11 Thread Matthew Seaman
On Sun, Jul 11, 2004 at 10:09:54PM +1000, Steven Adams wrote:

 Ive already disabled usbd_enable=no in /etc/rc.conf
 
 But still I get theses
 
 root   399  0.0  0.0 0   12  ??  DL   Sat04PM   0:00.03  (usb0)
 root   400  0.0  0.0 0   12  ??  DL   Sat04PM   0:00.00  (usbtask)
 
 And yes I ran make install, I know it worked because I also compiled in
 quota support which is now working and wasn't previously.
 
 I am a 5year slackware linux user just moved over to FreeBSD so im used to
 the linux kernel, that's why its confused me a little. FreeBSD is looking
 great tho.. :)
 
 But yeh wondering how I get rid of them 2 processes.

Those are not ordinary processes.  Rather they are kernel threads (or
some such description) -- along the same lines as the vmdaemon,
swapper or syncer threads.

In order to get rid of them, you'ld have to compile a custom kernel
with all of the usb support ripped out *and* you'ld have to take steps
to prevent the kernel autoloading a usb.ko kernel module on boot up.

If you have inadvertently loaded a usb kld module -- use kldstat(8) to
see if that is the case -- then you should be able to unload it with
kldunload(8), so long as it's not actually busy doing stuff.

On the whole though, I wouldn't bother too much about those usb kernel
thread things.  They're generally harmless and they don't have any
impact on the rest of the system if there are no USB peripherals in
use.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgpOMvQAGerdk.pgp
Description: PGP signature


RE: FreeBSD Kernel Recompile, Does not exclude modules

2004-07-11 Thread Steven Adams
I already made a custom kernel and disabled usb in /etc/rc.conf

I guess they aren't causing me any harm ill just leave them alone for now..
:)

Thanks tho

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Matthew Seaman
Sent: Sunday, 11 July 2004 11:50 PM
To: Steven Adams
Cc: 'Arjan Van Leeuwen'; [EMAIL PROTECTED]
Subject: Re: FreeBSD Kernel Recompile, Does not exclude modules

On Sun, Jul 11, 2004 at 10:09:54PM +1000, Steven Adams wrote:

 Ive already disabled usbd_enable=no in /etc/rc.conf
 
 But still I get theses
 
 root   399  0.0  0.0 0   12  ??  DL   Sat04PM   0:00.03  (usb0)
 root   400  0.0  0.0 0   12  ??  DL   Sat04PM   0:00.00  (usbtask)
 
 And yes I ran make install, I know it worked because I also compiled in
 quota support which is now working and wasn't previously.
 
 I am a 5year slackware linux user just moved over to FreeBSD so im used to
 the linux kernel, that's why its confused me a little. FreeBSD is looking
 great tho.. :)
 
 But yeh wondering how I get rid of them 2 processes.

Those are not ordinary processes.  Rather they are kernel threads (or
some such description) -- along the same lines as the vmdaemon,
swapper or syncer threads.

In order to get rid of them, you'ld have to compile a custom kernel
with all of the usb support ripped out *and* you'ld have to take steps
to prevent the kernel autoloading a usb.ko kernel module on boot up.

If you have inadvertently loaded a usb kld module -- use kldstat(8) to
see if that is the case -- then you should be able to unload it with
kldunload(8), so long as it's not actually busy doing stuff.

On the whole though, I wouldn't bother too much about those usb kernel
thread things.  They're generally harmless and they don't have any
impact on the rest of the system if there are no USB peripherals in
use.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD Kernel Recompile, Does not exclude modules

2004-07-11 Thread epilogue
On Mon, 12 Jul 2004 09:00:00 +1000
Steven Adams [EMAIL PROTECTED] wrote:

 I already made a custom kernel and disabled usb in /etc/rc.conf
 
 I guess they aren't causing me any harm ill just leave them alone for
 now..:)
 
 Thanks tho

hello steven,

this will probably sound silly, and if you think so too, i'll take your
silence as 'yes, silly bunny.'

1) have you rebooted since the changes to rc.conf?

2) does your rc.conf entry include the   marks?
  usbd_enable=NO

3) does a 'usbd_enable' line appear 'more than once' in your rc.conf? 
several rc.conf entries are generated by the installation.  perhaps you've
got two.  you may have created your NO entry at the top of the
file and have a YES entry a few lines down.

anyhoo.  hope that this gives you something to double check.


cheers,
epi

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Matthew Seaman
 Sent: Sunday, 11 July 2004 11:50 PM
 To: Steven Adams
 Cc: 'Arjan Van Leeuwen'; [EMAIL PROTECTED]
 Subject: Re: FreeBSD Kernel Recompile, Does not exclude modules
 
 On Sun, Jul 11, 2004 at 10:09:54PM +1000, Steven Adams wrote:
 
  Ive already disabled usbd_enable=no in /etc/rc.conf
  
  But still I get theses
  
  root   399  0.0  0.0 0   12  ??  DL   Sat04PM   0:00.03  (usb0)
  root   400  0.0  0.0 0   12  ??  DL   Sat04PM   0:00.00  (usbtask)
  
  And yes I ran make install, I know it worked because I also compiled in
  quota support which is now working and wasn't previously.
  
  I am a 5year slackware linux user just moved over to FreeBSD so im used
  to the linux kernel, that's why its confused me a little. FreeBSD is
  looking great tho.. :)
  
  But yeh wondering how I get rid of them 2 processes.
 
 Those are not ordinary processes.  Rather they are kernel threads (or
 some such description) -- along the same lines as the vmdaemon,
 swapper or syncer threads.
 
 In order to get rid of them, you'ld have to compile a custom kernel
 with all of the usb support ripped out *and* you'ld have to take steps
 to prevent the kernel autoloading a usb.ko kernel module on boot up.
 
 If you have inadvertently loaded a usb kld module -- use kldstat(8) to
 see if that is the case -- then you should be able to unload it with
 kldunload(8), so long as it's not actually busy doing stuff.
 
 On the whole though, I wouldn't bother too much about those usb kernel
 thread things.  They're generally harmless and they don't have any
 impact on the rest of the system if there are no USB peripherals in
 use.
 
   Cheers,
 
   Matthew
 
 -- 
 Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
   Savill Way
 PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
 Tel: +44 1628 476614  Bucks., SL7 1TH UK
 
 
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]
 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]