All of lore.kernel.org
 help / color / mirror / Atom feed
* [pull-sys940x 1/4] meta-intel: Add Inforce SYS940x BSP
  2012-02-01 22:26 [pull-sys940x 0/4][meta-intel] Inforce SYS940X BSP (Intel Atom E6xx + EG20T) Darren Hart
@ 2012-02-01 22:26 ` Darren Hart
  2012-02-01 22:37   ` Joshua Lock
  2012-02-01 22:26 ` [pull-sys940x 2/4] ranpwd: Add ranpwd recipe Darren Hart
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 32+ messages in thread
From: Darren Hart @ 2012-02-01 22:26 UTC (permalink / raw)
  To: Tom Zanussi, Yocto Project

The Inforce SYS940x-ECX Developer-Ready Reference Platform features:
o Intel Atom E6xx (0.6-1.6 GHz)
o Up to 1GB on-board DDR2
o Intel Platform Controller Hub EG20T
o VGA,LVDS
o HD Audio
o SD Card
o Dual SATA
o Mini-PCIe

http://www.inforcecomputing.com/SYS940X_ECX.html

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
---
 meta-sys940x/COPYING.MIT                           |   17 +++
 meta-sys940x/README                                |  140 ++++++++++++++++++++
 meta-sys940x/README.sources                        |   18 +++
 meta-sys940x/conf/layer.conf                       |   10 ++
 meta-sys940x/conf/machine/sys940x-noemgd.conf      |   19 +++
 meta-sys940x/conf/machine/sys940x.conf             |   23 ++++
 .../formfactor/sys940x-noemgd/machconfig           |    3 +
 .../formfactor/formfactor/sys940x/machconfig       |    3 +
 .../recipes-bsp/formfactor/formfactor_0.0.bbappend |    3 +
 .../xserver-xf86-config/sys940x-noemgd/xorg.conf   |   26 ++++
 .../xserver-xf86-config/sys940x/xorg.conf          |   48 +++++++
 .../xorg-xserver/xserver-xf86-config_0.1.bbappend  |    3 +
 .../linux/linux-yocto-rt_3.0.bbappend              |   14 ++
 .../recipes-kernel/linux/linux-yocto_3.0.bbappend  |   17 +++
 14 files changed, 344 insertions(+), 0 deletions(-)
 create mode 100644 meta-sys940x/COPYING.MIT
 create mode 100644 meta-sys940x/README
 create mode 100644 meta-sys940x/README.sources
 create mode 100644 meta-sys940x/binary/.gitignore
 create mode 100644 meta-sys940x/conf/layer.conf
 create mode 100644 meta-sys940x/conf/machine/sys940x-noemgd.conf
 create mode 100644 meta-sys940x/conf/machine/sys940x.conf
 create mode 100644 meta-sys940x/recipes-bsp/formfactor/formfactor/sys940x-noemgd/machconfig
 create mode 100644 meta-sys940x/recipes-bsp/formfactor/formfactor/sys940x/machconfig
 create mode 100644 meta-sys940x/recipes-bsp/formfactor/formfactor_0.0.bbappend
 create mode 100644 meta-sys940x/recipes-graphics/xorg-xserver/xserver-xf86-config/sys940x-noemgd/xorg.conf
 create mode 100644 meta-sys940x/recipes-graphics/xorg-xserver/xserver-xf86-config/sys940x/xorg.conf
 create mode 100644 meta-sys940x/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend
 create mode 100644 meta-sys940x/recipes-kernel/linux/linux-yocto-rt_3.0.bbappend
 create mode 100644 meta-sys940x/recipes-kernel/linux/linux-yocto_3.0.bbappend

diff --git a/meta-sys940x/COPYING.MIT b/meta-sys940x/COPYING.MIT
new file mode 100644
index 0000000..fb950dc
--- /dev/null
+++ b/meta-sys940x/COPYING.MIT
@@ -0,0 +1,17 @@
+Permission is hereby granted, free of charge, to any person obtaining a copy 
+of this software and associated documentation files (the "Software"), to deal 
+in the Software without restriction, including without limitation the rights 
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 
+copies of the Software, and to permit persons to whom the Software is 
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in 
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
+THE SOFTWARE.
diff --git a/meta-sys940x/README b/meta-sys940x/README
new file mode 100644
index 0000000..e349008
--- /dev/null
+++ b/meta-sys940x/README
@@ -0,0 +1,140 @@
+This README file contains information on building the meta-sys940x BSP
+layer, and booting the images contained in the /binary directory.
+Please see the corresponding sections below for details.
+
+The Inforce SYS940x platform consists of the Intel Atom E6xx
+processor, plus the Intel EG20T Platform Controller Hub (Tunnel Creek
++ Topcliff).
+
+It also supports the E6xx embedded on-chip graphics via the Intel
+Embedded Media and Graphics Driver (EMGD) 1.10 Driver.
+
+
+Dependencies
+============
+
+This layer depends on:
+
+  URI: git://git.openembedded.org/bitbake
+  branch: master
+
+  URI: git://git.openembedded.org/openembedded-core
+  layers: meta
+  branch: master
+
+  URI: git://git.yoctoproject.org/meta-intel
+  layers: intel
+  branch: master
+
+
+Patches
+=======
+
+Please submit any patches against this BSP to the Yocto mailing list
+(yocto@yoctoproject.org) and cc: the maintainer:
+
+Maintainer: Darren Hart <dvhart@linux.intel.com>
+
+Please see the meta-intel/MAINTAINERS file for more details.
+
+
+Table of Contents
+=================
+
+  I. Building the meta-sys940x BSP layer
+ II. Booting the images in /binary
+
+
+I. Building the meta-sys940x BSP layer
+===================================
+
+In order to build an image with BSP support for a given release, you
+need to download the corresponding BSP tarball from the 'Board Support
+Package (BSP) Downloads' page of the Yocto Project website.
+
+Having done that, and assuming you extracted the BSP tarball contents
+at the top-level of your yocto build tree, you can build an sys940x image
+by adding the location of the meta-sys940x layer to bblayers.conf, along
+with the meta-intel layer itself (to access common metadata shared
+between BSPs) e.g.:
+
+  yocto/meta-intel \
+  yocto/meta-intel/meta-sys940x \
+
+The meta-sys940x layer contains support for two different machine
+configurations. These configurations are identical except for the fact
+that the one prefixed with 'sys940x' makes use of the Intel-proprietary
+EMGD 1.10 graphics driver, while the one prefixed with 'sys940x-noemgd'
+does not.
+
+If you want to enable the layer that supports EMGD graphics add the
+following to the local.conf file:
+
+  MACHINE ?= "sys940x"
+
+The 'sys940x' machine includes the emgd-driver-bin package, which has a
+proprietary license that must be whitelisted by adding the string
+"license_emgd-driver-bin_1.10" to the LICENSE_FLAGS_WHITELIST variable
+in your local.conf.  For example:
+
+  LICENSE_FLAGS_WHITELIST = "license_emgd-driver-bin_1.10"
+
+If you want to enable the layer that does not support EMGD graphics
+add the following to the local.conf file:
+
+  MACHINE ?= "sys940x-noemgd"
+
+You should then be able to build an sys940x image as such:
+
+  $ source oe-init-build-env
+  $ bitbake core-image-sato
+
+At the end of a successful build, you should have a live image that
+you can boot from a USB flash drive (see instructions on how to do
+that below, in the section 'Booting the images from /binary').
+
+As an alternative to downloading the BSP tarball, you can also work
+directly from the meta-intel git repository.  For each BSP in the
+'meta-intel' repository, there are multiple branches, one
+corresponding to each major release starting with 'laverne' (0.90), in
+addition to the latest code which tracks the current master (note that
+not all BSPs are present in every release).  Instead of extracting a
+BSP tarball at the top level of your yocto build tree, you can
+equivalently check out the appropriate branch from the meta-intel
+repository at the same location.
+
+
+II. Booting the images in /binary
+=================================
+
+This BSP contains bootable live images, which can be used to directly
+boot Yocto off of a USB flash drive.
+
+Under Linux, insert a USB flash drive.  Assuming the USB flash drive
+takes device /dev/sdf, use dd to copy the live image to it.  For
+example:
+
+# dd if=core-image-sato-sys940x-20101207053738.hddimg of=/dev/sdf
+# sync
+# eject /dev/sdf
+
+This should give you a bootable USB flash device.  Insert the device
+into a bootable USB socket on the target, and power on.  This should
+result in a system booted to the Sato graphical desktop.
+
+If you want a terminal, use the arrows at the top of the UI to move to
+different pages of available applications, one of which is named
+'Terminal'.  Clicking that should give you a root terminal.
+
+If you want to ssh into the system, you can use the root terminal to
+ifconfig the IP address and use that to ssh in.  The root password is
+empty, so to log in type 'root' for the user name and hit 'Enter' at
+the Password prompt: and you should be in.
+
+----
+
+If you find you're getting corrupt images on the USB (it doesn't show
+the syslinux boot: prompt, or the boot: prompt contains strange
+characters), try doing this first:
+
+# dd if=/dev/zero of=/dev/sdf bs=1M count=512
diff --git a/meta-sys940x/README.sources b/meta-sys940x/README.sources
new file mode 100644
index 0000000..c6cab4d
--- /dev/null
+++ b/meta-sys940x/README.sources
@@ -0,0 +1,18 @@
+The sources for the packages comprising the images shipped with this
+BSP can be found at the following location:
+
+http://downloads.yoctoproject.org/mirror/sources/
+
+The metadata used to generate the images shipped with this BSP, in
+addition to the code contained in this BSP, can be found at the
+following location:
+
+# FIXME: update the following link after the Yocto Project 1.2 release
+http://www.yoctoproject.org/downloads/yocto-1.2/poky-RELEASENAME-6.0.tar.bz2
+
+The metadata used to generate the images shipped with this BSP, in
+addition to the code contained in this BSP, can also be found at the
+following locations:
+
+git://git.yoctoproject.org/poky.git
+git://git.yoctoproject.org/meta-intel
diff --git a/meta-sys940x/binary/.gitignore b/meta-sys940x/binary/.gitignore
new file mode 100644
index 0000000..e69de29
diff --git a/meta-sys940x/conf/layer.conf b/meta-sys940x/conf/layer.conf
new file mode 100644
index 0000000..459c710
--- /dev/null
+++ b/meta-sys940x/conf/layer.conf
@@ -0,0 +1,10 @@
+# We have a conf and classes directory, add to BBPATH
+BBPATH := "${BBPATH}:${LAYERDIR}"
+
+# We have a recipes directory, add to BBFILES
+BBFILES := "${BBFILES} ${LAYERDIR}/recipes-*/*/*.bb \
+	${LAYERDIR}/recipes-*/*/*.bbappend"
+
+BBFILE_COLLECTIONS += "sys940x"
+BBFILE_PATTERN_sys940x := "^${LAYERDIR}/"
+BBFILE_PRIORITY_sys940x = "6"
diff --git a/meta-sys940x/conf/machine/sys940x-noemgd.conf b/meta-sys940x/conf/machine/sys940x-noemgd.conf
new file mode 100644
index 0000000..8a1c20f
--- /dev/null
+++ b/meta-sys940x/conf/machine/sys940x-noemgd.conf
@@ -0,0 +1,19 @@
+#@TYPE: Machine
+#@NAME: sys940x
+
+#@DESCRIPTION: Machine configuration for Inforce SYS940X systems
+# i.e. E660 + EG20T
+
+include conf/machine/include/tune-atom.inc
+include conf/machine/include/ia32-base.inc
+
+# Add "pcbios" if you have a non-efi version of the firmware
+MACHINE_FEATURES += "efi pcbios"
+
+XSERVER ?= "${XSERVER_IA32_BASE} \
+           ${XSERVER_IA32_EXT} \
+           ${XSERVER_IA32_VESA} \
+           "
+
+SERIAL_CONSOLE = "115200 ttyS0"
+APPEND += "console=ttyS0,115200 console=tty0"
diff --git a/meta-sys940x/conf/machine/sys940x.conf b/meta-sys940x/conf/machine/sys940x.conf
new file mode 100644
index 0000000..ceb6e0f
--- /dev/null
+++ b/meta-sys940x/conf/machine/sys940x.conf
@@ -0,0 +1,23 @@
+#@TYPE: Machine
+#@NAME: sys940x
+
+#@DESCRIPTION: Machine configuration for Inforce SYS940x systems
+# i.e. E660 + EG20T
+
+include conf/machine/include/tune-atom.inc
+include conf/machine/include/ia32-base.inc
+
+# Add "pcbios" if you have a non-efi version of the firmware
+MACHINE_FEATURES += "efi pcbios"
+
+XSERVER ?= "${XSERVER_IA32_BASE} \
+           ${XSERVER_IA32_EXT} \
+           ${XSERVER_IA32_EMGD} \
+           "
+
+PREFERRED_VERSION_xserver-xorg ?= "1.9.3"
+PREFERRED_VERSION_mesa-dri ?= "7.11"
+PREFERRED_VERSION_emgd-driver-bin ?= "1.8"
+
+SERIAL_CONSOLE = "115200 ttyS0"
+APPEND += "console=ttyS0,115200 console=tty0"
diff --git a/meta-sys940x/recipes-bsp/formfactor/formfactor/sys940x-noemgd/machconfig b/meta-sys940x/recipes-bsp/formfactor/formfactor/sys940x-noemgd/machconfig
new file mode 100644
index 0000000..ffce012
--- /dev/null
+++ b/meta-sys940x/recipes-bsp/formfactor/formfactor/sys940x-noemgd/machconfig
@@ -0,0 +1,3 @@
+# Assume a USB mouse and keyboard are connected
+HAVE_TOUCHSCREEN=0
+HAVE_KEYBOARD=1
diff --git a/meta-sys940x/recipes-bsp/formfactor/formfactor/sys940x/machconfig b/meta-sys940x/recipes-bsp/formfactor/formfactor/sys940x/machconfig
new file mode 100644
index 0000000..ffce012
--- /dev/null
+++ b/meta-sys940x/recipes-bsp/formfactor/formfactor/sys940x/machconfig
@@ -0,0 +1,3 @@
+# Assume a USB mouse and keyboard are connected
+HAVE_TOUCHSCREEN=0
+HAVE_KEYBOARD=1
diff --git a/meta-sys940x/recipes-bsp/formfactor/formfactor_0.0.bbappend b/meta-sys940x/recipes-bsp/formfactor/formfactor_0.0.bbappend
new file mode 100644
index 0000000..54da0ff
--- /dev/null
+++ b/meta-sys940x/recipes-bsp/formfactor/formfactor_0.0.bbappend
@@ -0,0 +1,3 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+ 
+PRINC = "1"
diff --git a/meta-sys940x/recipes-graphics/xorg-xserver/xserver-xf86-config/sys940x-noemgd/xorg.conf b/meta-sys940x/recipes-graphics/xorg-xserver/xserver-xf86-config/sys940x-noemgd/xorg.conf
new file mode 100644
index 0000000..da4fc3c
--- /dev/null
+++ b/meta-sys940x/recipes-graphics/xorg-xserver/xserver-xf86-config/sys940x-noemgd/xorg.conf
@@ -0,0 +1,26 @@
+Section "Device"
+    Identifier	"Generic VESA"
+    Driver	"vesa"
+EndSection
+
+Section "Monitor"
+    Identifier    "Generic Monitor"
+    Option        "DPMS"
+EndSection
+
+Section "Screen"
+    Identifier    "Default Screen"
+    Device	  "Generic VESA"
+    Monitor       "Generic Monitor"
+    DefaultDepth  24
+EndSection
+
+Section "ServerLayout"
+    Identifier     "Default Layout"
+    Screen         "Default Screen"
+EndSection
+
+Section "ServerFlags"
+    Option        "DontZap"  "0"
+    Option        "AutoAddDevices"  "False"
+EndSection
diff --git a/meta-sys940x/recipes-graphics/xorg-xserver/xserver-xf86-config/sys940x/xorg.conf b/meta-sys940x/recipes-graphics/xorg-xserver/xserver-xf86-config/sys940x/xorg.conf
new file mode 100644
index 0000000..73736ac
--- /dev/null
+++ b/meta-sys940x/recipes-graphics/xorg-xserver/xserver-xf86-config/sys940x/xorg.conf
@@ -0,0 +1,48 @@
+##
+## X Config options generated from CED
+## x11 conf skeleton
+## DriverVer=
+##
+
+Section "Screen"
+    Identifier    "Screen0"
+    Device        "IntelEMGD-0"
+    Monitor       "Monitor0"
+    SubSection    "Display"
+    EndSubSection
+EndSection
+
+# Primary (First/only) display
+Section "Device"
+    Identifier "IntelEMGD-0"
+    Driver     "emgd"
+    VendorName "Intel(R) DEG"
+    BoardName  "Embedded Graphics"
+    BusID      "0:2:0"
+    Screen      0
+    Option     "PcfVersion"            "1792"
+    Option     "ConfigId"              "1"
+    Option     "ALL/1/name"                   "e6xx"
+    Option     "ALL/1/General/PortOrder"      "32400"
+    Option     "ALL/1/General/DisplayConfig"  "1"
+    Option     "ALL/1/General/DisplayDetect"  "1"
+    Option     "ALL/1/General/TuningWA" "1"
+    Option     "ALL/1/Port/4/General/name"           "lvds"
+    Option     "ALL/1/Port/4/General/EdidAvail"      "3"
+    Option     "ALL/1/Port/4/General/EdidNotAvail"   "1"
+    Option     "ALL/1/Port/4/General/Rotation"       "0"
+    Option     "ALL/1/Port/4/General/Edid"           "0"
+EndSection
+
+Section "ServerLayout"
+    Identifier     "Default Layout"
+    Screen 0       "Screen0" 0 0
+   # InputDevice    "Mouse0" "CorePointer"
+   # InputDevice    "Keyboard0" "CoreKeyboard"
+   # InputDevice    "DevInputMice" "SendCoreEvents"
+EndSection
+
+Section "ServerFlags"
+    Option        "DontZap"  "0"
+    Option        "AutoAddDevices"  "False"
+EndSection
diff --git a/meta-sys940x/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend b/meta-sys940x/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend
new file mode 100644
index 0000000..4b8d0e6
--- /dev/null
+++ b/meta-sys940x/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend
@@ -0,0 +1,3 @@
+THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
+FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}"], d)}:"
+
diff --git a/meta-sys940x/recipes-kernel/linux/linux-yocto-rt_3.0.bbappend b/meta-sys940x/recipes-kernel/linux/linux-yocto-rt_3.0.bbappend
new file mode 100644
index 0000000..5d3567d
--- /dev/null
+++ b/meta-sys940x/recipes-kernel/linux/linux-yocto-rt_3.0.bbappend
@@ -0,0 +1,14 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+COMPATIBLE_MACHINE_sys940x = "sys940x"
+KMACHINE_sys940x = "sys940x"
+KERNEL_FEATURES_append_sys940x += " cfg/smp.scc cfg/efi-ext.scc"
+
+COMPATIBLE_MACHINE_sys940x-noemgd = "sys940x-noemgd"
+KMACHINE_sys940x-noemgd = "sys940x"
+KERNEL_FEATURES_append_sys940x-noemgd += " cfg/smp.scc cfg/efi-ext.scc"
+
+# Update the following to use a different BSP branch or meta SRCREV
+#KBRANCH_sys940x = "yocto/standard/preempt-rt/base"
+#SRCREV_machine_pn-linux-yocto-rt_sys940x ?= XXXX
+#SRCREV_meta_pn-linux-yocto-rt_sys940x ?= XXXX
diff --git a/meta-sys940x/recipes-kernel/linux/linux-yocto_3.0.bbappend b/meta-sys940x/recipes-kernel/linux/linux-yocto_3.0.bbappend
new file mode 100644
index 0000000..1beb9c2
--- /dev/null
+++ b/meta-sys940x/recipes-kernel/linux/linux-yocto_3.0.bbappend
@@ -0,0 +1,17 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+
+COMPATIBLE_MACHINE_sys940x = "sys940x"
+KMACHINE_sys940x  = "sys940x"
+KBRANCH_sys940x = "yocto/standard/base"
+KERNEL_FEATURES_append_sys940x += " cfg/smp.scc cfg/efi-ext.scc"
+
+COMPATIBLE_MACHINE_sys940x-noemgd = "sys940x-noemgd"
+KMACHINE_sys940x-noemgd  = "sys940x"
+KBRANCH_sys940x-noemgd = "yocto/standard/base"
+KERNEL_FEATURES_append_sys940x-noemgd += " cfg/smp.scc cfg/efi-ext.scc"
+
+SRCREV_machine_pn-linux-yocto_sys940x ?= "5df0b4c2538399aed543133b3855f809adf08ab8"
+SRCREV_meta_pn-linux-yocto_sys940x ?= "c957dd0889bfec5aeb8d6b4ce82550d841cad987"
+SRCREV_machine_pn-linux-yocto_sys940x-noemgd ?= "5df0b4c2538399aed543133b3855f809adf08ab8"
+SRCREV_meta_pn-linux-yocto_sys940x-noemgd ?= "c957dd0889bfec5aeb8d6b4ce82550d841cad987"
-- 
1.7.6.5



^ permalink raw reply related	[flat|nested] 32+ messages in thread

* [pull-sys940x 0/4][meta-intel] Inforce SYS940X BSP (Intel Atom E6xx + EG20T)
@ 2012-02-01 22:26 Darren Hart
  2012-02-01 22:26 ` [pull-sys940x 1/4] meta-intel: Add Inforce SYS940x BSP Darren Hart
                   ` (3 more replies)
  0 siblings, 4 replies; 32+ messages in thread
From: Darren Hart @ 2012-02-01 22:26 UTC (permalink / raw)
  To: Tom Zanussi, Yocto Project; +Cc: Darren Hart

The following changes since commit c6d991cf83b3047419cc0076ea4ab1297b9cfb6d:

  meta-intel: update some kernel SRCREVs (2012-01-30 15:33:10 -0600)

are available in the git repository at:
  git://git.yoctoproject.org/meta-intel-contrib dvhart/sys940x
  http://git.yoctoproject.org/cgit.cgi/meta-intel-contrib/log/?h=dvhart/sys940x

Darren Hart (4):
  meta-intel: Add Inforce SYS940x BSP
  ranpwd: Add ranpwd recipe
  genmac: Replace RANDOM_MAC in network/interfaces with a randomly
    generated MAC
  netbase: Add interfaces with RANDOM_MAC for sys940x* machines

 meta-sys940x/COPYING.MIT                           |   17 +++
 meta-sys940x/README                                |  140 ++++++++++++++++++++
 meta-sys940x/README.sources                        |   18 +++
 meta-sys940x/conf/layer.conf                       |   10 ++
 meta-sys940x/conf/machine/sys940x-noemgd.conf      |   19 +++
 meta-sys940x/conf/machine/sys940x.conf             |   23 ++++
 .../formfactor/sys940x-noemgd/machconfig           |    3 +
 .../formfactor/formfactor/sys940x/machconfig       |    3 +
 .../recipes-bsp/formfactor/formfactor_0.0.bbappend |    3 +
 meta-sys940x/recipes-bsp/genmac/files/genmac       |   46 +++++++
 meta-sys940x/recipes-bsp/genmac/genmac.bb          |   30 ++++
 meta-sys940x/recipes-core/netbase/files/interfaces |   10 ++
 .../recipes-core/netbase/netbase_4.47.bbappend     |    3 +
 meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb |   23 ++++
 .../xserver-xf86-config/sys940x-noemgd/xorg.conf   |   26 ++++
 .../xserver-xf86-config/sys940x/xorg.conf          |   48 +++++++
 .../xorg-xserver/xserver-xf86-config_0.1.bbappend  |    3 +
 .../linux/linux-yocto-rt_3.0.bbappend              |   14 ++
 .../recipes-kernel/linux/linux-yocto_3.0.bbappend  |   17 +++
 19 files changed, 456 insertions(+), 0 deletions(-)
 create mode 100644 meta-sys940x/COPYING.MIT
 create mode 100644 meta-sys940x/README
 create mode 100644 meta-sys940x/README.sources
 create mode 100644 meta-sys940x/binary/.gitignore
 create mode 100644 meta-sys940x/conf/layer.conf
 create mode 100644 meta-sys940x/conf/machine/sys940x-noemgd.conf
 create mode 100644 meta-sys940x/conf/machine/sys940x.conf
 create mode 100644 meta-sys940x/recipes-bsp/formfactor/formfactor/sys940x-noemgd/machconfig
 create mode 100644 meta-sys940x/recipes-bsp/formfactor/formfactor/sys940x/machconfig
 create mode 100644 meta-sys940x/recipes-bsp/formfactor/formfactor_0.0.bbappend
 create mode 100644 meta-sys940x/recipes-bsp/genmac/files/genmac
 create mode 100644 meta-sys940x/recipes-bsp/genmac/genmac.bb
 create mode 100644 meta-sys940x/recipes-core/netbase/files/interfaces
 create mode 100644 meta-sys940x/recipes-core/netbase/netbase_4.47.bbappend
 create mode 100644 meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb
 create mode 100644 meta-sys940x/recipes-graphics/xorg-xserver/xserver-xf86-config/sys940x-noemgd/xorg.conf
 create mode 100644 meta-sys940x/recipes-graphics/xorg-xserver/xserver-xf86-config/sys940x/xorg.conf
 create mode 100644 meta-sys940x/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend
 create mode 100644 meta-sys940x/recipes-kernel/linux/linux-yocto-rt_3.0.bbappend
 create mode 100644 meta-sys940x/recipes-kernel/linux/linux-yocto_3.0.bbappend

-- 
1.7.6.5



^ permalink raw reply	[flat|nested] 32+ messages in thread

* [pull-sys940x 2/4] ranpwd: Add ranpwd recipe
  2012-02-01 22:26 [pull-sys940x 0/4][meta-intel] Inforce SYS940X BSP (Intel Atom E6xx + EG20T) Darren Hart
  2012-02-01 22:26 ` [pull-sys940x 1/4] meta-intel: Add Inforce SYS940x BSP Darren Hart
