calliope-mini: flash script not very cleanly written #11404
Labels
Area: boards
Area: Board ports
Area: tools
Area: Supplementary tools
Type: enhancement
The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation
While testing #11395, I noticed that the flash script for the calliope mini isn't that well written. It makes some assumptions that just aren't given or expects given configuration that isn't documented anywhere:
/media/${USER}
which it doesn't (e.g. in Arch it is/run/media/${USER}
)RIOT/boards/calliope-mini/dist/flash.sh
Lines 24 to 26 in 5e789c6
fstab
and can somehow be mounted this way without root. Otherwise I can't explainRIOT/boards/calliope-mini/dist/flash.sh
Line 42 in 5e789c6
Sadly, after a short while of trying to fix it I had to give up, since I'm short on time, but I suggest instead of trying to infer the device somehow from the mount-point to use tools like
lsblk
(on Linux) anddiskutil
(on OSX) to determine the device name from theMINI
label (maybe even confirm the USB-ID) and mount the device usingudiskctl
[1] [2] if it is available to mount it (don't know the equivalent on OSX though).The text was updated successfully, but these errors were encountered: