Skip to content
Browse files

assemble_image: Copy U-boot environment files for flashing NAND (cont…

…rolled 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@gmail.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
  • Loading branch information...
1 parent fb5dd61 commit 9d677727beb9ab6dd1b5ab6abbcd30ce6380cab2 @joelagnel joelagnel committed with koenkooi Jul 18, 2011
Showing with 8 additions and 0 deletions.
  1. +8 −0 scripts/assemble-image.sh
View
8 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}

0 comments on commit 9d67772

Please sign in to comment.
Something went wrong with that request. Please try again.