From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id E3D96E00948; Fri, 16 Jan 2015 16:05:07 -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.55.52.93 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 33CDAE002F9 for ; Fri, 16 Jan 2015 16:05:02 -0800 (PST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 16 Jan 2015 16:05:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,413,1418112000"; d="scan'208";a="663208330" Received: from orsmsx105.amr.corp.intel.com ([10.22.225.132]) by fmsmga002.fm.intel.com with ESMTP; 16 Jan 2015 16:05:00 -0800 Received: from orsmsx101.amr.corp.intel.com ([169.254.8.192]) by ORSMSX105.amr.corp.intel.com ([169.254.4.239]) with mapi id 14.03.0195.001; Fri, 16 Jan 2015 16:04:59 -0800 From: "Rifenbark, Scott M" To: Pascal Bach , "yocto@yoctoproject.org" Thread-Topic: [yocto] [yocto-docs][PATCH 2/2] dev-manual: Add section about /dev population Thread-Index: AQHQKoqtLm9QkZvLRku/KVMMKSynbZzDfQog Date: Sat, 17 Jan 2015 00:04:59 +0000 Message-ID: <41DEA4B02DBDEF40A0F3B6D0DDB1237988E9CA05@ORSMSX101.amr.corp.intel.com> References: <1420642704-1482-1-git-send-email-pascal.bach@siemens.com> <1420642704-1482-2-git-send-email-pascal.bach@siemens.com> In-Reply-To: <1420642704-1482-2-git-send-email-pascal.bach@siemens.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.22.254.139] MIME-Version: 1.0 Subject: Re: [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: Sat, 17 Jan 2015 00:05:07 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Pascal,=20 I have applied this patch with some editing. Also, applied the patch that = added the USE_DEVFS variable to the ref-manual. Thanks, Scott >-----Original Message----- >From: yocto-bounces@yoctoproject.org [mailto:yocto- >bounces@yoctoproject.org] On Behalf Of Pascal Bach >Sent: Wednesday, January 07, 2015 6:58 AM >To: yocto@yoctoproject.org >Subject: [yocto] [yocto-docs][PATCH 2/2] dev-manual: Add section about >/dev population > >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 p= ersistent >+ and the required device nodes are created at build time. >+ >+ >+ >+ Use devtmps with a device >manager: >+ in this case the /dev directory is p= rovided >+ by the kernel as an in memory file system and is automati= cally >+ populated by the kernel at runtime. Additional configurat= ion of >+ device nodes is done in user space by a device manager li= ke >+ udev or busybox- >mdev. >+ >+ >+ >+ >+
>+ Use Persistent and pre-populated ><filename>/dev</filename> >+ >+ >+ To use the static method for device population the variab= le >+ USE_DEVFS'>USE_DEVFS >+ needs to be set to 0. >+ >+ >+ USE_DEVFS =3D "0" >+ >+ >+ >+ >+ The content of the resulting /dev di= rectory >+ is defined in a Device Table file. The device table to us= e is defined by >the variable >+ IMAGE_DEVICE_TABLES'>IMAGE_DEVICE_TABLESink> and should be set >+ in the MACHINE'>MACHINE, >+ DISTRO'>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 =3D "device_table-mymachine.txt" >+ >+ >+ >+
>+ >+
>+ Use <filename>devtmpfs</filename> and a device >manager >+ >+ >+ To use the dynamic method for device population the varia= ble >+ USE_DEVFS'>USE_DEVFS >+ needs to be set to 1. This is the default. >+ >+ >+ USE_DEVFS =3D "1" >+ >+ >+ This way the resulting /dev is popul= ated 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 manag= er 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'>MACHINE, >+ DISTRO'>DISTRO >+ or local.conf configuration file. >+ >+ >+ >+ VIRTUAL-RUNTIME_dev_manager =3D "udev" >+ >+ # Some alternative values >+ # VIRTUAL-RUNTIME_dev_manager =3D "busybox-mdev" >+ # VIRTUAL-RUNTIME_dev_manager =3D "systemd" >+ >+ >+
>+
>+ >
> Using an External SCM > >-- >1.7.10.4 > >-- >_______________________________________________ >yocto mailing list >yocto@yoctoproject.org >https://lists.yoctoproject.org/listinfo/yocto