[Angstrom-devel] [PATCH 3/4] assemble_image: Copy a UBIFS image to the filesystem for SD Card image builds
Joel A Fernandes
agnel.joel at gmail.com
Mon Jul 18 21:27:17 CEST 2011
* For SD Card image builds, also make a ubi image and copy it to /boot in the root filesystem
This is used by the flashing script to ubiformat the NAND
Signed-off-by: Joel A Fernandes <agnel.joel at gmail.com>
---
scripts/assemble-image.sh | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/scripts/assemble-image.sh b/scripts/assemble-image.sh
index f2a595a..2940d9a 100755
--- a/scripts/assemble-image.sh
+++ b/scripts/assemble-image.sh
@@ -145,8 +145,13 @@ if [ -e ${WORKDIR}/conf/${MACHINE}/sd ] ; then
echo "Copying file system:"
echo "tar xzf ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.tar.gz -C /mnt/narcissus/sd_image2"
tar xzf ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.tar.gz -C /mnt/narcissus/sd_image2
- touch /mnt/narcissus/sd_image2/narcissus-was-here
+ if [ -e ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.ubi ] ; then
+ echo "Copying UBIFS image to file system:"
+ mv ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.ubi /mnt/narcissus/sd_image2/boot/fs.ubi
+ fi
+
+ touch /mnt/narcissus/sd_image2/narcissus-was-here
echo "Remounting ${LOOP_DEV_FS}"
umount ${LOOP_DEV_FS}
mount ${LOOP_DEV_FS}
@@ -427,6 +432,10 @@ case ${IMAGETYPE} in
sdimg)
do_tar
do_sdimg;;
+ sdimg-ubi)
+ do_tar
+ do_ubifs
+ do_sdimg;;
*)
do_tar;;
esac
--
1.7.0.4
More information about the Angstrom-distro-devel
mailing list