* overview of using hotplug in initrd
@ 2006-02-22 16:16 Dan Barber
2006-02-22 16:31 ` Marco d'Itri
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: Dan Barber @ 2006-02-22 16:16 UTC (permalink / raw)
To: linux-hotplug
Hello,
Can someone point me to an overview or HOWTO in using hotplug in initrd
for discovering hardware on boot up?
thanks,
Dan
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x103432&bid#0486&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: overview of using hotplug in initrd
2006-02-22 16:16 overview of using hotplug in initrd Dan Barber
@ 2006-02-22 16:31 ` Marco d'Itri
2006-02-22 22:47 ` Chris Smith
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Marco d'Itri @ 2006-02-22 16:31 UTC (permalink / raw)
To: linux-hotplug
On Feb 22, Dan Barber <dan@mutagenix.org> wrote:
> Can someone point me to an overview or HOWTO in using hotplug in initrd
> for discovering hardware on boot up?
You don't, nowadays you are supposed to use udev and an initramfs.
--
ciao,
Marco
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x103432&bid#0486&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: overview of using hotplug in initrd
2006-02-22 16:16 overview of using hotplug in initrd Dan Barber
2006-02-22 16:31 ` Marco d'Itri
@ 2006-02-22 22:47 ` Chris Smith
2006-02-25 0:26 ` marrandy
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Chris Smith @ 2006-02-22 22:47 UTC (permalink / raw)
To: linux-hotplug
>>>>> "Marco" = Marco d'Itri <md@Linux.IT> writes:
Marco> On Feb 22, Dan Barber <dan@mutagenix.org> wrote:
>> Can someone point me to an overview or HOWTO in using hotplug
>> in initrd for discovering hardware on boot up?
Marco> You don't, nowadays you are supposed to use udev and an
Marco> initramfs.
Is there a reference implementation of how that should be done? I
used some ancient stuff to traverse /sys and make nodes for my block
devices, but the resulting boot was very messy. What is Teh 'Right'
Way To Do It?
Best,
Chris
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x110944&bid$1720&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: overview of using hotplug in initrd
2006-02-22 16:16 overview of using hotplug in initrd Dan Barber
2006-02-22 16:31 ` Marco d'Itri
2006-02-22 22:47 ` Chris Smith
@ 2006-02-25 0:26 ` marrandy
2006-02-25 1:39 ` David Gómez
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: marrandy @ 2006-02-25 0:26 UTC (permalink / raw)
To: linux-hotplug
On Wednesday 22 February 2006 17:47, Chris Smith wrote:
> >>>>> "Marco" = Marco d'Itri <md@Linux.IT> writes:
>
> Marco> On Feb 22, Dan Barber <dan@mutagenix.org> wrote:
> >> Can someone point me to an overview or HOWTO in using hotplug
> >> in initrd for discovering hardware on boot up?
>
> Marco> You don't, nowadays you are supposed to use udev and an
> Marco> initramfs.
>
> Is there a reference implementation of how that should be done? I
> used some ancient stuff to traverse /sys and make nodes for my block
> devices, but the resulting boot was very messy. What is Teh 'Right'
> Way To Do It?
> Best,
> Chris
What's up with your clock. It's Friday, not Wednesday. Please fix it.
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x110944&bid$1720&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: overview of using hotplug in initrd
2006-02-22 16:16 overview of using hotplug in initrd Dan Barber
` (2 preceding siblings ...)
2006-02-25 0:26 ` marrandy
@ 2006-02-25 1:39 ` David Gómez
2006-02-25 6:31 ` iSteve
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: David Gómez @ 2006-02-25 1:39 UTC (permalink / raw)
To: linux-hotplug
Hi Chris ;),
On Feb 22 at 05:47:26, Chris Smith wrote:
> Is there a reference implementation of how that should be done? I
> used some ancient stuff to traverse /sys and make nodes for my block
> devices, but the resulting boot was very messy. What is Teh 'Right'
> Way To Do It?
I believe is udevsynthesize, but it's difficult to get it except in an
old post in this list.
Personally i've found out that a 'find' command combined with
'echo "add" > uevent' and a recent kernel does a very good work ;).
If you only are interested in block devices it'd be enough to run
the find in /sys/block
regards,
--
David Gómez Jabber ID: davidge@jabber.org
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x110944&bid$1720&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: overview of using hotplug in initrd
2006-02-22 16:16 overview of using hotplug in initrd Dan Barber
` (3 preceding siblings ...)
2006-02-25 1:39 ` David Gómez
@ 2006-02-25 6:31 ` iSteve
2006-02-27 18:06 ` Aaron Griffin
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: iSteve @ 2006-02-25 6:31 UTC (permalink / raw)
To: linux-hotplug
> Can someone point me to an overview or HOWTO in using hotplug in initrd
> for discovering hardware on boot up?
I'm sure I'll be shouted at for being obsolete, but my way, in InitRD, is to use
now discontinued hotplug-ng (courtesy of Greg Kroah-Hartman, whom I thank for
great software) for hotplugging and to detect existing hw, I use: for als in
`cat /sys/bus/*/devices/*/modalias`; do modprobe $als; done
--
-- iSteve
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x110944&bid$1720&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: overview of using hotplug in initrd
2006-02-22 16:16 overview of using hotplug in initrd Dan Barber
` (4 preceding siblings ...)
2006-02-25 6:31 ` iSteve
@ 2006-02-27 18:06 ` Aaron Griffin
2006-02-27 18:19 ` iSteve
2006-02-27 18:25 ` Aaron Griffin
7 siblings, 0 replies; 9+ messages in thread
From: Aaron Griffin @ 2006-02-27 18:06 UTC (permalink / raw)
To: linux-hotplug
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="windows-1252", Size: 1255 bytes --]
On 2/25/06, iSteve <isteve@rulez.cz> wrote:> I'm sure I'll be shouted at for being obsolete, but my way, in InitRD, is to use> now discontinued hotplug-ng (courtesy of Greg Kroah-Hartman, whom I thank for> great software) for hotplugging and to detect existing hw, I use: for als in> `cat /sys/bus/*/devices/*/modalias`; do modprobe $als; done
Hmmm, that works for you? Here, I loop over/sys/bus/pci/devices/*/modalias and then do some ide/scsi specificdetection. That is, I have no support for that stuff built into thekernel (you may be different).Also, it's a hair faster to build a module string in a loop and call"modprobe -a", as modprobe only needs to read the config files once,thus one call is better than ~10.
iSteve, I'm curious as to your startup times, mine seem a tad slow,and I'd be interested in profiling this sort of stuff to make itfaster.ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÓ+\x12\x17ó^µéX¬²'²Þu¼±<Âÿjèºw[æ¤x,r¸©¶)à©à¹¨\x1e¶\x16{^[^Û\x1a¦bq«b¢{"Ú0y¶§vj^[W¦yØü\vmzwm
éb½ì\x1emƬµ©Ý§¶\x17©®)uëÞ^®èºëy©"\b§¶aÉÞÁÊ\x1dx-zºâ¶òþ^[m§ÿÿ±éÿjÏî³÷ÚF þwþÇ¥ýÉþH÷ÿn'Û{ÛOÝjÛ^¸Ûÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ.)îÇøh¶n÷^½éfj)b b²Øm¶ÿþX§»\x1fá¢Úeº\x0fì¢êÜyú+ïçzÒâìÿièÿuëÞùb²Ûÿ²«qçè®\aÿëa¶ÚlÿÿåËlþÊ.Ç¢¸\x1eþwþX¬¶ÏåËbú?)îÇøh¶n÷^
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: overview of using hotplug in initrd
2006-02-22 16:16 overview of using hotplug in initrd Dan Barber
` (5 preceding siblings ...)
2006-02-27 18:06 ` Aaron Griffin
@ 2006-02-27 18:19 ` iSteve
2006-02-27 18:25 ` Aaron Griffin
7 siblings, 0 replies; 9+ messages in thread
From: iSteve @ 2006-02-27 18:19 UTC (permalink / raw)
To: linux-hotplug
On Mon, 27 Feb 2006 12:06:31 -0600
"Aaron Griffin" <aaronmgriffin@gmail.com> wrote:
> On 2/25/06, iSteve <isteve@rulez.cz> wrote:
> > I'm sure I'll be shouted at for being obsolete, but my way, in InitRD, is
> > to use now discontinued hotplug-ng (courtesy of Greg Kroah-Hartman, whom I
> > thank for great software) for hotplugging and to detect existing hw, I use:
> > for als in `cat /sys/bus/*/devices/*/modalias`; do modprobe $als; done
>
> Hmmm, that works for you? Here, I loop over
> /sys/bus/pci/devices/*/modalias and then do some ide/scsi specific
> detection. That is, I have no support for that stuff built into the
> kernel (you may be different).
> Also, it's a hair faster to build a module string in a loop and call
> "modprobe -a", as modprobe only needs to read the config files once,
> thus one call is better than ~10.
>
> iSteve, I'm curious as to your startup times, mine seem a tad slow,
> and I'd be interested in profiling this sort of stuff to make it
> faster.
Fast. With a generic, very very modular kernel, it spends only about two or
three seconds in initrd; most of the time is taken by IDE drives detection.
I, however, use a significant trick; I run the modprobes in a paralel fashion,
since the I/O wait is what takes so long.
-- iSteve
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x110944&bid$1720&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: overview of using hotplug in initrd
2006-02-22 16:16 overview of using hotplug in initrd Dan Barber
` (6 preceding siblings ...)
2006-02-27 18:19 ` iSteve
@ 2006-02-27 18:25 ` Aaron Griffin
7 siblings, 0 replies; 9+ messages in thread
From: Aaron Griffin @ 2006-02-27 18:25 UTC (permalink / raw)
To: linux-hotplug
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="windows-1252", Size: 1907 bytes --]
On 2/27/06, iSteve <isteve@rulez.cz> wrote:> On Mon, 27 Feb 2006 12:06:31 -0600> "Aaron Griffin" <aaronmgriffin@gmail.com> wrote:>> > On 2/25/06, iSteve <isteve@rulez.cz> wrote:> > > I'm sure I'll be shouted at for being obsolete, but my way, in InitRD, is> > > to use now discontinued hotplug-ng (courtesy of Greg Kroah-Hartman, whom I> > > thank for great software) for hotplugging and to detect existing hw, I use:> > > for als in `cat /sys/bus/*/devices/*/modalias`; do modprobe $als; done> >> > Hmmm, that works for you? Here, I loop over> > /sys/bus/pci/devices/*/modalias and then do some ide/scsi specific> > detection. That is, I have no support for that stuff built into the> > kernel (you may be different).> > Also, it's a hair faster to build a module string in a loop and call> > "modprobe -a", as modprobe only needs to read the config files once,> > thus one call is better than ~10.> >> > iSteve, I'm curious as to your startup times, mine seem a tad slow,> > and I'd be interested in profiling this sort of stuff to make it> > faster.>> Fast. With a generic, very very modular kernel, it spends only about two or> three seconds in initrd; most of the time is taken by IDE drives detection.>> I, however, use a significant trick; I run the modprobes in a paralel fashion,> since the I/O wait is what takes so long.
Yeah, that's what I was debating doing, but I wasn't sure if thetimings would match up. Could you send me a copy of your init script? I'd like to take a peek at it.
Thanks,AaronÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÓ+\x12\x17ó^µéX¬²'²Þu¼±<Âÿjèºw[æ¤x,r¸©¶)à©à¹¨\x1e¶\x16{^[^Û\x1a¦bq«b¢{"Ú0y¶§vj^[W¦yØü\vmzwm
éb½ì\x1emƬµ©Ý§¶\x17©®)uëÞ^®èºëy©"\b§¶aÉÞÁÊ\x1dx-zºâ¶òþ^[m§ÿÿ±éÿjÏî³÷ÚF þwþÇ¥ýÉþH÷ÿn'Û{ÛOÝjÛ^¸Ûÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ.)îÇøh¶n÷^½éfj)b b²Øm¶ÿþX§»\x1fá¢Úeº\x0fì¢êÜyú+ïçzÒâìÿièÿuëÞùb²Ûÿ²«qçè®\aÿëa¶ÚlÿÿåËlþÊ.Ç¢¸\x1eþwþX¬¶ÏåËbú?)îÇøh¶n÷^
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2006-02-27 18:25 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-22 16:16 overview of using hotplug in initrd Dan Barber
2006-02-22 16:31 ` Marco d'Itri
2006-02-22 22:47 ` Chris Smith
2006-02-25 0:26 ` marrandy
2006-02-25 1:39 ` David Gómez
2006-02-25 6:31 ` iSteve
2006-02-27 18:06 ` Aaron Griffin
2006-02-27 18:19 ` iSteve
2006-02-27 18:25 ` Aaron Griffin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).