generic-poky/meta
Darren Hart 203231f1f8 initrdscripts: Update install.sh to work with mmc devices
Fixes [YOCTO #2385]

The installer only searches for hd[ab] sd[ab]. Some newer BSPs have mmcblk
devices that should be used as the install target. These devices also have a
partition prefix (mmcblk0p1 instead of mmcblk01). As they are detected
asynchronously, it is necessary to add the rootwait kernel parameter to avoid
a race condition trying to mount the root device.

As BSPs like the FRI2 and the sys940x have mmc devices and will have a 1.2
release, we should push this to 1.2.1. The changes are perfectly contained and
easily verified.

Test for an mmcblk device and add the p partition prefix if necessary. Add the
rootwait kernel parameter when an mmcblk device is detected.  Replace the series
of explicit umount commands with a single umount using a wildcard. This will
find all the partitions and will not try to unmount non-existant devices. Avoid
copy and paste errors by replacing /dev/${device}${pX} references with the
previously assigned rootfs, bootfs, and swap variables.

These changes have been tested on the FRI2 Sato image which installed to
/dev/mmcblk0 as well as the N450 Sato image which installed to /dev/sda. Both
were successful.

(From OE-Core rev: bf403680d72e360c7382f540ea25cfdcbe77b4e5)

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
CC: Scott Garman <scott.a.garman@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-05-06 09:55:48 +01:00
..
classes terminal.bbclass, oe-buildenv-internal: pass SCREENDIR environment variable 2012-05-06 09:55:46 +01:00
conf conf/machine: Clean up configuration values. 2012-05-06 09:55:46 +01:00
files common-license: Add ICU generic 2012-03-25 12:23:39 +01:00
lib license.py: fix behaviour of copyleft_compliance 2012-04-04 17:17:51 +01:00
recipes-bsp Fix a couple of missing Upstream-Status 2012-05-01 12:38:10 +01:00
recipes-connectivity connman: enable TI shared transport plugin when wifi or bluetooth are requested 2012-05-04 16:45:00 +01:00
recipes-core initrdscripts: Update install.sh to work with mmc devices 2012-05-06 09:55:48 +01:00
recipes-devtools gcc-4.6: disable cloog, change syntax to disable ppl 2012-05-06 09:55:46 +01:00
recipes-extended mc: Update to 4.8.3 2012-05-03 15:48:06 +01:00
recipes-gnome gtk-engines: fix build with glib-2.32 2012-05-03 15:48:08 +01:00
recipes-graphics builder: Add Please Wait Dialog Box 2012-05-03 15:48:08 +01:00
recipes-kernel linux-yocto/meta: remove kernel config audit warnings 2012-04-17 23:16:30 +01:00
recipes-multimedia pulseaudio: disable tcpwrap by default 2012-05-03 15:48:08 +01:00
recipes-qt qt-4.8.1: fix creating /include directory in build host root 2012-05-03 15:48:09 +01:00
recipes-rt core-image-rt-*.bb: require munges DESCRIPTION 2012-04-16 22:30:03 +01:00
recipes-sato pcmanfm: Add sh3/sh4 to supported hosts 2012-05-01 12:38:08 +01:00
recipes-support gnutls: Update to 2.12.18 2012-05-03 15:48:07 +01:00
site site/ix86-common, site/x86_64-linux: alignment values for guin32, guin64 and unsigned long 2012-05-03 15:48:09 +01:00
COPYING.MIT Add missing licence files (COPYING.MIT) 2006-07-23 13:52:32 +00:00
recipes.txt meta/recipes.txt: correct Qt capitalisation 2011-09-07 22:54:17 +01:00