ltp-ddt emmc_dd_rw

emmc_dd_rw

EMMC_M_FUNC_DD_RW_500M source "common.sh"; install_modules.sh "emmc"; do_cmd blk_device_dd_readwrite_test.sh -b "10M" -c "50" -d "emmc"

出现错误:

emmc  Volume was not properly unmounted. Some data may be corrupt. Please run fsck.

追踪代码:

emmc_dd_rw

  ->EMMC_M_FUNC_DD_RW_500M

    ->blk_device_dd_readwrite_test.sh

      ->blk_device_prepare_format.sh

        ->blk_device_do_mount.sh

          ->do_cmd "mount -t $FS_TYPE -o $MNT_MODE $MNT_DEV_NODE $MNT_POINT"

            mount -t vfat -o async /dev/mmcblk0p1  /mnt/partition_emmc_pid

出现错误:

emmc  Volume was not properly unmounted. Some data may be corrupt. Please run fsck.

执行修复命令:

fsck.vfat -V /dev/mmcblk0p1

emmc_dd_rw

EMMC_S_FUNC_DD_RW_QUICK source "common.sh"; install_modules.sh "emmc"; do_cmd blk_device_dd_readwrite_test.sh -b "1M" -c "10" -d "emmc"

没有-f fstype选项,所以在blk_device_prepare_format.sh中,

if [ -n "$FS_TYPE" ]; then
    test_print_trc "Erasing/Formatting this partition and then mount it"
    do_cmd blk_device_erase_format_part.sh -d "$DEVICE_TYPE" -n "$DEV_NODE" -f "$FS_TYPE" -m "$MNT_POINT"
    do_cmd blk_device_do_mount.sh -n "$DEV_NODE" -f "$FS_TYPE" -d "$DEVICE_TYPE" -m "$MNT_POINT" -o "$MNT_MODE"
else
    test_print_trc "Mount the partition with the existing FS on device"
    do_cmd blk_device_do_mount.sh -n "$DEV_NODE" -d "$DEVICE_TYPE" -m "$MNT_POINT" -o "$MNT_MODE"
fi

 没有执行

EMMC_S_FUNC_DD_RW_QUICK pass

后面几个testcase就fail了。

原文地址:https://www.cnblogs.com/idyllcheung/p/10783716.html