@ 2012-02-01 22:26 ` Darren Hart
  2012-02-01 22:40   ` Joshua Lock
  2012-02-01 22:26 ` [pull-sys940x 3/4] genmac: Replace RANDOM_MAC in network/interfaces with a randomly generated MAC Darren Hart
  2012-02-01 22:26 ` [pull-sys940x 4/4] netbase: Add interfaces with RANDOM_MAC for sys940x* machines Darren Hart
  3 siblings, 1 reply; 32+ messages in thread
From: Darren Hart @ 2012-02-01 22:26 UTC (permalink / raw)
  To: Tom Zanussi, Yocto Project

ranpwd is used to generate random strings of various types, including
passwords, UUIDs, and MAC addresses.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
---
 meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb |   23 ++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)
 create mode 100644 meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb

diff --git a/meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb b/meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb
new file mode 100644
index 0000000..66fcc26
--- /dev/null
+++ b/meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb
@@ -0,0 +1,23 @@
+DESCRIPTION = "Random password generator"
+#SECTION = "utilities"
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://ranpwd.c;beginline=1;endline=11;md5=0e8585e19117526efedfaeb50c345d7a"
+PR = "r0"
+
+inherit autotools
+
+SRC_URI = "git://git.zytor.com/utils/ranpwd.git"
+SRCREV = "b62aab579e288715b82d5575befaa2b8ff210c2b"
+
+S=${WORKDIR}/git
+
+do_configure_prepend () {
+	if [ ! -e acinclude.m4 -a -e aclocal.m4 ]; then
+		cp aclocal.m4 acinclude.m4
+	fi
+}
+
+do_install() {
+	install -d ${D}/${bindir}
+	install -m 0755 ${S}/ranpwd ${D}/${bindir}/ranpwd
+}
-- 
1.7.6.5



