diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2019-12-09 11:24:06 +0900 |
---|---|---|
committer | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2019-12-09 11:46:02 +0900 |
commit | 2f33ebc0f1b4cccb156ccd95ec099a7c84f54d6f (patch) | |
tree | 9d16814255dc4b933b56831661e6c73ad87edc17 /wiki/EMMC-speed-raw-data | |
parent | 7ff2854ab9afc659b68900e8e2ad560f3177ff85 (diff) |
wiki: Porting wiki: Porting EMMC-speed-raw-data
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
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 |