summaryrefslogtreecommitdiff
path: root/board/boundarydevices/nitrogen6x/post-build.sh
diff options
context:
space:
mode:
authorGary Bisson <gary.bisson@boundarydevices.com>2015-05-26 10:19:40 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-07-11 13:04:48 +0200
commit5140658c1a141ba728019c43ab2a6ab6ec81e0ba (patch)
treefda082515ecd962861400764592cc13cd5c73bf5 /board/boundarydevices/nitrogen6x/post-build.sh
parent82c76fbfe64f2f18a1722e0c441e2f8b4e3ef26a (diff)
board/boundarydevices: rework and update u-boot scripts
Those scripts are executed by u-boot in order to detect the hardware configuration (board, displays etc...), configure the bootargs and device tree accordingly or update the bootloader located in NOR flash. This update is necessary due to the kernel bump to version 3.10.53. The rework consists of replacing the binaries by their text file equivalent and generate the binaries from the post-build.sh script. Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'board/boundarydevices/nitrogen6x/post-build.sh')
-rwxr-xr-xboard/boundarydevices/nitrogen6x/post-build.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/board/boundarydevices/nitrogen6x/post-build.sh b/board/boundarydevices/nitrogen6x/post-build.sh
index 2b43aa322..f68fa0e61 100755
--- a/board/boundarydevices/nitrogen6x/post-build.sh
+++ b/board/boundarydevices/nitrogen6x/post-build.sh
@@ -8,11 +8,13 @@
BOARD_DIR="$(dirname $0)"
# bd u-boot looks for bootscript here
-install -D -m 0644 $BOARD_DIR/6x_bootscript $TARGET_DIR/6x_bootscript
+$HOST_DIR/usr/bin/mkimage -A arm -O linux -T script -C none -a 0 -e 0 \
+-n "boot script" -d $BOARD_DIR/6x_bootscript.txt $TARGET_DIR/6x_bootscript
# u-boot / update script for bd upgradeu command
if [ -e $BINARIES_DIR/u-boot.imx ];
then
install -D -m 0644 $BINARIES_DIR/u-boot.imx $TARGET_DIR/u-boot.imx
- install -D -m 0644 $BOARD_DIR/6x_upgrade $TARGET_DIR/6x_upgrade
+ $HOST_DIR/usr/bin/mkimage -A arm -O linux -T script -C none -a 0 -e 0 \
+ -n "upgrade script" -d $BOARD_DIR/6x_upgrade.txt $TARGET_DIR/6x_upgrade
fi