Unix Technical Forum

Compiling USB Support into 2.4.22 kernel instead of using modules ? possible problem with hot-plug sub system.

This is a discussion on Compiling USB Support into 2.4.22 kernel instead of using modules ? possible problem with hot-plug sub system. within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hi, I have posted previous letters concerning 2.4.22 default bare.i kernel, while using a KVM IOGear 4-port switch tends ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-18-2008, 06:55 PM
Edward Ascencio
 
Posts: n/a
Default Compiling USB Support into 2.4.22 kernel instead of using modules ? possible problem with hot-plug sub system.

Hi,

I have posted previous letters concerning 2.4.22 default bare.i kernel,
while using a KVM IOGear 4-port switch tends to drop
support (modules for USB) anytime I'm away from the system (while switched )
for more than twenty minutes working on a different system.

I lose USB support for my mouse and keyboard, forcing me to reboot the
system?

One mentioned that I should compile USB support into the kernel using kmod ?
possibly (LIBMKMOD-CONFIG)

Can anyone shed some direction on compiling USB permanently into the kernel,
Keep in mind that kernel 2.4.22 by default
contains support for USB by default, and its hot-plug sub-system loads any
needed modules as needed.


Edward,






Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-18-2008, 06:55 PM
R.
 
Posts: n/a
Default Re: Compiling USB Support into 2.4.22 kernel instead of using modules? possible problem with hot-plug sub system.

Edward Ascencio wrote:
> Hi,
>
> I have posted previous letters concerning 2.4.22 default bare.i kernel,
> while using a KVM IOGear 4-port switch tends to drop
> support (modules for USB) anytime I'm away from the system (while switched )
> for more than twenty minutes working on a different system.
>
> I lose USB support for my mouse and keyboard, forcing me to reboot the
> system?


This sounds like what I had happening with my printer. The kernel loaded
the modules automatically when printing. This worked fine. Until one day
I sent a print job and the printer was off. When I went back the next
day the kernel had unloaded the modules, then when the printer was
turned on the system tried to print and it bombed out.

This is a feature of the kernel to limit used memory. If it isn't needed
why keep the module loaded. here is the section in the kernel config.

Kernel module loader
CONFIG_KMOD:

Normally when you have selected some drivers and/or file systems to be
created as loadable modules, you also have the responsibility to load
the corresponding modules (using the programs insmod or modprobe) before
you can use them. If you say Y here however, the kernel will be able to
load modules for itself: when a part of the kernel needs a module, it
runs modprobe with the appropriate arguments, thereby loading the module
if it is available. (This is a replacement for kerneld.) Say Y here and
read about configuring it in Documentation/kmod.txt.

-----

What I did was load the modules manualy in /etc/rc.d/rc.modules and that
fixed the problem.

When you boot up your system see what modules are loaded when it is
working that will tell you what to put in the config file.

HTH

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-18-2008, 06:55 PM
/dev/rob0
 
Posts: n/a
Default Re: Compiling USB Support into 2.4.22 kernel instead of using modules ? possible problem with hot-plug sub system.

In article <b8plb.517102$2x.239805@rwcrnsc52.ops.asp.att.net> ,
Edward Ascencio wrote:
> while using a KVM IOGear 4-port switch tends to drop
> support (modules for USB) anytime I'm away from the system (while switched )
> for more than twenty minutes working on a different system.


chmod -x /etc/cron.hourly/kmod # (I do that on all my new installs.)

> One mentioned that I should compile USB support into the kernel using kmod ?
> possibly (LIBMKMOD-CONFIG)


kmod is in Slackware kernels already. If you based your configuration on
a Slackware kernel you would know if you had disabled kmod.

BTW don't let the aforementioned cron script's name confuse you. It has
nothing to do with kmod, except for the fact that it removes modules
which kmod had loaded. See the -k option in "man modprobe".

> Can anyone shed some direction on compiling USB permanently into the kernel,


Your long $SUBJECT says it all. Don't.

> Keep in mind that kernel 2.4.22 by default
> contains support for USB by default, and its hot-plug sub-system loads any
> needed modules as needed.


You were looking in the wrong direction to try to fix this problem.

I am on record as being vehemently pro-modular-kernels. I cannot fathom
why so many people go to such lengths to throw away the flexibility and
power of modules to get a MS-Windows-like "reboot-to-change-anything"
system. (It is *worse* than Windows, because in many cases it's the
"Three R's": reconfigure, recompile, reboot.)

Users with their monolithic kernels can comfort themselves during their
17th recompile with the memory of the many milliseconds of [otherwise
idle] CPU time they have saved by not having to run modprobe. It's a
classic case of valuing appearance over essence.
--
/dev/rob0 - preferred_email=i$((28*28+28))@softhome.net
or put "not-spam" or "/dev/rob0" in Subject header to reply
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-18-2008, 06:57 PM
R.
 
Posts: n/a
Default Re: Compiling USB Support into 2.4.22 kernel instead of using modules? possible problem with hot-plug sub system.

/dev/rob0 wrote:
> In article <b8plb.517102$2x.239805@rwcrnsc52.ops.asp.att.net> ,
> Edward Ascencio wrote:
>
>>while using a KVM IOGear 4-port switch tends to drop
>>support (modules for USB) anytime I'm away from the system (while switched )
>>for more than twenty minutes working on a different system.

>
> chmod -x /etc/cron.hourly/kmod # (I do that on all my new installs.)


What if you still want some modules to unload automatically?

