From d9283ef6116a0c7fbd8ee62a5bc137895066a570 Mon Sep 17 00:00:00 2001 From: Frank Haverkamp Date: Wed, 20 Dec 2006 15:09:36 +0100 Subject: [MTD] UBI Utils: Update testscripts --- ubi-utils/scripts/ubi_test.sh | 11 ++++++----- 1 file 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 # # 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 -- cgit v1.2.3