ah-ha...bingo...I pulled down the most recent linaro-media-create tool and am finally able to re-create this bug.
The diff between the linaro-media-create tool I was using and the one I just pulled down is....
--- orig_linaro-media-create 2010-09-13 15:35:37.000000000 -0500
+++ new_orig_linaro-media-create 2010-09-14 11:10:50.000000000 -0500
@@ -57,11 +57,11 @@
if [ ! ${IMAGE_FILE} ]; then
for device in /dev/disk/by-id/*; do
if [ `realpath $device` = $MMC ]; then
- if echo $device | grep -q -- "-part[0-9]*$"; then
+ if echo "$device" | grep -q -- "-part[0-9]*$"; then
echo "device $MMC must not be a partition part ($device)" 1>&2
exit 1
fi
- for part_id in `ls $device-part*`; do
+ for part_id in `ls "$device-part"*`; do part=`realpath $part_id` part_no=`echo $part_id | sed -e 's/.*-part//g'`
# echo "part $part_no found: $part_id" 1>&2
@@ -198,10 +198,10 @@
sudo mount ${MMC1} ${DIR}/disk
case "$DEVIMAGE" in
beagle|igep)
- if [ "$DEVIMAGE" == "beagle" ]; then
- if test -e binary/${parts_dir}/${MLO_FILE} -a -e binary/${parts_dir}/${UBOOT_FILE}; then
- sudo cp -v binary/${parts_dir}/${MLO_FILE} ${DIR}/disk/MLO
- sudo cp -v binary/${parts_dir}/${UBOOT_FILE} ${DIR}/disk/u-boot.bin
+ if [ "$DEVIMAGE" = "beagle" ]; then
+ if [ -e binary/${parts_dir}/${MLO_FILE} ] && [ -e binary/${parts_dir}/${UBOOT_FILE} ]; then
+ sudo cp -v binary/${parts_dir}/${MLO_FILE} ${DIR}/disk/MLO
+ sudo cp -v binary/${parts_dir}/${UBOOT_FILE} ${DIR}/disk/u-boot.bin
fi
fi
sync
ah-ha...bingo...I pulled down the most recent linaro-media-create tool and am finally able to re-create this bug.
The diff between the linaro-media-create tool I was using and the one I just pulled down is....
--- orig_linaro- media-create 2010-09-13 15:35:37.000000000 -0500 linaro- media-create 2010-09-14 11:10:50.000000000 -0500
part= `realpath $part_id`
part_ no=`echo $part_id | sed -e 's/.*-part//g'` ${parts_ dir}/${ MLO_FILE} -a -e binary/ ${parts_ dir}/${ UBOOT_FILE} ; then ${parts_ dir}/${ MLO_FILE} ${DIR}/disk/MLO ${parts_ dir}/${ UBOOT_FILE} ${DIR}/ disk/u- boot.bin ${parts_ dir}/${ MLO_FILE} ] && [ -e binary/ ${parts_ dir}/${ UBOOT_FILE} ]; then ${parts_ dir}/${ MLO_FILE} ${DIR}/disk/MLO ${parts_ dir}/${ UBOOT_FILE} ${DIR}/ disk/u- boot.bin
+++ new_orig_
@@ -57,11 +57,11 @@
if [ ! ${IMAGE_FILE} ]; then
for device in /dev/disk/by-id/*; do
if [ `realpath $device` = $MMC ]; then
- if echo $device | grep -q -- "-part[0-9]*$"; then
+ if echo "$device" | grep -q -- "-part[0-9]*$"; then
echo "device $MMC must not be a partition part ($device)" 1>&2
exit 1
fi
- for part_id in `ls $device-part*`; do
+ for part_id in `ls "$device-part"*`; do
# echo "part $part_no found: $part_id" 1>&2
@@ -198,10 +198,10 @@
sudo mount ${MMC1} ${DIR}/disk
case "$DEVIMAGE" in
beagle|igep)
- if [ "$DEVIMAGE" == "beagle" ]; then
- if test -e binary/
- sudo cp -v binary/
- sudo cp -v binary/
+ if [ "$DEVIMAGE" = "beagle" ]; then
+ if [ -e binary/
+ sudo cp -v binary/
+ sudo cp -v binary/
fi
fi
sync