Commit Graph

15 Commits

Author SHA1 Message Date
Konrad Dybcio
79972d496c main.rs: stubby handle all calls
Signed-off-by: Konrad Dybcio <konradybcio@kernel.org>
2024-05-01 23:01:04 +02:00
Konrad Dybcio
d9740766b0 main.rs: Fix up msg parsing error messages
fix typo

use writeln! as we're in raw tty mode

Signed-off-by: Konrad Dybcio <konradybcio@kernel.org>
2024-05-01 23:01:04 +02:00
Konrad Dybcio
f28a6f61e7 lib: impl MsgVbusOn/Off
Signed-off-by: Konrad Dybcio <konradybcio@kernel.org>
2024-05-01 23:01:04 +02:00
Konrad Dybcio
2b2c45a110 Cargo.toml: fill in some tags 2024-04-27 01:23:11 +02:00
dependabot[bot]
5f88aecf37 build(deps): bump mio from 0.8.10 to 0.8.11
Bumps [mio](https://github.com/tokio-rs/mio) from 0.8.10 to 0.8.11.
- [Release notes](https://github.com/tokio-rs/mio/releases)
- [Changelog](https://github.com/tokio-rs/mio/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tokio-rs/mio/compare/v0.8.10...v0.8.11)

---
updated-dependencies:
- dependency-name: mio
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-27 01:16:17 +02:00
Konrad Dybcio
65627bb1ca Create README.md
Signed-off-by: Konrad Dybcio <konradybcio@kernel.org>
2024-04-27 01:13:51 +02:00
Konrad Dybcio
30cac1cf4e ci: import more crust from Traverse Research
https://github.com/Traverse-Research/rust-template/blob/main/.github/workflows/ci.yml

Signed-off-by: Konrad Dybcio <konradybcio@kernel.org>
2024-04-27 01:10:46 +02:00
Konrad Dybcio
018714544e treewide: clippy+fmt 2024-04-27 01:10:44 +02:00
Dmitry Baryshkov
5564c9f68e send the image only when required
The server uses the payload of Sk8brdMsgs::MsgFastbootPresent to specify
if the board is present or not. There is no point in sending the boot
image if the board is not present.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2024-04-27 00:58:52 +02:00
Dmitry Baryshkov
cfc3a2dd33 Replace u8_to_msg with TryFrom
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2024-04-27 00:58:49 +02:00
Dmitry Baryshkov
8146a21938 send_image: change argument from Vec to slice
Follow cargo clippy recommendation.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2024-04-27 00:58:43 +02:00
Dmitry Baryshkov
9ee4c89f76 send_image: fix sending of the data
CDBA server gets corrupted images otherwise.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2024-04-27 00:58:38 +02:00
Konrad Dybcio
01249e34a5 Add default rust gh actions
Signed-off-by: Konrad Dybcio <konradybcio@kernel.org>
2024-04-27 00:57:22 +02:00
Konrad Dybcio
247c302222 Let the user power cycle the board first 2024-04-26 12:00:26 +02:00
Konrad Dybcio
091d4a77b7 initial commit 2024-04-26 12:00:24 +02:00