diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2015-12-09 14:47:27 +0100 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2015-12-15 15:49:28 +0100 |
commit | 939cbd7d80362d246a411bdbd317d1b39c3126b9 (patch) | |
tree | 55bace83b57620004a1bb9b3afc0a8c931227c90 | |
parent | 6ba97a33e93ad300836339230449e02ac62692e1 (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>
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" |