HomeФильмы и анимацияRelated VideosMore From: Alex M

Antminer S9 firmware build, overclock, change voltage, disable fan check - Tutorial

82 ratings | 4583 views
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: http://mining-upgrade.com/product/antminer-mass-deployer/ 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: http://www.torrent-miner.com/watch.php 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 https://github.com/bitmaintech/bmminer-mix.git cd bmminer-mix mkdir build-tools cd build-tools # get platform gcc wget https://releases.linaro.org/archive/12.11/components/toolchain/binaries/gcc-linaro-arm-linux-gnueabihf-4.7-2012.11-20121123_linux.tar.bz2 tar xvf gcc-linaro-arm-linux-gnueabihf-4.7-2012.11-20121123_linux.tar.bz2 # get prebuilt platform libz git clone https://github.com/djp952/prebuilt-libz.git 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 : https://discord.gg/5Eq5hUB
Html code for embedding videos on your blog
Text Comments (97)
Tyler Durden (28 days ago)
good stuff
David Lezama (1 month ago)
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?
assaf sela (1 month ago)
Can you overclock to antminer E3?
Alex M (1 month ago)
I don't know.. probably I can.. but don't have a machine
Lart g. (2 months ago)
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
Alex M (2 months ago)
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
Can you please upload linux version of this software? Wine doesn't want to launch it
Alex M (2 months ago)
Hi, will work on compiling it for linux the following days, thanks for the suggestion!
winston solmon (2 months ago)
is there any dev fee in your firmware above?
Alex M (2 months ago)
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.
winston solmon (2 months ago)
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
Alex M (2 months ago)
Hi, we do not do dev fees
Stephane majorosi (3 months ago)
How to customize firmware for Antminer Z9 mini and Z9 ?
Alex M (3 months ago)
no idea, didn't had the chance to work with one
Wow. Thx. Great job! Did you compile single-board-test ? Have a lot issues with cross compile method... unfortunatly
Alex M (3 months ago)
Hi, you are welcome! I did not find the need to try to compile single-board-test so far
Zhool Leeck (4 months ago)
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).
Zhool Leeck (4 months ago)
you are right, a reflow soldering fixed it
Alex M (4 months ago)
Hi, that board doesn't mine because the chips is failed, you need to repair the board, cannot fix it from code.
Jose Luis García Tucci (4 months ago)
Is it possible to load or adapt equihash algorithm to work in the S9 for Zcash ?
Alex M (4 months ago)
I don't know!
Bitmain announced S9j today. Will your method works for it?
Alex M (4 months ago)
Никита Гармаш alexander1560 is skype
What is your skype or whatsapp?
Alex M (4 months ago)
I don't have access to that machine to test right now, it might work or not.. I don't know about innosilicon.
Also, this thing http://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?
furia smarts (4 months ago)
hi excellet alexander great job!!! is there any way to take out fans i am working with cooling by oil ...thx
Alex M (4 months ago)
Hi, thanks for the comment. But it looks like you did not watched the entire video, as I show exactly how to do that. :)
BCW Inc (4 months ago)
So I understand, if I purchase your video i get a copy of this firmware built that has the fan check disabled?
furia smarts (3 months ago)
hi i get a new firnware that work great but dont have the fun disconect...when you release you fw thx
Alex M (3 months ago)
Hi, the oil chiller sounds great. Yes, with the custom bmminer attached in the download page you can disconnect the fans.
furia smarts (3 months ago)
great!! i bougth you tutorial anyway ...for 67$ it is a great investment.. i am building a oil cooling too but i will use a oil chiller...you can buy one like 65l/minute 10200 kilocalories for 1800$ ....can we disconect the fans with your firnware fo run the miner without fans? many thx and great job
Alex M (3 months ago)
Hi, is going to be a built bmminer, but I think next week we are ready to release a firmware which will work via the upgrade function on the interface
furia smarts (3 months ago)
just to be clear...if i buy the torrentminer,i will get a firware that i can instal via upgrade? or the way for intal in in the video torrentminer? thx
Kevin Huang (4 months ago)
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.
Alex M (4 months ago)
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
Kevin Huang (4 months ago)
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.
Alex M (4 months ago)
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.
Thomas Badde (4 months ago)
Hi, is there something to desable fancheck on cgminer? (D3, L3, Z9 ...)?
Alex M (4 months ago)
Hi, yes, it's possible, but need to recompile or use one of the cheap NE555 square signal generators to fake fan signal
happy boy (4 months ago)
Detect 512MB control board of XILINX Miner Type = T9+ set_reset_allhashboard = 0x0000ffff set_reset_allhashboard = 0x00000000 set_reset_allhashboard = 0x0000ffff set_reset_allhashboard = 0x0000ffff chain[1] PIC jump to app dsPIC33EP16GS202_get_pic_sw_version failed on Chain[1]! dsPIC33EP16GS202_get_pic_sw_version failed on Chain[1]! dsPIC33EP16GS202_get_pic_sw_version failed on Chain[1]! Check chain[1] PIC fw version=0xff chain[1] PIC need restore ...
happy boy (4 months ago)
T9+ how to build, voltage, overfrequency. Thank you ... I build T9+ according to your video. The mining machine does not work.
Cody Russell (4 months ago)
nice video V9 uses CGMiner though
Alex M (4 months ago)
I don't know about undervolting and keep the hashrate, it needs to be tested.
Cody Russell (4 months ago)
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?
Alex M (4 months ago)
Didn't had the chance to work on V9 yet. If you know someone which wants to tune more than 100, let me know.
Abdulaziz Ali (4 months ago)
Thanks for the video! does this method require linux os? can i do it using windows!?
Alex M (4 months ago)
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
Hello! Do you know why ASIC don't show temperature?
Alex M (4 months ago)
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.
Engineer Electrical (4 months ago)
Can u change this firmware (SHA256) with other algorithm :D?
Alex M (4 months ago)
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.
podotkos (4 months ago)
please help! Permission denied Makefile:198: recipe for target 'sha2_c5.o' failed make: *** [sha2_c5.o] Error 127
SargesX (4 months ago)
@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?
Alex M (4 months ago)
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.
SargesX (4 months ago)
I also have more than 1,000 machines, I only ask a little help. between us there is no competition. Please help :)
Alex M (4 months ago)
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.
It works for S9i? Have you tried?
Alex M (4 months ago)
yes, it works on s9i
Hello! Do you that it can go up to 21 th/s? How to go over 940 mV? Thank you.
20,2 TH/s https://www.youtube.com/watch?v=XKAJ-jxnVi4 11:21
Alex M (4 months ago)
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..
These guys overlocked S9 and S9i to 21 th/s: https://beeminergroup.com/proshivka/ Firmware available to download Let me know what you think about it, please
Alex M (4 months ago)
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
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!
happy boy (4 months ago)
T9+ how to build, voltage, overfrequency.
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.
Alex M (4 months ago)
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
Hello. Can I use only your video tutorial to build custom firmware? Sorry for English, not my native language.
Many thanks for the prompt reply.
Alex M (4 months ago)
Никита Гармаш hi, sure you can
Laboratory KR (5 months ago)
Super, it's very helpful ! Could you please make a similar video about creating the firmware for L3+ ?
happy boy (4 months ago)
T9+ how to build, voltage, overfrequency.
Alex M (5 months ago)
Laboratory KR hi, I have no l3 around
Pavlo Bilous (5 months ago)
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
Pavlo Bilous (5 months ago)
All of the links in the description were substituted with youtube forward... Is there a way to get those? Thanks
Darryl Drazen (5 months ago)
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!
happy boy (4 months ago)
T9+ how to build, voltage, overfrequency.
Darryl Drazen (5 months ago)
i had learn how to overclock, control fan %, but i really dunno how to disable fan check? really not more simple way to change it ?
Darryl Drazen (5 months ago)
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 ?
Alex M (5 months ago)
Replied, you can also join the discord channel where we discuss overclocking and about miners: https://discord.gg/5Eq5hUB
Darryl Drazen (5 months ago)
do u mind to email me at [email protected]
max ch (5 months ago)
Some devices do not display temperature. How to fix?
Alex M (5 months ago)
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.
Dexa Unline (5 months ago)
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
Alex M (5 months ago)
Hi, can you tell me more about this btc-address ? why would you want to mine locally ?
Luai Rj (5 months ago)
on the 18 Th/s what will be the power usage can you please let me know
Luai Rj (5 months ago)
thank you
Alex M (5 months ago)
Luai Rajab . It's 2100 watt for 18 th.. 700 watts per board
Anony Mous (6 months ago)
Nice mate, Hope to see a Firmware update for it soon !

Would you like to comment?

Join YouTube for a free account, or sign in if you are already a member.