Skip to contentSkip to conversation

Possible to delay boot process to boot from USB subsystem?

DISCUSSION Randy.Dunlap 2 participants 2 messages May 4, 2004

lore
Share & tools
lore
#0 lore raw

Bill,

(replying to: http://lkml.org/lkml/2004/5/3/124,
I don't have mailbox access to your email ATM)

I wish that I had a way to test this patch. Apparently Willy does, so I recommend his patch.... :) with one change:

change
+static int setuptime; /* time(ms) to let devices set up before root mount */

to
+static int setuptime = 10000; /* time(ms) to let devices set up before root mount */

or 60000 (= 1 minute). Whatever is comfortable for you.

Willy, it seems that some default value would be good there.

Later,
--
~Randy

#1 lore raw

Hi Randy,

Quoted 2 lines · Randy.Dunlap

I wish that I had a way to test this patch. Apparently Willy does, so I recommend his patch.... :)

You should never recommend anything from me to anyone if you want to keep some friends :-)

Quoted 5 lines

with one change:

change
+static int setuptime; /* time(ms) to let devices set up before root mount */

Quoted 7 lines

to
+static int setuptime = 10000; /* time(ms) to let devices set up before root mount */

or 60000 (= 1 minute). Whatever is comfortable for you.

Willy, it seems that some default value would be good there.

It was intentionnal, I don't like to change the default kernel behaviour. So by default it's 0 and behaves as if the patch was not applied. However, I think that a very small value (a few seconds) may be acceptable by default. Of course, if Bill doesn't use the patch anywhere else, he should be fine with a higher value.

Another (dirty) hack would be to export this variable, keep it to 0 by default, and have usb_hub_thread() set it to a reasonable value when starting khubd.

Regards,
Willy