Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: William Wagner <will_wagner@carallon.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 49/55] Improve handling of mdev/udev
Date: Mon, 07 Mar 2011 18:52:35 +0000	[thread overview]
Message-ID: <4D752973.3090004@carallon.com> (raw)
In-Reply-To: <f92465f9de8bcd24cf2c974b158a600a84e96422.1291582352.git.thomas.petazzoni@free-electrons.com>

On 05/12/2010 20:53, Thomas Petazzoni wrote:
> Yegor Yefremov introduced udev/mdev integration, but it relies on
> devtmpfs and does not use tmpfs on /dev, which is the purpose of
> mdev/udev. This commit improves how mdev and udev are handled in
> Buildroot.
>
> At compile time, only a minimal /dev is created in the filesystem,
> with only "console" and "null". This is done thanks to a small device
> table in target/generic/device_table_mdev_udev.txt. This is done
> directly at the configuration level (fs/Config.in).
>
> Moreover, at compile time, the mounting of a tmpfs filesystem in /dev
> is enabled/disabled in /etc/inittab depending on whether udev/mdev are
> used or not. This is done in target/generic/Makefile.in, together with
> other hooks to tune the target filesystem (hostname, serial port,
> etc.).
>
> At run time, what happens is :
>
>   * inittab sysinit actions are executed. They do: remount the root
>     filesystem read/write, mount the proc filesystem, mount a tmpfs
>     filesystem in /dev, create the /dev/pts directory and then mount
>     all filesystems listed in fstab.
>
>   * initialization scripts are started, with S10mdev or S10udev being
>     at the very beginning of the list of scripts to be executed.
>
> Between the moment at which a tmpfs filesystem is mounted in /dev and
> the moment S10mdev or S10udev are executed, the /dev directory is
> empty of devices. This is why the "null" device is no longer used to
> redirect messages from sysinit actions.
>
> The kernel compilation code is improved to only enable devtmpfs in the
> configuration when the devtmpfs method is used. udev/mdev do not
> require devtmpfs, only tmpfs.
>
> Finally, the S10udev startup script is simplified, as it handled
> unnecessary things: mount sysfs, mount a tmpfs filesystem in /dev/,
> etc.
>
> Signed-off-by: Thomas Petazzoni<thomas.petazzoni@free-electrons.com>

Hi Thomas/Peter,

What is the status of this patch? Will it or something similar get 
merged this development cycle. I'm looking to update to a newer 
buildroot version internally and I'll either need this patch or 
something I've written myself and would rather stay in sync with upstream.

Thanks
Will

-- 
------------------------------------------------------------------------
Will Wagner                                     will_wagner at carallon.com
Development Manager                      Office Tel: +44 (0)20 7371 2032
Carallon Ltd, Studio G20, Shepherds Building, Rockley Rd, London W14 0DA
------------------------------------------------------------------------

  parent reply	other threads:[~2011-03-07 18:52 UTC|newest]

