From: David Brownell <david-b@pacbell.net>
To: Alessandro Zummo <alessandro.zummo@towertech.it>
Cc: "Joakim Tjernlund" <joakim.tjernlund@transmode.se>,
"'Benjamin Herrenschmidt'" <benh@kernel.crashing.org>,
akpm@osdl.org, linuxppc-dev@ozlabs.org, lethal@linux-sh.org,
"'Linux Kernel Mailing List'" <linux-kernel@vger.kernel.org>,
ralf@linux-mips.org, "'Andi Kleen'" <ak@muc.de>,
paulus@samba.org, rmk@arm.linux.org.uk, davem@davemloft.net,
kkojima@rr.iij4u.or.jp
Subject: Re: [Bulk] Re: NTP time sync
Date: Sun, 26 Nov 2006 17:21:23 -0800 [thread overview]
Message-ID: <200611261721.25473.david-b@pacbell.net> (raw)
In-Reply-To: <20061126235317.5d40d22c@inspiron>
On Sunday 26 November 2006 2:53 pm, Alessandro Zummo wrote:
> On Sun, 26 Nov 2006 22:37:10 +0100
> "Joakim Tjernlund" <joakim.tjernlund@transmode.se> wrote:
>
> > > the concept of static numbers is quite old...
> >
> > Yes it is old, but is the old way unsupported now? I have an embedded target
> > which is using the old static /dev directory, do I need to make
> > it udev aware to use newer features like the rtc subsystem?
>
> That can be a good option.
And it's simple enough. You might not even need to run "udevd"
if you don't have hotpluggable devices ... just the startup stuff,
which you might not need after the first boot. (Since the set of
devices will be stable, /dev/* won't change, and you can speed up
system boot by that small delta.)
I certainly run udev on some small systems, with /sbin/hotplug as
appended. Getting udev set up, and handling coldplug, is left as
an exercise for the reader. :)
- Dave
#!/bin/ash
#
# "hotplug" initializes devices ... hardware drivers get modprobed and
# create class devices. then later udev handles /dev node creation and
# invokes programs that make userspace aware of the new device node.
#
# install as /sbin/hotplug
if [ ! -d /sys ]
then
exit 1
fi
cd /sys
if [ "$ACTION" = "add" -a "$SUBSYSTEM" = "mmc" ]
then
# MMC doesn't support modalias yet, but this is
# the only choice until we have SDIO support.
MODALIAS=mmc_block
fi
if [ "$ACTION" = "add" -a -n "$MODALIAS" -a ! -L $DEVPATH/driver ]
then
# most important subsystems now have $MODALIAS support:
modprobe -q $MODALIAS
fi
if [ -n "$DEVPATH" ]
then
/sbin/udevsend $1
fi
prev parent reply other threads:[~2006-11-27 1:21 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-22 19:36 NTP time sync Alessandro Zummo
2006-11-22 19:51 ` Russell King
2006-11-22 20:26 ` Alessandro Zummo
2006-11-22 19:55 ` David Brownell
2006-11-22 20:23 ` Alessandro Zummo
2006-11-23 1:48 ` Gabriel Paubert
2006-11-23 10:54 ` Andi Kleen
2006-11-23 11:00 ` Benjamin Herrenschmidt
2006-11-25 23:22 ` David Brownell
2006-11-26 11:04 ` Joakim Tjernlund
2006-11-26 19:21 ` Alessandro Zummo
2006-11-26 21:37 ` Joakim Tjernlund
2006-11-26 22:06 ` Michael Raskin
2006-11-26 22:53 ` Alessandro Zummo
2006-11-27 1:21 ` David Brownell [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200611261721.25473.david-b@pacbell.net \
--to=david-b@pacbell.net \
--cc=ak@muc.de \
--cc=akpm@osdl.org \
--cc=alessandro.zummo@towertech.it \
--cc=benh@kernel.crashing.org \
--cc=davem@davemloft.net \
--cc=joakim.tjernlund@transmode.se \
--cc=kkojima@rr.iij4u.or.jp \
--cc=lethal@linux-sh.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=paulus@samba.org \
--cc=ralf@linux-mips.org \
--cc=rmk@arm.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox