oxidecomputer / oxidecomputer/humility

humility auxflash lets you erase but not write an active slot

Open
#272 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
584
Forks
63
Avg merge
3h
Merged PRs (30d)
2

Description

for some reason, auxflash lets you erase an active slot but when you try to write something to it, Hubris throws an error. It seems like one of these two things is incorrect as I would assume that an active slot can either not be touched at all or you should be able to do anything to it.

c:\oxide\humility (master -> origin)
λ humility auxflash status
humility: attached via ST-Link V3
 slot | status
------|----------------------------
    0 | Valid  (ed2fe29c...)
    1 | Valid  (ed2fe29c...)
    2 | Active (58aa49ab...)
    3 | Valid  (58aa49ab...)
    4 | Missing checksum
    5 | Missing checksum
    6 | Missing checksum
    7 | Missing checksum
    8 | Missing checksum
    9 | Missing checksum
   10 | Missing checksum
   11 | Missing checksum
   12 | Missing checksum
   13 | Missing checksum
   14 | Missing checksum
   15 | Missing checksum

c:\oxide\humility (master -> origin)
λ humility auxflash erase --slot 0
humility: attached via ST-Link V3

c:\oxide\humility (master -> origin)
λ humility auxflash erase --slot 1
humility: attached via ST-Link V3

c:\oxide\humility (master -> origin)
λ humility auxflash erase --slot 2
humility: attached via ST-Link V3

c:\oxide\humility (master -> origin)
λ humility auxflash erase --slot 3
humility: attached via ST-Link V3

c:\oxide\humility (master -> origin)
λ humility auxflash write --slot 2
humility: attached via ST-Link V3
humility: Flashing auxiliary data from the Hubris archive
humility: erasing slot 2
humility auxflash failed: Got Hubris error: "SlotActive"

c:\oxide\humility (master -> origin)
λ humility auxflash status
humility: attached via ST-Link V3
 slot | status
------|----------------------------
    0 | Missing checksum
    1 | Missing checksum
    2 | Missing checksum
    3 | Missing checksum
    4 | Missing checksum
    5 | Missing checksum
    6 | Missing checksum
    7 | Missing checksum
    8 | Missing checksum
    9 | Missing checksum
   10 | Missing checksum
   11 | Missing checksum
   12 | Missing checksum
   13 | Missing checksum
   14 | Missing checksum
   15 | Missing checksum

c:\oxide\humility (master -> origin)
λ

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported auxflash erase and auxflash write --slot 2 commands, then trace how active slots are handled for each operation and where the SlotActive error is returned. Done means active-slot behavior is made consistent: either both operations are rejected or both are supported, with the status output and command behavior agreeing.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli, embedded-iot
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.