^ permalink raw reply related	[flat|nested] 32+ messages in thread

* [pull-sys940x 3/4] genmac: Replace RANDOM_MAC in network/interfaces with a randomly generated MAC
  2012-02-01 22:26 [pull-sys940x 0/4][meta-intel] Inforce SYS940X BSP (Intel Atom E6xx + EG20T) Darren Hart
  2012-02-01 22:26 ` [pull-sys940x 1/4] meta-intel: Add Inforce SYS940x BSP Darren Hart
  2012-02-01 22:26 ` [pull-sys940x 2/4] ranpwd: Add ranpwd recipe Darren Hart
@ 2012-02-01 22:26 ` Darren Hart
  2012-02-01 22:42   ` Joshua Lock
  2012-02-02 14:09   ` William Mills
  2012-02-01 22:26 ` [pull-sys940x 4/4] netbase: Add interfaces with RANDOM_MAC for sys940x* machines Darren Hart
  3 siblings, 2 replies; 32+ messages in thread
From: Darren Hart @ 2012-02-01 22:26 UTC (permalink / raw)
  To: Tom Zanussi, Yocto Project

For machines that do not have a MAC in hardware and with drivers that don't
generate a random one in the kernel, this init script will replace the string
RANDOM_MAC in the network/interfaces file with one generated with "ranpwd -m".
Care is taken to ensure multiple interfaces can use RANDOM_MAC and receive
unique addresses. ranpwd generates MACs with the locally administered bit set
and the multicast bit disabled.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
---
 meta-sys940x/recipes-bsp/genmac/files/genmac |   46 ++++++++++++++++++++++++++
 meta-sys940x/recipes-bsp/genmac/genmac.bb    |   30 +++++++++++++++++
 2 files changed, 76 insertions(+), 0 deletions(-)
 create mode 100644 meta-sys940x/recipes-bsp/genmac/files/genmac
 create mode 100644 meta-sys940x/recipes-bsp/genmac/genmac.bb

diff --git a/meta-sys940x/recipes-bsp/genmac/files/genmac b/meta-sys940x/recipes-bsp/genmac/files/genmac
new file mode 100644
index 0000000..6ca069c
--- /dev/null
+++ b/meta-sys940x/recipes-bsp/genmac/files/genmac
@@ -0,0 +1,46 @@
+#!/bin/sh
+### BEGIN INIT INFO
+# Provides:          Random MAC address generator
+# Required-Start:    $syslog
+# Required-Stop:     $syslog
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: Set a random MAC for tagged interfaces
+# Description:       Set a random MAC for interfaces with RANDOM_MAC
+### END INIT INFO
+
+# Author: Darren Hart <dvhart@linux.intel.com>
+# Based on /etc/init.d/skeleton
+
+PATH=/sbin:/usr/sbin:/bin:/usr/bin
+DESC="Set a random MAC for tagged interfaces"
+NAME=genmac
+RANPWD=`which ranpwd`
+SCRIPTNAME=/etc/init.d/$NAME
+
+# Exit if amixer is not installed
+[ -x "$RANPWD" ] || exit 0
+
+do_start() {
+	# Replace every occurance of RANDOM_MAC with a unique locally
+	# administered, unicast, randomly generated MAC address.
+	while grep -q RANDOM_MAC /etc/network/interfaces; do
+		sed -i "1,/RANDOM_MAC/s/RANDOM_MAC/$($RANPWD -m)/" /etc/network/interfaces
+	done
+}
+
+case "$1" in
+start)
+	echo "$NAME: Setting random MAC addresses"
+	do_start
+	;;
+stop)
+	;;
+*)
+	echo "Usage: $SCRIPTNAME {start|stop}" >&2
+	exit 3
+	;;
+esac
+
+exit 0
+
diff --git a/meta-sys940x/recipes-bsp/genmac/genmac.bb b/meta-sys940x/recipes-bsp/genmac/genmac.bb
new file mode 100644
index 0000000..56849b4
--- /dev/null
+++ b/meta-sys940x/recipes-bsp/genmac/genmac.bb
@@ -0,0 +1,30 @@
+SUMMARY = "Provide a basic init script to generate a random MAC"
+DESCRIPTION = "Set the MAC from the config file."
+SECTION = "base"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
+
+PR = "r0"
+
+inherit update-rc.d
+
+RDEPENDS_${PN} = "ranpwd"
+
+SRC_URI = "file://genmac"
+
+INITSCRIPT_NAME = "genmac"
+# Run as early as possible to ensure we are before the networking scripts
+INITSCRIPT_PARAMS = "start 39 S ."
+
+do_install() {
+	install -d ${D}${sysconfdir} \
+	           ${D}${sysconfdir}/init.d
+	install -m 0755 ${WORKDIR}/${INITSCRIPT_NAME} ${D}${sysconfdir}/init.d
+        cat ${WORKDIR}/${INITSCRIPT_NAME} | \
+            sed -e 's,/etc,${sysconfdir},g' \
+                -e 's,/usr/sbin,${sbindir},g' \
+                -e 's,/var,${localstatedir},g' \
+                -e 's,/usr/bin,${bindir},g' \
+                -e 's,/usr,${prefix},g' > ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
+        chmod 755 ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
+}
-- 
1.7.6.5



^ permalink raw reply related	[flat|nested] 32+ messages in thread

* [pull-sys940x 4/4] netbase: Add interfaces with RANDOM_MAC for sys940x* machines
  2012-02-01 22:26 [pull-sys940x 0/4][meta-intel] Inforce SYS940X BSP (Intel Atom E6xx + EG20T) Darren Hart
                   ` (2 preceding siblings ...)
  2012-02-01 22:26 ` [pull-sys940x 3/4] genmac: Replace RANDOM_MAC in network/interfaces with a randomly generated MAC Darren Hart
@ 2012-02-01 22:26 ` Darren Hart
  2012-02-01 22:52   ` Joshua Lock
  3 siblings, 1 reply; 32+ messages in thread
From: Darren Hart @ 2012-02-01 22:26 UTC (permalink / raw)
  To: Tom Zanussi, Yocto Project

These machines have no MAC in the hardware and require that it
be set manually. Specify RANDOM_MAC for the eth0 interface which
the genmac init script will replace with RANDOM_MAC on first boot.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
---
 meta-sys940x/recipes-core/netbase/files/interfaces |   10 ++++++++++
 .../recipes-core/netbase/netbase_4.47.bbappend     |    3 +++
 2 files changed, 13 insertions(+), 0 deletions(-)
 create mode 100644 meta-sys940x/recipes-core/netbase/files/interfaces
 create mode 100644 meta-sys940x/recipes-core/netbase/netbase_4.47.bbappend

diff --git a/meta-sys940x/recipes-core/netbase/files/interfaces b/meta-sys940x/recipes-core/netbase/files/interfaces
new file mode 100644
index 0000000..4218f5d
--- /dev/null
+++ b/meta-sys940x/recipes-core/netbase/files/interfaces
@@ -0,0 +1,10 @@
+# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
+ 
+# The loopback interface
+auto lo
+iface lo inet loopback
+
+# Wired or wireless interfaces
+auto eth0
+iface eth0 inet dhcp
+    hwaddress ether RANDOM_MAC
diff --git a/meta-sys940x/recipes-core/netbase/netbase_4.47.bbappend b/meta-sys940x/recipes-core/netbase/netbase_4.47.bbappend
new file mode 100644
index 0000000..6d3f694
--- /dev/null
+++ b/meta-sys940x/recipes-core/netbase/netbase_4.47.bbappend
@@ -0,0 +1,3 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
+RDEPENDS_${PN} += "genmac"
+PRINC := "${@int(PRINC) + 1}"
-- 
1.7.6.5



^ permalink raw reply related	[flat|nested] 32+ messages in thread