>>Can anyone shed some direction on compiling USB permanently into the kernel,

>
> Your long $SUBJECT says it all. Don't.


Yes it is long. I missed the hot-plug part. I skipped installing that
beast. Too many people having problems with it and my way has worked
fine for me.

>>Keep in mind that kernel 2.4.22 by default
>>contains support for USB by default, and its hot-plug sub-system loads any
>>needed modules as needed.


kmod will take care of that too right? Well it does for me.

> You were looking in the wrong direction to try to fix this problem.
>
> I am on record as being vehemently pro-modular-kernels. I cannot fathom
> why so many people go to such lengths to throw away the flexibility and
> power of modules to get a MS-Windows-like "reboot-to-change-anything"
> system. (It is *worse* than Windows, because in many cases it's the
> "Three R's": reconfigure, recompile, reboot.)


I'm with you here. I need something, load the module and motor on.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-18-2008, 06:59 PM
/dev/rob0
 
Posts: n/a
Default Re: Compiling USB Support into 2.4.22 kernel instead of using modules ? possible problem with hot-plug sub system.

In article <3F96F4D1.8010704@-.com>, R. wrote:
>> chmod -x /etc/cron.hourly/kmod # (I do that on all my new installs.)

>
> What if you still want some modules to unload automatically?


1. Why? Planning on saving lots of memory? Forget it. A typical module
only uses a few KB -- peanuts on a system with 32MB or more.
2. Then perhaps you would want to learn how it works. "man modprobe",
look for references to "autoclean". Note how NOT to set the autoclean
flag on a loaded module.

>>>Keep in mind that kernel 2.4.22 by default
>>>contains support for USB by default, and its hot-plug sub-system loads any
>>>needed modules as needed.

>
> kmod will take care of that too right? Well it does for me.


"kmod" != "hotplug". Kmod only loads a module when it is called; when
something wants to use a device which doesn't have support in the
kernel. OTOH hotplug loads a module for detected hardware, and further
may also run configuration commands or scripts.

Depending on what USB devices you use, yes, it is possible that you can
get by without hotplug. For that matter you can use modules.conf (or
modprobe.conf with the replacement for modutils) to train kmod to do
some very nice tricks.
--
/dev/rob0 - preferred_email=i$((28*28+28))@softhome.net
or put "not-spam" or "/dev/rob0" in Subject header to reply
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-18-2008, 07:01 PM
R.
 
Posts: n/a
Default Re: Compiling USB Support into 2.4.22 kernel instead of using modules? possible problem with hot-plug sub system.

/dev/rob0 wrote:

message > /dev/null

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-18-2008, 07:01 PM
AthlonRob
 
Posts: n/a
Default Re: Compiling USB Support into 2.4.22 kernel instead of using modules ? possible problem with hot-plug sub system.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
NotDashEscaped: You need GnuPG to verify this message

On Thu, 23 Oct 2003 17:22:51 -0400, R. <-@-.com> wrote:
> /dev/rob0 wrote:
>
> message > /dev/null


ROFL!

You're insane.

And you'd better add 2> /dev/null in there, too, as he might cause some
errors when he gets sent to /dev/null. :-)

I think you'll find the newsgroup a less helpful place when /dev/rob0
isn't in it for you. If you want a list of folks to killfile to make
your experience more pleasurable, send me an email and I'll send you
back my list. ;-)

--
Rob | If not safe,
Email and Jabber: | one can never be free.
athlonrob at axpr dot net |
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/mJWehm6KEoOOAe0RAvVLAJsGsMovUVhEZY6AnJRmbGP6NxexnQ Cgp2Zi
M4rzMRUrvHXY9Tr0B1ykLrs=
=418j
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-18-2008, 07:02 PM
R.
 
Posts: n/a
Default Re: Compiling USB Support into 2.4.22 kernel instead of using modules? possible problem with hot-plug sub system.

AthlonRob wrote:

Yawn....

> I think you'll find the newsgroup a less helpful place when /dev/rob0
> isn't in it for you.


No help needed here. Doesn't matter, don't care.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-18-2008, 07:02 PM
Keith Keller
 
Posts: n/a
Default Re: Compiling USB Support into 2.4.22 kernel instead of using modules ? possible problem with hot-plug sub system.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2003-10-24, R. <-@-.com> wrote:
>
> No help needed here. Doesn't matter, don't care.


Good luck receiving help in the future--sounds like you may need it. If
you didn't like /dev/rob0's attitude, you certainly won't like anyone
else's.

- --keith

- --
kkeller-usenet@wombat.san-francisco.ca.us
(try just my userid to email me)
AOLSFAQ=http://wombat.san-francisco.ca.us/cgi-bin/fom

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAj+YsMEACgkQhVcNCxZ5ID9XTwCfeUnp/YFvcMe/iUJbtHiplTE7
jHgAn3jWCBE4wflx0s4Wf4QOBvElUKU4
=VCBP
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-18-2008, 07:02 PM
R.
 
Posts: n/a
Default Re: Compiling USB Support into 2.4.22 kernel instead of using modules? possible problem with hot-plug sub system.

Keith Keller wrote:
> On 2003-10-24, R. <-@-.com> wrote:
>
>>No help needed here. Doesn't matter, don't care.

>
> Good luck receiving help in the future--sounds like you may need it. If
> you didn't like /dev/rob0's attitude, you certainly won't like anyone
> else's.


Read my two sentences above again. When you finally comprehend them,
find something else to do.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:03 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com