serial: add 'version', 'ls' and 'stat' commands - #106
Merged
bbsan2k merged 2 commits intoSep 7, 2026
Conversation
Lets a host ask which firmware is running without rebooting the
device for the boot banner:
> version
Version: 1.4.0-coh3
Commit: 8cbc821
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Lets a host check that the card image it is about to select actually exists on the SD card before switching to it, instead of finding out after the firmware quietly creates a blank one.
Collaborator
|
Thank you! |
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.
Split out of #104 per review: the serial-inspection commands only, no card-exit logic.
version— reports firmware version/commit/branch/HW variant/mode without rebooting to re-read the boot banner.ls [path]/stat <path>— lets a host check that a card image actually exists on the SD card before switching to it, instead of finding out after the firmware quietly creates a blank one.Both commands reply with
printf, consistent with every other reply inserial_input.c.🤖 Generated with Claude Code
https://claude.ai/code/session_01B1gpWeX4ssmodsaa4oUt6x