diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2015-05-09 11:14:15 +0200 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2015-05-12 10:27:02 +0200 |
commit | 4f880c317379ee90868cd4f5a67080ef560dac83 (patch) | |
tree | f9fe4e6b756693efc670949deddf624b1820a81b /recipes/images/files/colibri-vf/colibri-vf_bin/flash_blk.scr | |
parent | dbf5bc6140d31746feb79586f3916785097ee933 (diff) |
trdx-image-fstype: fix/improve messages during update
Fix and enhance messages durring Colibri VF50/VF61 upgrade.
Fix missing run command
Diffstat (limited to 'recipes/images/files/colibri-vf/colibri-vf_bin/flash_blk.scr')
-rw-r--r-- | recipes/images/files/colibri-vf/colibri-vf_bin/flash_blk.scr | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/recipes/images/files/colibri-vf/colibri-vf_bin/flash_blk.scr b/recipes/images/files/colibri-vf/colibri-vf_bin/flash_blk.scr index b2a3bf6..5a00983 100644 --- a/recipes/images/files/colibri-vf/colibri-vf_bin/flash_blk.scr +++ b/recipes/images/files/colibri-vf/colibri-vf_bin/flash_blk.scr @@ -9,11 +9,12 @@ setenv update_new 'run update_uboot; run update_rootfs; reset' # Upgrade part 1, write new U-Boot, but with old ECC format still... # Store config block temporarly in memory at kernel_addr_r. -setenv upgrade_part1 'run update_uboot && nand read ${kernel_addr_r} 0x800 0x20 && echo "successfully updated U-Boot, enter \"reset\", interrupt boot process and enter \"run setupdate\; run upgrade_part2\" to complete upgrade"' +setenv upgrade_part1 'run update_uboot && nand read ${kernel_addr_r} 0x800 0x20 && echo "${upgrade_part1_msg}"' +setenv upgrade_part1_msg 'Successfully updated U-Boot, NAND upgrade required. Enter "reset", interrupt boot process and enter "run setupdate; run upgrade_part2" to complete upgrade.' # Upgrade part 2, use new ECC format for the whole device... -setenv upgrade_part2 'run create_bcb && nand write ${kernel_addr_r} 0x800 0x20 && \ -run update_uboot && nand erase.part ubi && run update_rootfs' +setenv upgrade_part2 'run create_bcb && nand write ${kernel_addr_r} 0x800 0x20 && run update_uboot && nand erase.part ubi && run update_rootfs && echo ${upgrade_part2_msg}' +setenv upgrade_part2_msg 'Successfully upgraded module, enter "reset" to restart the module.' # fsl_nfc indicates old NAND format (24-bit ECC), start migration process setenv update 'mtdparts default && if test "${mtdids}" = "nand0=fsl_nfc"; then; run upgrade_part1; else run update_new; fi' |