From 2f33ebc0f1b4cccb156ccd95ec099a7c84f54d6f Mon Sep 17 00:00:00 2001 From: Kuninori Morimoto Date: Mon, 9 Dec 2019 11:24:06 +0900 Subject: wiki: Porting wiki: Porting EMMC-speed-raw-data Signed-off-by: Kuninori Morimoto --- wiki/EMMC-speed-raw-data/mmc.sh | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 wiki/EMMC-speed-raw-data/mmc.sh (limited to 'wiki/EMMC-speed-raw-data') 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 -- cgit v1.2.3