Antminer S9 firmware build, overclock, change voltage, disable fan check - Tutorial
HTML-код
- Опубликовано: 20 окт 2024
- Hey guys, decided to make a video showing how to modify the firmware for the antminer S9. If you find it useful, make sure you drop a thumbs up and share it.
If you want to use an already build firmware, you can download it from here:
mining-upgrade....
It contains a deploy tool limited to 10 deploys at a time, if you plan on deploying on
hundreds of machines you can get the fuill version by purchasing the tutorial on
how to make your oil cooled antminer from here:
www.torrent-min...
BTC Address for donations if you would like:
17Zhg6XUPujnNfCjb1f114LQxc1s8J7xH5
BCH:
1EG58XHf7VbEdo3ZKuYjp18jfarPEmssQk
Here are all the commands for copy and pasting:
install dependencies
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install git build-essential libz1:i386 libc6:i386 libstdc++6:i386
clone bmminer-mix repo from github
git clone github.com/bit...
cd bmminer-mix
mkdir build-tools
cd build-tools
get platform gcc
wget releases.linar...
tar xvf gcc-linaro-arm-linux-gnueabihf-4.7-2012.11-20121123_linux.tar.bz2
get prebuilt platform libz
git clone github.com/djp...
cd ..
edit the Makefile
gedit Makefile
Add the following 2 lines after all the comments, in the "Customizable Section"
XILINX_BASE_PATH=$(CURDIR)/build-tools/gcc-linaro-arm-linux-gnueabihf-4.7-2012.11-20121123_linux
XILINX_OTHER_LIB_BASE_PATH=$(CURDIR)/build-tools/prebuilt-libz/linux-armhf
save file and exit gedit
build bmminer
make
if you want to make clean
make clean
./setminertype S9
#### Modifying the bmminer for frequency, disable fan check, change voltage
#file driver-btm-c5.h
line 225, define s9_63 to have it set frequency from the code instead of detecting it from the pic
line 347, debug for fans
line 512, define max freq index
file driver-btm-c5.c
line 212, enable fixed frequency
line 654, change voltage depending frequency
line 7254, disable log for missing fan
file from the control board etc/config/Config.ini
Change frequency
Discord channel for water block discussions and overclock :
/ discord
آفرین The first in the world👏👏 T17 42 th (Changing the ASIC frequency and voltage ) Thanks
Nice mate, Hope to see a Firmware update for it soon !
Just heads up for ppl - when copying two lines to paste into Makefile make sure there are no additional spaces copied - just had compile error and figured it was an extra space after "XILINX_OTHER_LIB_BASE_PATH=$(CURDIR)/build-tools/prebuilt-libz/linux-armhf" line
thanx dude, it help my fan trouble :)
Got this running on the new to date S9 firmware. Though I have alot of machines on Braiins-OS. Only config I'd like to add on top of Braiins is the fan check disable. I have a submersion project underway and am working with stability in clocks among other things across various firmwares. I was curious if there's a shortcut to implement the disable fan check "easily" (use that loosely). Thanks.
Is it possible to use s9 for mining ltc with scrypt algorithm?
Why not?
Is Bm1397 chipset mine btc?
If we change program in controller, answer is No too?
Hi guys. I am a newbie in this staff. Could you please explain me couple of things:
1) As i understand, the original OS in ASIC is argstorm and this is the only thing we need to flush into the board (so the firmware for ASIC actually is the only OS). "bmminer" is a just binary that OS invokes automatically and actually this is the thing that does mining. am i right?
2) What's the difference between bmminer and cgminer, is cgminer a part of bmminer? I encountered both and don't understand it enough.
Thank you in advance!
Hello, thank you for your video. I want to edit existing bmminer binaries. I understand I need a decompiler. What decompiler do you suggest I can try to work with?
Thank you very much Friend
Hello Alex, I have Antminer T17e , is there way to build bmminer binary for this one ?
Wow. Thx. Great job! Did you compile single-board-test ? Have a lot issues with cross compile method... unfortunatly
Hi, you are welcome! I did not find the need to try to compile single-board-test so far
Hi there, Is there any possible to run a python script on antminer ? Please response
Thanks Alex for such a gr8 video. Have you had time to engineer for L3+ or L3++?
i have same request.
How to set frequency and voltage through ssh on t17?
Hi alex, how are you? can we modify the voltage on bbminer? I have some t9+ and it is a different firmware than t9. also, would you help me to make a custom firmware that allow to modified voltage and keep with the original firmware?
Hi. Need help removing noise when loading s9. Which parameter is responsible and in which file can I find this feature? The fan speed of 25%.
All of the links in the description were substituted with youtube forward... Is there a way to get those? Thanks
I encountered a problem while modifying the source code. I don't know how to enable the asicboost function with the source code of bmminer-mix in github. Could you please so kind to make a tutorial or give me some introduction information. Thx!
Hi, I am no longer working on that project. You cannot enable asicboost from that source code, you must add more code to it to have asicboost working.
Hi, very nice job. But is there any way to reconfigure(decompile) an existing bmminer. If i understand your tutorial right, i compile an complete new bmminer. But i still have an working system with an individual firmware on my s9 (not stock firmware) and i want to change some small thinks to make it better working for me. Please give me some hints how to do that. thanks
Hi, sorry, cannot really help on that, once is compiled is very hard to change things, it will take weeks to try to figure which bytes to change
hi excellet alexander great job!!! is there any way to take out fans i am working with cooling by oil ...thx
Hi, thanks for the comment. But it looks like you did not watched the entire video, as I show exactly how to do that. :)
Super, it's very helpful !
Could you please make a similar video about creating the firmware for L3+ ?
Laboratory KR hi, I have no l3 around
T9+ how to build, voltage, overfrequency.
@@Alexander1560 hi,i have same request.
@@Alexander1560 where can i find the CGminer 4.2.0 for l3++ miner?
can you tell us about all file needed?
hashboard 1 of my asic miner show me 19 of 72 chipsets.
i'd like custom firmware and show state of all chipsets.
i have another asic l3++ that two of four hashboard is not showing in status dashboard.
i'd like to custom for showing that reasons for me.
can this be done with an x3?
Hi, is there something to desable fancheck on cgminer? (D3, L3, Z9 ...)?
Hi, yes, it's possible, but need to recompile or use one of the cheap NE555 square signal generators to fake fan signal
Hi Alex, Tnx for the great video, I’m not a programmer, but probably I’ll be able to locate the file, change the line, is it possible to do that without making new build of the firmware, I want to change the fans check settings only, without the overclocking part.
Apologies for repeating the question,
I have to buy the firmware I think.
Can you roll back the original firmware via update, if there are problems?
Hope some one can recompile upper version asic then s9 which support 42th 53th 90th to mine scrypt
Tell me please how to disable check of temperature (which line). I have one hashboard that doesn't mine because it can't read temp (always shows TempChip2 15 degrees Celsius).
Hi, that board doesn't mine because the chips is failed, you need to repair the board, cannot fix it from code.
you are right, a reflow soldering fixed it
@Alexander1560
Good afternoon!
Do you have a very interesting project, please tell me how to add to the firmware the possibility of automatically obtaining "x%" for the development of the firmware?
Hi, we work on our own firmware version which we license to big farms for now. In the future we may make a version open for public, but now we work with farms with 1000 or more machines to tune. We do advanced power consuming testing, temperature probing, hardware failure measurements, this is why we don't release a public version yet, as there are a lot of versions which perform differently when overclocked.
We cannot provide any more guidance in coding, I would advise looking for a C++ programmer which can use this video to build the firmware and can modify the source code.
I also have more than 1,000 machines, I only ask a little help. between us there is no competition.
Please help :)
To have percentage you have 2 options. You create an event inside linux to reboot and set pool to your pool every day into config and mine xtime for you, or you modify bmminer to switch pool after a certain uptime and you reset the counter everyday. It's not easy to program and I cannot share this code as there's a lot of things to cover and tests which must be done. One time on an early prototype, the miners would get stuck on mining just for us or just for the client, so we used the second approach.
There's a 3rd approach that we are considering for the future, but is more complex. It requires a management software which will monitor the machines and switch pool automatically without rebooting and loosing 2-3 minutes for each machine. For 1 machine is not much, but for a 1000 machines you loose 50 hours of mining each time.
We can do all this work for you if you are interested, we charge fix amount per license. In case you are interested, let me know.
Thank you very much for your tutorial! One question if you allow!
Is there any way to make a firmware file to overlock via "upgrade" option? I got a lot of machines, so it's complicated to do all stuff with each. Thank you in advance!
Hi, It's possible to do, but I did not made a video yet. I would advise looking into batch scripting as you could achieve this with python or other programming, to connect via ssh to the machine and copy the files automatically
I followed your tutorial step by step and got it working, but I'm not a genius like you, it's impossible for me to do what you described :) Thank you again, your work is great.
T9+ how to build, voltage, overfrequency.
Is it possible to load or adapt equihash algorithm to work in the S9 for Zcash
?
I don't know!
Hello. Can I use only your video tutorial to build custom firmware? Sorry for English, not my native language.
Никита Гармаш hi, sure you can
Many thanks for the prompt reply.
How can update version of cgminer to 4.11?
Post the download for Bmminer frequency 850 edit for us! for antminer s9
Great vid, thank you. Your discord/s are not up? Tried connecting to the one in the readme and the above with no luck. :)
please help!
Permission denied
Makefile:198: recipe for target 'sha2_c5.o' failed
make: *** [sha2_c5.o] Error 127
hola tengo un firmware con pool fees que no se ven tu puedes editar el firmware para eliminarlos ????? yo te enviaria el firmware por aqui !!!!
good stuff
Hello!
Do you know why ASIC don't show temperature?
hi, some board versions use a different temp reading IC on the board. Bitmain did not release the code in versions for each board version.
on the 18 Th/s what will be the power usage can you please let me know
Luai Rajab . It's 2100 watt for 18 th.. 700 watts per board
thank you
Thanks for the video! does this method require linux os? can i do it using windows!?
Hi, in this video I show how to build the firmware on an ubuntu OS which is based on linux. This will not work on windows machine
Can this work S19 amogic board?
Yes, but not same software. If you have many s19, let me know
Hello!
Do you that it can go up to 21 th/s? How to go over 940 mV? Thank you.
Hi, I've seen it going to 19 TH/s, but no 21 so far. getting over 940 mV is something we work on. The software on the pic need to be rewriten in order to achieve that
These guys overlocked S9 and S9i to 21 th/s: beeminergroup.com/proshivka/
Firmware available to download
Let me know what you think about it, please
If you check at the end of the video, it's 19.5 TH/s. I don't understand russian.. but I did not see any 21 TH in the vid. It might be possible, I did not say it's not, but I did not see it yet..
20,2 TH/s ruclips.net/video/XKAJ-jxnVi4/видео.html
11:21
hey
Great job
can u build firmware have a option “btc-address” on the miner configuration page
bcz we need the “btc-address” for solo mining local host
i can change the bmminer.conf and added “btc-address” but I don't think so worked
Hi, can you tell me more about this btc-address ? why would you want to mine locally ?
nice video V9 uses CGMiner though
Didn't had the chance to work on V9 yet. If you know someone which wants to tune more than 100, let me know.
I have a v9, but im going to switch to L3+ instead for lower voltage... could you possibly do an even further undervolt to run the same hashrate?
I don't know about undervolting and keep the hashrate, it needs to be tested.
thx for the great tutorial, thing is, i followed step by step and it works! partially. It did bypass the fan detection but one of my hashboard is dropped. In the kernel log it says "chain[J6] has 0 asics" while J7 and J8 have 63 asics. So i only have 2 hashboards that are running right now. Please help.
Hi Kevin, is the board working with the old firmware? Are all three boards same version ? if you mix them then some might not get recognized. Another option, you overclocked too much with poor cooling and the board died. This is the down side of overclocking, you must provide proper cooling to make it work.
Hi alex, i didn't OC tho, all i needed was to disable the fan detection and thats the only thing i modified because one of the fan connector on the control board failed so I connect the fan directly to the PSU and it wouldnt mine. The boards were all good using official FW, turned out to be the modded code didnt work after all, the 2 working boards worked for several mins and died, no hashrate at all in the end. I gave up planing to just replace the control board.
Kevin Huang I understand.. I never had issues with the modified firmware not recognizing boards, but there are multiple version of the boards produced by Bitmain, who knows
@@Alexander1560 Hello, I have located the bmminer file but I cant get it to open. Is there any way I could get some help? Email me at louistmaltese@gmail.com
Bitmain announced S9j today. Will your method works for it?
Also, this thing www.innosilicon.com/html/t2t-miner/index.html was dropped today. Do you think you can overlock Innosilicon miner more or this is just super overlocked version of S9?
I don't have access to that machine to test right now, it might work or not.. I don't know about innosilicon.
What is your skype or whatsapp?
Никита Гармаш alexander1560 is skype
How to customize firmware for Antminer Z9 mini and Z9 ?
no idea, didn't had the chance to work with one
Can you please upload linux version of this software? Wine doesn't want to launch it
Hi, will work on compiling it for linux the following days, thanks for the suggestion!
Can u change this firmware (SHA256) with other algorithm :D?
The asics are made for SHA256 in case of S9, so I would say not. We did not try, but it would be a waste of resources to try to experience with this without the support of the people which made the ASICS.
Some devices do not display temperature. How to fix?
Hi, can you tell me the version of the boards and the miner version? For this you need to check the sticker actually placed on the hashing boards. I believe those contain a different temp sensor which is not included in the firmware released on git. Some users claimed to have issues with the march 2018 batch. If I could get my hands on such a board I could bebug more and find a solution or contact bitmain to ask for the missing code (I already contacted them but they said all the code is already on git, without proof in my hand I cannot argue with that), but without a board that I can't do anything.
Hi Sir, very appreciate of this video, but is too complicated. can u suggest how to disable fan check by just using winscp modify the bmminer.conf file? Bcos my control board keep fail 1 of the fan, but both the fan are new. and is too costly to repair the control board, hope you can help pls. Thank you sincerely!
Hi Darryl, unfortunately there's no simple way for this. I am releasing a new firmware soon which will allow disabling fan check. Is going to be paid version of the firmware so I am not sure how hepful it will be to you, or you can use the free version which is going to mine 1% for development costs.
Another solution for you will be to purchase a NE555 square wave generator, which is 2-3 bucks and set it up on the fan PWM pin to fool the board...
And I think another one which could be better for you, is to link the Yellow pin, which is pin 2 (left to right) between the fan ports on the board. In this way the remained fan will feed PWM to both fans.
Let me know if it worked.
so how much are u selling the new firmware which can do all the control ?
do u mind to email me at darryldrazen@gmail.com
Replied, you can also join the discord channel where we discuss overclocking and about miners: discord.gg/5Eq5hUB
i only hav 1 miner, and i good in programming, can u help me on this? how can i get the firmware, can i buy from u ?
It works for S9i? Have you tried?
yes, it works on s9i
T9+ how to build, voltage, overfrequency. Thank you ... I build T9+ according to your video. The mining machine does not work.
is there any dev fee in your firmware above?
Hi, we do not do dev fees
hey Alex i import your firmware to my s9 but it wont mine- i would like to test it before i buy to deploy on my farm
Hi winston, can you tell me what it says? did you check the config for pools ? Try getting in kernel log see if you get any logs.
What miners you run it on ? 13.5 TH/s 14 ?
Join the discord channel and message me alex1560 and will talk there.
Can you overclock to antminer E3?
I don't know.. probably I can.. but don't have a machine
I challenge you to put open source miner or custom miner to mine blake scrypt blake256d nist x16 x16r cryptonote basic
So I understand, if I purchase your video i get a copy of this firmware built that has the fan check disabled?
Yes, you do
Hi ALex, thanks for information. I am interested in converting the running image on my S9 to actual firmware image so i can upgrade other units. do you have video for this or instructions? if for a fee i can buy the video :)
I did not made a video on how to build firmware actually, sorry!
You said you have firmware avail ?
I have the bmminer file built, you install it via ssh.
hello I have a firmware with pool fees that are not seen you can edit the firmware to remove them ????? I would send the firmware here!
Hi, get in touch on discord and we can talk there... it depends how much you're willing to pay for this.. if it's for a couple of machines, then it's not worth the effort, so don't bother.
discord.gg/JKFzRbE
Bro how about bmminer not found, please restart shows on my kernel log?
Please reply