From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id E6B94E008EC; Wed, 7 Jan 2015 07:15:11 -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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from astoria.ccjclearline.com (astoria.ccjclearline.com [64.235.106.9]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id A02FFE0089B for ; Wed, 7 Jan 2015 07:15:04 -0800 (PST) Received: from [70.30.87.145] (port=49877 helo=crashcourse.ca) by astoria.ccjclearline.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.80) (envelope-from ) id 1Y8sK5-0000vF-KA; Wed, 07 Jan 2015 10:15:01 -0500 Date: Wed, 7 Jan 2015 10:15:01 -0500 (EST) From: "Robert P. J. Day" X-X-Sender: rpjday@localhost To: Pascal Bach In-Reply-To: <1420642704-1482-2-git-send-email-pascal.bach@siemens.com> Message-ID: References: <1420642704-1482-1-git-send-email-pascal.bach@siemens.com> <1420642704-1482-2-git-send-email-pascal.bach@siemens.com> User-Agent: Alpine 2.11 (LFD 23 2013-08-11) MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - astoria.ccjclearline.com X-AntiAbuse: Original Domain - yoctoproject.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - crashcourse.ca X-Source: X-Source-Args: X-Source-Dir: Cc: yocto@yoctoproject.org 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: Wed, 07 Jan 2015 15:15:12 -0000 Content-Type: TEXT/PLAIN; charset=US-ASCII On Wed, 7 Jan 2015, Pascal Bach wrote: > 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 add a colon at the end of that line. > + > + > + Persistent and pre populated /dev: ^ hyphenate > + in this case the /dev directory is persistent > + and the required device nodes are created at build time. > + > + > + > + Use devtmps with a device manager: ^^^^^^^ devtmpfs > + in this case the /dev directory is provided > + by the kernel as an in memory file system and is automatically ^ hyphenate > + 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" > + > + > + > +
> + > +
^^^^^^^ devtmpfs > + 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 i would add the word "directory" after /dev above. > + using devtmpfs. Make sure the corresponding > + kernel configuration variable CONFIG_DEVTMPFS is set > + when building a linux kernel. ^^^^^ Linux (capitalize) > + > + > + > + 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 rday -- ======================================================================== Robert P. J. Day Ottawa, Ontario, CANADA http://crashcourse.ca Twitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday ========================================================================