zoukankan      html  css  js  c++  java
  • 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了。

  • 相关阅读:
    Leetcode95. Unique Binary Search Trees II不同的二叉搜索树2
    Leetcode134. Gas Station加油站
    Leetcode152. Maximum Product Subarray乘积的最大子序列
    C#扩展方法
    Lua语言入门
    Docker命令
    SpringBoot-配置文件属性注入-3种方式
    从零开始学Linux系统(五)用户管理和权限管理
    MyCat学习笔记
    kafka-zk-安装测试初体验
  • 原文地址:https://www.cnblogs.com/idyllcheung/p/10783716.html
Copyright © 2011-2022 走看看