Skip to content

Add GammaHex board support - #1807

Open
benjamin-wilson wants to merge 20 commits into
bitaxeorg:masterfrom
benjamin-wilson:gamma-hex
Open

Add GammaHex board support#1807
benjamin-wilson wants to merge 20 commits into
bitaxeorg:masterfrom
benjamin-wilson:gamma-hex

Conversation

@benjamin-wilson

Copy link
Copy Markdown
Collaborator

Summary

  • add GammaHex board/config support, large ST7789 display assets, and TPS546/VCORE handling
  • add family-level default frequency/voltage so self-test uses board CSV defaults, including GammaHex 690 MHz / 1200 mV
  • fix settings save path for Axe-OS fan controls and align manual/min fan setting names
  • remove accidental local factory binary from the branch

Testing

  • git diff --check
  • npx ng build --configuration=production
  • idf.py -B /tmp/esp-idf-codex-build build

@github-actions

github-actions Bot commented Jul 10, 2026

Copy link
Copy Markdown

Test Results

  2 files  ± 0    2 suites  ±0   1s ⏱️ ±0s
121 tests +11  121 ✅ +11  0 💤 ±0  0 ❌ ±0 
123 runs  +11  123 ✅ +11  0 💤 ±0  0 ❌ ±0 

Results for commit 5b8d162. ± Comparison against base commit fe58ce0.

♻️ This comment has been updated with latest results.

Comment thread components/asic/bm1370.c
BM1370_init_core_register_delay();

// Present in the S21 XP init between core register control and analog mux.
_send_BM1370((TYPE_CMD | GROUP_ALL | CMD_WRITE), (uint8_t[]){0x00, 0x14, 0x00, 0x00, 0x00, 0xFF}, 6, BM1370_SERIALTX_DEBUG);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not do the delay inside _send_BM1370?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_send_BM1370() is also used for normal mining jobs and register reads, so adding an unconditional 10 ms delay there would throttle runtime traffic. The delay is only needed between specific initialization register writes.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this delay needs to be tested also on single asic chips, will do that

Comment thread main/bap/bap.c Outdated
return ESP_ERR_INVALID_ARG;
}

if (state->DEVICE_CONFIG.family.id == GAMMA_610 || state->DEVICE_CONFIG.family.id == GAMMA_HEX) {

@mutatrum mutatrum Jul 12, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be cleaner if there is a disable_bap bool flag in device_config. This would be false by default so it only needs to be set to true on this model.

@mutatrum

mutatrum commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Not sure what to make of this, it's quite a code-dump. Some questions:

  • Why not create a larger Bitaxe logo for this resolution? It's a one-off thing, unless we're planning more displays
  • LVGL can read .png directly, so that should be easier for the background. Also, why are there 2 background images?
  • As this is a completely different display device class, we might need to separate out the code a bit more. There's quite a bit of spaghetti going on here, code wise :-)
  • As this is a different display connection, I don't think it should be in the dropdown as one can't just switch from OLED to ST7789. I assume the 610 doesn't have the OLED at all?
  • Does the LVGL config changes also impact the OLED? Not sure if moving to 16-bit color depth has a performance impact there. Also not sure how one would make this configurable, if needed?

# Conflicts:
#	main/http_server/axe-os/src/app/components/edit/edit.component.html
@benjamin-wilson

Copy link
Copy Markdown
Collaborator Author

The C representation avoids enabling a PNG decoder and doing runtime decompression.
The OLED path still explicitly uses LV_COLOR_FORMAT_I1, monochrome = true

@benjamin-wilson

Copy link
Copy Markdown
Collaborator Author

I think I fixed most of your concerns @mutatrum, ready for another review.

Comment thread config-801.cvs Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants