oxidecomputer / oxidecomputer/humility

`humity qspi --write` error when sector 0 is non-empty could maybe say something about `--write-sector0`

Open
#543 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

presently, the humility qspi --write command will complain when the first 65552B of the input is not 0xff:

humility qspi failed: cannot skip sector 0 with non-empty bytes

passing --write-sector0 will cause it to write the non-empty sector 0 regardless. so maybe the error could mention that or something?

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 at the humility qspi --write command entry point and locate the cannot skip sector 0 with non-empty bytes error text. Reproduce the case with non-0xff bytes in the first 65552B, then verify that the resulting message points users to --write-sector0 while that flag continues to permit the write.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.