Skip to content
Snippets Groups Projects
Commit 96f2b1db authored by Gary Bisson's avatar Gary Bisson Committed by Troy Kisky
Browse files

Add convenient copy_upgrade.sh script


Generates upgrade scripts and copies to a mount path as well as
renaming the u-boot binary properly.

Signed-off-by: default avatarGary Bisson <gary.bisson@boundarydevices.com>
parent 674e8689
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
if [ $# -lt 1 ]; then
echo "Error, missing a parameter:"
echo "$0 <mount_path>"
exit 1
fi
./tools/mkimage -A arm -O linux -T script -C none \
-a 0 -e 0 -n "update script" \
-d board/boundary/nitrogen6x/6x_upgrade.txt 6x_upgrade
./tools/mkimage -A arm -O linux -T script -C none \
-a 0 -e 0 -n "update script" \
-d board/boundary/bootscripts/upgrade.txt upgrade.scr
uboot_defconfig=`grep CONFIG_DEFCONFIG include/config.h|sed -e 's/#define CONFIG_DEFCONFIG[^"]\{1,\}"\([^"]\{1,\}\)"/\1/'`
cp u-boot.imx u-boot.$uboot_defconfig
mv -v -t $1/ u-boot.$uboot_defconfig 6x_upgrade upgrade.scr
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment