target_util: improve/rework u-boot-upgrade script
authorPiotr Dymacz <pepe2k@gmail.com>
Wed, 14 Jun 2017 21:19:01 +0000 (23:19 +0200)
committerPiotr Dymacz <pepe2k@gmail.com>
Fri, 16 Jun 2017 08:13:57 +0000 (10:13 +0200)
commit765c9b32ec0a95d802fe18a80bcd7cb2de217884
tree719efa79d9af92cc4a1991eea544b31fa25eeb21
parent007e4341621933d4ac78ecf760b9952129753b40
target_util: improve/rework u-boot-upgrade script

This improves u-boot-upgrade target script:

- fix all warnings/errors pointed out by shellcheck
- generate expected checksum file from md5sums list if it doesn't exist
- check if target mtd device is writable before writing to it
- download and install kmod-mtd-rw if target mtd device is locked for rw
- don't show fatal error if target mtd device content wasn't changed

This closes #155
target_util/u-boot-upgrade