From: Peter Korsgaard <jacmet@sunsite.dk>
To: buildroot@busybox.net
Subject: [Buildroot] mdev handling
Date: Wed, 08 Sep 2010 17:07:33 +0200 [thread overview]
Message-ID: <87k4mwclze.fsf@macbook.be.48ers.dk> (raw)
In-Reply-To: <201009081648.41500.yann.morin.1998@anciens.enib.fr> (Yann E. MORIN's message of "Wed, 8 Sep 2010 16:48:41 +0200")
>>>>> "Yann" == Yann E MORIN <yann.morin.1998@anciens.enib.fr> writes:
Hi,
>> Isn't this largely obsolete now we have devtmpfs?
Yann> Well, devtmpfs has a static naming scheme, default permissions for device
Yann> nodes, so it is not sufficient by itself. As the help entry for devtmpfs
Yann> states:
Yann> "It provides a fully functional /dev directory, where usually
Yann> udev runs on top, managing permissions and adding meaningful
Yann> symlinks."
True, but it is fine for most small embedded systems as well (E.G. the
target group of buildroot). Most of these are root only so you just want
the device nodes of the hw you have available.
But yes, it can certainly be used with mdev as well (you basically just
get rid of the slow mdev -s at startup).
Yann> Even better, embedded system have a mostly static set of devices, thus a
Yann> mostly static set of entries in /dev, and those can go to flash. Entries
Yann> for removeable devices (eg. usb sticks) can still go there. Thus you gain
Yann> both in flash (no space used by any code, kerenl or userland) and in RAM
Yann> (no space used by devtmpfs/tmpfs/ramfs/... and VFS entries).
The devtmpfs code is very small if you already have ramfs/tmpfs (and
most likely you do), so the size difference between devtmpfs and static
/dev is really down in the noise.
Yann> Really, devtmpfs and mdev/udev are for desktop, where the set of
Yann> devices is to easily divergent, IMHO...
Depends on what you want to do. You fairly often see embedded devicess
that react when you plug in a usb device. For that, mdev (or other
hotplug scripts) are pretty nice.
--
Bye, Peter Korsgaard
next prev parent reply other threads:[~2010-09-08 15:07 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-08 14:07 [Buildroot] mdev handling Yegor Yefremov
2010-09-08 14:22 ` William Wagner
2010-09-08 14:29 ` Peter Korsgaard
2010-09-08 14:48 ` Yann E. MORIN
2010-09-08 15:07 ` Peter Korsgaard [this message]
2010-09-09 9:01 ` Yegor Yefremov
2010-09-09 10:19 ` Thomas Petazzoni
2010-09-09 10:38 ` Yegor Yefremov
2010-09-09 12:00 ` Thomas Petazzoni
2010-09-09 12:48 ` Yegor Yefremov
2010-09-10 7:40 ` Yegor Yefremov
2010-09-10 7:51 ` Peter Korsgaard
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=87k4mwclze.fsf@macbook.be.48ers.dk \
--to=jacmet@sunsite.dk \
--cc=buildroot@busybox.net \
/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