From a66f2439f1698000942e8db59ad3a435ca1e0506 Mon Sep 17 00:00:00 2001 From: Erez Zadok Date: Mon, 1 Oct 2007 01:06:36 -0400 Subject: [PATCH] Support 2.6.9's older style blkmtd driver. --- run-tests | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/run-tests b/run-tests index 074aad1..c9fbdfa 100755 --- a/run-tests +++ b/run-tests @@ -117,7 +117,14 @@ function setup_lower ;; jffs2 ) runcmd modprobe mtdblock - runcmd modprobe block2mtd block2mtd=$dev,128ki + case "`uname -r`" in + 2.6.9* ) + runcmd modprobe blkmtd device=$dev,128ki + ;; + * ) + runcmd modprobe block2mtd block2mtd=$dev,128ki + ;; + esac runcmd sync # work around race bug in block2mtd runcmd mount -t $fs /dev/mtdblock$i /n/lower/b$i ;; @@ -238,7 +245,7 @@ do if test -f $t then test -n "$OUTPUT_COLOR" && echo -e -n "\033[${OUTPUT_COLOR}m" - echo "TEST: $t (FS=${MYFS:-default})" + echo "TEST: $t (FS=${MYFS:-default} KERNEL=`uname -r`)" test -n "$OUTPUT_COLOR" && echo -e -n "\033[m" else echo "no such test script $t" -- 2.43.0