All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Korsgaard <jacmet@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 45/55] Create menu entry to select device creation method
Date: Thu, 16 Dec 2010 15:26:51 +0100	[thread overview]
Message-ID: <87r5dhhjys.fsf@macbook.be.48ers.dk> (raw)
In-Reply-To: <d166de76db4ed6fb2616a4dcc262694139b072e9.1291582352.git.thomas.petazzoni@free-electrons.com> (Thomas Petazzoni's message of "Sun, 5 Dec 2010 21:53:16 +0100")

>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:

 Thomas> From: Yegor Yefremov <yegor_sub1@visionsystems.de>
 Thomas> Four methods for the creation of device files in /dev are now
 Thomas> proposed:

 Thomas>  - static method uses device table as before
 Thomas>  - devtmpfs method enables this feature in kernel
 Thomas>  - mdev method adds mdev starting script to the file system
 Thomas>     and selects mdev itself for installation
 Thomas>  - udev method selects udev for installation

 Thomas> All dynamic methods are based on devtmpfs, so one doesn't need to care
 Thomas> about /dev folder.

 Thomas>  config BR2_ROOTFS_DEVICE_TABLE
 Thomas> -       string "Path to the device table"
 Thomas> -       default "target/generic/device_table.txt"
 Thomas> -       help
 Thomas> -         Specify the location of a device table, that will be passed
 Thomas> -         to the makedevs utility to create all the special device
 Thomas> -         files in the target filesystem.
 Thomas> +	string "Path to the device table"
 Thomas> +	depends on BR2_ROOTFS_DEVICE_CREATION_STATIC
 Thomas> +	default "target/generic/device_table.txt"
 Thomas> +	help
 Thomas> +	  Specify the location of a device table, that will be passed
 Thomas> +	  to the makedevs utility to create all the special device
 Thomas> +	  files in the target filesystem.
 
Like mentioned before, I think we should still use a (smaller)
device_table.txt for stuff using devtmpfs for busybox/passwd/shadow
permissions.

Devtmpfs also gets mounted on top of the rootfs, so it shadows the
content of /dev, which means we'll have to add a:

null::sysinit:/bin/mkdir -p /dev/pts

To the inittab, or devpts stuff like dropbear will fail.

 Thomas> diff --git a/package/busybox/busybox.mk b/package/busybox/busybox.mk
 Thomas> index b7f4740..d4b04a9 100644
 Thomas> --- a/package/busybox/busybox.mk
 Thomas> +++ b/package/busybox/busybox.mk
 Thomas> @@ -20,6 +20,19 @@ ifndef BUSYBOX_CONFIG_FILE
 Thomas>  	BUSYBOX_CONFIG_FILE = $(call qstrip,$(BR2_PACKAGE_BUSYBOX_CONFIG))
 Thomas>  endif
 
 Thomas> +# If mdev will be used for device creation enable it and copy S10mdev to /etc/init.d
 Thomas> +ifeq ($(BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV),y)
 Thomas> +define BUSYBOX_INSTALL_MDEV_SCRIPT
 Thomas> +	install -m 0755 package/busybox/S10mdev $(TARGET_DIR)/etc/init.d
 Thomas> +endef
 Thomas> +define BUSYBOX_SET_MDEV
 Thomas> +	$(call KCONFIG_ENABLE_OPT,CONFIG_MDEV,$(BUSYBOX_BUILD_CONFIG))
 Thomas> +	$(call KCONFIG_ENABLE_OPT,CONFIG_FEATURE_MDEV_CONF,$(BUSYBOX_BUILD_CONFIG))
 Thomas> +	$(call KCONFIG_ENABLE_OPT,CONFIG_FEATURE_MDEV_EXEC,$(BUSYBOX_BUILD_CONFIG))
 Thomas> +	$(call KCONFIG_ENABLE_OPT,CONFIG_FEATURE_MDEV_LOAD_FIRMWARE,$(BUSYBOX_BUILD_CONFIG))

I would prefer to keep these overrides to a strict minimum - As an
example, I've used mdev in the past without firmware and exec support.

-- 
Bye, Peter Korsgaard

  reply	other threads:[~2010-12-16 14:26 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 [this message]
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
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=87r5dhhjys.fsf@macbook.be.48ers.dk \
    --to=jacmet@uclibc.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.