# @name EMMC card: EMMC modular RW test
# @desc modprobe mmc module first and then do RW and then rmmod it
# @requires mmc_host/sdhc
# @setup_requires sdhc

EMMC_M_MODULAR_STRESS_RW_EXT4_10M_20TIMES source "common.sh"; install_modules.sh "mmc"; do_cmd "zcat /proc/config.gz |grep -i mmc"; check_config_options "m" CONFIG_MMC; do_cmd blk_device_modular_dd_rw.sh -f "ext4" -b "1M" -c "10" -l "20" -d "emmc"
EMMC_M_MODULAR_STRESS_RW_VFAT_10M_20TIMES source "common.sh"; install_modules.sh "mmc"; do_cmd "zcat /proc/config.gz |grep -i mmc"; check_config_options "m" CONFIG_MMC; do_cmd blk_device_modular_dd_rw.sh -f "vfat" -b "1M" -c "10" -l "20" -d "emmc"
EMMC_S_MODULAR_RW_EXT4_10M source "common.sh"; install_modules.sh "mmc"; do_cmd "zcat /proc/config.gz |grep -i mmc"; check_config_options "m" CONFIG_MMC; do_cmd blk_device_modular_dd_rw.sh -f "ext4" -b "1M" -c "10" -l "1" -d "emmc"
EMMC_S_MODULAR_RW_EXT3_10M source "common.sh"; install_modules.sh "mmc"; do_cmd "zcat /proc/config.gz |grep -i mmc"; check_config_options "m" CONFIG_MMC; do_cmd blk_device_modular_dd_rw.sh -f "ext3" -b "1M" -c "10" -l "1" -d "emmc"
EMMC_S_MODULAR_RW_EXT2_10M source "common.sh"; install_modules.sh "mmc"; do_cmd "zcat /proc/config.gz |grep -i mmc"; check_config_options "m" CONFIG_MMC; do_cmd blk_device_modular_dd_rw.sh -f "ext2" -b "1M" -c "10" -l "1" -d "emmc"
EMMC_S_MODULAR_RW_VFAT_10M source "common.sh"; install_modules.sh "mmc"; do_cmd "zcat /proc/config.gz |grep -i mmc"; check_config_options "m" CONFIG_MMC; do_cmd blk_device_modular_dd_rw.sh -f "vfat" -b "1M" -c "10" -l "1" -d "emmc"
