Introduce BIRDS board and BZM2 asic modules#41
Draft
johnny9 wants to merge 19 commits into256foundation:mainfrom
Draft
Introduce BIRDS board and BZM2 asic modules#41johnny9 wants to merge 19 commits into256foundation:mainfrom
johnny9 wants to merge 19 commits into256foundation:mainfrom
Conversation
Document the BZM2 thread and protocol error surface more clearly, centralize hex formatting usage, and clean up several thread internals that were carrying avoidable complexity. This keeps the actor-based hashing path easier to follow while preserving the existing behavior and test coverage.
Author
|
Converting the PR to a draft as the BIRDS is just being used for testing and review. When ready, the bitaxeBonanza+bitaxe raw will replace the BIRDS board and at that time this PR should be ready for full review. The bzm2 and nine_bit modules, are ready to be reviewed. |
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.
This PR adds end-to-end BIRDS/BZM2 support to mujina-miner.
It introduces the BIRDS board implementation and BZM2 protocol stack, including 9-bit serial transport, protocol encoding/decoding, chip bring-up, WRITEJOB support, task dispatch, READRESULT mapping, and share validation. It also wires BIRDS into the board inventory/registration path, initializes the BIRDS data port over BZM2, and creates the BZM2 hash thread.
The hash thread makes use of bring-up, hashing, work, and tracking modules to make the thread module a bit more maintainable.
Fan, Voltage regulator, and dynamic frequency adjustments are not currently implemented.
To test this out, you need a bitaxeBIRDS board, the voltage regulator needs to be set properly with an initialization script (https://github.com/skot/bzm-raw-py/blob/birds/vr-bringup.py), and your the pico on the birds device needs the appropriate firmware.