Storage: expose the SD card as a USB drive #1
Open
opened 2026-10-05 09:28:01 +00:00 by twisla
·
0 comments
No Branch/Tag Specified
main
badges
ci-speed
keys-tables
help-key
devlog-console
console-setting
site-dev
site-howto
site-devlog
site-guide
site-security-txt
site
fix-release-polish
gitea-updates
coverage
ci
notes
f1
s1
m3
g1
m2
ota
v0.13.0
v0.12.0
v0.11.0
v0.10.0
v0.9.0
v0.8.1
v0.8.0
v0.7.0
v0.6.1
v0.6.0
v0.5.0
v0.4.0
v0.3.0
v0.2.1
v0.2.0
v0.1.0
Labels
Clear labels
area/apps
area/audio
area/build
area/cluster
area/gemini
area/gitea
area/gnss
area/ir
area/irc
area/lora
area/ota-debug
area/power
area/scripting
area/ssh
area/storage
area/ui
area/vpn
area/website
area/wifi
concern/memory
concern/security
Launcher and the apps in src/apps
Microphone, speaker, the codec, recording and playback
PlatformIO, Docker, scripts, partitions, sdkconfig
AtomS3 co-processors on Grove and the link protocol
GeminiService, the Gemini App, Saved Pages
The Gitea client: issues, releases, its TLS and its token
GnssService, the GNSS App, Tracks
The infrared LED and the IR Remote
IrcService and the IRC App
The Cap LoRa-1262 radio and the mesh
Updates, Probation, Safe Mode, Debug Console, crash reports
Battery, PowerService, sleep
Lua Apps from the SD card and their API
The SSH client and its terminal
StorageService, the SD card, Storage page
Canvas, widgets, dialogs, Toasts, fonts, keyboard
The WireGuard tunnel
The project website and its docs
WifiService, Wi-Fi Settings, Wi-Fi Tools
May push the heap towards its floors; measure on the device
TLS, signing, the debug token, trust on first use
kind
bug
Something that doesn't work as it should
kind
chore
Refactors, tooling, CI, scripts
kind
docs
README, CONTEXT, milestones, ADRs
kind
feature
Something new the device can do
priority
high
Next up
priority
low
Some day
priority
medium
Soon
status
blocked
Waiting on something else
status
needs-design
Needs a question round (Qnn) before code
status
ready
Designed; can be started
Milestone
No items
No Milestone
F1 Files and Notes
Assignees
twisla (Clément Martin)
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: twisla/roro9stack#1
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Idea
Add a setting that makes the SD card appear as a USB drive (USB mass storage) when the Cardputer is plugged into a computer. You could then copy Saved Pages, Tracks, Notes and
.otafiles with a file manager instead ofrdbg.py get/putor taking the card out.Why
Copying files over Wi-Fi with the Debug Console works, but it's slow and needs a Debug Build. Taking the microSD card out of a Cardputer is fiddly.
What's known
ARDUINO_USB_MODE=1(platformio.ini:19). That uses the ESP32-S3's built-in USB serial/JTAG peripheral, which can only be a serial port and can't act as a drive. A USB drive needsARDUINO_USB_MODE=0, where TinyUSB drives the chip's USB OTG peripheral, with Arduino'sUSBMSCclass on top.scripts/flash.sh.get/put.platform/shared_spi.h) at 20 MHz. Expect roughly 1 MB/s at best, and once M3 is in, the radio has to share the bus during transfers.Questions for the design round
Related
src/services/storage_service.cpp,platformio.ini,scripts/flash.sh,docs/milestones/OTA.md(Update from SD).