diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2019-12-23 14:27:52 +0900 |
---|---|---|
committer | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2019-12-23 14:27:52 +0900 |
commit | dc71f3518c95f8d9d306e8a4e53bc9bd2e9928e3 (patch) | |
tree | 54552f6ba6cec40e16cef5c22043d9f510087e00 /wiki/EMMC-speed-raw-data | |
parent | bb506a3f4c5441ecb212874077ad8b1bf335c936 (diff) | |
parent | 05040a728026b28ce7c6183d2adfa80218b306cb (diff) |
Merge remote-tracking branch 'gitlab/wiki' into HEAD
Diffstat (limited to 'wiki/EMMC-speed-raw-data')
-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 |