Bitcoin Forum
December 15, 2024, 07:09:22 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 [12] 13 14 15 16 17 18 »  All
  Print  
Author Topic: Open Source Bitcoin ASIC miner project that uses 2x BM1387 (Antminer S9)  (Read 4194 times)
Skot
Full Member
***
Offline Offline

Activity: 229
Merit: 246

bitaxe.org


View Profile
January 02, 2023, 09:29:36 PM
 #221

Skot, NebulaMiner or N0nce , Has any of you managed coding the ESP_Miner and got to it to where it can be used for testing BM1397 boards ?. I am just starting on it.

Not yet.. it’s certainly on the to do list though!
n0nce
Hero Member
*****
Offline Offline

Activity: 910
Merit: 5935


not your keys, not your coins!


View Profile WWW
January 03, 2023, 03:34:25 PM
 #222

Skot, NebulaMiner or N0nce , Has any of you managed coding the ESP_Miner and got to it to where it can be used for testing BM1397 boards ?. I am just starting on it.
Unfortunately, had no time for that yet; I'm very busy right now (as maybe noticeable by my lack of posting), but that will change soon and I'll post here (or in Skot's new thread when he makes one) as soon as I have something.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
NebulaMiner
Newbie
*
Offline Offline

Activity: 22
Merit: 27


View Profile
January 03, 2023, 03:55:57 PM
 #223

Skot, NebulaMiner or N0nce , Has any of you managed coding the ESP_Miner and got to it to where it can be used for testing BM1397 boards ?. I am just starting on it.
Unfortunately, had no time for that yet; I'm very busy right now (as maybe noticeable by my lack of posting), but that will change soon and I'll post here (or in Skot's new thread when he makes one) as soon as I have something.

Same for me, difficult end of year. I will find some time soon hopefully.
developeralgo
Member
**
Offline Offline

Activity: 63
Merit: 72


View Profile
January 06, 2023, 11:02:20 PM
Merited by Skot (10), vapourminer (1), o_solo_miner (1), n0nce (1)
 #224

Phew!!! My 4-chip board is assembled now and at least it didn't go up in flames . So its time bring out the Oscilloscope and start debugging and tracing , its going to be fun i hope

Skot
Full Member
***
Offline Offline

Activity: 229
Merit: 246

bitaxe.org


View Profile
January 06, 2023, 11:10:23 PM
 #225

Phew!!! My 4-chip board is assembled now and at least it didn't go up in flames . So its time bring out the Oscilloscope and start debugging and tracing , its going to be fun i hope

Wow, Looking good!! Is that four BM1397s??
developeralgo
Member
**
Offline Offline

Activity: 63
Merit: 72


View Profile
January 07, 2023, 12:49:35 AM
 #226

Wow, Looking good!! Is that four BM1397s??

Yes it is, 4 x BM1397 chips
n0nce
Hero Member
*****
Offline Offline

Activity: 910
Merit: 5935


not your keys, not your coins!


View Profile WWW
January 07, 2023, 12:55:50 AM
 #227

Phew!!! My 4-chip board is assembled now and at least it didn't go up in flames . So its time bring out the Oscilloscope and start debugging and tracing , its going to be fun i hope


Be careful about temps / cooling! Especially when you start attempting sending those chips commands. Don't want them to start hashing and immediately going up in flames. Tongue But Skot knows much more than myself about this (how / when they start hashing / getting hot).

It's just that I've experienced (as a customer) finished mining products hashing even when not getting supplied any data at all (not sure what they were doing - again: as a customer).
Just saying I've encountered it and I'm not sure whether that was just the 'idle behavior' of those chips (older stuff, not BM1397 for sure) or firmware-related.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
developeralgo
Member
**
Offline Offline

Activity: 63
Merit: 72


View Profile
January 08, 2023, 05:01:20 PM
 #228

Be careful about temps / cooling! Especially when you start attempting sending those chips commands. Don't want them to start hashing and immediately going up in flames. Tongue But Skot knows much more than myself about this (how / when they start hashing / getting hot).

It's just that I've experienced (as a customer) finished mining products hashing even when not getting supplied any data at all (not sure what they were doing - again: as a customer).
Just saying I've encountered it and I'm not sure whether that was just the 'idle behavior' of those chips (older stuff, not BM1397 for sure) or firmware-related.

Great advice. Coding an ESP Miner to test it correctly, is a pain. I hope to use ESP-IDF Version 5 (std) with ESP-Rust 1.66 (std) and code some minimal rust-based ESP Miner for testing.

The biggest problem i have encountered is the support and community for xtensa-esp32s3 using rust is minimal or non-existent at best. i have tested some simple ESP miner code on my ESP32-S3-WROOM-2-N32R8V Dev board that i have  and it runs fast but that is without it communicating or mining on BM1397 chips. Next step will be to try adapt this minimal testing code to communicate and mine on BM1397 chips and use it on the onboard ESP32-S3-WROOM-1-N16R8V on my ESP mining board.

that's a lot of grunt work to be done.
n0nce
Hero Member
*****
Offline Offline

Activity: 910
Merit: 5935


not your keys, not your coins!


View Profile WWW
January 08, 2023, 05:46:46 PM
 #229

Great advice. Coding an ESP Miner to test it correctly, is a pain.
[...]
that's a lot of grunt work to be done.
For sure; it was never going to be easy! But I'm sure we can get it done as a group. I will have lots more free time pretty soon. All the components are already here, except BM1397. I had troubles finding them at a reasonable price and shipping speed and now I have none. Roll Eyes

The biggest problem i have encountered is the support and community for xtensa-esp32s3 using rust is minimal or non-existent at best. i have tested some simple ESP miner code on my ESP32-S3-WROOM-2-N32R8V Dev board that i have  and it runs fast but that is without it communicating or mining on BM1397 chips. Next step will be to try adapt this minimal testing code to communicate and mine on BM1397 chips and use it on the onboard ESP32-S3-WROOM-1-N16R8V on my ESP mining board.
I think I'll start with the Stratum connection and that side of things (using regular ESP-IDF), since again: I don't have ASIC chips yet. Undecided

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
paid2
Hero Member
*****
Offline Offline

Activity: 910
Merit: 3078


Crypto Swap Exchange


View Profile WWW
January 09, 2023, 07:20:41 AM
 #230

Great advice. Coding an ESP Miner to test it correctly, is a pain.
[...]
that's a lot of grunt work to be done.
For sure; it was never going to be easy! But I'm sure we can get it done as a group. I will have lots more free time pretty soon. All the components are already here, except BM1397. I had troubles finding them at a reasonable price and shipping speed and now I have none. Roll Eyes

The biggest problem i have encountered is the support and community for xtensa-esp32s3 using rust is minimal or non-existent at best. i have tested some simple ESP miner code on my ESP32-S3-WROOM-2-N32R8V Dev board that i have  and it runs fast but that is without it communicating or mining on BM1397 chips. Next step will be to try adapt this minimal testing code to communicate and mine on BM1397 chips and use it on the onboard ESP32-S3-WROOM-1-N16R8V on my ESP mining board.
I think I'll start with the Stratum connection and that side of things (using regular ESP-IDF), since again: I don't have ASIC chips yet. Undecided

Hey !

I can send you a lot of old S9 / S9k hashboard if needed !  Smiley
For free, I juste don't want to pay the shipping but I don't care about the boards

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
n0nce
Hero Member
*****
Offline Offline

Activity: 910
Merit: 5935


not your keys, not your coins!


View Profile WWW
January 09, 2023, 03:48:57 PM
 #231

Great advice. Coding an ESP Miner to test it correctly, is a pain.
[...]
that's a lot of grunt work to be done.
For sure; it was never going to be easy! But I'm sure we can get it done as a group. I will have lots more free time pretty soon. All the components are already here, except BM1397. I had troubles finding them at a reasonable price and shipping speed and now I have none. Roll Eyes

The biggest problem i have encountered is the support and community for xtensa-esp32s3 using rust is minimal or non-existent at best. i have tested some simple ESP miner code on my ESP32-S3-WROOM-2-N32R8V Dev board that i have  and it runs fast but that is without it communicating or mining on BM1397 chips. Next step will be to try adapt this minimal testing code to communicate and mine on BM1397 chips and use it on the onboard ESP32-S3-WROOM-1-N16R8V on my ESP mining board.
I think I'll start with the Stratum connection and that side of things (using regular ESP-IDF), since again: I don't have ASIC chips yet. Undecided
Hey !

I can send you a lot of old S9 / S9k hashboard if needed !  Smiley
For free, I juste don't want to pay the shipping but I don't care about the boards
Hey there, thanks for the offer! I believe NebulaMiner wants to / started reverse engineering ASIC communication / protocol of Bitmain S17.
The S9 have older chips, but since protocols may stay the same between miner generations, it could be interesting for him to look at the S9 boards.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
o_solo_miner
Legendary
*
Offline Offline

Activity: 2495
Merit: 1489


-> morgen, ist heute, schon gestern <-


View Profile
January 09, 2023, 05:14:20 PM
 #232

I used the Odroid-GO for development, but in c.
or the Arduino Platform:
https://github.com/espressif/arduino-esp32

Maybe that is a usefull for you.

from the creator of CGMiner http://solo.ckpool.org for Solominers
paused: passthrough for solo.ckpool.org => stratum+tcp://rfpool.org:3334
n0nce
Hero Member
*****
Offline Offline

Activity: 910
Merit: 5935


not your keys, not your coins!


View Profile WWW
January 09, 2023, 06:16:28 PM
 #233

I used the Odroid-GO for development, but in c.
or the Arduino Platform:
https://github.com/espressif/arduino-esp32

Maybe that is a usefull for you.
Those are the ESP32's (plain 32, not 32-C3 or 32-S3), but what exactly did you develop for them? Mining firmware? That could indeed be useful; especially the Stratum v2 part, since that should be completely independent from the mining hardware (ASIC chips) used.

C code for ESP32 should also compile for ESP32-S3.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
cygan
Legendary
*
Online Online

Activity: 3374
Merit: 9021


icarus-cards.eu


View Profile WWW
January 09, 2023, 06:39:47 PM
 #234

Wow, Looking good!! Is that four BM1397s??

Yes it is, 4 x BM1397 chips

holy shit!
what would be the complete hash performance in the best case, if all 4 chips were running properly?

███████████▄
████████▄▄██
█████████▀█
███████████▄███████▄
█████▄█▄██████████████
████▄█▀▄░█████▄████████
████▄███░████████████▀
████░█████░█████▀▄▄▄▄▄
█████░█
██░█████████▀▀
░▄█▀
███░░▀▀▀██████
▀███████▄█▀▀▀██████▀
░░████▄▀░▀▀▀▀████▀
 

█████████████████████████
████████████▀░░░▀▀▀▀█████
█████████▀▀▀█▄░░░░░░░████
████▀▀░░░░░░░█▄░▄░░░▐████
████▌░░░░▄░░░▐████░░▐███
█████░░░▄██▄░░██▀░░░█████
█████▌░░▀██▀░░▐▌░░░▐█████
██████░░░░▀░░░░█░░░▐█████
██████▌░░░░░░░░▐█▄▄██████
███████▄░░▄▄▄████████████
█████████████████████████

█████████████████████████
████████▀▀░░░░░▀▀████████
██████░░▄██▄░▄██▄░░██████
█████░░████▀░▀████░░█████
████░░░░▀▀░░░░░▀▀░░░░████
████░░▄██░░░░░░░██▄░░████
████░░████░░░░░████░░████
█████░░▀▀░▄███▄░▀▀░░████
██████░░░░▀███▀░░░░██████
████████▄▄░░░░░▄▄████████
█████████████████████████
.
...SOL.....USDT...
...FAST PAYOUTS...
...BTC...
...TON...
n0nce
Hero Member
*****
Offline Offline

Activity: 910
Merit: 5935


not your keys, not your coins!


View Profile WWW
January 09, 2023, 06:56:55 PM
 #235

Wow, Looking good!! Is that four BM1397s??

Yes it is, 4 x BM1397 chips
holy shit!
what would be the complete hash performance in the best case, if all 4 chips were running properly?
My new GekkoScience R909 with 6 BM1397 chips at 600MHz and proper cooling (review is coming) is pushing out around 2.2TH/s, so around 370GH/s per chip. I believe 400GH/s per chip is definitely realistic, so that's 2.4TH/s on a R909 or 1.6TH/s on the Bitaxe with 4 chips.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
developeralgo
Member
**
Offline Offline

Activity: 63
Merit: 72


View Profile
January 09, 2023, 09:14:17 PM
Merited by vapourminer (1)
 #236

Those are the ESP32's (plain 32, not 32-C3 or 32-S3), but what exactly did you develop for them? Mining firmware? That could indeed be useful; especially the Stratum v2 part, since that should be completely independent from the mining hardware (ASIC chips) used.

C code for ESP32 should also compile for ESP32-S3.

The hard part is figuring out an optimized and efficient communication between ESP32-S3-WROOM-1 chip and the BM 1397 chips and coding it in a stripped down embedded format so that it fits into tiny 16 MB Flash with additional 8 MB PSRAM on the ESP32-S3

Either C or Std Rust or NoStd Rust, we will still come very close to the memory threshold being completely utilized. i guess the goal is to strip down everything and have only bare-bone code but with standard ESP-IDF Version 5.0 / 5.1 to handle a lot of the headaches from std code

Good candidates is to use Cgminer (Kanoi version (C/C++)) , Braiins OS code base (Rust) as a Reference plus stratum V2 (Rust) code base and strip everything to the bone. Rust has few advantages when running on Microcontrollers compared to pure C code.
n0nce
Hero Member
*****
Offline Offline

Activity: 910
Merit: 5935


not your keys, not your coins!


View Profile WWW
January 09, 2023, 09:21:46 PM
 #237

The hard part is figuring out an optimized and efficient communication between ESP32-S3-WROOM-1 chip and the BM 1397 chips and coding it in a stripped down embedded format so that it fits into tiny 16 MB Flash with additional 8 MB PSRAM on the ESP32-S3
Agreed.

Rust has few advantages when running on Microcontrollers compared to pure C code.
Which advantages exactly? (specific to microcontrollers)

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
developeralgo
Member
**
Offline Offline

Activity: 63
Merit: 72


View Profile
January 09, 2023, 09:35:10 PM
 #238


Which advantages exactly? (specific to microcontrollers)

Assuming that someone is competent in both C and Rust , IMHO ,  multithreaded/concurrent code that is correct and produces no undefined behavior is better.  Also memory safety is a key feature that Rust brings to the table. In C you are on your own with concurrency and God help you if you are new to C programming. You will get baptism by fire.

 C / C++ and Python are my go-to languages but C tends to be a little messy to code sometimes but gets better with age i guess.

n0nce
Hero Member
*****
Offline Offline

Activity: 910
Merit: 5935


not your keys, not your coins!


View Profile WWW
January 10, 2023, 09:37:34 AM
 #239


Which advantages exactly? (specific to microcontrollers)
Assuming that someone is competent in both C and Rust , IMHO ,  multithreaded/concurrent code that is correct and produces no undefined behavior is better.  Also memory safety is a key feature that Rust brings to the table. In C you are on your own with concurrency and God help you if you are new to C programming. You will get baptism by fire.
C / C++ and Python are my go-to languages but C tends to be a little messy to code sometimes but gets better with age i guess.
Okay, so those are general advantages that come with Rust. I thought there was something specific about MCUs. Do we need a lot of multithreading for this application, though? You request a block candidate over Stratum v2, build a packet for your miner and send it. Then wait for it to respond. As far as I know, that's the rough big picture.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
developeralgo
Member
**
Offline Offline

Activity: 63
Merit: 72


View Profile
January 10, 2023, 11:17:56 PM
 #240


Okay, so those are general advantages that come with Rust. I thought there was something specific about MCUs. Do we need a lot of multithreading for this application, though? You request a block candidate over Stratum v2, build a packet for your miner and send it. Then wait for it to respond. As far as I know, that's the rough big picture.
Agreed , nothing  really special about MCU and Rust.
Pages: « 1 2 3 4 5 6 7 8 9 10 11 [12] 13 14 15 16 17 18 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!