Conversation
…om sunset for ssh-stamp...
Collaborator
|
I've pushed a sunset change that I think should fix that problem. mkj/sunset@1dcf2ec Previously sshwire-derive assumed |
Owner
Author
Thank you! Works a treat! ;) |
…assumptions around mutexes and rename Fl/FlashCo fig struct names
…onfigure the UART's pins at runtime (possible?) and also pass the config object around (safely/mutex-ing) too
…t a CriticalSectionRawMutex for the SSHConfig. Next up: figure out non-unsafe() ways to steal() pins for the UART pins
…channel, needs more work/thought... also PeripheralRef is not present in 1.0.0-beta.1
Co-authored-by: Marko Malenic <mmalenic1@gmail.com>
… call is now required. The partition checking/handling functionalities might be relevant to @jubeormk1 too, btw
…with the UART operation, need to debug further
…X/TX/CTS/RTS... etc.. pin assignment and at-runtime validation et al Co-authored-by: Marko Malenic <mmalenic1@gmail.com>
…h into fix_passwd_auth
…erialization/deserialization "on the wire" of SSHConfig, unfortunately /cc @mmalenic
Introduced custom Errors Introduced env vars and started refactoring accordingly. Config and peripherals are borrow checker challenges. Co-authored-by: Marko Malenic <mmalenic1@gmail.com>
mkj
reviewed
Jul 26, 2025
…nfig no longer needs a new() method but OTOH resolve_pin() requires a bit more rework (or remove it altogether?)
Co-authored-by: Marko Malenic <mmalenic1@gmail.com>
… PinConfig::new()... Also channel cannot send at the end of uart_task() because there's an infinite loop right before. Co-authored-by: Marko Malenic <mmalenic1@gmail.com>
…nfig persistence, added a couple of OTA partitions to help out @jubeormk1. Narrowed down flash write errors (erase works now) to sector size alignment issues /cc @mmalenic. [ci skip]
… nor flash writing offsets issue... hash payload on flash is 2 bytes off still and yields 'bad config hash' [ci skip]
Co-authored-by: Marko Malenic <mmalenic1@gmail.com>
…sh_read-ing config. Add IPV6-specific address to SSHStampConfig (renamed from SSHConfig since potentially we'll have to DIY-decode ourselves due to the extra fields we'll change/introduce) [ci skip]
…e SSHStampConfig members [ci skip]
…ect still though...
I (334) boot: Disabling RNG early entropy source...
Existing config bad, making new. Wrong config version
[src/storage.rs:96] "New config being serialised: " = "New config being serialised: "
[src/storage.rs:96] &c = SSHStampConfig {
hostkey: SignKey::Ed25519,
password_authentication: true,
admin_pw: None,
admin_keys: [
None,
None,
None,
],
wifi_ssid: "ssh-stamp",
wifi_pw: None,
mac: [
218,
85,
73,
185,
109,
144,
],
ipv4_static: None,
uart_pins: SerdePinConfig {
tx: 10,
rx: 11,
rts: None,
cts: None,
},
}
Flash size = 8388608 bytes
NVS partition size = 8192
NVS partition offset = 0x9000
[src/storage.rs:150] CONFIG_OFFSET + FlashConfig::BUF_SIZE = 40996
[src/storage.rs:152] "Erasing flash" = "Erasing flash"
flash save done
Checking if link is up...
… now throws RanOut on wifi_ssid dec(s)?: config.rs:462-463 Co-authored-by: Julio Beltran Ortega <jubeormk1@gmail.com>
…rgets after almost a year... will it work?
…immaturity, increasing verbosity of hash-related bytes to determine bad hash errors... most probably related to read-ssh/write-ssh enc/dec SSHEncode/SSHDecode machinery
…env packets, we must not re-generate hostkey on each boot
…th tx/rx flipped... 🤦 Co-authored-by: Julio Beltran Ortega <jubeormk1@users.noreply.github.com>
…op, when receiving appropriate env vars (to be validated on device).
…arning: broken build, a few errors left for correction
This reverts commit 0f760f9.
…g with @jubeormk1 OTA PR/branch for updated esp_hal 1.0.0
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.
Will eventually fix #23 #20 #21, WIP.
Also involves changes upstream sunset dependency, commits happening on mkj/sunset#35.