From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 3092DE00916; Wed, 7 Jan 2015 06:58:51 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [192.35.17.2 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from thoth.sbs.de (thoth.sbs.de [192.35.17.2]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 80FAEE008E5 for ; Wed, 7 Jan 2015 06:58:48 -0800 (PST) Received: from mail1.siemens.de (localhost [127.0.0.1]) by thoth.sbs.de (8.14.3/8.14.3) with ESMTP id t07EwlU0018129 for ; Wed, 7 Jan 2015 15:58:47 +0100 Received: from localhost.localdomain (MD159NTC.ww002.siemens.net [139.16.79.114]) by mail1.siemens.de (8.14.3/8.14.3) with ESMTP id t07EwfpL014325; Wed, 7 Jan 2015 15:58:47 +0100 From: Pascal Bach To: yocto@yoctoproject.org Date: Wed, 7 Jan 2015 15:58:24 +0100 Message-Id: <1420642704-1482-2-git-send-email-pascal.bach@siemens.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1420642704-1482-1-git-send-email-pascal.bach@siemens.com> References: <1420642704-1482-1-git-send-email-pascal.bach@siemens.com> Subject: [yocto-docs][PATCH 2/2] dev-manual: Add section about /dev population X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jan 2015 14:58:51 -0000 Signed-off-by: Pascal Bach --- .../dev-manual/dev-manual-common-tasks.xml | 104 ++++++++++++++++++++ 1 file changed, 104 insertions(+) diff --git a/documentation/dev-manual/dev-manual-common-tasks.xml b/documentation/dev-manual/dev-manual-common-tasks.xml index 17d725b..9072586 100644 --- a/documentation/dev-manual/dev-manual-common-tasks.xml +++ b/documentation/dev-manual/dev-manual-common-tasks.xml @@ -7582,6 +7582,110 @@ Gateways via their Web Interfaces" +
+ Selecting a Device Manager + + + Yocto provides multiple ways to manage /dev + + + Persistent and pre populated /dev: + in this case the /dev directory is persistent + and the required device nodes are created at build time. + + + + Use devtmps with a device manager: + in this case the /dev directory is provided + by the kernel as an in memory file system and is automatically + populated by the kernel at runtime. Additional configuration of + device nodes is done in user space by a device manager like + udev or busybox-mdev. + + + + +
+ Use Persistent and pre-populated <filename>/dev</filename> + + + To use the static method for device population the variable + USE_DEVFS + needs to be set to 0. + + + USE_DEVFS = "0" + + + + + The content of the resulting /dev directory + is defined in a Device Table file. The device table to use is defined by the variable + IMAGE_DEVICE_TABLES and should be set + in the MACHINE, + DISTRO + or local.conf configuration file. + + + + If nothing is defined the default device_table-minimal.txt is used. + + + + The population is handled by the makedevs utility + during image creation. + + + IMAGE_DEVICE_TABLES = "device_table-mymachine.txt" + + + +
+ +
+ Use <filename>devtmpfs</filename> and a device manager + + + To use the dynamic method for device population the variable + USE_DEVFS + needs to be set to 1. This is the default. + + + USE_DEVFS = "1" + + + This way the resulting /dev is populated by the kernel + using devtmpfs. Make sure the corresponding + kernel configuration variable CONFIG_DEVTMPFS is set + when building a linux kernel. + + + + All devices created by devtmpfs will be + owned by root and have permissions 0600. + + To have more control over the device nodes a device manager like + udev or busybox-mdev + can be used. + + The device manager to use is defined by the variable + VIRTUAL-RUNTIME_dev_manager and should be set + in the MACHINE, + DISTRO + or local.conf configuration file. + + + + VIRTUAL-RUNTIME_dev_manager = "udev" + + # Some alternative values + # VIRTUAL-RUNTIME_dev_manager = "busybox-mdev" + # VIRTUAL-RUNTIME_dev_manager = "systemd" + + +
+
+
Using an External SCM -- 1.7.10.4