diff options
author | Frank Haverkamp <haver@vnet.ibm.com> | 2006-12-20 15:09:36 +0100 |
---|---|---|
committer | Frank Haverkamp <haver@vnet.ibm.com> | 2006-12-20 15:09:36 +0100 |
commit | d9283ef6116a0c7fbd8ee62a5bc137895066a570 (patch) | |
tree | e55975e779d81978ed5dd704c7dadb39df887d71 /ubi-utils/scripts | |
parent | d45b87985d5371b2e47458ee0666f7979d5a8c21 (diff) |
[MTD] UBI Utils: Update testscripts
Diffstat (limited to 'ubi-utils/scripts')
-rwxr-xr-x | ubi-utils/scripts/ubi_test.sh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/ubi-utils/scripts/ubi_test.sh b/ubi-utils/scripts/ubi_test.sh index 3835bcb..8e62fb4 100755 --- a/ubi-utils/scripts/ubi_test.sh +++ b/ubi-utils/scripts/ubi_test.sh @@ -8,15 +8,16 @@ # Author: Frank Haverkamp <haver@vnet.ibm.com> # # 1.0 Initial version +# 1.1 Use ubiupdatevol instead of ubiwritevol # -VERSION="1.0" +VERSION="1.1" export PATH=$PATH:~/bin:/usr/local/bin:/home/dedekind/work/prj/ubi/tools/flashutils/bin/ UBIMKVOL=ubimkvol UBIRMVOL=ubirmvol -UBIWRITEVOL=ubiwritevol +UBIUPDATEVOL=ubiupdatevol # 128 KiB 131072 # 256 KiB 262144 @@ -97,7 +98,7 @@ delete_volume () if [ -e /sys/class/ubi/$volume -o -e /sys/class/ubi/ubi0/$volume ]; then echo -n "*** Truncate volume if it exists ... " - $UBIWRITEVOL -d0 -n$volume -t + $UBIUPDATEVOL -d0 -n$volume -t if [ $? -ne "0" ] ; then exit_failure fi @@ -214,8 +215,8 @@ writevol_test () echo "*** Now writing data to volume ... " # sleep 5 ls -l testdata.bin - echo " $UBIWRITEVOL -d0 -n$MINVOL testdata.bin" - $UBIWRITEVOL -d0 -n$MINVOL testdata.bin + echo " $UBIUPDATEVOL -d0 -n$MINVOL testdata.bin" + $UBIUPDATEVOL -d0 -n$MINVOL testdata.bin if [ $? -ne "0" ] ; then exit_failure fi |