Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to test this? #1

Open
Sjors opened this issue Jan 29, 2025 · 5 comments
Open

How to test this? #1

Sjors opened this issue Jan 29, 2025 · 5 comments

Comments

@Sjors
Copy link

Sjors commented Jan 29, 2025

Found this project via stratum-mining/stratum#1394 (comment) so maybe I missed a documentation page elsewhere.

Is the idea to build a new Bitaxe generation on stm32f7 instead of esp32?

Does the firmware have a CPU mining fallback so it can be tested without soldering an ASIC? If not, I'll I'll need some help :-)

Or are you able to backport to something I can flash on my Bitaxe Supra 401?

@plebhash
Copy link

plebhash commented Jan 29, 2025

I asked the following over Discord:

that's pretty cool! what is the motivation behind choosing this platform?

@Georges760 answered this:

In the embassy world all supported hardware (platform) are well abstracted so interchanging one for another is not a big deal. At first I made a POC on ESP32S3 (like bitaxe) but I had to debug wifi disconnection issues, so I switched to Ethernet to have a stable and reliable connection. So I took this nucleo board which was waiting on my desk...
Also ESP32 wifi implies alloc whereas STM32 eth doesn't. Today no_std Sv2 requires alloc too, but maybe some day I will work to make it no-alloc too...

https://discord.com/channels/950687892169195530/1184082787767177237/1332960401301700639

@Georges760
Copy link
Contributor

It is in pretty early stage, and this PoC focus only on the Sv2 encrypted (noise_sv2) communication to a Sv2 pool, from an arbitraty embedded system (STM32F767ZI because I had this one lying on my desk last weekend). It will not do MCU mining, only Sv2 communcation for now. MCU mining can be implemented easily for testing.

Bitaxe will remain on ESP32-S3, but the beauty of embedded Rust using Embassy is that the hardware is pretty well abstracted.

esp-miner-rs is the official Rust FW for Bitaxe (also Embassy based, but for ESP32-S3). It is currently also only Sv1 capable for now, and the ASIC driver is not integrated yet.

bm13xx-rs is the ASIC driver that I am working on also.

@Sjors
Copy link
Author

Sjors commented Jan 29, 2025

Thanks for the context.

It sounds like I should keep an eye on and test esp-miner-rs.

That currently doesn't support the Supra (and newer). So that's what you're building bm13xx-rs for?

And then later on hopefully test some sv2 stuff on it.

See also GPTechinno/bm13xx-rs#7

@Georges760
Copy link
Contributor

It sounds like I should keep an eye on and test esp-miner-rs.

This is my end goal, but many crate need to be developped (pmbus_adapter, tps546, etc)

That currently doesn't support the Supra (and newer). So that's what you're building bm13xx-rs for?

Exact, adding the BM1368 will be easy (versy similar to BM1366) and adding support to BitaxeSupra a child game.

And then later on hopefully test some sv2 stuff on it.

Absolutely !

@Sjors
Copy link
Author

Sjors commented Jan 29, 2025

This is my end goal, but many crate need to be developped (pmbus_adapter, tps546, etc)

Do you have tracking Github issue somewhere for what's remaining?

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

No branches or pull requests

3 participants