Thread overview: 84+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-05 20:52 [Buildroot] [pull request] Pull request for branch for-2011.02/boards-cleanup Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 01/55] defconfigs: keep only one defconfig per board Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 02/55] Remove unused Atmel-specific mirror definitions Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 03/55] Update defconfigs after Atmel mirror related options removal Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 04/55] Remove completely useless set of Makefiles specific to Atmel Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 05/55] Remove useless target/device/mips Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 06/55] Move Config.in.mirrors out of target/device Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 07/55] Use the new BR2_ROOTFS_SKELETON_CUSTOM options Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 08/55] Remove mini device table, it isn't used Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 09/55] Stop referencing the crazy target/device stuff Thomas Petazzoni
2010-12-06  7:35   ` Thomas De Schampheleire
2010-12-06 19:43     ` Thomas Petazzoni
2010-12-07  7:26       ` Thomas De Schampheleire
2010-12-07 20:18         ` Thomas Petazzoni
2010-12-08  6:57           ` Thomas De Schampheleire
2010-12-05 20:52 ` [Buildroot] [PATCH 10/55] Remove all Config.in/Makefile.in files in target/device Thomas Petazzoni
     [not found]   ` <522C1DF17AF50042AD8AE87F7887BD3D01E0B5DDE7@exch.hq.tensilica.com>
2010-12-06 21:02     ` Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 11/55] Remove Busybox skeleton from target/device/Atmel Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 12/55] Remove crazy set of empty directories Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 13/55] Re-add target/generic/Config.in options to menuconfig Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 14/55] documentation: Update to explain how board support works Thomas Petazzoni
2010-12-10  6:46   ` [Buildroot] skeleton updates Steve Calfee
2010-12-10 14:23     ` Heiko Zuerker
2010-12-10 16:34       ` Steve Calfee
2010-12-10 16:55         ` Heiko Zuerker
2010-12-11  4:37   ` [Buildroot] [PATCH 14/55] documentation: Update to explain how board support works Steve Calfee
2010-12-11 10:05     ` Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 15/55] at91bootstrap: switch to the official version Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 16/55] at91bootstrap: rename config options for consistency Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 17/55] board: update and minify at91sam9263ek_defconfig Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 18/55] board: update and minify at91sam9261ek_defconfig Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 19/55] board: update and minify at91sam9g20dfc_defconfig Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 20/55] at91bootstrap: no board name check when 'make source' is used Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 21/55] dependencies: add unzip Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 22/55] u-boot: add U-Boot 2010.09 Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 23/55] barebox: bump Barebox to 2010.11 Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 24/55] board: minify integrator926_defconfig Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 25/55] board: remove integrator926_huge_defconfig Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 26/55] Remove useless kernel config files for integrator926 Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 27/55] board: remove i386/i686_defconfig Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 28/55] Minify arm_toolchain_defconfig Thomas Petazzoni
2010-12-05 20:53 ` [Buildroot] [PATCH 29/55] Minify arm_nptl_toolchain_defconfig Thomas Petazzoni
2010-12-05 20:53 ` [Buildroot] [PATCH 30/55] board: simplify atngw100 support Thomas Petazzoni
2010-12-05 20:53 ` [Buildroot] [PATCH 31/55] board: simplify kb9202 board Thomas Petazzoni
2010-12-05 20:53 ` [Buildroot] [PATCH 32/55] board: update and minify at91rm9200df_defconfig Thomas Petazzoni
2010-12-05 20:53 ` [Buildroot] [PATCH 33/55] board: update and minify at91sam9260dfc_defconfig Thomas Petazzoni
2010-12-05 20:53 ` [Buildroot] [PATCH 34/55] board: remove support for at91sam9260pf Thomas Petazzoni
2010-12-05 20:53 ` [Buildroot] [PATCH 35/55] board: update and minimize atstk100x_defconfig Thomas Petazzoni
2010-12-05 20:53 ` [Buildroot] [PATCH 36/55] board: remove atstk1005_defconfig Thomas Petazzoni
2010-12-05 20:53 ` [Buildroot] [PATCH 37/55] board: remove Valka v100sc2 Thomas Petazzoni
2010-12-05 20:53 ` [Buildroot] [PATCH 38/55] Remove the few remaining unused Atmel-specific bits Thomas Petazzoni
2010-12-05 20:53 ` [Buildroot] [PATCH 39/55] board: add Qemu Versatile defconfig Thomas Petazzoni
2010-12-05 20:53 ` [Buildroot] [PATCH 40/55] board: add support for Mini 2440 Thomas Petazzoni
2010-12-05 20:53 ` [Buildroot] [PATCH 41/55] board: add new Qemu x86 configuration file Thomas Petazzoni
2010-12-05 20:53 ` [Buildroot] [PATCH 42/55] u-boot: add CROSS_COMPILE/ARCH when building host tools Thomas Petazzoni
2010-12-05 20:53 ` [Buildroot] [PATCH 43/55] Free text field for serial port configuration Thomas Petazzoni
2010-12-05 20:53 ` [Buildroot] [PATCH 44/55] Add network scripting folders to fs/skeleton Thomas Petazzoni
2010-12-16 14:16   ` Peter Korsgaard
2010-12-05 20:53 ` [Buildroot] [PATCH 45/55] Create menu entry to select device creation method Thomas Petazzoni
2010-12-16 14:26   ` Peter Korsgaard
2010-12-05 20:53 ` [Buildroot] [PATCH 46/55] linux: Import minimal defconfigs as defconfigs Thomas Petazzoni
2010-12-05 20:53 ` [Buildroot] [PATCH 47/55] linux: support a space-separated list of patches Thomas Petazzoni
2010-12-16 21:34   ` Peter Korsgaard
2010-12-16 22:21     ` Mike Frysinger
2010-12-17  9:41       ` Peter Korsgaard
2010-12-17 13:35         ` Mike Frysinger
2010-12-05 20:53 ` [Buildroot] [PATCH 48/55] linux: always enable support for tmpfs in the kernel Thomas Petazzoni
2010-12-17 15:43   ` Peter Korsgaard
2010-12-05 20:53 ` [Buildroot] [PATCH 49/55] Improve handling of mdev/udev Thomas Petazzoni
2010-12-17 15:51   ` Peter Korsgaard
2011-03-07 18:52   ` William Wagner [this message]
2011-03-07 19:32     ` Thomas Petazzoni
2010-12-05 20:53 ` [Buildroot] [PATCH 50/55] xtensa: remove unused and useless skeleton patch Thomas Petazzoni
2010-12-06  1:08   ` Marc Gauthier
2010-12-06 19:48     ` Thomas Petazzoni
2010-12-08  5:45       ` Marc Gauthier
2010-12-06  1:22   ` Marc Gauthier
2010-12-05 20:53 ` [Buildroot] [PATCH 51/55] board: Add Qemu SH4 r2d configuration Thomas Petazzoni
2010-12-05 20:53 ` [Buildroot] [PATCH 52/55] linux: add support for ELF vmlinux image Thomas Petazzoni
2010-12-05 20:53 ` [Buildroot] [PATCH 53/55] board: Add a Qemu PPC g3beige board Thomas Petazzoni
2010-12-05 20:53 ` [Buildroot] [PATCH 54/55] board: Add a Qemu mipsel Malta board Thomas Petazzoni
2010-12-05 20:53 ` [Buildroot] [PATCH 55/55] linux: add KERNEL_ARCH_PATH to fix x86-specific issue Thomas Petazzoni
2010-12-17 16:01 ` [Buildroot] [pull request] Pull request for branch for-2011.02/boards-cleanup Peter Korsgaard
2010-12-18 16:55   ` Thomas Petazzoni

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=4D752973.3090004@carallon.com \
    --to=will_wagner@carallon.com \
    --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