Repository navigation
Upload to the SD card the device has, not to /mnt/dmsdio0_0p1 - #127
Merged
Merged
Conversation
The files went to /mnt/dmsdio0_0p1 - where automount mounts a card without a label. A card with one is mounted at /mnt/<label> (e.g. /mnt/bootfs on another board), and the files went nowhere useful. ymodem_send.py finds the card: a --dest that is not absolute is on it - the script types `ls /mnt` and takes the one card there (--card NAME picks one of several, --card none keeps the shell's current directory); with --wait it asks again until the card is mounted after a start. An absolute --dest is used as before. DMBOOT_UPLOAD_DEST is empty by default (the card's root), DMBOOT_UPLOAD_CARD names a card. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
2 of 3 tasks
build/sdcard is made by download_sdcard_modules, a target of `all` only: after a build of the firmware alone (install-firmware, dmboot.elf) there was none, and the upload failed - after install-all had flashed the board. Both targets depend on it now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Right after a start - before the card is mounted - what came back for `ls /mnt` was what the console had then (bytes of the boot), and it was taken for a card: the files were sent to /mnt/<noise>, which no receiver answered. A failed transfer's CANs, left on the shell's line, were one too. What follows the command's echo is read only, and names of printable characters are kept. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
upload-files/install-allsent the files to/mnt/dmsdio0_0p1, which is where automount mounts a card without a label. A card with a label is mounted at/mnt/<label>, for example/mnt/bootfson another board, so the files never reached it.Now
scripts/ymodem_send.pyfinds the card:--destis on the SD card. The script typesls /mntinto the console and uses the one card mounted there. It then typesymodem recv -d /mnt/<card>/<dest>.--card NAMEpicks one of several cards.--card nonekeeps the old meaning: under the shell's current directory.--wait(asinstall-alluses it after the flash), it asks again until automount has mounted the card.--destis used as before.In CMake,
DMBOOT_UPLOAD_DESTis now empty by default (the card's root), and the newDMBOOT_UPLOAD_CARD(defaultauto) names the card. The README documents both.Also:
upload-filesandinstall-allnow depend ondownload_sdcard_modules.build/sdcardwas made only byall, so after building just the firmware (--target install-firmware/dmboot.elf) there was nothing to send, andinstall-allfailed after it had already flashed the board.Also: when the device reports files it did not write (they were in use, e.g. the MP3 being played; see choco-technologies/dmell#63), the script lists them, suggests stopping what uses them, and exits with an error:
Note on existing build directories: they keep the cached
DMBOOT_UPLOAD_DEST=/mnt/dmsdio0_0p1. Reconfigure with-DDMBOOT_UPLOAD_DEST=to get the detection.Test plan
/mnt/dmsdio0_0p1):--dest ytgoes to/mnt/dmsdio0_0p1/yt.--card bootfsstops withno card bootfs in /mnt (found: dmsdio0_0p1). An absolute--destworks as before.--wait 90: the script waits for the card (about 15 s) and sends the fileupload-filesandinstall-alldepend ondownload_sdcard_modules, which makesbuild/sdcard(carhmi_view)lsoutput: an echo running into the output, the coloured prompt, a missing/mnt, several cards, boot noise and the CANs of a failed transfer left on the shell's line (only what follows the echo counts, and only printable names)build/sdcard(46 files) with--wait 90: through, twice. With libdmview_open: read the view whole, close it, then make the view dmview#20 the board's view no longer blockscarhmi.dmv.🤖 Generated with Claude Code