diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2015-04-10 12:46:26 +0200 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2015-05-12 10:04:35 +0200 |
commit | 035a6ff7221a92fe6e45a83ee6d5468a5b122785 (patch) | |
tree | f81f95e2bcec0d5a024b0d38c8f86a12e3eabf2b /recipes | |
parent | c437f768229f62e057c5c93d21c7aa06d9b49aac (diff) |
trdx-image-fstype: sync Vybrid flash scripts
Update to latest version (r663) of Vybrid flash scripts.
Diffstat (limited to 'recipes')
-rw-r--r-- | recipes/images/files/colibri-vf/colibri-vf_bin/flash_blk.img | bin | 0 -> 1257 bytes | |||
-rw-r--r-- | recipes/images/files/colibri-vf/colibri-vf_bin/flash_blk.scr | 16 | ||||
-rw-r--r-- | recipes/images/files/colibri-vf/colibri-vf_bin/flash_eth.img | bin | 1282 -> 1282 bytes | |||
-rw-r--r-- | recipes/images/files/colibri-vf/colibri-vf_bin/flash_mmc.img | bin | 1261 -> 163 bytes | |||
-rw-r--r-- | recipes/images/files/colibri-vf/colibri-vf_bin/flash_mmc.scr | 19 |
5 files changed, 19 insertions, 16 deletions
diff --git a/recipes/images/files/colibri-vf/colibri-vf_bin/flash_blk.img b/recipes/images/files/colibri-vf/colibri-vf_bin/flash_blk.img Binary files differnew file mode 100644 index 0000000..488a844 --- /dev/null +++ b/recipes/images/files/colibri-vf/colibri-vf_bin/flash_blk.img 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 new file mode 100644 index 0000000..58d1282 --- /dev/null +++ b/recipes/images/files/colibri-vf/colibri-vf_bin/flash_blk.scr @@ -0,0 +1,16 @@ +setenv create_bcb 'nand erase.part vf-bcb && writebcb 0x20000 0x20000' +setenv update_configblock 'fatload ${interface} 0:1 ${loadaddr} configblock.bin && nand write ${loadaddr} 0x800 ${filesize}' + +setenv update_uboot 'fatload ${interface} 0:1 ${loadaddr} u-boot-nand.imx && nand erase.part u-boot && nand erase.part u-boot-env && nand write ${loadaddr} u-boot' +setenv update_rootfs 'fatload ${interface} 0:1 ${loadaddr} ubifs.img && nand erase.part ubi && ubi part ubi && ubi createvol rootfs && ubi write ${loadaddr} rootfs ${filesize}' + +setenv echo_v2.1b3 echo "successfully updated U-Boot, power-cycle and enter \"run setupdate\; run migrate_v2.1b3\" to complete update" +setenv migrate_v2.1b3 'nand read ${loadaddr} 0x40000 0x800 && nand erase.chip && writebcb 0x20000 0x20000 && nand write ${loadaddr} 0x800 0x800 && run update_new' +setenv update_v2.1b3 'run update_uboot; run echo_v2.1b3' + +setenv mtdparts 'mtdparts=fsl_nfc:128k(vf-bcb)ro,1408k(u-boot)ro,512k(u-boot-env),-(ubi)' + +setenv update_new 'run update_uboot; run update_rootfs; reset' +setenv update 'if test -v $ver; then run update_new; else run update_v2.1b3; fi' + +echo 'enter "run update" to update the entire module' diff --git a/recipes/images/files/colibri-vf/colibri-vf_bin/flash_eth.img b/recipes/images/files/colibri-vf/colibri-vf_bin/flash_eth.img Binary files differindex d5f4b9e..0f72b14 100644 --- a/recipes/images/files/colibri-vf/colibri-vf_bin/flash_eth.img +++ b/recipes/images/files/colibri-vf/colibri-vf_bin/flash_eth.img diff --git a/recipes/images/files/colibri-vf/colibri-vf_bin/flash_mmc.img b/recipes/images/files/colibri-vf/colibri-vf_bin/flash_mmc.img Binary files differindex 98ace63..9c7ab9f 100644 --- a/recipes/images/files/colibri-vf/colibri-vf_bin/flash_mmc.img +++ b/recipes/images/files/colibri-vf/colibri-vf_bin/flash_mmc.img diff --git a/recipes/images/files/colibri-vf/colibri-vf_bin/flash_mmc.scr b/recipes/images/files/colibri-vf/colibri-vf_bin/flash_mmc.scr index dcf1c15..e0770a0 100644 --- a/recipes/images/files/colibri-vf/colibri-vf_bin/flash_mmc.scr +++ b/recipes/images/files/colibri-vf/colibri-vf_bin/flash_mmc.scr @@ -1,16 +1,3 @@ -setenv create_bcb 'nand erase.part vf-bcb && writebcb 0x20000 0x20000' -setenv update_configblock 'mw.l ${loadaddr} 0xffffffff 0x200 && fatload mmc 0:1 ${loadaddr} configblock.bin && nand write ${loadaddr} 0x800 0x800' - -setenv update_uboot 'fatload mmc 0:1 ${loadaddr} u-boot-nand.imx && nand erase.part u-boot && nand erase.part u-boot-env && nand write ${loadaddr} u-boot' -setenv update_rootfs 'fatload mmc 0:1 ${loadaddr} ubifs.img && nand erase.part ubi && ubi part ubi && ubi createvol rootfs && ubi write ${loadaddr} rootfs ${filesize}' - -setenv echo_v2.1b3 echo "successfully updated U-Boot, power-cycle and enter \"run setupdate\; run migrate_v2.1b3\" to complete update" -setenv migrate_v2.1b3 'nand read ${loadaddr} 0x40000 0x800 && nand erase.chip && writebcb 0x20000 0x20000 && nand write ${loadaddr} 0x800 0x800 && run update_new' -setenv update_v2.1b3 'run update_uboot; run echo_v2.1b3' - -setenv mtdparts 'mtdparts=fsl_nfc:128k(vf-bcb)ro,1408k(u-boot)ro,512k(u-boot-env),-(ubi)' - -setenv update_new 'run update_uboot; run update_rootfs; reset' -setenv update 'if test -v $ver; then run update_new; else run update_v2.1b3; fi' - -echo 'enter "run update" to update the entire module' +setenv interface mmc +fatload ${interface} 0:1 ${loadaddr} flash_blk.img +source ${loadaddr} |