* Re: [pull-sys940x 1/4] meta-intel: Add Inforce SYS940x BSP
  2012-02-01 22:26 ` [pull-sys940x 1/4] meta-intel: Add Inforce SYS940x BSP Darren Hart
@ 2012-02-01 22:37   ` Joshua Lock
  2012-02-01 23:05     ` Joshua Lock
  0 siblings, 1 reply; 32+ messages in thread
From: Joshua Lock @ 2012-02-01 22:37 UTC (permalink / raw)
  To: yocto



On 01/02/12 14:26, Darren Hart wrote:
> The Inforce SYS940x-ECX Developer-Ready Reference Platform features:
> o Intel Atom E6xx (0.6-1.6 GHz)
> o Up to 1GB on-board DDR2
> o Intel Platform Controller Hub EG20T
> o VGA,LVDS
> o HD Audio
> o SD Card
> o Dual SATA
> o Mini-PCIe
>
> http://www.inforcecomputing.com/SYS940X_ECX.html
>
> Signed-off-by: Darren Hart<dvhart@linux.intel.com>
> ---
>   meta-sys940x/COPYING.MIT                           |   17 +++
>   meta-sys940x/README                                |  140 ++++++++++++++++++++
>   meta-sys940x/README.sources                        |   18 +++
>   meta-sys940x/conf/layer.conf                       |   10 ++
>   meta-sys940x/conf/machine/sys940x-noemgd.conf      |   19 +++

When I played around with an earlier version of this branch recently the 
kernel for the noemgd machine didn't build, is that now fixed?

Cheers,
Joshua
-- 
Joshua Lock
         Yocto Project "Johannes factotum"
         Intel Open Source Technology Centre


^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [pull-sys940x 2/4] ranpwd: Add ranpwd recipe
  2012-02-01 22:26 ` [pull-sys940x 2/4] ranpwd: Add ranpwd recipe Darren Hart
@ 2012-02-01 22:40   ` Joshua Lock
  2012-02-02  7:22     ` Martin Jansa
  2012-02-02 18:24     ` Darren Hart
  0 siblings, 2 replies; 32+ messages in thread
From: Joshua Lock @ 2012-02-01 22:40 UTC (permalink / raw)
  To: yocto



On 01/02/12 14:26, Darren Hart wrote:
> ranpwd is used to generate random strings of various types, including
> passwords, UUIDs, and MAC addresses.
>
> Signed-off-by: Darren Hart<dvhart@linux.intel.com>
> ---
>   meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb |   23 ++++++++++++++++++++
>   1 files changed, 23 insertions(+), 0 deletions(-)
>   create mode 100644 meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb
>
> diff --git a/meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb b/meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb
> new file mode 100644
> index 0000000..66fcc26
> --- /dev/null
> +++ b/meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb
> @@ -0,0 +1,23 @@
> +DESCRIPTION = "Random password generator"
> +#SECTION = "utilities"

We may as well delete this line, no?

> +LICENSE = "GPLv2+"
> +LIC_FILES_CHKSUM = "file://ranpwd.c;beginline=1;endline=11;md5=0e8585e19117526efedfaeb50c345d7a"
> +PR = "r0"
> +
> +inherit autotools
> +
> +SRC_URI = "git://git.zytor.com/utils/ranpwd.git"
> +SRCREV = "b62aab579e288715b82d5575befaa2b8ff210c2b"
> +
> +S=${WORKDIR}/git

Variable assignments are usually quoted.

S = "${WORKDIR}/git"

> +
> +do_configure_prepend () {
> +	if [ ! -e acinclude.m4 -a -e aclocal.m4 ]; then
> +		cp aclocal.m4 acinclude.m4
> +	fi
> +}
> +
> +do_install() {
> +	install -d ${D}/${bindir}
> +	install -m 0755 ${S}/ranpwd ${D}/${bindir}/ranpwd
> +}

-- 
Joshua Lock
         Yocto Project "Johannes factotum"
         Intel Open Source Technology Centre


^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [pull-sys940x 3/4] genmac: Replace RANDOM_MAC in network/interfaces with a randomly generated MAC
  2012-02-01 22:26 ` [pull-sys940x 3/4] genmac: Replace RANDOM_MAC in network/interfaces with a randomly generated MAC Darren Hart
@ 2012-02-01 22:42   ` Joshua Lock
  2012-02-02 18:27     ` Darren Hart
  2012-02-02 14:09   ` William Mills
  1 sibling, 1 reply; 32+ messages in thread
From: Joshua Lock @ 2012-02-01 22:42 UTC (permalink / raw)
  To: yocto



On 01/02/12 14:26, Darren Hart wrote:
> For machines that do not have a MAC in hardware and with drivers that don't
> generate a random one in the kernel, this init script will replace the string
> RANDOM_MAC in the network/interfaces file with one generated with "ranpwd -m".
> Care is taken to ensure multiple interfaces can use RANDOM_MAC and receive
> unique addresses. ranpwd generates MACs with the locally administered bit set
> and the multicast bit disabled.
>
> Signed-off-by: Darren Hart<dvhart@linux.intel.com>
> ---
>   meta-sys940x/recipes-bsp/genmac/files/genmac |   46 ++++++++++++++++++++++++++
>   meta-sys940x/recipes-bsp/genmac/genmac.bb    |   30 +++++++++++++++++
>   2 files changed, 76 insertions(+), 0 deletions(-)
>   create mode 100644 meta-sys940x/recipes-bsp/genmac/files/genmac
>   create mode 100644 meta-sys940x/recipes-bsp/genmac/genmac.bb
>
> diff --git a/meta-sys940x/recipes-bsp/genmac/files/genmac b/meta-sys940x/recipes-bsp/genmac/files/genmac
> new file mode 100644
> index 0000000..6ca069c
> --- /dev/null
> +++ b/meta-sys940x/recipes-bsp/genmac/files/genmac
> @@ -0,0 +1,46 @@
> +#!/bin/sh
> +### BEGIN INIT INFO
> +# Provides:          Random MAC address generator
> +# Required-Start:    $syslog
> +# Required-Stop:     $syslog
> +# Default-Start:     2 3 4 5
> +# Default-Stop:      0 1 6
> +# Short-Description: Set a random MAC for tagged interfaces
> +# Description:       Set a random MAC for interfaces with RANDOM_MAC
> +### END INIT INFO
> +
> +# Author: Darren Hart<dvhart@linux.intel.com>
> +# Based on /etc/init.d/skeleton
> +
> +PATH=/sbin:/usr/sbin:/bin:/usr/bin
> +DESC="Set a random MAC for tagged interfaces"
> +NAME=genmac
> +RANPWD=`which ranpwd`
> +SCRIPTNAME=/etc/init.d/$NAME
> +
> +# Exit if amixer is not installed

amixer?

> +[ -x "$RANPWD" ] || exit 0
> +
> +do_start() {
> +	# Replace every occurance of RANDOM_MAC with a unique locally
occurrence?
> +	# administered, unicast, randomly generated MAC address.
> +	while grep -q RANDOM_MAC /etc/network/interfaces; do
> +		sed -i "1,/RANDOM_MAC/s/RANDOM_MAC/$($RANPWD -m)/" /etc/network/interfaces
> +	done

Otherwise looks good, feel free to add my SOB.

Cheers,
Joshua
-- 
Joshua Lock
         Yocto Project "Johannes factotum"
         Intel Open Source Technology Centre


^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [pull-sys940x 4/4] netbase: Add interfaces with RANDOM_MAC for sys940x* machines
  2012-02-01 22:26 ` [pull-sys940x 4/4] netbase: Add interfaces with RANDOM_MAC for sys940x* machines Darren Hart
@ 2012-02-01 22:52   ` Joshua Lock
  2012-02-01 23:03     ` Joshua Lock
  0 siblings, 1 reply; 32+ messages in thread
From: Joshua Lock @ 2012-02-01 22:52 UTC (permalink / raw)
  To: yocto



On 01/02/12 14:26, Darren Hart wrote:
> These machines have no MAC in the hardware and require that it
> be set manually. Specify RANDOM_MAC for the eth0 interface which
> the genmac init script will replace with RANDOM_MAC on first boot.

My concern with this patch is that iirc netbase isn't MACHINE specific - 
so if I have this layer enabled and build for another core2 machine I'll 
get these changes there too.

I don't know what the "right" solution to that is, though I muse some 
more below.

> Signed-off-by: Darren Hart<dvhart@linux.intel.com>
> ---
>   meta-sys940x/recipes-core/netbase/files/interfaces |   10 ++++++++++
>   .../recipes-core/netbase/netbase_4.47.bbappend     |    3 +++
>   2 files changed, 13 insertions(+), 0 deletions(-)
>   create mode 100644 meta-sys940x/recipes-core/netbase/files/interfaces
>   create mode 100644 meta-sys940x/recipes-core/netbase/netbase_4.47.bbappend
>
> diff --git a/meta-sys940x/recipes-core/netbase/files/interfaces b/meta-sys940x/recipes-core/netbase/files/interfaces
> new file mode 100644
> index 0000000..4218f5d
> --- /dev/null
> +++ b/meta-sys940x/recipes-core/netbase/files/interfaces
> @@ -0,0 +1,10 @@
> +# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
> +
> +# The loopback interface
> +auto lo
> +iface lo inet loopback
> +
> +# Wired or wireless interfaces
> +auto eth0
> +iface eth0 inet dhcp
> +    hwaddress ether RANDOM_MAC
> diff --git a/meta-sys940x/recipes-core/netbase/netbase_4.47.bbappend b/meta-sys940x/recipes-core/netbase/netbase_4.47.bbappend
> new file mode 100644
> index 0000000..6d3f694
> --- /dev/null
> +++ b/meta-sys940x/recipes-core/netbase/netbase_4.47.bbappend
> @@ -0,0 +1,3 @@
> +FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
> +RDEPENDS_${PN} += "genmac"

We can use a MACHINE specific override here, I think.

RDEPENDS_${PN}_sys940x += "genmac"

Ideally we don't want that interfaces file on non-sys940x machines, 
perhaps we could name the interfaces file differently and add a 
do_install_append_sys940x which installs the MACHINE specific interface 
file?

Cheers,
Joshua
-- 
Joshua Lock
         Yocto Project "Johannes factotum"
         Intel Open Source Technology Centre


^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [pull-sys940x 4/4] netbase: Add interfaces with RANDOM_MAC for sys940x* machines
  2012-02-01 22:52   ` Joshua Lock
@ 2012-02-01 23:03     ` Joshua Lock
  2012-02-02 18:31       ` Darren Hart
  2012-02-02 19:02       ` Joshua Lock
  0 siblings, 2 replies; 32+ messages in thread
From: Joshua Lock @ 2012-02-01 23:03 UTC (permalink / raw)
  To: yocto



On 01/02/12 14:52, Joshua Lock wrote:
>> +++ b/meta-sys940x/recipes-core/netbase/netbase_4.47.bbappend
>> @@ -0,0 +1,3 @@
>> +FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
>> +RDEPENDS_${PN} += "genmac"
>
> We can use a MACHINE specific override here, I think.
>
> RDEPENDS_${PN}_sys940x += "genmac"
>
> Ideally we don't want that interfaces file on non-sys940x machines,
> perhaps we could name the interfaces file differently and add a
> do_install_append_sys940x which installs the MACHINE specific interface
> file?

In this instance, however, I don't know what would happen if we built 
netbase with this layer enabled for a different core2 MACHINE and then 
built for the sys940x....

I suspect the existing core2 package would be used and think for this 
approach to work we'd need to mark this recipe MACHINE specific.

Cheers,
Joshua
-- 
Joshua Lock
         Yocto Project "Johannes factotum"
         Intel Open Source Technology Centre


^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [pull-sys940x 1/4] meta-intel: Add Inforce SYS940x BSP
  2012-02-01 22:37   ` Joshua Lock
@ 2012-02-01 23:05     ` Joshua Lock
  2012-02-02 18:07       ` Darren Hart
  0 siblings, 1 reply; 32+ messages in thread
From: Joshua Lock @ 2012-02-01 23:05 UTC (permalink / raw)
  To: yocto

On 01/02/12 14:37, Joshua Lock wrote:
>> http://www.inforcecomputing.com/SYS940X_ECX.html
>>
>> Signed-off-by: Darren Hart<dvhart@linux.intel.com>
>> ---
>> meta-sys940x/COPYING.MIT | 17 +++
>> meta-sys940x/README | 140 ++++++++++++++++++++
>> meta-sys940x/README.sources | 18 +++
>> meta-sys940x/conf/layer.conf | 10 ++
>> meta-sys940x/conf/machine/sys940x-noemgd.conf | 19 +++
>
> When I played around with an earlier version of this branch recently the
> kernel for the noemgd machine didn't build, is that now fixed?

Apologies, I got that the wrong way around. The kernel for the MACHINE 
*with* emgd didn't build. The noemgd version worked fine.

Cheers,
Joshua
-- 
Joshua Lock
         Yocto Project "Johannes factotum"
         Intel Open Source Technology Centre


^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [pull-sys940x 2/4] ranpwd: Add ranpwd recipe
  2012-02-01 22:40   ` Joshua Lock
