ltp-ddt nor qspi spi调试中需要修改的地方

1

blk_device_dd_readwrite_test.sh

before

SRC_FILE="/home/root/srctest_file_${DEVICE_TYPE}_$$"
do_cmd "time dd if=/dev/urandom of=$SRC_FILE bs=$DD_BUFSIZE count=$DD_CNT"

after

SRC_FILE="/home/root/srctest_file_${DEVICE_TYPE}_$$"

do_cmd "mkdir -p `dirname $SRC_FILE`"

do_cmd "time dd if=/dev/urandom of=$SRC_FILE bs=$DD_BUFSIZE count=$DD_CNT"
由于系统中没有/home/root文件夹,直接dd会出错,先要建立文件夹。

2

由于所有模块都是build-in不需要modprobe

blk_device_prepare_format.sh

before

if [[ "$DEV_NODE" =~ "mtd" ]]; then
  do_cmd printout_mtdinfo "$DEV_NODE"
  do_cmd modprobe mtdblock
  do_cmd modprobe ubi
  do_cmd modprobe ubifs
fi

after

if [[ "$DEV_NODE" =~ "mtd" ]]; then
  do_cmd printout_mtdinfo "$DEV_NODE"
  #do_cmd modprobe mtdblock
  #do_cmd modprobe ubi
  #do_cmd modprobe ubifs
fi

3

nor_mtd_dd_rw_jffs2

# partial mtd size as count
NOR_L_FUNC_DD_RW_JFFS2_BIGSIZE_0001 source 'common.sh'; part=`get_mtd_partition_number.sh "nor"` || die "error getting mtd part number: $part"; size=`get_mtd_size.sh "$part"` || die "error getting mtd size: $size"; size=$(( $size/MB )); do_cmd blk_device_dd_readwrite_test.sh -f "jffs2" -b "1M" -c "$size" -d "nor"

blk_device_dd_readwrite_test.sh -f "jffs2" -b "1M" -c "32" -d "nor"

由于硬件问题32不行,改为10,可以跑通。

4

nor_perf_jffs2

->NOR_L_PERF_JFFS2

->->blk_device_filesystem_perf_test.sh

before

do_cmd blk_device_umount.sh -m "$MNT_POINT"
    do_cmd "echo 3 > /proc/sys/vm/drop_caches"

#do_cmd "mount -t $FS_TYPE -o $MNT_MODE $DEV_NODE $MNT_POINT"
  do_cmd blk_device_do_mount.sh -n "$DEV_NODE" -f "$FS_TYPE" -d "$DEVICE_TYPE" -o "$MNT_MODE" -m "$MNT_POINT"
    do_cmd filesystem_tests -read -file ${TEST_FILE} -buffer_size $BUFFER_SIZE -file_size $FILE_SIZE -performance
    do_cmd "sync"
    do_cmd "echo 3 > /proc/sys/vm/drop_caches"

after

#do_cmd blk_device_umount.sh -m "$MNT_POINT"
    do_cmd "echo 3 > /proc/sys/vm/drop_caches"

#do_cmd "mount -t $FS_TYPE -o $MNT_MODE $DEV_NODE $MNT_POINT"
  #do_cmd blk_device_do_mount.sh -n "$DEV_NODE" -f "$FS_TYPE" -d "$DEVICE_TYPE" -o "$MNT_MODE" -m "$MNT_POINT"
    do_cmd filesystem_tests -read -file ${TEST_FILE} -buffer_size $BUFFER_SIZE -file_size $FILE_SIZE -performance
    do_cmd "sync"
    do_cmd "echo 3 > /proc/sys/vm/drop_caches"

filesystem_tests -read之前umount mount会报错,暂时#掉。

上一篇:CentOS RedHat YUM 源扩展补充(32位、64位均有)


下一篇:HDU 4734 F(x) (2013成都网络赛,数位DP)