[Angstrom-devel] [PATCH 2/2] assemble_image: Copy a UBIFS image to the filesystem for SD Card image builds

2011-07-18 Thread Joel A Fernandes
* 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.j...@gmail.com
---
 scripts/assemble-image.sh |6 +-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/scripts/assemble-image.sh b/scripts/assemble-image.sh
index d34b1c8..d0760b9 100755
--- a/scripts/assemble-image.sh
+++ b/scripts/assemble-image.sh
@@ -145,8 +145,11 @@ 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
 
+   echo Copying UBIFS image to file system:
+   mv ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.ubi 
/mnt/narcissus/sd_image2/boot/fs.ubi
+
+   touch  /mnt/narcissus/sd_image2/narcissus-was-here
echo Remounting ${LOOP_DEV_FS}
umount ${LOOP_DEV_FS}
mount ${LOOP_DEV_FS}
@@ -426,6 +429,7 @@ case ${IMAGETYPE} in
do_ext2;;
sdimg)
do_tar
+   do_ubifs
do_sdimg;;
*)
do_tar;;
-- 
1.7.0.4


___
Angstrom-distro-devel mailing list
Angstrom-distro-devel@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel


Re: [Angstrom-devel] [PATCH 2/2] assemble_image: Copy a UBIFS image to the filesystem for SD Card image builds

2011-07-18 Thread Koen Kooi

Op 18 jul 2011, om 17:51 heeft Joel A Fernandes het volgende geschreven:

 * 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.j...@gmail.com
 ---
 scripts/assemble-image.sh |6 +-
 1 files changed, 5 insertions(+), 1 deletions(-)
 
 diff --git a/scripts/assemble-image.sh b/scripts/assemble-image.sh
 index d34b1c8..d0760b9 100755
 --- a/scripts/assemble-image.sh
 +++ b/scripts/assemble-image.sh
 @@ -145,8 +145,11 @@ 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
 + echo Copying UBIFS image to file system:
 + mv ${TARGET_DIR}/../${IMAGENAME}-${MACHINE}.ubi 
 /mnt/narcissus/sd_image2/boot/fs.ubi
 +
 + touch  /mnt/narcissus/sd_image2/narcissus-was-here
   echo Remounting ${LOOP_DEV_FS}
   umount ${LOOP_DEV_FS}
   mount ${LOOP_DEV_FS}
 @@ -426,6 +429,7 @@ case ${IMAGETYPE} in
   do_ext2;;
   sdimg)
   do_tar
 + do_ubifs
   do_sdimg;;

The ubifs addition needs to be opt-in, not forcefully enabled for all builds
___
Angstrom-distro-devel mailing list
Angstrom-distro-devel@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel