Search content
Sort by

Showing 8 of 8 results by tightcable
Post
Topic
Board Mining software (miners)
Re: Can a newbie develop custom S19 firmware?
by
tightcable
on 19/03/2025, 17:34:35 UTC
What it does not directly support is coms between cgminer and the Bitmain PSU's to monitor & set voltage. That said, cgminer DOES support setting chip voltage(s), you just need to figure out how to point it at the PSU's that Bitmain uses.

This seems like a pretty good place to start.

It looks like coms between control board and PSU (APW12) are through i2c (https://www.zeusbtc.com/manuals/Antminer-APW12-Power-Supply-Repair-Guide.asp). My first thought is to rig two raspis in between the control board and PSU that capture/pass along messages, then try to reverse engineer with those logs.

Does that seem feasible?

Also, where does this lay in terms of what is "allowed"? I feel like if I do this with the stock firmware, which is in breach of the GPL3, there's no harm done. But what if I use epic firmware, which may or may not be in breach of GPL3?
Post
Topic
Board Mining software (miners)
Merits 2 from 1 user
Re: Can a newbie develop custom S19 firmware?
by
tightcable
on 18/03/2025, 17:53:46 UTC
⭐ Merited by mikeywith (2)
However, what is the end goal here? if you want to give to the community, nobody gives a fuck, people are either happy with the stock firmware, or use custom firmware and pay a small % of their rewards.

I do not really know exactly what I am doing yet, so I can't say for sure what my end goal will be. For now, I am picturing a firmware I can put on my CVITEK or Epic board that will successfully complete a share on my s19k. I do not really have any concrete motivations for this project (helping the community, making money, etc). It is more of a hyper fixation that will most likely last 3-6 months.


What do I want to get out of it?

A big part of it is to see if I can. Another part of it is to hopefully collaborate with interesting people.

I do not see myself taking this to a marketable product like the other firmware distributions. Best case scenario, I get this to 80% of what I wanted to do, my hyper fixation other goes away or shifts to something else, then at some point down the road maybe another engineer will find some value in it.


if I were you I would look into developing something that I could monetize in the future, either by directly selling it or by using the skills I learn along the way to get a decent job

Haha I can definitely see my future self pissed that I did not take this advice (maybe more discouragement will kill the fixation). However, for now I have 9 months until I get booted off my parents health insurance, decent savings, and a few contracts that will pay the bills, so I figure why not f around with something I am interested in before going back to my bread and butter, full stack development (yuck).
Post
Topic
Board Hardware
Re: Antminer S19 custom performance settings; alternative firmware?
by
tightcable
on 18/03/2025, 17:12:10 UTC
Is the open source code still available? I am very interested in learning more and would greatly benefit from reviewing your updates!
Up-to-date cgminer is available in Kano's git and the code runs Sidehacks miners that use the S17 & s19 chips. I believe s21 is also supported.

Note that cgminer code will NOT directly run Bitmain's miners as it lacks communications to the PSU for setting hashboard chip voltages.

Thank you for the added context. I have a TODO to go through Kano's fork of cgminer and will refrain from asking redundant questions till then  Grin
Post
Topic
Board Hardware
Re: Antminer S19 custom performance settings; alternative firmware?
by
tightcable
on 17/03/2025, 17:02:28 UTC
Sorry, you're living in the GPU scamcoin world with the statement that current miners are force down-clocked by miner producers.

If you've been around mining for 10 years like I have, and been involved in producing modified firmware, and in my case I was possibly the first to do it, you'd know that the miners are not made to be run slower to make people buy them cheaper.

Also, there are no 3rd party firmware versions for current miners, only previous ones.

As for 3rd party firmware making them run faster, yeah like you can make anything run faster, with extra cooling and shorter lifespan.
As if the manufacturers want to handle warranty on miners that the buyers have destroyed by over clocking them ...
Bitcoin is about producing money, so people do all sorts of stupid things trying to get more money and usually end up getting less.

Anyway, your original statement was about making things more open and freely available ... to run closed source, fee driven firmware, that violates licenses.
That seems to be an obvious oxymoron ...

Meanwhile, this week I released open source code to use the S17 chip (that someone else worked out the commands) ... oh well ...

Is the open source code still available? I am very interested in learning more and would greatly benefit from reviewing your updates!
Post
Topic
Board Mining software (miners)
Re: Does anyone know where to find the API documentation for Antminer S19 etc?
by
tightcable
on 17/03/2025, 15:33:45 UTC
Cgminer RPC API is a good place to start (https://github.com/bitmaintech/Antminer_firmware/blob/master/sources/meta-antminer/recipes-bitmianer/cgminer/cgminer-1.0/cgminer-3.12.0_bak/API-README). Luxos has some pretty good docs on the Cgminer API as well (https://docs.luxor.tech/firmware/api/intro).

Custom firmware would help, but it may be tough to find one for some of your less popular Antminer models.

If you have someone with engineering experience it may be possible to reverse engineer the APIs used for the firmware's local UI dashboards.
Post
Topic
Board Mining software (miners)
Re: Does anyone know where to find the API documentation for Antminer S19 etc?
by
tightcable
on 14/03/2025, 20:04:25 UTC
What firmware do you have installed on them?
Post
Topic
Board Mining software (miners)
Merits 2 from 1 user
Topic OP
Can a newbie develop custom S19 firmware?
by
tightcable
on 14/03/2025, 18:08:16 UTC
⭐ Merited by ABCbits (2)
Recently laid off from a job and now have quite a bit of free time. I am in a good spot to work on something interesting before searching for new jobs and have a goal to write a custom firmware for my S19k Pro. I have decent software engineering experience and have worked with RaspberryPis in the past, but have never worked directly with any of the Antminer hardware. Currently, I am in a position where I don't even know how much I don't know, but I am all up for banging my head against a wall for a couple of months.

I am not interested in monetizing this in any capacity and will keep it fully open-sourced (github link will be posted once that exists).

Right now I am in the very beginning stages trying to identify all of the unknowns (which is a lot), but plan to update here periodically on my progress.

I am hoping for advice and to connect with bitcoin nerds, but am also here for the discouragement
Post
Topic
Board Mining support
Re: How would you get started on create a custom firmware for a Antminer S19
by
tightcable
on 14/03/2025, 17:44:47 UTC
I have been working closely with multiple Antminer firmwares (Epic, Braiins, LuxOS) over the past year and am interested in starting an open source option. Have you had any luck in your efforts?

If you would like to connect, feel free to PM me.