summaryrefslogtreecommitdiff
path: root/scripts/qemuimage-tests
diff options
context:
space:
mode:
authorDarren Hart <dvhart@linux.intel.com>2012-05-01 17:21:59 -0700
committerScott Garman <sgarman@zenlinux.com>2012-05-07 16:14:47 -0700
commit36634e16c0a0c80674bacf20f9841e3b042bd5fd (patch)
tree4e5561784a36788257343901fc45810bfb62f543 /scripts/qemuimage-tests
parent540cd9d42a4db562e5eca431cec89ac5a6a05cab (diff)
downloadopenembedded-core-36634e16c0a0c80674bacf20f9841e3b042bd5fd.tar.gz
openembedded-core-36634e16c0a0c80674bacf20f9841e3b042bd5fd.tar.bz2
openembedded-core-36634e16c0a0c80674bacf20f9841e3b042bd5fd.zip
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. Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Diffstat (limited to 'scripts/qemuimage-tests')
0 files changed, 0 insertions, 0 deletions