diff options
Diffstat (limited to 'recipes/images/files/colibri-t20/colibri-t20_bin/flash_eth.scr')
-rw-r--r-- | recipes/images/files/colibri-t20/colibri-t20_bin/flash_eth.scr | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/recipes/images/files/colibri-t20/colibri-t20_bin/flash_eth.scr b/recipes/images/files/colibri-t20/colibri-t20_bin/flash_eth.scr new file mode 100644 index 0000000..7c9ad4a --- /dev/null +++ b/recipes/images/files/colibri-t20/colibri-t20_bin/flash_eth.scr @@ -0,0 +1,8 @@ +setenv prepare_rootfs 'ubi part ubi && ubi check rootfs || ubi create rootfs' +setenv update_configblock 'tftpboot ${loadaddr} configblock.bin && nand erase.part cfgblock && nand write ${loadaddr} cfgblock ${filesize}' +setenv update_uboot 'tftpboot ${loadaddr} colibri_t20-${ram-size}-${hw-version}-nand.img && nand erase.part u-boot && nand erase.part u-boot-env && nand write ${loadaddr} u-boot ${filesize}' +setenv update_rootfs 'tftpboot ${loadaddr} ubifs_${leb-size}.img && run prepare_rootfs && ubi write ${loadaddr} rootfs ${filesize}' + +setenv update 'run update_uboot; run update_rootfs; reset' + +echo 'enter "run update" to update the entire module' |