summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2015-12-09 14:47:27 +0100
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2015-12-15 15:49:28 +0100
commitbe417a868d8bd0959020156580537974159b5013 (patch)
tree0cbc630e6bcfb2243cac4c7beac6cd8d95fd149a
parentd755fab380a092f8b2cab2f77efc4f15fb97414b (diff)
Apalis iMX6: flash scripts, add update_uboot_it
This has been missing since our move to boot from the eMMC boot partition. While at it clarify update.sh help. _it applies only to Apalis iMX6 IT modules. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
-rw-r--r--recipes/images/files/apalis-imx6/apalis-imx6_bin/flash_blk.scr1
-rw-r--r--recipes/images/files/apalis-imx6/apalis-imx6_bin/flash_eth.scr1
-rwxr-xr-xrecipes/images/files/library/imx6/update.sh2
3 files changed, 3 insertions, 1 deletions
diff --git a/recipes/images/files/apalis-imx6/apalis-imx6_bin/flash_blk.scr b/recipes/images/files/apalis-imx6/apalis-imx6_bin/flash_blk.scr
index e8e6fa9..961cb7a 100644
--- a/recipes/images/files/apalis-imx6/apalis-imx6_bin/flash_blk.scr
+++ b/recipes/images/files/apalis-imx6/apalis-imx6_bin/flash_blk.scr
@@ -16,6 +16,7 @@ setenv migrate_uboot 'load ${interface} ${drive}:1 ${loadaddr} ${board_name}/u-b
setenv cp_file_chunk 'load ${interface} ${drive}:1 ${loadaddr} ${board_name}/root.ext3 ${filesize} ${filepos}; run set_blkcnt; mmc dev 0 0 && mmc write ${loadaddr} ${blkstart} ${blkcnt}'
setenv update_uboot 'load ${interface} ${drive}:1 ${loadaddr} ${board_name}/u-boot${module_type}.imx && run set_blkcnt && mmc dev 0 1 && mmc write ${loadaddr} 2 ${blkcnt} && mmc bootbus 0 2 1 2 && mmc partconf 0 1 1 0'
+setenv update_uboot_it 'setenv module_type -it; run update_uboot'
setenv update_kernel 'load ${interface} ${drive}:1 ${loadaddr} ${board_name}/uImage && fatwrite mmc 0:1 ${loadaddr} uImage ${filesize}'
diff --git a/recipes/images/files/apalis-imx6/apalis-imx6_bin/flash_eth.scr b/recipes/images/files/apalis-imx6/apalis-imx6_bin/flash_eth.scr
index 02f6a5b..7248c2e 100644
--- a/recipes/images/files/apalis-imx6/apalis-imx6_bin/flash_eth.scr
+++ b/recipes/images/files/apalis-imx6/apalis-imx6_bin/flash_eth.scr
@@ -13,6 +13,7 @@ setenv migrate_uboot 'tftpboot ${loadaddr} ${board_name}/u-boot${module_type}.im
setenv cp_file_chunk 'tftpboot ${loadaddr} ${board_name}/root.ext3-${filenum}; run set_blkcnt; mmc dev 0 0 && mmc write ${loadaddr} ${blkstart} ${blkcnt}'
setenv update_uboot 'tftpboot ${loadaddr} ${board_name}/u-boot${module_type}.imx && run set_blkcnt && mmc dev 0 1 && mmc write ${loadaddr} 2 ${blkcnt} && mmc bootbus 0 2 1 2 && mmc partconf 0 1 1 0'
+setenv update_uboot_it 'setenv module_type -it; run update_uboot'
setenv update_kernel 'tftpboot ${loadaddr} ${board_name}/uImage && fatwrite mmc 0:1 ${loadaddr} uImage ${filesize}'
diff --git a/recipes/images/files/library/imx6/update.sh b/recipes/images/files/library/imx6/update.sh
index 3f61b21..be89e17 100755
--- a/recipes/images/files/library/imx6/update.sh
+++ b/recipes/images/files/library/imx6/update.sh
@@ -34,7 +34,7 @@ Flash()
echo "'run update_kernel'"
echo "'run update_rootfs'"
echo ""
- echo "Use the version with '_it' if you have an IT module, e.g. 'Apalis iMX6Q 2GB IT'"
+ echo "for 'Apalis iMX6Q 2GB IT' use the version with '_it'."
echo ""
echo "If you don't have a working U-Boot anymore, connect your PC to the module's USB"
echo "client port, bring the module in the serial download mode and start the"