summaryrefslogtreecommitdiff
path: root/recipes-images/images/files/library/imx6/update.sh
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2018-01-17 19:24:44 +0100
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2018-03-22 09:18:57 +0100
commit4aa93076a9afc193b7ede41e3e088c0355856d04 (patch)
tree86ce24f24fcbcdb70319865291ac7e096a336723 /recipes-images/images/files/library/imx6/update.sh
parent574e010729134e1f502c4f8d2fc0209e9ecd22bd (diff)
tdx-image-fstype: move to a spl/u-boot recovery download chain
Move from a recovery u-boot.imx to download first the SPL which immediately goes into SDP download mode again and then download u-boot.img. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Diffstat (limited to 'recipes-images/images/files/library/imx6/update.sh')
-rwxr-xr-xrecipes-images/images/files/library/imx6/update.sh13
1 files changed, 6 insertions, 7 deletions
diff --git a/recipes-images/images/files/library/imx6/update.sh b/recipes-images/images/files/library/imx6/update.sh
index 27dda07..ddfcc2c 100755
--- a/recipes-images/images/files/library/imx6/update.sh
+++ b/recipes-images/images/files/library/imx6/update.sh
@@ -61,8 +61,7 @@ OUT_DIR=""
ROOTFSPATH=rootfs
SPLIT=1
UBOOT_RECOVERY=0
-U_BOOT_BINARY=u-boot.imx-spl
-U_BOOT_RECOVER_BINARY=u-boot.imx-recover
+U_BOOT_BINARY=u-boot.img
SPL_BINARY=SPL
while getopts "dfhm:o:" Option ; do
@@ -135,7 +134,7 @@ case "$MODTYPE" in
KERNEL_DEVICETREE="imx6q-apalis-eval.dtb imx6q-apalis_v1_0-eval.dtb \
imx6q-apalis-ixora.dtb imx6q-apalis_v1_0-ixora.dtb \
imx6q-apalis-ixora-v1.1.dtb"
- LOCPATH="imx_flash"
+ LOCPATH="`pwd`/imx_flash"
OUT_DIR="$OUT_DIR/apalis_imx6"
;;
"colibri-imx6")
@@ -143,7 +142,7 @@ case "$MODTYPE" in
EMMC_SIZE=$(expr 1024 \* 3500 \* 2)
IMAGEFILE=root.ext4
KERNEL_DEVICETREE="imx6dl-colibri-eval-v3.dtb imx6dl-colibri-cam-eval-v3.dtb imx6dl-colibri-aster.dtb"
- LOCPATH="imx_flash"
+ LOCPATH="`pwd`/imx_flash"
OUT_DIR="$OUT_DIR/colibri_imx6"
;;
*) echo "script internal error, unknown module type set"
@@ -155,9 +154,9 @@ BINARIES=${MODTYPE}_bin
#is only U-Boot to be copied to RAM?
if [ "$UBOOT_RECOVERY" -ge 1 ] ; then
- cd ${LOCPATH}
- #the IT timings work for all modules, so use it during recovery
- sudo ./imx_usb ../${BINARIES}/${U_BOOT_RECOVER_BINARY}
+ cd ${BINARIES}
+ # do a load chain of first loading SPL then u-boot.img
+ sudo ${LOCPATH}/imx_usb
exit
fi