@ 2012-02-02  7:22     ` Martin Jansa
  2012-02-02 18:26       ` Darren Hart
  2012-02-02 18:24     ` Darren Hart
  1 sibling, 1 reply; 32+ messages in thread
From: Martin Jansa @ 2012-02-02  7:22 UTC (permalink / raw)
  To: Joshua Lock; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 1987 bytes --]

On Wed, Feb 01, 2012 at 02:40:05PM -0800, Joshua Lock wrote:
> 
> 
> On 01/02/12 14:26, Darren Hart wrote:
> > ranpwd is used to generate random strings of various types, including
> > passwords, UUIDs, and MAC addresses.
> >
> > Signed-off-by: Darren Hart<dvhart@linux.intel.com>
> > ---
> >   meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb |   23 ++++++++++++++++++++
> >   1 files changed, 23 insertions(+), 0 deletions(-)
> >   create mode 100644 meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb
> >
> > diff --git a/meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb b/meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb
> > new file mode 100644
> > index 0000000..66fcc26
> > --- /dev/null
> > +++ b/meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb
> > @@ -0,0 +1,23 @@
> > +DESCRIPTION = "Random password generator"
> > +#SECTION = "utilities"
> 
> We may as well delete this line, no?
> 
> > +LICENSE = "GPLv2+"
> > +LIC_FILES_CHKSUM = "file://ranpwd.c;beginline=1;endline=11;md5=0e8585e19117526efedfaeb50c345d7a"
> > +PR = "r0"
> > +
> > +inherit autotools
> > +
> > +SRC_URI = "git://git.zytor.com/utils/ranpwd.git"
> > +SRCREV = "b62aab579e288715b82d5575befaa2b8ff210c2b"

What about PV? Do you really want just "git"?

> > +
> > +S=${WORKDIR}/git
> 
> Variable assignments are usually quoted.
> 
> S = "${WORKDIR}/git"
> 
> > +
> > +do_configure_prepend () {
> > +	if [ ! -e acinclude.m4 -a -e aclocal.m4 ]; then
> > +		cp aclocal.m4 acinclude.m4
> > +	fi
> > +}
> > +
> > +do_install() {
> > +	install -d ${D}/${bindir}
> > +	install -m 0755 ${S}/ranpwd ${D}/${bindir}/ranpwd
> > +}
> 
> -- 
> Joshua Lock
>          Yocto Project "Johannes factotum"
>          Intel Open Source Technology Centre
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [pull-sys940x 3/4] genmac: Replace RANDOM_MAC in network/interfaces with a randomly generated MAC
  2012-02-01 22:26 ` [pull-sys940x 3/4] genmac: Replace RANDOM_MAC in network/interfaces with a randomly generated MAC Darren Hart
  2012-02-01 22:42   ` Joshua Lock
@ 2012-02-02 14:09   ` William Mills
  2012-02-02 17:19     ` Darren Hart
  1 sibling, 1 reply; 32+ messages in thread
From: William Mills @ 2012-02-02 14:09 UTC (permalink / raw)
  To: Darren Hart; +Cc: Yocto Project


On 02/01/2012 05:26 PM, Darren Hart wrote:
> For machines that do not have a MAC in hardware and with drivers that don't
> generate a random one in the kernel, this init script will replace the string
> RANDOM_MAC in the network/interfaces file with one generated with "ranpwd -m".
> Care is taken to ensure multiple interfaces can use RANDOM_MAC and receive
> unique addresses. ranpwd generates MACs with the locally administered bit set
> and the multicast bit disabled.
>
> Signed-off-by: Darren Hart<dvhart@linux.intel.com>
> ---
>   meta-sys940x/recipes-bsp/genmac/files/genmac |   46 ++++++++++++++++++++++++++
>   meta-sys940x/recipes-bsp/genmac/genmac.bb    |   30 +++++++++++++++++
>   2 files changed, 76 insertions(+), 0 deletions(-)
>   create mode 100644 meta-sys940x/recipes-bsp/genmac/files/genmac
>   create mode 100644 meta-sys940x/recipes-bsp/genmac/genmac.bb
>
> diff --git a/meta-sys940x/recipes-bsp/genmac/files/genmac b/meta-sys940x/recipes-bsp/genmac/files/genmac
> new file mode 100644
> index 0000000..6ca069c
> --- /dev/null
> +++ b/meta-sys940x/recipes-bsp/genmac/files/genmac
> @@ -0,0 +1,46 @@
> +#!/bin/sh
> +### BEGIN INIT INFO
> +# Provides:          Random MAC address generator
> +# Required-Start:    $syslog
> +# Required-Stop:     $syslog
> +# Default-Start:     2 3 4 5
> +# Default-Stop:      0 1 6
> +# Short-Description: Set a random MAC for tagged interfaces
> +# Description:       Set a random MAC for interfaces with RANDOM_MAC
> +### END INIT INFO
> +
> +# Author: Darren Hart<dvhart@linux.intel.com>
> +# Based on /etc/init.d/skeleton
> +
> +PATH=/sbin:/usr/sbin:/bin:/usr/bin
> +DESC="Set a random MAC for tagged interfaces"
> +NAME=genmac
> +RANPWD=`which ranpwd`
> +SCRIPTNAME=/etc/init.d/$NAME
> +
> +# Exit if amixer is not installed
> +[ -x "$RANPWD" ] || exit 0
> +
> +do_start() {
> +	# Replace every occurance of RANDOM_MAC with a unique locally
> +	# administered, unicast, randomly generated MAC address.
> +	while grep -q RANDOM_MAC /etc/network/interfaces; do
> +		sed -i "1,/RANDOM_MAC/s/RANDOM_MAC/$($RANPWD -m)/" /etc/network/interfaces
> +	done
> +}

So on a non-volatile r/w filesystem this will assign a new random mac to 
each interface on the first boot and reuse that MAC on each subsquent boot.

On a volatile r/w filesystem this will use a new MAC addr for each 
boot.  I guess thats better than nothing and not much to do on a 
volatile system.

What does this do on a ro filesystem?  No network?  network with 
0:0:0:0:0:0 MAC addr? (horror! but I suspect the kernel won't allow 
that).  Certainly this script failing should not cause the rest of boot 
to fail.



^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [pull-sys940x 3/4] genmac: Replace RANDOM_MAC in network/interfaces with a randomly generated MAC
  2012-02-02 14:09   ` William Mills
@ 2012-02-02 17:19     ` Darren Hart
  2012-02-02 18:37       ` William Mills
  0 siblings, 1 reply; 32+ messages in thread
From: Darren Hart @ 2012-02-02 17:19 UTC (permalink / raw)
  To: William Mills; +Cc: Yocto Project

Hi Bill,

On 02/02/2012 06:09 AM, William Mills wrote:
> 
> On 02/01/2012 05:26 PM, Darren Hart wrote:
>> For machines that do not have a MAC in hardware and with drivers that don't
>> generate a random one in the kernel, this init script will replace the string
>> RANDOM_MAC in the network/interfaces file with one generated with "ranpwd -m".
>> Care is taken to ensure multiple interfaces can use RANDOM_MAC and receive
>> unique addresses. ranpwd generates MACs with the locally administered bit set
>> and the multicast bit disabled.
>>
>> Signed-off-by: Darren Hart<dvhart@linux.intel.com>
>> ---
>>   meta-sys940x/recipes-bsp/genmac/files/genmac |   46 ++++++++++++++++++++++++++
>>   meta-sys940x/recipes-bsp/genmac/genmac.bb    |   30 +++++++++++++++++
>>   2 files changed, 76 insertions(+), 0 deletions(-)
>>   create mode 100644 meta-sys940x/recipes-bsp/genmac/files/genmac
>>   create mode 100644 meta-sys940x/recipes-bsp/genmac/genmac.bb
>>
>> diff --git a/meta-sys940x/recipes-bsp/genmac/files/genmac b/meta-sys940x/recipes-bsp/genmac/files/genmac
>> new file mode 100644
>> index 0000000..6ca069c
>> --- /dev/null
>> +++ b/meta-sys940x/recipes-bsp/genmac/files/genmac
>> @@ -0,0 +1,46 @@
>> +#!/bin/sh
>> +### BEGIN INIT INFO
>> +# Provides:          Random MAC address generator
>> +# Required-Start:    $syslog
>> +# Required-Stop:     $syslog
>> +# Default-Start:     2 3 4 5
>> +# Default-Stop:      0 1 6
>> +# Short-Description: Set a random MAC for tagged interfaces
>> +# Description:       Set a random MAC for interfaces with RANDOM_MAC
>> +### END INIT INFO
>> +
>> +# Author: Darren Hart<dvhart@linux.intel.com>
>> +# Based on /etc/init.d/skeleton
>> +
>> +PATH=/sbin:/usr/sbin:/bin:/usr/bin
>> +DESC="Set a random MAC for tagged interfaces"
>> +NAME=genmac
>> +RANPWD=`which ranpwd`
>> +SCRIPTNAME=/etc/init.d/$NAME
>> +
>> +# Exit if amixer is not installed
>> +[ -x "$RANPWD" ] || exit 0
>> +
>> +do_start() {
>> +	# Replace every occurance of RANDOM_MAC with a unique locally
>> +	# administered, unicast, randomly generated MAC address.
>> +	while grep -q RANDOM_MAC /etc/network/interfaces; do
>> +		sed -i "1,/RANDOM_MAC/s/RANDOM_MAC/$($RANPWD -m)/" /etc/network/interfaces
>> +	done
>> +}
> 
> So on a non-volatile r/w filesystem this will assign a new random mac to 
> each interface on the first boot and reuse that MAC on each subsquent boot.

Correct.

> 
> On a volatile r/w filesystem this will use a new MAC addr for each 
> boot.  I guess thats better than nothing and not much to do on a 
> volatile system.

Correct. The alternative would be to try and sort out some kind of hash
based on unique data, maybe dmidecode data - but that's not very
consistent across platforms. I think there is something like this
available for the Beagleboard.


> What does this do on a ro filesystem?  No network?  network with 
> 0:0:0:0:0:0 MAC addr? (horror! but I suspect the kernel won't allow 
> that).  Certainly this script failing should not cause the rest of boot 
> to fail.

On a read only filesystem with genmac installed and RANDOM_MAC in the
interfaces file, genmac will run and NOT update interfaces. This was
written with the pch_gbe driver in mind. If no MAC is in the EEPROM, the
pch_gbe driver leaves the MAC as 00:00:00:00:00:00 and leaves the
interface down. It will fail any up command until the MAC has been set.
So the subsequent networking script will fail to bring up the relevant
interface. ifconfig -a will list the interface as down and with a MAC of
00:00:00:00:00:00.

Other drivers will assign a random MAC within the kernel, making this
all unnecessary, but David Miller refused this patch for this driver
(despite the precedent).

If you want to use a RO image on a platform with a pch_gbe nic and no
EEPROM, you need to hardcode the generated MAC in the interfaces file.

The alternative would be for me to call this pch_gbe_genmac and have it
call ifconfig directly instead of delegating it to the interfaces file.
But then I would still want to use a config file to store the
first-boot-generated MAC so it was the same across boots. Once I have to
generate a config file, I felt it made more sense to just use
interfaces, and then it makes sense to make it generic (not pch_gbe
specific), and that led me to this implementation.

Seem reasonable?

-- 
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel


^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [pull-sys940x 1/4] meta-intel: Add Inforce SYS940x BSP
  2012-02-01 23:05     ` Joshua Lock
@ 2012-02-02 18:07       ` Darren Hart
  0 siblings, 0 replies; 32+ messages in thread
From: Darren Hart @ 2012-02-02 18:07 UTC (permalink / raw)
  To: Joshua Lock; +Cc: yocto



