Skip to content

Instantly share code, notes, and snippets.

@TobiX
Created February 14, 2021 23:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TobiX/c9b140406a9408271ebe927344c13bc3 to your computer and use it in GitHub Desktop.
Save TobiX/c9b140406a9408271ebe927344c13bc3 to your computer and use it in GitHub Desktop.
Get Linux MMC transfer speeds
# Background: https://github.com/ThomasKaiser/Knowledge/blob/master/articles/A1_and_A2_rated_SD_cards.md
# Symptoms: Write speed seems to be capped at ~ 20MByte/s if controller does only support 3.3V
# To see if your controller supports higher speeds, enable these debug message:
echo "func mmc_set_ios +p" | sudo tee /sys/kernel/debug/dynamic_debug/control
echo "func mmc_set_initial_signal_voltage +p" | sudo tee /sys/kernel/debug/dynamic_debug/control
# Verify:
sudo grep mmc.*=p /sys/kernel/debug/dynamic_debug/control
# (this assumes debugfs under /sys/kernel/debug)
# On the next card insert, you should see power/speed debug messages in dmesg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment