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

Комментарии • 136

  • @JavadFarzin
    @JavadFarzin 2 года назад

    آفرین The first in the world👏👏 T17 42 th (Changing the ASIC frequency and voltage ) Thanks

  • @AnonyMous-oj7pr
    @AnonyMous-oj7pr 6 лет назад +2

    Nice mate, Hope to see a Firmware update for it soon !

  • @pavlob2
    @pavlob2 6 лет назад +2

    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

  • @billycassanova8117
    @billycassanova8117 3 года назад

    thanx dude, it help my fan trouble :)

  • @_Paxton
    @_Paxton 5 лет назад +1

    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.

  • @hamedhossani8481
    @hamedhossani8481 3 года назад

    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?

  • @tesseract8412
    @tesseract8412 4 года назад

    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!

  • @francescocmazza
    @francescocmazza 2 года назад

    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

  • @МаксимТрифонов-ъ6и
    @МаксимТрифонов-ъ6и 3 года назад

    Hello Alex, I have Antminer T17e , is there way to build bmminer binary for this one ?

  • @СергейКапкаев-т9з
    @СергейКапкаев-т9з 6 лет назад

    Wow. Thx. Great job! Did you compile single-board-test ? Have a lot issues with cross compile method... unfortunatly

    • @Alexander1560
      @Alexander1560  6 лет назад

      Hi, you are welcome! I did not find the need to try to compile single-board-test so far

  • @AAANorthbridge
    @AAANorthbridge 2 года назад

    Hi there, Is there any possible to run a python script on antminer ? Please response

  • @gapperx9068
    @gapperx9068 5 лет назад

    Thanks Alex for such a gr8 video. Have you had time to engineer for L3+ or L3++?

  • @АртемРунов-ф6ы
    @АртемРунов-ф6ы Год назад

    How to set frequency and voltage through ssh on t17?

  • @davilezve
    @davilezve 6 лет назад

    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?

  • @vandem_music
    @vandem_music 4 года назад

    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%.

  • @pavlob2
    @pavlob2 6 лет назад

    All of the links in the description were substituted with youtube forward... Is there a way to get those? Thanks

  • @hanxiao824
    @hanxiao824 4 года назад

    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!

    • @Alexander1560
      @Alexander1560  4 года назад

      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.

  • @lartg.7016
    @lartg.7016 6 лет назад

    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

    • @Alexander1560
      @Alexander1560  6 лет назад

      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

  • @inversionsinmentiras4.041
    @inversionsinmentiras4.041 6 лет назад

    hi excellet alexander great job!!! is there any way to take out fans i am working with cooling by oil ...thx

    • @Alexander1560
      @Alexander1560  6 лет назад

      Hi, thanks for the comment. But it looks like you did not watched the entire video, as I show exactly how to do that. :)

  • @laboratorykr7786
    @laboratorykr7786 6 лет назад

    Super, it's very helpful !
    Could you please make a similar video about creating the firmware for L3+ ?

    • @Alexander1560
      @Alexander1560  6 лет назад

      Laboratory KR hi, I have no l3 around

    • @happyboy8847
      @happyboy8847 6 лет назад

      T9+ how to build, voltage, overfrequency.

    • @hamedhossani8481
      @hamedhossani8481 4 года назад

      @@Alexander1560 hi,i have same request.

    • @hamedhossani8481
      @hamedhossani8481 4 года назад

      ​@@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.

  • @Eric-the-wise
    @Eric-the-wise 3 года назад

    can this be done with an x3?

  • @thomasbadde2004
    @thomasbadde2004 6 лет назад

    Hi, is there something to desable fancheck on cgminer? (D3, L3, Z9 ...)?

    • @Alexander1560
      @Alexander1560  6 лет назад

      Hi, yes, it's possible, but need to recompile or use one of the cheap NE555 square signal generators to fake fan signal

  • @justscripture1384
    @justscripture1384 5 лет назад

    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.

    • @justscripture1384
      @justscripture1384 5 лет назад

      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?

  • @vistanationrockafellaz
    @vistanationrockafellaz 3 года назад

    Hope some one can recompile upper version asic then s9 which support 42th 53th 90th to mine scrypt

  • @zhoolleeck589
    @zhoolleeck589 6 лет назад

    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).

    • @Alexander1560
      @Alexander1560  6 лет назад

      Hi, that board doesn't mine because the chips is failed, you need to repair the board, cannot fix it from code.

    • @zhoolleeck589
      @zhoolleeck589 6 лет назад +2

      you are right, a reflow soldering fixed it

  • @SargesX
    @SargesX 6 лет назад

    @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?

    • @Alexander1560
      @Alexander1560  6 лет назад

      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.

    • @SargesX
      @SargesX 6 лет назад

      I also have more than 1,000 machines, I only ask a little help. between us there is no competition.
      Please help :)

    • @Alexander1560
      @Alexander1560  6 лет назад

      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.

  • @НикитаГармаш-ъ3ц
    @НикитаГармаш-ъ3ц 6 лет назад

    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!

    • @Alexander1560
      @Alexander1560  6 лет назад

      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

    • @НикитаГармаш-ъ3ц
      @НикитаГармаш-ъ3ц 6 лет назад +1

      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.

    • @happyboy8847
      @happyboy8847 6 лет назад

      T9+ how to build, voltage, overfrequency.

  • @bcnrider6987
    @bcnrider6987 6 лет назад

    Is it possible to load or adapt equihash algorithm to work in the S9 for Zcash
    ?

  • @НикитаГармаш-ъ3ц
    @НикитаГармаш-ъ3ц 6 лет назад

    Hello. Can I use only your video tutorial to build custom firmware? Sorry for English, not my native language.

  • @hamedhossani8481
    @hamedhossani8481 4 года назад

    How can update version of cgminer to 4.11?

  • @DanGodric
    @DanGodric 4 года назад +1

    Post the download for Bmminer frequency 850 edit for us! for antminer s9

  • @kennyski1901
    @kennyski1901 5 лет назад

    Great vid, thank you. Your discord/s are not up? Tried connecting to the one in the readme and the above with no luck. :)

  • @podotkos9804
    @podotkos9804 6 лет назад

    please help!
    Permission denied
    Makefile:198: recipe for target 'sha2_c5.o' failed
    make: *** [sha2_c5.o] Error 127

  • @robertobrito4559
    @robertobrito4559 4 года назад

    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 !!!!

  • @BHSAHFAD
    @BHSAHFAD 6 лет назад

    good stuff

  • @НикитаГармаш-ъ3ц
    @НикитаГармаш-ъ3ц 6 лет назад

    Hello!
    Do you know why ASIC don't show temperature?

    • @Alexander1560
      @Alexander1560  6 лет назад

      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.

  • @byye1
    @byye1 6 лет назад

    on the 18 Th/s what will be the power usage can you please let me know

    • @Alexander1560
      @Alexander1560  6 лет назад +2

      Luai Rajab . It's 2100 watt for 18 th.. 700 watts per board

    • @byye1
      @byye1 6 лет назад

      thank you

  • @abdulazizali6015
    @abdulazizali6015 6 лет назад

    Thanks for the video! does this method require linux os? can i do it using windows!?

    • @Alexander1560
      @Alexander1560  6 лет назад

      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

  • @ryanramnath1516
    @ryanramnath1516 2 года назад

    Can this work S19 amogic board?

    • @Alexander1560
      @Alexander1560  2 года назад

      Yes, but not same software. If you have many s19, let me know

  • @НикитаГармаш-ъ3ц
    @НикитаГармаш-ъ3ц 6 лет назад

    Hello!
    Do you that it can go up to 21 th/s? How to go over 940 mV? Thank you.

    • @Alexander1560
      @Alexander1560  6 лет назад

      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

    • @НикитаГармаш-ъ3ц
      @НикитаГармаш-ъ3ц 6 лет назад

      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

    • @Alexander1560
      @Alexander1560  6 лет назад

      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..

    • @НикитаГармаш-ъ3ц
      @НикитаГармаш-ъ3ц 6 лет назад

      20,2 TH/s ruclips.net/video/XKAJ-jxnVi4/видео.html
      11:21

  • @dexaunline8706
    @dexaunline8706 6 лет назад

    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

    • @Alexander1560
      @Alexander1560  6 лет назад

      Hi, can you tell me more about this btc-address ? why would you want to mine locally ?

  • @drkcodeman
    @drkcodeman 6 лет назад

    nice video V9 uses CGMiner though

    • @Alexander1560
      @Alexander1560  6 лет назад

      Didn't had the chance to work on V9 yet. If you know someone which wants to tune more than 100, let me know.

    • @drkcodeman
      @drkcodeman 6 лет назад

      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?

    • @Alexander1560
      @Alexander1560  6 лет назад

      I don't know about undervolting and keep the hashrate, it needs to be tested.

  • @kevinhuang2691
    @kevinhuang2691 6 лет назад

    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.

    • @Alexander1560
      @Alexander1560  6 лет назад

      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.

    • @kevinhuang2691
      @kevinhuang2691 6 лет назад

      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.

    • @Alexander1560
      @Alexander1560  6 лет назад

      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

    • @louismaltese8329
      @louismaltese8329 5 лет назад

      @@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

  • @НикитаГармаш-ъ3ц
    @НикитаГармаш-ъ3ц 6 лет назад

    Bitmain announced S9j today. Will your method works for it?

    • @НикитаГармаш-ъ3ц
      @НикитаГармаш-ъ3ц 6 лет назад

      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?

    • @Alexander1560
      @Alexander1560  6 лет назад

      I don't have access to that machine to test right now, it might work or not.. I don't know about innosilicon.

    • @НикитаГармаш-ъ3ц
      @НикитаГармаш-ъ3ц 6 лет назад

      What is your skype or whatsapp?

    • @Alexander1560
      @Alexander1560  6 лет назад

      Никита Гармаш alexander1560 is skype

  • @stephanemajorosi4270
    @stephanemajorosi4270 6 лет назад

    How to customize firmware for Antminer Z9 mini and Z9 ?

    • @Alexander1560
      @Alexander1560  6 лет назад

      no idea, didn't had the chance to work with one

  • @vladgusev112
    @vladgusev112 6 лет назад

    Can you please upload linux version of this software? Wine doesn't want to launch it

    • @Alexander1560
      @Alexander1560  6 лет назад +1

      Hi, will work on compiling it for linux the following days, thanks for the suggestion!

  • @engineerelectrical1028
    @engineerelectrical1028 6 лет назад

    Can u change this firmware (SHA256) with other algorithm :D?

    • @Alexander1560
      @Alexander1560  6 лет назад

      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.

  • @Максим-м6ъ5д
    @Максим-м6ъ5д 6 лет назад

    Some devices do not display temperature. How to fix?

    • @Alexander1560
      @Alexander1560  6 лет назад

      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.

  • @darryldrazen
    @darryldrazen 6 лет назад

    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!

    • @Alexander1560
      @Alexander1560  6 лет назад

      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.

    • @darryldrazen
      @darryldrazen 6 лет назад

      so how much are u selling the new firmware which can do all the control ?

    • @darryldrazen
      @darryldrazen 6 лет назад

      do u mind to email me at darryldrazen@gmail.com

    • @Alexander1560
      @Alexander1560  6 лет назад

      Replied, you can also join the discord channel where we discuss overclocking and about miners: discord.gg/5Eq5hUB

    • @darryldrazen
      @darryldrazen 6 лет назад

      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 ?

  • @НикитаГармаш-ъ3ц
    @НикитаГармаш-ъ3ц 6 лет назад

    It works for S9i? Have you tried?

  • @happyboy8847
    @happyboy8847 6 лет назад

    T9+ how to build, voltage, overfrequency. Thank you ... I build T9+ according to your video. The mining machine does not work.

  • @winstonsolmon5716
    @winstonsolmon5716 6 лет назад

    is there any dev fee in your firmware above?

    • @Alexander1560
      @Alexander1560  6 лет назад

      Hi, we do not do dev fees

    • @winstonsolmon5716
      @winstonsolmon5716 6 лет назад

      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

    • @Alexander1560
      @Alexander1560  6 лет назад

      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.

  • @assafsela
    @assafsela 6 лет назад

    Can you overclock to antminer E3?

    • @Alexander1560
      @Alexander1560  6 лет назад

      I don't know.. probably I can.. but don't have a machine

  • @vistanationrockafellaz
    @vistanationrockafellaz 3 года назад

    I challenge you to put open source miner or custom miner to mine blake scrypt blake256d nist x16 x16r cryptonote basic

  • @mxer7823
    @mxer7823 6 лет назад

    So I understand, if I purchase your video i get a copy of this firmware built that has the fan check disabled?

    • @Alexander1560
      @Alexander1560  6 лет назад

      Yes, you do

    • @mxer7823
      @mxer7823 6 лет назад

      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 :)

    • @Alexander1560
      @Alexander1560  6 лет назад

      I did not made a video on how to build firmware actually, sorry!

    • @mxer7823
      @mxer7823 6 лет назад

      You said you have firmware avail ?

    • @Alexander1560
      @Alexander1560  6 лет назад

      I have the bmminer file built, you install it via ssh.

  • @robertobrito4559
    @robertobrito4559 4 года назад

    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!

    • @Alexander1560
      @Alexander1560  4 года назад

      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

  • @saatieshmogan3276
    @saatieshmogan3276 5 лет назад

    Bro how about bmminer not found, please restart shows on my kernel log?