Z80 Retro #18 - How SD Cards Work

Опубликовано: 13 Май 2026
на канале: John's Basement
7,374
263

An important note from @knghtbrd
You definitely gave enough warning about sda possibly being not your SD card especially on a desktop system, but … it can be your boot drive on a Raspberry Pi too. So a good rule of thumb … before you go writing over anything in /dev … check what's mounted on your system. You can do that with this command:

df -H

If you see sdaANYTHING there … don't run commands that overwrite it! Find out where your SD card is first and figure out how to modify the command appropriately.
---

You can support this channel on Patreon!   / johnsbasement  
This video is part of a YouTube playlist/series:    • Z80 Retro  

The github repo seen in this video:
https://github.com/johnwinans/2063-Z8...

Related project hardware repos:
https://github.com/johnwinans/2063-Z80
https://github.com/johnwinans/2065-Z8...

A Hackaday page for Z80 Retro! projects:
https://hackaday.io/project/182190-z8...

Related Wikipedia pages:
https://en.wikipedia.org/wiki/Serial_...
https://en.wikipedia.org/wiki/SD_card
https://en.wikipedia.org/wiki/Master_...

Simplified SD card specification (you want Part-1):
https://www.sdcard.org/downloads/pls/

rjhcoding.com website with some AVR C code that might also be useful in understanding the SD card's SPI protocol.

Ben Eater's SPI interface video:
   • SPI: The serial peripheral interface  

Music used in this video (Vibe Tracks, Alternate) was downloaded from the YouTube Audio Library: https://www.youtube.com/audiolibrary_...

#Z80
#SDcard
#CPM
#homebrew
#retrocomputer