From 939cbd7d80362d246a411bdbd317d1b39c3126b9 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Wed, 9 Dec 2015 14:47:27 +0100 Subject: 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 Acked-by: Marcel Ziswiler --- recipes/images/files/apalis-imx6/apalis-imx6_bin/flash_blk.scr | 1 + recipes/images/files/apalis-imx6/apalis-imx6_bin/flash_eth.scr | 1 + recipes/images/files/library/imx6/update.sh | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) 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" -- cgit v1.2.3