On 02/01/2012 03:05 PM, Joshua Lock wrote:
> On 01/02/12 14:37, Joshua Lock wrote:
>>> http://www.inforcecomputing.com/SYS940X_ECX.html
>>>
>>> Signed-off-by: Darren Hart<dvhart@linux.intel.com>
>>> ---
>>> meta-sys940x/COPYING.MIT | 17 +++
>>> meta-sys940x/README | 140 ++++++++++++++++++++
>>> meta-sys940x/README.sources | 18 +++
>>> meta-sys940x/conf/layer.conf | 10 ++
>>> meta-sys940x/conf/machine/sys940x-noemgd.conf | 19 +++
>>
>> When I played around with an earlier version of this branch recently the
>> kernel for the noemgd machine didn't build, is that now fixed?
> 
> Apologies, I got that the wrong way around. The kernel for the MACHINE 
> *with* emgd didn't build. The noemgd version worked fine.

Should be good now. Now that Bruce has pulled in the sys940x BSP patches
to linux-yocto, I'll need to update the meta SRCREV, and will do that
before a push.

-- 
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel


^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [pull-sys940x 2/4] ranpwd: Add ranpwd recipe
  2012-02-01 22:40   ` Joshua Lock
  2012-02-02  7:22     ` Martin Jansa
@ 2012-02-02 18:24     ` Darren Hart
  2012-02-02 19:24       ` Joshua Lock
  1 sibling, 1 reply; 32+ messages in thread
From: Darren Hart @ 2012-02-02 18:24 UTC (permalink / raw)
  To: Joshua Lock; +Cc: yocto



On 02/01/2012 02:40 PM, Joshua Lock wrote:
> 
> 
> On 01/02/12 14:26, Darren Hart wrote:
>> ranpwd is used to generate random strings of various types, including
>> passwords, UUIDs, and MAC addresses.
>>
>> Signed-off-by: Darren Hart<dvhart@linux.intel.com>
>> ---
>>   meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb |   23 ++++++++++++++++++++
>>   1 files changed, 23 insertions(+), 0 deletions(-)
>>   create mode 100644 meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb
>>
>> diff --git a/meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb b/meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb
>> new file mode 100644
>> index 0000000..66fcc26
>> --- /dev/null
>> +++ b/meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb
>> @@ -0,0 +1,23 @@
>> +DESCRIPTION = "Random password generator"
>> +#SECTION = "utilities"
> 
> We may as well delete this line, no?

Oops. I didn't intend to leave it commented. I'm also no sure how to
decide which "SECTION" to put it in. Is there some definitive list from
which to select an appropriate SECTION? Uncommented in my local branch
for now.

> 
>> +LICENSE = "GPLv2+"
>> +LIC_FILES_CHKSUM = "file://ranpwd.c;beginline=1;endline=11;md5=0e8585e19117526efedfaeb50c345d7a"
>> +PR = "r0"
>> +
>> +inherit autotools
>> +
>> +SRC_URI = "git://git.zytor.com/utils/ranpwd.git"
>> +SRCREV = "b62aab579e288715b82d5575befaa2b8ff210c2b"
>> +
>> +S=${WORKDIR}/git
> 
> Variable assignments are usually quoted.
> 
> S = "${WORKDIR}/git"
> 

OK, will do.

>> +
>> +do_configure_prepend () {
>> +	if [ ! -e acinclude.m4 -a -e aclocal.m4 ]; then
>> +		cp aclocal.m4 acinclude.m4
>> +	fi
>> +}
>> +
>> +do_install() {
>> +	install -d ${D}/${bindir}
>> +	install -m 0755 ${S}/ranpwd ${D}/${bindir}/ranpwd
>> +}
> 

Thanks for the review.

-- 
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel


^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [pull-sys940x 2/4] ranpwd: Add ranpwd recipe
  2012-02-02  7:22     ` Martin Jansa
@ 2012-02-02 18:26       ` Darren Hart
  2012-02-02 19:13         ` Joshua Lock
  0 siblings, 1 reply; 32+ messages in thread
From: Darren Hart @ 2012-02-02 18:26 UTC (permalink / raw)
  To: Martin Jansa; +Cc: yocto



On 02/01/2012 11:22 PM, Martin Jansa wrote:
> On Wed, Feb 01, 2012 at 02:40:05PM -0800, Joshua Lock wrote:
>>
>>
>> On 01/02/12 14:26, Darren Hart wrote:
>>> ranpwd is used to generate random strings of various types, including
>>> passwords, UUIDs, and MAC addresses.
>>>
>>> Signed-off-by: Darren Hart<dvhart@linux.intel.com>
>>> ---
>>>   meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb |   23 ++++++++++++++++++++
>>>   1 files changed, 23 insertions(+), 0 deletions(-)
>>>   create mode 100644 meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb
>>>
>>> diff --git a/meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb b/meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb
>>> new file mode 100644
>>> index 0000000..66fcc26
>>> --- /dev/null
>>> +++ b/meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb
>>> @@ -0,0 +1,23 @@
>>> +DESCRIPTION = "Random password generator"
>>> +#SECTION = "utilities"
>>
>> We may as well delete this line, no?
>>
>>> +LICENSE = "GPLv2+"
>>> +LIC_FILES_CHKSUM = "file://ranpwd.c;beginline=1;endline=11;md5=0e8585e19117526efedfaeb50c345d7a"
>>> +PR = "r0"
>>> +
>>> +inherit autotools
>>> +
>>> +SRC_URI = "git://git.zytor.com/utils/ranpwd.git"
>>> +SRCREV = "b62aab579e288715b82d5575befaa2b8ff210c2b"
> 
> What about PV? Do you really want just "git"?

There is a 1.1 and 1.2 tag in the git repository. However, some of the
MAC related features come well after 1.2 with no subsequent tag. For
this reason I left it as "git". Is there a better way to do this? Should
I call it 1.2+ or something?

Thanks,

-- 
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel


^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [pull-sys940x 3/4] genmac: Replace RANDOM_MAC in network/interfaces with a randomly generated MAC
  2012-02-01 22:42   ` Joshua Lock
@ 2012-02-02 18:27     ` Darren Hart
  0 siblings, 0 replies; 32+ messages in thread
From: Darren Hart @ 2012-02-02 18:27 UTC (permalink / raw)
  To: Joshua Lock; +Cc: yocto



On 02/01/2012 02:42 PM, Joshua Lock wrote:
> 
> 
> On 01/02/12 14:26, Darren Hart wrote:
>> For machines that do not have a MAC in hardware and with drivers that don't
>> generate a random one in the kernel, this init script will replace the string
>> RANDOM_MAC in the network/interfaces file with one generated with "ranpwd -m".
>> Care is taken to ensure multiple interfaces can use RANDOM_MAC and receive
>> unique addresses. ranpwd generates MACs with the locally administered bit set
>> and the multicast bit disabled.
>>
>> Signed-off-by: Darren Hart<dvhart@linux.intel.com>
>> ---
>>   meta-sys940x/recipes-bsp/genmac/files/genmac |   46 ++++++++++++++++++++++++++
>>   meta-sys940x/recipes-bsp/genmac/genmac.bb    |   30 +++++++++++++++++
>>   2 files changed, 76 insertions(+), 0 deletions(-)
>>   create mode 100644 meta-sys940x/recipes-bsp/genmac/files/genmac
>>   create mode 100644 meta-sys940x/recipes-bsp/genmac/genmac.bb
>>
>> diff --git a/meta-sys940x/recipes-bsp/genmac/files/genmac b/meta-sys940x/recipes-bsp/genmac/files/genmac
>> new file mode 100644
>> index 0000000..6ca069c
>> --- /dev/null
>> +++ b/meta-sys940x/recipes-bsp/genmac/files/genmac
>> @@ -0,0 +1,46 @@
>> +#!/bin/sh
>> +### BEGIN INIT INFO
>> +# Provides:          Random MAC address generator
>> +# Required-Start:    $syslog
>> +# Required-Stop:     $syslog
>> +# Default-Start:     2 3 4 5
>> +# Default-Stop:      0 1 6
>> +# Short-Description: Set a random MAC for tagged interfaces
>> +# Description:       Set a random MAC for interfaces with RANDOM_MAC
>> +### END INIT INFO
>> +
>> +# Author: Darren Hart<dvhart@linux.intel.com>
>> +# Based on /etc/init.d/skeleton
>> +
>> +PATH=/sbin:/usr/sbin:/bin:/usr/bin
>> +DESC="Set a random MAC for tagged interfaces"
>> +NAME=genmac
>> +RANPWD=`which ranpwd`
>> +SCRIPTNAME=/etc/init.d/$NAME
>> +
>> +# Exit if amixer is not installed
> 
> amixer?
> 
>> +[ -x "$RANPWD" ] || exit 0
>> +
>> +do_start() {
>> +	# Replace every occurance of RANDOM_MAC with a unique locally
> occurrence?
>> +	# administered, unicast, randomly generated MAC address.
>> +	while grep -q RANDOM_MAC /etc/network/interfaces; do
>> +		sed -i "1,/RANDOM_MAC/s/RANDOM_MAC/$($RANPWD -m)/" /etc/network/interfaces
>> +	done
> 
> Otherwise looks good, feel free to add my SOB.
> 

Both fixed, SOB added. Thanks for the review!

-- 
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel


^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [pull-sys940x 4/4] netbase: Add interfaces with RANDOM_MAC for sys940x* machines
  2012-02-01 23:03     ` Joshua Lock
@ 2012-02-02 18:31       ` Darren Hart
  2012-02-02 19:02       ` Joshua Lock
  1 sibling, 0 replies; 32+ messages in thread
From: Darren Hart @ 2012-02-02 18:31 UTC (permalink / raw)
  To: Joshua Lock; +Cc: yocto



On 02/01/2012 03:03 PM, Joshua Lock wrote:
> 
> 
> On 01/02/12 14:52, Joshua Lock wrote:
>>> +++ b/meta-sys940x/recipes-core/netbase/netbase_4.47.bbappend
>>> @@ -0,0 +1,3 @@
>>> +FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
>>> +RDEPENDS_${PN} += "genmac"
>>
>> We can use a MACHINE specific override here, I think.
>>
>> RDEPENDS_${PN}_sys940x += "genmac"
>>
>> Ideally we don't want that interfaces file on non-sys940x machines,
>> perhaps we could name the interfaces file differently and add a
>> do_install_append_sys940x which installs the MACHINE specific interface
>> file?
> 
> In this instance, however, I don't know what would happen if we built 
> netbase with this layer enabled for a different core2 MACHINE and then 
> built for the sys940x....
> 
> I suspect the existing core2 package would be used and think for this 
> approach to work we'd need to mark this recipe MACHINE specific.
> 
> Cheers,
> Joshua

Thanks for catching this. As I understand it, Richard and Joshua have
agreed that netbase should just be MACHINE specific. Joshua has agreed
to prep a patch to this effect, rendering this recipe OK as is.

-- 
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel


^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [pull-sys940x 3/4] genmac: Replace RANDOM_MAC in network/interfaces with a randomly generated MAC
  2012-02-02 17:19     ` Darren Hart
@ 2012-02-02 18:37       ` William Mills
  0 siblings, 0 replies; 32+ messages in thread
From: William Mills @ 2012-02-02 18:37 UTC (permalink / raw)
  To: Darren Hart; +Cc: Yocto Project



On 02/02/2012 12:19 PM, Darren Hart wrote:
> On 02/02/2012 06:09 AM, William Mills wrote:
>> So on a non-volatile r/w filesystem this will assign a new random mac to
>> each interface on the first boot and reuse that MAC on each subsquent boot.
> Correct.
>
>> On a volatile r/w filesystem this will use a new MAC addr for each
>> boot.  I guess thats better than nothing and not much to do on a
>> volatile system.
> Correct. The alternative would be to try and sort out some kind of hash
> based on unique data, maybe dmidecode data - but that's not very
> consistent across platforms. I think there is something like this
> available for the Beagleboard.
>
>
>> What does this do on a ro filesystem?  No network?  network with
>> 0:0:0:0:0:0 MAC addr? (horror! but I suspect the kernel won't allow
>> that).  Certainly this script failing should not cause the rest of boot
>> to fail.
> On a read only filesystem with genmac installed and RANDOM_MAC in the
> interfaces file, genmac will run and NOT update interfaces. This was
> written with the pch_gbe driver in mind. If no MAC is in the EEPROM, the
> pch_gbe driver leaves the MAC as 00:00:00:00:00:00 and leaves the
> interface down. It will fail any up command until the MAC has been set.
> So the subsequent networking script will fail to bring up the relevant
> interface. ifconfig -a will list the interface as down and with a MAC of
> 00:00:00:00:00:00.
>
> Other drivers will assign a random MAC within the kernel, making this
> all unnecessary, but David Miller refused this patch for this driver
> (despite the precedent).
>
> If you want to use a RO image on a platform with a pch_gbe nic and no
> EEPROM, you need to hardcode the generated MAC in the interfaces file.
>
> The alternative would be for me to call this pch_gbe_genmac and have it
> call ifconfig directly instead of delegating it to the interfaces file.
> But then I would still want to use a config file to store the
> first-boot-generated MAC so it was the same across boots. Once I have to
> generate a config file, I felt it made more sense to just use
> interfaces, and then it makes sense to make it generic (not pch_gbe
> specific), and that led me to this implementation.
>
> Seem reasonable?
>

