83 Commits

Author SHA1 Message Date
iwanicki92
362d0d4f60 tool: firmware.rs: return slice directly instead of Option
Signed-off-by: iwanicki92 <iwanicki92@gmail.com>
2026-01-12 14:37:01 +01:00
Michał Iwanicki
a30c39b2db tool: main.rs: allow flashing firmware bigger than 128 kB with --force
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
2026-01-12 14:37:01 +01:00
iwanicki92
4fb0488044 tool: firmware.rs: return empty slice instead of None
That way Firmware can be unwrapped and still used in the rest of code
without any modifications.
Board and version will contain empty slices:

```
file board: Ok("")
file version: Ok("")
```

Signed-off-by: iwanicki92 <iwanicki92@gmail.com>
2026-01-12 14:37:01 +01:00
iwanicki92
386f77b854 tool: firmware.rs: deal with edge key detection case
Before, key detection would fail if the byte preceding searched for
key had the same value as the first byte of the searched key.

Signed-off-by: iwanicki92 <iwanicki92@gmail.com>
2026-01-12 14:37:01 +01:00
Michał Kopeć
38baf30c82 tool/src/access/lpc/linux.rs: add new Dasharo device ID
Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
2025-04-04 10:23:59 +02:00
Sebastian Czapla
ba5a858034 tool/src/main.rs: Allow non utf8 arguments within fan subcmd
Signed-off-by: Sebastian Czapla <sebastian.czapla@3mdeb.com>
2024-12-13 11:43:41 +01:00
Michał Kopeć
4ae73b9d2c tool/src/access/lpc/linux.rs: add real Dasharo ACPI ID
Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
2024-07-17 11:20:21 +02:00
Michał Kopeć
58b5c79c63 tool: update description
Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
2023-11-20 16:20:00 +01:00
Michał Kopeć
411fab9b7c rebrand tool to dasharo_ectool
Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
2023-11-17 18:31:14 +01:00
Maciej Pijanowski
3e8d2cbe8b tree-wide: fix typos from codespell
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
2023-09-20 11:19:47 +02:00
Artur Kowalski
97702103bf Add --force option
This option can be used to bypass board check when flashing EC firmware.
2023-06-14 14:06:23 +02:00
Jeremy Soller
4a1e0a5aa8 Add optional EC security state and documentation 2023-04-03 13:06:16 -06:00
Tim Crawford
1046dd7aec Update Rust toolchain to 2023-01-21
Update the toolchain and deps, and use the sparse registry access.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2023-02-18 06:28:21 -07:00
Tim Crawford
a8e37276e9 tool: Disable default features of redox-hwio
Fixes using as a dependency in no-std environments.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2022-12-20 13:41:02 -07:00
Tim Crawford
1019878e3c tool: Update dependencies
clap is only updated to 3.2 instead of 4.0 because I didn't want to deal
with all the changes.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2022-11-30 08:39:16 -07:00
13r0ck
be5d34dc0d Add other launch keyboards 2022-11-01 16:22:11 -06:00
Tim Crawford
5780bb5e83 Update Rust toolchain to 2022-03-18
Match the toolchain used by Redox.

Update dependencies and submodules to fix building.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2022-04-04 18:59:20 -06:00
Ian Douglas Scott
ab0c55fae2 ectool 0.3.8 2021-11-19 13:32:00 -08:00
Ian Douglas Scott
85595a8d4c tool: Add a system76_ec command to disable input events
For testing Launch keyboards.

Could easily support in EC firmware as well if we had a use for that,
but not adding that for now.
2021-11-18 13:08:05 -08:00
Jeremy Soller
d9ce247a15 ectool: update lock file 2021-11-17 18:27:11 -07:00
Jeremy Soller
95632b4503 ectool: use linux-shared-hidraw feature for hidapi 2021-11-17 18:26:26 -07:00
Tim Crawford
43e5cf4ba3 Fix or silence clippy warnings on nightly
Fix:
- dead_code
- clippy::if_then_panic
- clippy::manual_memcpy
- clippy::needless_borrow

Silence:
- clippy::missing_safety_doc
- clippy::needless_range_loop
- clippy::single_match

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2021-10-26 11:35:48 -06:00
Tim Crawford
975377af42 Update Rust toolchain to 2021-06-15
Update toolchain to match the version used in Redox.

Update dependencies to fix build.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2021-10-26 11:35:48 -06:00
Ian Douglas Scott
55523d4083 ectool 0.3.6 2021-04-13 11:04:51 -06:00
Ian Douglas Scott
84d5c6b79d tool: Make Access require Send and 'static
This allows the Configurator to send a `Ec<Box<dyn Access>>` through a
channel to a background thread. This could be done differently, but
presumably there's no reason to have an `Access` implementation this
doesn't apply to.
2021-04-13 11:04:51 -06:00