diff options
Diffstat (limited to 'wiki/EMMC-speed-raw-data/mmc.sh')
-rw-r--r-- | wiki/EMMC-speed-raw-data/mmc.sh | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/wiki/EMMC-speed-raw-data/mmc.sh b/wiki/EMMC-speed-raw-data/mmc.sh new file mode 100644 index 0000000..0faaa82 --- /dev/null +++ b/wiki/EMMC-speed-raw-data/mmc.sh @@ -0,0 +1,38 @@ +#!/bin/bash + +do_one () +{ + echo "# $@" + "$@" +} + +do_test () +{ + for i in $(seq 3); do + do_one "$@" + sleep 10 + done +} + +echo "# dmesg | grep mmc0" +dmesg | grep mmc0 +do_one cat /sys/kernel/debug/mmc0/ios +do_one cat /sys/devices/platform/soc/*/mmc_host/mmc0/mmc0:0001/cid + +echo +echo "Read from MMC, direct" +do_test dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512 iflag=direct + +echo +echo "Read from MMC, no direct" +do_test dd if=/dev/mmcblk0 of=/dev/null bs=1M count=512 + +echo +echo "Write to MMC, direct" +do_test dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512 oflag=direct + +echo +echo "Write to MMC, no direct" +do_test dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=512 + +echo |