[Angstrom-devel] Joel A Fernandes : assemble_image: Copy U-boot environment files for flashing NAND (controlled by user button )

Angstrom Git Repos ang-git at xora.vm.bytemark.co.uk
Mon Jul 18 22:29:34 CEST 2011


Module: narcissus
Branch: master
Commit: 9d677727beb9ab6dd1b5ab6abbcd30ce6380cab2

Author: Joel A Fernandes <agnel.joel at gmail.com>
Date:   Mon Jul 18 14:27:16 2011 -0500

assemble_image: Copy U-boot environment files for flashing NAND (controlled by user button)

* Copy a user.txt and uEnv.txt if they exist in /boot in the root fs to the boot partition,
  When the user button is pressed, U-boot chooses between these 2 files, user.txt is used
  for flashing while uEnv.txt is for a regular boot

Signed-off-by: Joel A Fernandes <agnel.joel at gmail.com>
Signed-off-by: Koen Kooi <koen at dominion.thruhere.net>

---

 scripts/assemble-image.sh |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/scripts/assemble-image.sh b/scripts/assemble-image.sh
index 6043bde..f2a595a 100755
--- a/scripts/assemble-image.sh
+++ b/scripts/assemble-image.sh
@@ -126,6 +126,14 @@ if [ -e ${WORKDIR}/conf/${MACHINE}/sd ] ; then
 			echo "Using uImage from narcissus, no uImage found in rootfs"
 		fi
 
+		if [ -e ${TARGET_DIR}/boot/user.txt ] ; then
+			cp -v ${TARGET_DIR}/boot/user.txt /mnt/narcissus/sd_image1/
+		fi
+
+		if [ -e ${TARGET_DIR}/boot/uEnv.txt ] ; then
+			cp -v ${TARGET_DIR}/boot/uEnv.txt /mnt/narcissus/sd_image1/
+		fi
+
 		echo "Remounting ${LOOP_DEV}"
 		umount ${LOOP_DEV}
 		mount ${LOOP_DEV}




More information about the Angstrom-distro-devel mailing list