Yes I think so.  Just wanted to make sure it failed gracefully.   I 
think your doing the best that can be expected.

Thanks for the detail.

[I'm interested as I have a board that might need this.  Not in OE yet, 
but someday ...]



^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [pull-sys940x 4/4] netbase: Add interfaces with RANDOM_MAC for sys940x* machines
  2012-02-01 23:03     ` Joshua Lock
  2012-02-02 18:31       ` Darren Hart
@ 2012-02-02 19:02       ` Joshua Lock
  1 sibling, 0 replies; 32+ messages in thread
From: Joshua Lock @ 2012-02-02 19:02 UTC (permalink / raw)
  To: yocto

On 01/02/12 15:03, Joshua Lock wrote:
> On 01/02/12 14:52, Joshua Lock wrote:
>>> +++ b/meta-sys940x/recipes-core/netbase/netbase_4.47.bbappend
>>> @@ -0,0 +1,3 @@
>>> +FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
>>> +RDEPENDS_${PN} += "genmac"
>>
>> We can use a MACHINE specific override here, I think.
>>
>> RDEPENDS_${PN}_sys940x += "genmac"
>>
>> Ideally we don't want that interfaces file on non-sys940x machines,
>> perhaps we could name the interfaces file differently and add a
>> do_install_append_sys940x which installs the MACHINE specific interface
>> file?
>
> In this instance, however, I don't know what would happen if we built
> netbase with this layer enabled for a different core2 MACHINE and then
> built for the sys940x....
>
> I suspect the existing core2 package would be used and think for this
> approach to work we'd need to mark this recipe MACHINE specific.

I was missing a detail here which Koen pointed out, if you use a MACHINE 
OVERRIDE in SRC_URI BitBake should mark the package as MACHINE specific.

I've submitted a patch to make netbase MACHINE specific by default but 
should that patch not be accepted the use of an OVERRIDE on SRC_URI or 
explicitly setting PACKAGE_ARCH = "${MACHINE_ARCH}" in the bbappend will 
be an appropriate fix.

Cheers,
Joshua
-- 
Joshua Lock
         Yocto Project "Johannes factotum"
         Intel Open Source Technology Centre


^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [pull-sys940x 2/4] ranpwd: Add ranpwd recipe
  2012-02-02 18:26       ` Darren Hart
@ 2012-02-02 19:13         ` Joshua Lock
  2012-02-02 19:34           ` Darren Hart
  0 siblings, 1 reply; 32+ messages in thread
From: Joshua Lock @ 2012-02-02 19:13 UTC (permalink / raw)
  To: Darren Hart; +Cc: yocto



On 02/02/12 10:26, Darren Hart wrote:
>
>
> On 02/01/2012 11:22 PM, Martin Jansa wrote:
>> On Wed, Feb 01, 2012 at 02:40:05PM -0800, Joshua Lock wrote:
>>>
>>>
>>> On 01/02/12 14:26, Darren Hart wrote:
>>>> ranpwd is used to generate random strings of various types, including
>>>> passwords, UUIDs, and MAC addresses.
>>>>
>>>> Signed-off-by: Darren Hart<dvhart@linux.intel.com>
>>>> ---
>>>>    meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb |   23 ++++++++++++++++++++
>>>>    1 files changed, 23 insertions(+), 0 deletions(-)
>>>>    create mode 100644 meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb
>>>>
>>>> diff --git a/meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb b/meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb
>>>> new file mode 100644
>>>> index 0000000..66fcc26
>>>> --- /dev/null
>>>> +++ b/meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb
>>>> @@ -0,0 +1,23 @@
>>>> +DESCRIPTION = "Random password generator"
>>>> +#SECTION = "utilities"
>>>
>>> We may as well delete this line, no?
>>>
>>>> +LICENSE = "GPLv2+"
>>>> +LIC_FILES_CHKSUM = "file://ranpwd.c;beginline=1;endline=11;md5=0e8585e19117526efedfaeb50c345d7a"
>>>> +PR = "r0"
>>>> +
>>>> +inherit autotools
>>>> +
>>>> +SRC_URI = "git://git.zytor.com/utils/ranpwd.git"
>>>> +SRCREV = "b62aab579e288715b82d5575befaa2b8ff210c2b"
>>
>> What about PV? Do you really want just "git"?
>
> There is a 1.1 and 1.2 tag in the git repository. However, some of the
> MAC related features come well after 1.2 with no subsequent tag. For
> this reason I left it as "git". Is there a better way to do this? Should
> I call it 1.2+ or something?

The PV determined from the SRC_URI is simply git. Martin is suggesting 
you might want to set it to something different in the recipe to give a 
more meaningful (and useful) value i.e:

meta/recipes-connectivity/gypsy/gypsy_git.bb:PV = "0.8+git${SRCPV}"

Cheers,
Joshua
-- 
Joshua Lock
         Yocto Project "Johannes factotum"
         Intel Open Source Technology Centre


^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [pull-sys940x 2/4] ranpwd: Add ranpwd recipe
  2012-02-02 18:24     ` Darren Hart
@ 2012-02-02 19:24       ` Joshua Lock
  2012-02-02 19:32         ` Darren Hart
  0 siblings, 1 reply; 32+ messages in thread
From: Joshua Lock @ 2012-02-02 19:24 UTC (permalink / raw)
  To: Darren Hart; +Cc: yocto



On 02/02/12 10:24, Darren Hart wrote:
>
>
> On 02/01/2012 02:40 PM, Joshua Lock wrote:
>>
>>
>> On 01/02/12 14:26, Darren Hart wrote:
>>> ranpwd is used to generate random strings of various types, including
>>> passwords, UUIDs, and MAC addresses.
>>>
>>> Signed-off-by: Darren Hart<dvhart@linux.intel.com>
>>> ---
>>>    meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb |   23 ++++++++++++++++++++
>>>    1 files changed, 23 insertions(+), 0 deletions(-)
>>>    create mode 100644 meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb
>>>
>>> diff --git a/meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb b/meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb
>>> new file mode 100644
>>> index 0000000..66fcc26
>>> --- /dev/null
>>> +++ b/meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb
>>> @@ -0,0 +1,23 @@
>>> +DESCRIPTION = "Random password generator"
>>> +#SECTION = "utilities"
>>
>> We may as well delete this line, no?
>
> Oops. I didn't intend to leave it commented. I'm also no sure how to
> decide which "SECTION" to put it in. Is there some definitive list from
> which to select an appropriate SECTION? Uncommented in my local branch
> for now.

I think there was an agreement to drop this field. It's not especially 
useful and there's not definitive list that I'm aware of.

Cheers,
Joshua
-- 
Joshua Lock
         Yocto Project "Johannes factotum"
         Intel Open Source Technology Centre


^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [pull-sys940x 2/4] ranpwd: Add ranpwd recipe
  2012-02-02 19:24       ` Joshua Lock
@ 2012-02-02 19:32         ` Darren Hart
  2012-02-02 21:11           ` Joshua Lock
  0 siblings, 1 reply; 32+ messages in thread
From: Darren Hart @ 2012-02-02 19:32 UTC (permalink / raw)
  To: Joshua Lock; +Cc: yocto



On 02/02/2012 11:24 AM, Joshua Lock wrote:
> 
> 
> On 02/02/12 10:24, Darren Hart wrote:
>>
>>
>> On 02/01/2012 02:40 PM, Joshua Lock wrote:
>>>
>>>
>>> On 01/02/12 14:26, Darren Hart wrote:
>>>> ranpwd is used to generate random strings of various types, including
>>>> passwords, UUIDs, and MAC addresses.
>>>>
>>>> Signed-off-by: Darren Hart<dvhart@linux.intel.com>
>>>> ---
>>>>    meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb |   23 ++++++++++++++++++++
>>>>    1 files changed, 23 insertions(+), 0 deletions(-)
>>>>    create mode 100644 meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb
>>>>
>>>> diff --git a/meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb b/meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb
>>>> new file mode 100644
>>>> index 0000000..66fcc26
>>>> --- /dev/null
>>>> +++ b/meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb
>>>> @@ -0,0 +1,23 @@
>>>> +DESCRIPTION = "Random password generator"
>>>> +#SECTION = "utilities"
>>>
>>> We may as well delete this line, no?
>>
>> Oops. I didn't intend to leave it commented. I'm also no sure how to
>> decide which "SECTION" to put it in. Is there some definitive list from
>> which to select an appropriate SECTION? Uncommented in my local branch
>> for now.
> 
> I think there was an agreement to drop this field. It's not especially 
> useful and there's not definitive list that I'm aware of.

Done.

-- 
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel


^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [pull-sys940x 2/4] ranpwd: Add ranpwd recipe
  2012-02-02 19:13         ` Joshua Lock
@ 2012-02-02 19:34           ` Darren Hart
  0 siblings, 0 replies; 32+ messages in thread
From: Darren Hart @ 2012-02-02 19:34 UTC (permalink / raw)
  To: Joshua Lock; +Cc: yocto



On 02/02/2012 11:13 AM, Joshua Lock wrote:
> PV = "0.8+git${SRCPV}"

And done.

-- 
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel


^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [pull-sys940x 2/4] ranpwd: Add ranpwd recipe
  2012-02-02 19:32         ` Darren Hart
@ 2012-02-02 21:11           ` Joshua Lock
  2012-02-06 16:17             ` Paul Eggleton
  0 siblings, 1 reply; 32+ messages in thread
From: Joshua Lock @ 2012-02-02 21:11 UTC (permalink / raw)
  To: Darren Hart; +Cc: yocto

On 02/02/12 11:32, Darren Hart wrote:
> On 02/02/2012 11:24 AM, Joshua Lock wrote:
>>
>>
>> On 02/02/12 10:24, Darren Hart wrote:
>>>
>>>
>>> On 02/01/2012 02:40 PM, Joshua Lock wrote:
>>>>
>>>>
>>>> On 01/02/12 14:26, Darren Hart wrote:
>>>>> ranpwd is used to generate random strings of various types, including
>>>>> passwords, UUIDs, and MAC addresses.
>>>>>
>>>>> Signed-off-by: Darren Hart<dvhart@linux.intel.com>
>>>>> ---
>>>>>     meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb |   23 ++++++++++++++++++++
>>>>>     1 files changed, 23 insertions(+), 0 deletions(-)
>>>>>     create mode 100644 meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb
>>>>>
>>>>> diff --git a/meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb b/meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb
>>>>> new file mode 100644
>>>>> index 0000000..66fcc26
>>>>> --- /dev/null
>>>>> +++ b/meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb
>>>>> @@ -0,0 +1,23 @@
>>>>> +DESCRIPTION = "Random password generator"
>>>>> +#SECTION = "utilities"
>>>>
>>>> We may as well delete this line, no?
>>>
>>> Oops. I didn't intend to leave it commented. I'm also no sure how to
>>> decide which "SECTION" to put it in. Is there some definitive list from
>>> which to select an appropriate SECTION? Uncommented in my local branch
>>> for now.
>>
>> I think there was an agreement to drop this field. It's not especially
>> useful and there's not definitive list that I'm aware of.

Apologies. I'm wrong here. It was PRIORITY which we agreed to drop.

By taking a brief glance over the metadata I'd probably suggest either 
utils or console/utils - I'm not certain if one is preferred.

Cheers,
Joshua
-- 
Joshua Lock
         Yocto Project "Johannes factotum"
         Intel Open Source Technology Centre


^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [pull-sys940x 2/4] ranpwd: Add ranpwd recipe
  2012-02-02 21:11           ` Joshua Lock
@ 2012-02-06 16:17             ` Paul Eggleton
  2012-02-06 23:59               ` Joshua Lock
  0 siblings, 1 reply; 32+ messages in thread
From: Paul Eggleton @ 2012-02-06 16:17 UTC (permalink / raw)
  To: yocto

On Thursday 02 February 2012 13:11:19 Joshua Lock wrote:
> Apologies. I'm wrong here. It was PRIORITY which we agreed to drop.

It's worth noting however, at the same time PRIORITY removal was discussed it 
was acknowledged that SECTION was questionable. Logical grouping of 
recipes/packages is a useful thing but coming up with groupings that are 
meaningful in all contexts is hard :(

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [pull-sys940x 2/4] ranpwd: Add ranpwd recipe
  2012-02-06 16:17             ` Paul Eggleton
@ 2012-02-06 23:59               ` Joshua Lock
  2012-02-07  7:06                 ` Martin Jansa
  0 siblings, 1 reply; 32+ messages in thread
From: Joshua Lock @ 2012-02-06 23:59 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: yocto

On 06/02/12 08:17, Paul Eggleton wrote:
> On Thursday 02 February 2012 13:11:19 Joshua Lock wrote:
>> Apologies. I'm wrong here. It was PRIORITY which we agreed to drop.
>
> It's worth noting however, at the same time PRIORITY removal was discussed it
> was acknowledged that SECTION was questionable. Logical grouping of
> recipes/packages is a useful thing but coming up with groupings that are
> meaningful in all contexts is hard :(

Glad to know my recollection isn't wildly off the mark.

I noticed that there are similar, yet different, SECTION values being 
used. If we opt to keep SECTION I wonder if we should try and 
standardise/sanitise it?

Debian's sections seem like reasonable inspiration? 
http://packages.debian.org/stable/

I think SECTION is useful for tools like Hob and Narcissus, so I'm in 
favour of keeping them.

Cheers,
Joshua
-- 
Joshua Lock
         Yocto Project "Johannes factotum"
         Intel Open Source Technology Centre


^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [pull-sys940x 2/4] ranpwd: Add ranpwd recipe
  2012-02-06 23:59               ` Joshua Lock
@ 2012-02-07  7:06                 ` Martin Jansa
  2012-02-07  9:20                   ` [yocto] " Koen Kooi
  2012-02-11  0:14                   ` Darren Hart
  0 siblings, 2 replies; 32+ messages in thread
From: Martin Jansa @ 2012-02-07  7:06 UTC (permalink / raw)
  To: Joshua Lock; +Cc: Paul Eggleton, yocto

[-- Attachment #1: Type: text/plain, Size: 1666 bytes --]

On Mon, Feb 06, 2012 at 03:59:36PM -0800, Joshua Lock wrote:
> On 06/02/12 08:17, Paul Eggleton wrote:
> > On Thursday 02 February 2012 13:11:19 Joshua Lock wrote:
> >> Apologies. I'm wrong here. It was PRIORITY which we agreed to drop.
> >
> > It's worth noting however, at the same time PRIORITY removal was discussed it
> > was acknowledged that SECTION was questionable. Logical grouping of
> > recipes/packages is a useful thing but coming up with groupings that are
> > meaningful in all contexts is hard :(
> 
> Glad to know my recollection isn't wildly off the mark.
> 
> I noticed that there are similar, yet different, SECTION values being 
> used. If we opt to keep SECTION I wonder if we should try and 
> standardise/sanitise it?

If there is standardised SECTION variable why not use
recipes-${SECTION}/foo_1.0.bb as we already have couple of recipe-*
directories and it's sometimes hard to decide to which directory
something belongs.

Or other way around, standartise recipes-* directories and let bitbake
decide SECTION from it (like it does for PV and PN).

Cheers,

> 
> Debian's sections seem like reasonable inspiration? 
> http://packages.debian.org/stable/
> 
> I think SECTION is useful for tools like Hob and Narcissus, so I'm in 
> favour of keeping them.
> 
> Cheers,
> Joshua
> -- 
> Joshua Lock
>          Yocto Project "Johannes factotum"
>          Intel Open Source Technology Centre
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [yocto] [pull-sys940x 2/4] ranpwd: Add ranpwd recipe
  2012-02-07  7:06                 ` Martin Jansa
@ 2012-02-07  9:20                   ` Koen Kooi
  2012-02-11  0:14                   ` Darren Hart
  1 sibling, 0 replies; 32+ messages in thread
From: Koen Kooi @ 2012-02-07  9:20 UTC (permalink / raw)
  To: Martin Jansa
  Cc: Paul Eggleton, Patches and discussions about the oe-core layer


Op 7 feb. 2012, om 08:06 heeft Martin Jansa het volgende geschreven:

> On Mon, Feb 06, 2012 at 03:59:36PM -0800, Joshua Lock wrote:
>> On 06/02/12 08:17, Paul Eggleton wrote:
>>> On Thursday 02 February 2012 13:11:19 Joshua Lock wrote:
>>>> Apologies. I'm wrong here. It was PRIORITY which we agreed to drop.
>>> 
>>> It's worth noting however, at the same time PRIORITY removal was discussed it
>>> was acknowledged that SECTION was questionable. Logical grouping of
>>> recipes/packages is a useful thing but coming up with groupings that are
>>> meaningful in all contexts is hard :(
>> 
>> Glad to know my recollection isn't wildly off the mark.
>> 
>> I noticed that there are similar, yet different, SECTION values being 
>> used. If we opt to keep SECTION I wonder if we should try and 
>> standardise/sanitise it?
> 
> If there is standardised SECTION variable why not use
> recipes-${SECTION}/foo_1.0.bb as we already have couple of recipe-*
> directories and it's sometimes hard to decide to which directory
> something belongs.
> 
> Or other way around, standartise recipes-* directories and let bitbake
> decide SECTION from it (like it does for PV and PN).

Can we move this discussion to the oe-core list please?


^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [pull-sys940x 2/4] ranpwd: Add ranpwd recipe
  2012-02-07  7:06                 ` Martin Jansa
  2012-02-07  9:20                   ` [yocto] " Koen Kooi
@ 2012-02-11  0:14                   ` Darren Hart
  2012-02-11  1:45                     ` Khem Raj
  1 sibling, 1 reply; 32+ messages in thread
From: Darren Hart @ 2012-02-11  0:14 UTC (permalink / raw)
  To: Martin Jansa; +Cc: Paul Eggleton, yocto



On 02/06/2012 11:06 PM, Martin Jansa wrote:
> On Mon, Feb 06, 2012 at 03:59:36PM -0800, Joshua Lock wrote:
>> On 06/02/12 08:17, Paul Eggleton wrote:
>>> On Thursday 02 February 2012 13:11:19 Joshua Lock wrote:
>>>> Apologies. I'm wrong here. It was PRIORITY which we agreed to drop.
>>>
>>> It's worth noting however, at the same time PRIORITY removal was discussed it
>>> was acknowledged that SECTION was questionable. Logical grouping of
>>> recipes/packages is a useful thing but coming up with groupings that are
>>> meaningful in all contexts is hard :(
>>
>> Glad to know my recollection isn't wildly off the mark.
>>
>> I noticed that there are similar, yet different, SECTION values being 
>> used. If we opt to keep SECTION I wonder if we should try and 
>> standardise/sanitise it?
> 
> If there is standardised SECTION variable why not use
> recipes-${SECTION}/foo_1.0.bb as we already have couple of recipe-*
> directories and it's sometimes hard to decide to which directory
> something belongs.
> 
> Or other way around, standartise recipes-* directories and let bitbake
> decide SECTION from it (like it does for PV and PN).

Brilliant.

--
Darren

> 
> Cheers,
> 
>>
>> Debian's sections seem like reasonable inspiration? 
>> http://packages.debian.org/stable/
>>
>> I think SECTION is useful for tools like Hob and Narcissus, so I'm in 
>> favour of keeping them.
>>
>> Cheers,
>> Joshua
>> -- 
>> Joshua Lock
>>          Yocto Project "Johannes factotum"
>>          Intel Open Source Technology Centre
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
> 
> 
> 
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

-- 
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel


^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [pull-sys940x 2/4] ranpwd: Add ranpwd recipe
  2012-02-11  0:14                   ` Darren Hart
@ 2012-02-11  1:45                     ` Khem Raj
  0 siblings, 0 replies; 32+ messages in thread
From: Khem Raj @ 2012-02-11  1:45 UTC (permalink / raw)
  To: Darren Hart; +Cc: Paul Eggleton, yocto

On (10/02/12 16:14), Darren Hart wrote:
> 
> 
> On 02/06/2012 11:06 PM, Martin Jansa wrote:
> > On Mon, Feb 06, 2012 at 03:59:36PM -0800, Joshua Lock wrote:
> >> On 06/02/12 08:17, Paul Eggleton wrote:
> >>> On Thursday 02 February 2012 13:11:19 Joshua Lock wrote:
> >>>> Apologies. I'm wrong here. It was PRIORITY which we agreed to drop.
> >>>
> >>> It's worth noting however, at the same time PRIORITY removal was discussed it
> >>> was acknowledged that SECTION was questionable. Logical grouping of
> >>> recipes/packages is a useful thing but coming up with groupings that are
> >>> meaningful in all contexts is hard :(
> >>
> >> Glad to know my recollection isn't wildly off the mark.
> >>
> >> I noticed that there are similar, yet different, SECTION values being 
> >> used. If we opt to keep SECTION I wonder if we should try and 
> >> standardise/sanitise it?
> > 
> > If there is standardised SECTION variable why not use
> > recipes-${SECTION}/foo_1.0.bb as we already have couple of recipe-*
> > directories and it's sometimes hard to decide to which directory
> > something belongs.
> > 
> > Or other way around, standartise recipes-* directories and let bitbake
> > decide SECTION from it (like it does for PV and PN).

thats a good idea


^ permalink raw reply	[flat|nested] 32+ messages in thread

end of thread, other threads:[~2012-02-11  1:45 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-01 22:26 [pull-sys940x 0/4][meta-intel] Inforce SYS940X BSP (Intel Atom E6xx + EG20T) Darren Hart
2012-02-01 22:26 ` [pull-sys940x 1/4] meta-intel: Add Inforce SYS940x BSP Darren Hart
2012-02-01 22:37   ` Joshua Lock
2012-02-01 23:05     ` Joshua Lock
2012-02-02 18:07       ` Darren Hart
2012-02-01 22:26 ` [pull-sys940x 2/4] ranpwd: Add ranpwd recipe Darren Hart
2012-02-01 22:40   ` Joshua Lock
2012-02-02  7:22     ` Martin Jansa
2012-02-02 18:26       ` Darren Hart
2012-02-02 19:13         ` Joshua Lock
2012-02-02 19:34           ` Darren Hart
2012-02-02 18:24     ` Darren Hart
2012-02-02 19:24       ` Joshua Lock
2012-02-02 19:32         ` Darren Hart
2012-02-02 21:11           ` Joshua Lock
2012-02-06 16:17             ` Paul Eggleton
2012-02-06 23:59               ` Joshua Lock
2012-02-07  7:06                 ` Martin Jansa
2012-02-07  9:20                   ` [yocto] " Koen Kooi
2012-02-11  0:14                   ` Darren Hart
2012-02-11  1:45                     ` Khem Raj
2012-02-01 22:26 ` [pull-sys940x 3/4] genmac: Replace RANDOM_MAC in network/interfaces with a randomly generated MAC Darren Hart
2012-02-01 22:42   ` Joshua Lock
2012-02-02 18:27     ` Darren Hart
2012-02-02 14:09   ` William Mills
2012-02-02 17:19     ` Darren Hart
2012-02-02 18:37       ` William Mills
2012-02-01 22:26 ` [pull-sys940x 4/4] netbase: Add interfaces with RANDOM_MAC for sys940x* machines Darren Hart
2012-02-01 22:52   ` Joshua Lock
2012-02-01 23:03     ` Joshua Lock
2012-02-02 18:31       ` Darren Hart
2012-02-02 19:02       ` Joshua Lock

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.