Title: Antminer D3 firmware testing Post by: d4nntheman on December 04, 2017, 04:04:08 AM Hello everyone 1st post so I know I'm not trusted quite yet.
Ultimately I have been testing a firmware replacement for the Antminer D3. I think I got the basics of a usable firmware built. I have softened the fans and added voltage control so far. Unfortunately I do not have a kilowatt meter to test the actual power consumption of the D3. So I am seeking testers for my firmware to test and get some reports back on the power consumption vs the original FW. particularity in the 400-500MH and 50-200 MV ranges. It seems to be running at 4xxMH/50MV pretty well for my miner but again I need empirical data to suggest that. I know blissd has a great firmware already so this may seem a little redundant. so I'm not sure if anyone will even be interested in mine. Here is the source code of cgminer. https://github.com/d4nntheman/cgminer-dash I still have to upload the actual firmware with changes to GitHub but that can easily be extracted and read. Here is the complete firmware https://drive.google.com/open?id=1CXjg2EoBcL6tzCFTIeSG8KMrHVXt5yav https://drive.google.com/file/d/1wsuyHwKJvszxSsdgBkfo8MofRqMRkVEL/view?usp=sharing also a standard I am not responsible for anything this miner causes to hardware, you, feelings, ect... Changes Enabled changing voltage to the board via web interface slowed the speed of the fan speed increase for more quite fans. Eventually ill add the ability to change the fan speeds limits MAX_FAN_TEMP and MIN_FAN_TEMP via the web interface more to come Update: added more voltage options added fan speed adjustment I use 60 for the min fan speed temp and 80 for the fan max speed temp at 412/55 cherry picked some 4.10 cgminer updates https://drive.google.com/open?id=1CXjg2EoBcL6tzCFTIeSG8KMrHVXt5yav Title: Re: Antminer D3 firmware testing Post by: slv1221 on December 04, 2017, 04:24:18 PM Hello everyone 1st post so I know I'm not trusted quite yet. HiUltimately I have been testing a firmware replacement for the Antminer D3. I think I got the basics of a usable firmware built. I have softened the fans and added voltage control so far. Unfortunately I do not have a kilowatt meter to test the actual power consumption of the D3. So I am seeking testers for my firmware to test and get some reports back on the power consumption vs the original FW. particularity in the 400-500MH and 50-200 MV ranges. It seems to be running at 4xxMH/50MV pretty well for my miner but again I need empirical data to suggest that. I know blissd has a great firmware already so this may seem a little redundant. so I'm not sure if anyone will even be interested in mine. Here is the source code of cgminer. https://github.com/d4nntheman/cgminer-dash I still have to upload the actual firmware with changes to GitHub but that can easily be extracted and read. Here is the complete firmware https://drive.google.com/file/d/1wsuyHwKJvszxSsdgBkfo8MofRqMRkVEL/view?usp=sharing also a standard I am not responsible for anything this miner causes to hardware, you, feelings, ect... I'm ready to test the firmware. add a description of your changes, the difference between your firmware and the standard one? what are the plans to change the firmware? Title: Re: Antminer D3 firmware testing Post by: d4nntheman on December 04, 2017, 09:01:55 PM listed out the changes now for you. :D
its literally just custom voltage and slowing the fans so far Title: Re: Antminer D3 firmware testing Post by: fecell on December 05, 2017, 05:02:58 AM Ultimately I have been testing a firmware replacement for the Antminer D3. broke my head. :(pls, how to compile? I success cross compile my HelloWorld.c under windows10 for BBB (with arm-linux-gnueabihf-gcc.exe (Linaro GCC 7.2-2017.11) 7.2.1 20171011), but I cant compile cgminer prj with make, autoconfig, etc. Pls, give advice where to go.. I need cut off fan check from cgminer, because I use TD-500/160 fan with 'NE555 fake-fan", I wanna phisicaly remove fake-fan with patching cgminer as well. ps: I'm not english speaking, sorry for mistakes. Title: Re: Antminer D3 firmware testing Post by: d4nntheman on December 05, 2017, 06:38:52 AM Ultimately I have been testing a firmware replacement for the Antminer D3. broke my head. :(pls, how to compile? I success cross compile my HelloWorld.c under windows10 for BBB (with arm-linux-gnueabihf-gcc.exe (Linaro GCC 7.2-2017.11) 7.2.1 20171011), but I cant compile cgminer prj with make, autoconfig, etc. Pls, give advice where to go.. I need cut off fan check from cgminer, because I use TD-500/160 fan with 'NE555 fake-fan", I wanna phisicaly remove fake-fan with patching cgminer as well. ps: I'm not english speaking, sorry for mistakes. I use Linux for development so i cant help much with windows but I configure like so Code: CC=/home/path/to/arm-linux-gnueabihf-gcc CCLD=/home/path/to/arm-linux-gnueabihf-ld CFLAGS="-O2 -Wall -march=armv7" ./configure --enable-bitmain-D1 --disable-libcurl --host armv7 and you shoud be good Title: Re: Antminer D3 firmware testing Post by: fecell on December 05, 2017, 08:08:13 AM Ultimately I have been testing a firmware replacement for the Antminer D3. broke my head. :(pls, how to compile? I success cross compile my HelloWorld.c under windows10 for BBB (with arm-linux-gnueabihf-gcc.exe (Linaro GCC 7.2-2017.11) 7.2.1 20171011), but I cant compile cgminer prj with make, autoconfig, etc. Pls, give advice where to go.. I need cut off fan check from cgminer, because I use TD-500/160 fan with 'NE555 fake-fan", I wanna phisicaly remove fake-fan with patching cgminer as well. ps: I'm not english speaking, sorry for mistakes. I use Linux for development so i cant help much with windows but I configure like so Code: CC=/home/path/to/arm-linux-gnueabihf-gcc CCLD=/home/path/to/arm-linux-gnueabihf-ld CFLAGS="-O2 -Wall -march=armv7" ./configure --enable-bitmain-D1 --disable-libcurl --host armv7 and you shoud be good upd: all done. Code: login as: root Title: Re: Antminer D3 firmware testing Post by: slv1221 on December 05, 2017, 11:37:57 PM Ultimately I have been testing a firmware replacement for the Antminer D3. broke my head. :(pls, how to compile? I success cross compile my HelloWorld.c under windows10 for BBB (with arm-linux-gnueabihf-gcc.exe (Linaro GCC 7.2-2017.11) 7.2.1 20171011), but I cant compile cgminer prj with make, autoconfig, etc. Pls, give advice where to go.. I need cut off fan check from cgminer, because I use TD-500/160 fan with 'NE555 fake-fan", I wanna phisicaly remove fake-fan with patching cgminer as well. ps: I'm not english speaking, sorry for mistakes. I use Linux for development so i cant help much with windows but I configure like so Code: CC=/home/path/to/arm-linux-gnueabihf-gcc CCLD=/home/path/to/arm-linux-gnueabihf-ld CFLAGS="-O2 -Wall -march=armv7" ./configure --enable-bitmain-D1 --disable-libcurl --host armv7 and you shoud be good can you update cgminer to 4.10 version? Title: Re: Antminer D3 firmware testing Post by: pubill on December 06, 2017, 03:05:08 AM :D thx d4nntheman
Could you tell me how to make it with firmware? Title: Re: Antminer D3 firmware testing Post by: d4nntheman on December 06, 2017, 11:41:55 PM what Linux you use? can you update cgminer to 4.10 version? I run arch linux Ill look into updating to 4.10 :D thx d4nntheman Could you tell me how to make it with firmware? tar xvf to extract the tar then use 7z to extract the .SD file you should get a .cpio file use Code: cpio -idv < /tmp/object.cpio make sure you are root when you extract the cpio file once its extracted you can replace any files in the firmware like cgminer the web pages ect. to build the firmware Code: find . | cpio -o -H newc > ../Angstrom-antminer_m-eglibc-ipk-v2013.06-beaglebone.rootfs.cpio Title: Re: Antminer D3 firmware testing Post by: slv1221 on December 09, 2017, 12:50:34 PM Hi d4nntheman
your firmware not work antminer not boot plz compile cgminer 4.10 version and i compile new firmware. at the moment I restore my antminer D3, plz remove your firmware from first post Title: Re: Antminer D3 firmware testing Post by: slv1221 on December 09, 2017, 03:27:12 PM hi
my firmware with d4nntheman cgminer 4.9 384/50 https://monosnap.com/file/8prb8MJFkSwSkkTfixMxWYUVXxyAo8.png and powermetr https://monosnap.com/file/F98QPRtyceuIDfhP4FutcDqArcZnbP.png 425/75 https://monosnap.com/file/anpOgliCILv4Tsklg1TsKFBqpFGZ8V.png https://monosnap.com/file/jd24fBqutkP27AZ3dmSLGCjeTLdqUF.png 531/100 https://monosnap.com/file/GXkXwfGSihOCeff582P64JNjYKNlU8.png https://monosnap.com/file/1qYTIcTukOaoRSDxGDy4gxnEkmAAnT.png Title: Re: Antminer D3 firmware testing Post by: slv1221 on December 09, 2017, 10:13:38 PM Antminer D3 firmware without dev fee
https://drive.google.com/open?id=1aSwb01sCWxN_mLjpZE_gpu8wJ0fmFMdh (https://drive.google.com/open?id=1aSwb01sCWxN_mLjpZE_gpu8wJ0fmFMdh) after update reset settings to default for better mining ) Changes Enabled changing voltage to the board via web interface slowed the speed of the fan speed increase for more quite fans. Title: Re: Antminer D3 firmware testing Post by: slv1221 on December 12, 2017, 03:32:42 PM Hi all
test my firmware at the screen https://monosnap.com/file/sGq2SNf17W3BPlsoaGuEzTO73gJkwi.png 756W from wall Title: Re: Antminer D3 firmware testing Post by: ChilliWinter on December 12, 2017, 07:17:22 PM Sounds like nice work here guys without dev fees.
I'm looking you about cgminer 4.10.x soon keep it up, it's funny Title: Re: Antminer D3 firmware testing Post by: d4nntheman on December 12, 2017, 08:25:28 PM Sounds like nice work here guys without dev fees. I'm looking you about cgminer 4.10.x soon keep it up, it's funny check out my GitHub I just attempted to rebase to 4.10 I still need to cherry pick some code that went missing from the rebase though. feel free to submit a PR if anyone has some code they want added. Title: Re: Antminer D3 firmware testing Post by: slv1221 on December 12, 2017, 11:46:36 PM good job
i rebild and test it tomorrow Title: Re: Antminer D3 firmware testing Post by: d4nntheman on December 13, 2017, 02:08:55 AM okay rebuilt FW
now with more voltage options fan control options as well updated some parts of cgminer to 4.10 still may be beta ive been testing this release for a few mins. but im about to go drink so im done working on this for the day. consider this release very unstable https://drive.google.com/open?id=1xpC-QlHC__gx4_Me9a7xQYZufUSUISEG https://drive.google.com/open?id=1CXjg2EoBcL6tzCFTIeSG8KMrHVXt5yav EDIT: and wow its very unstable Edit 2 https://drive.google.com/open?id=1CXjg2EoBcL6tzCFTIeSG8KMrHVXt5yav much more stable Title: Re: Antminer D3 firmware testing Post by: slv1221 on December 13, 2017, 09:09:42 PM I get a lot of errors when compiling an item from git
as soon as I compile everything without errors, I will immediately update FW Title: Re: Antminer D3 firmware testing Post by: slv1221 on December 13, 2017, 09:34:45 PM A small instruction for restoring I \ O board
download this archive https://s3.cn-north-1.amazonaws.com.cn/shop-bitmain/download/Tools%20and%20Instructions%20to%20Image%20SD%20card.zip write to the flash drive take out the I \ O board from Antminer insert a flash drive in I \ O board close the 2 contacts with a screwdriver and hold, as shown in the picture https://monosnap.com/file/j2SyDacUpme1zxIPniluf6503ZeVtB.png connect power After the blue lights started flashing randomly, remove the screwdriver look at the router of the IP address of our board connect via browser and load in the board native firmware for L3 + https://s3.cn-north-1.amazonaws.com.cn/shop-bitmain/download/Antminer-L3%2B-201708251737-384M.tar.gz for D3 https://s3.cn-north-1.amazonaws.com.cn/shop-file-server/firmwares/Antminer%20D3/Firmware/00720170915192904493x4FcBXYX06A9/Antminer-D3-201711201715-0M.tar.gz after reboot, turn off the power and remove the flash drive connect the power and check that the board receives an IP address and is accessible via the web Title: Re: Antminer D3 firmware testing Post by: Dvun on December 16, 2017, 08:07:17 PM Who can tell please, how i can open bitmain firmware and some change in there ?
Some script for ubuntu or what ? Help please Title: Re: Antminer D3 firmware testing Post by: slv1221 on December 16, 2017, 08:16:09 PM Who can tell please, how i can open bitmain firmware and some change in there ? Some script for ubuntu or what ? Help please tar xvf to extract the tar then use 7z to extract the .SD file you should get a .cpio file use cpio -idv < /tmp/object.cpio to extract the cpio file make sure you are root when you extract the cpio file Title: Re: Antminer D3 firmware testing Post by: colby_95 on December 17, 2017, 02:29:05 AM Is it possible to solo-mine to a wallet with this firmware or do you know of any way to do so with the D3? Thanks ??? ;D
Title: Re: Antminer D3 firmware testing Post by: ChilliWinter on December 17, 2017, 07:29:59 AM you may try ssh it too
quick way to go in if you don't mind changing a lot ;) Title: Re: Antminer D3 firmware testing Post by: Merlig on December 17, 2017, 11:26:51 AM you may try ssh it too quick way to go in if you don't mind changing a lot ;) which parameters I have to choose to login? Port? Title: Re: Antminer D3 firmware testing Post by: Edrick123 on December 17, 2017, 11:35:41 AM For the voltage can I do it for individual board with tons of hw? Or the voltage setting is for all 3 board?
Title: Re: Antminer D3 firmware testing Post by: wolf_miner on December 17, 2017, 01:28:28 PM Hi, is possible to pass the voltage settings using ssh commands instead of using web interface?
Cheers W_M Title: Re: Antminer D3 firmware testing Post by: ChilliWinter on December 17, 2017, 02:17:05 PM you may try ssh it too quick way to go in if you don't mind changing a lot ;) which parameters I have to choose to login? Port? ssh is tcp 22 user: root pass: admin Title: Re: Antminer D3 firmware testing Post by: PacoSS on December 17, 2017, 07:47:02 PM Do it allow to change the original fans?
Cause I tried change them (Noctua nf-f12) and the machine didn't start at all :-( I didnt like of the Blizz one that it disconnect from the pool i'm minning to make the dev job, and that's is heavy penaltied there. Thanks. Title: Re: Antminer D3 firmware testing Post by: d4nntheman on December 17, 2017, 08:46:42 PM Do it allow to change the original fans? Yes you can set the fan slope by increasing or decreasing the max fan temp and min fan temp Cause I tried change them (Noctua nf-f12) and the machine didn't start at all :-( I didnt like of the Blizz one that it disconnect from the pool i'm minning to make the dev job, and that's is heavy penaltied there. Thanks. Edit I missed this as well sorry I'm at work and reading fast. I'll add support for 0 rpm fans in the next release Hi, is possible to pass the voltage settings using ssh commands instead of using web interface? Kinda if you modify the file /config/cgminer.conf then restart cgminer you should be goodCheers W_M For the voltage can I do it for individual board with tons of hw? Or the voltage setting is for all 3 board? Try all permutations of frequency and voltageEdit I misread this. Yes I'm working on individual board voltage I just need some modivation to finish. No eta yet Title: Re: Antminer D3 firmware testing Post by: wolf_miner on December 18, 2017, 07:11:01 AM Hi, sorry to disturb you again, is necessary to recompile CGMiner to pass voltage controls?
Cheers W_M Title: Re: Antminer D3 firmware testing Post by: hta on December 18, 2017, 07:23:54 AM listed out the changes now for you. :D its literally just custom voltage and slowing the fans so far I have not tried this your FW, could your FW reboot if there is a "xxxx" error on the board? or MH / S (RT) reduced? If so, then too good. If you develop it well, even if you charge a fee (just get one, I'm willing to support it). Do not like Blissz, charge life d3, I hate it Title: Re: Antminer D3 firmware testing Post by: d4nntheman on December 18, 2017, 07:12:20 PM Hi, sorry to disturb you again, is necessary to recompile CGMiner to pass voltage controls? from the code it looks like you need to if you look in the dash_init() in driver_btm_DASH.c the voltage with the stock FW is never set.Cheers W_M listed out the changes now for you. :D its literally just custom voltage and slowing the fans so far I have not tried this your FW, could your FW reboot if there is a "xxxx" error on the board? or MH / S (RT) reduced? If so, then too good. If you develop it well, even if you charge a fee (just get one, I'm willing to support it). Do not like Blissz, charge life d3, I hate it I am moving to San Diego so my development may be limited in the near future Title: Re: Antminer D3 firmware testing Post by: hta on January 02, 2018, 04:38:28 PM Hi, sorry to disturb you again, is necessary to recompile CGMiner to pass voltage controls? from the code it looks like you need to if you look in the dash_init() in driver_btm_DASH.c the voltage with the stock FW is never set.Cheers W_M listed out the changes now for you. :D its literally just custom voltage and slowing the fans so far I have not tried this your FW, could your FW reboot if there is a "xxxx" error on the board? or MH / S (RT) reduced? If so, then too good. If you develop it well, even if you charge a fee (just get one, I'm willing to support it). Do not like Blissz, charge life d3, I hate it I am moving to San Diego so my development may be limited in the near future Title: Re: Antminer D3 firmware testing Post by: anivff on January 17, 2018, 08:18:33 AM Hello.. really strange problem.. Compile cgminer from sources..
All ok.. Its works, but when im get API call cgminer crash! with cgminer: *** buffer overflow detected *** cgminer-api: Reply was '' Where is the problem? Title: Re: Antminer D3 firmware testing Post by: sanitariu on January 19, 2018, 09:54:16 AM Anyone have fix for high rpm fans when there is no internet or connection to pool is lost ?
All the rest is working good. Maybe and separate option for each board to control voltage and some kind of high temp protection. So if it goes over 100% just to stop cgminer. Title: Re: Antminer D3 firmware testing Post by: Bajula on January 24, 2018, 12:25:15 PM Is it possible to solo-mine to a wallet with this firmware or do you know of any way to do so with the D3? Thanks ??? ;D Wish I had found this thread earlier, reading through now... BUT this particular thing I know the answer to. :) On all the newer bitmain stuff you can't mine directly to a wallet, older sha-256 you can. I'm not 100% sure on s9's since I do not have one. That being said: --disable-libcurl <-- there is the issue. You can compile with disabling libcurl, but you get errors if you leave it enabled. (I'm trying to look and see what the deal is there.. but libcurl is what is needed for it to accept getwork and GBT which is needed if it directly connects to a wallet.) I've been trying something on my own, but would have saved myself ages if I had found this thread earlier. hehe. If I sort out what the deal is with libcurl I'll be sure to post something about it. I'm cross compiling as well and really going through each problem by hand having never cross compiled anything before was... screamy-stabby-feeling. :) I should search through topics more often. Hahaha.. but I have to admit I've learned alot so might have been worth it. Title: Re: Antminer D3 firmware testing Post by: Bajula on January 24, 2018, 07:01:55 PM Who can tell please, how i can open bitmain firmware and some change in there ? Some script for ubuntu or what ? Help please tar xvf to extract the tar then use 7z to extract the .SD file you should get a .cpio file use cpio -idv < /tmp/object.cpio to extract the cpio file make sure you are root when you extract the cpio file Question what did I do wrong here.... 7-Zip [64] 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18 p7zip Version 9.20 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,2 CPUs) Processing archive: initramfs.bin.SD Error: Can not open file as archive Nevermind .. think I got it.. seems (and if I am wrong please let me know) that I need to open the .SD file AS a cpio file and it extracts everything. not sure if there would be some header issues?? when putting it back together or not. Title: Re: Antminer D3 firmware testing Post by: Bajula on January 27, 2018, 02:01:36 PM Hi, sorry to disturb you again, is necessary to recompile CGMiner to pass voltage controls? Cheers W_M [/quote pre-coffee me here, but you know what? I never thought of that. "technically" the ability to pass voltage is "built in", so you "should" be able to do it with just the conf file. - I do not know this 100% as I have not tested it. Title: Re: Antminer D3 firmware testing Post by: bbroge on February 02, 2018, 04:46:07 AM Hello.. really strange problem.. Compile cgminer from sources.. All ok.. Its works, but when im get API call cgminer crash! with cgminer: *** buffer overflow detected *** cgminer-api: Reply was '' Where is the problem? anivff, did you ever figure out this issue? Title: Re: Antminer D3 firmware testing Post by: Bajula on February 03, 2018, 09:38:32 PM Hello.. really strange problem.. Compile cgminer from sources.. All ok.. Its works, but when im get API call cgminer crash! with cgminer: *** buffer overflow detected *** cgminer-api: Reply was '' Where is the problem? anivff, did you ever figure out this issue? beem working on so many other things I have not looked into this but at a guess notice that there is a cgminer-api binary in the same folder as cgminer on the machine. so I'm betting it has to do with that.. will get around to digging at it later if no one else does though it will be a whiiiiiile for me. :) Title: Re: Antminer D3 firmware testing Post by: pavesi on March 18, 2018, 04:21:11 AM Been playing around trying to see how easy/hard it actually is to adjust freq per board, but I don't have a D3 to play
with.. Would someone be willing to run a cgminer binary and post the log to see if indeed it is setting each board? update: I am guessing that ALL my compile warnings are making things really unstable while trying to run cgminer.. I am using Ubuntu and cross compiling with: CC=/usr/bin/arm-linux-gnueabihf-gcc CFLAGS="-O2 -march=armv7" ./configure --enable-bitmain-D1 --disable-libcurl --host armv7 but its spitting out a huge amount of warnings.. Are others experiencing the same issue?? If not, which distro are you running, and how exactly did you setup your compile environment? update to update: Installed arch linux in a vm, and all the errors I was experiencing while compiling in ubuntu are gone.. lesson learned.. I currently have frequency being set per each board along with voltage being set per board.. There is a slight problem with the frequency displaying properly in the status page, but thats more down to how the api is getting/returning the stats from cgminer.. Title: Re: Antminer D3 firmware testing Post by: olebol on March 23, 2018, 10:45:14 AM Hello,
nice to see you are still working on improve D3 performance. If you have a Firmware to test i will do it. BTW ... would be nice to think about modify cgminer for other algos ;) i think its possible Title: Re: Antminer D3 firmware testing Post by: pavesi on March 23, 2018, 07:06:01 PM Running into a really weird problem.. Stock cgminer runs at temps: 58 (pcb) 77 (chip)..
The 'newest' cgminer is running: 58 (pcb) 85 (chip).. This is kind of interesting and disturbing at the same time.. What is bitmain doing to either lower the chips temp, or are they just displaying a lower rate to make it seem as though its not running as high?? In any case, still playing around with it.. Don't really feel confident in giving it to others just yet based upon the temps.. If the temps are just +8 and stable for a few days to a week running, I will feel better about getting it out. Title: Re: Antminer D3 firmware testing Post by: agatazit on April 06, 2018, 11:55:01 PM What you think, there are people out there that claims that have a firmware for D3 that can make diffrent a*go than x11,
is it might be possible to get from asics printed on silicon level to calculate different pow than x11? modding and recompiling the cgminer? Hmm most unlikely possible. Assume that is possible, then why then D3 is sold by Bitmain for 310$, why not unlock it? Or suddenly they care about killing a*goritms. Title: Re: Antminer D3 firmware testing Post by: pavesi on April 10, 2018, 02:52:43 PM What you think, there are people out there that claims that have a firmware for D3 that can make diffrent a*go than x11, is it might be possible to get from asics printed on silicon level to calculate different pow than x11? modding and recompiling the cgminer? Hmm most unlikely possible. Assume that is possible, then why then D3 is sold by Bitmain for 310$, why not unlock it? Or suddenly they care about killing a*goritms. Ya, not possible with software alone.. ASIC = application specific, meaning they burn the code to the chip itself, so there is no way to change the underlying code of the chip. Others use FPGA (field programmable) which are able to be controlled by software (just write new code to chip).. So what baikal either is doing is using FPGA and calling them asic's, or, are using asic's and burning all the different algo's onto the chip.. I'm guessing they are using FPGA's since they can "add" different algos in the future, which would not be possible with asic's alone. Title: Re: Antminer D3 firmware testing Post by: Bajula on April 25, 2018, 01:18:46 PM What you think, there are people out there that claims that have a firmware for D3 that can make diffrent a*go than x11, is it might be possible to get from asics printed on silicon level to calculate different pow than x11? modding and recompiling the cgminer? Hmm most unlikely possible. Assume that is possible, then why then D3 is sold by Bitmain for 310$, why not unlock it? Or suddenly they care about killing a*goritms. Ya, not possible with software alone.. ASIC = application specific, meaning they burn the code to the chip itself, so there is no way to change the underlying code of the chip. Others use FPGA (field programmable) which are able to be controlled by software (just write new code to chip).. So what baikal either is doing is using FPGA and calling them asic's, or, are using asic's and burning all the different algo's onto the chip.. I'm guessing they are using FPGA's since they can "add" different algos in the future, which would not be possible with asic's alone. Since x11 is 11 different algo's my attempt was to try to trick the d3 into doing just one of those over and over, there is something I am missing though - because it should be able to do each of the algos.. the problem seems to be whatever it is that is telling it to skip to the next algo in the sequence -(if the part that tells it to skip to the next one is on the chip itself then it probably can't be done-) I have not worked on it since my last post though because life reached up and slapped me in the face. Title: Re: Antminer D3 firmware testing Post by: agatazit on April 26, 2018, 06:00:22 PM What you think, there are people out there that claims that have a firmware for D3 that can make diffrent a*go than x11, is it might be possible to get from asics printed on silicon level to calculate different pow than x11? modding and recompiling the cgminer? Hmm most unlikely possible. Assume that is possible, then why then D3 is sold by Bitmain for 310$, why not unlock it? Or suddenly they care about killing a*goritms. Ya, not possible with software alone.. ASIC = application specific, meaning they burn the code to the chip itself, so there is no way to change the underlying code of the chip. Others use FPGA (field programmable) which are able to be controlled by software (just write new code to chip).. So what baikal either is doing is using FPGA and calling them asic's, or, are using asic's and burning all the different algo's onto the chip.. I'm guessing they are using FPGA's since they can "add" different algos in the future, which would not be possible with asic's alone. Since x11 is 11 different algo's my attempt was to try to trick the d3 into doing just one of those over and over, there is something I am missing though - because it should be able to do each of the algos.. the problem seems to be whatever it is that is telling it to skip to the next algo in the sequence -(if the part that tells it to skip to the next one is on the chip itself then it probably can't be done-) I have not worked on it since my last post though because life reached up and slapped me in the face. Ok I played with D3 till yesterday and my findings are : I have modified xcoin.c to do just one algo, moreover, I have verified it with golden block in fn bitmain_scanhash my chosen algo, I have also changed the merkle root calc for my algo in gen_stratum_work.... but after that the i noticed the bad thing: in DASH_work_fill is the answer that is impossible to do other algo! there is filled the work on the asics ( through PIC ?? ) and the diff , the asics do the job and answers with good nonces(only) found and readen by cgminer in one common buffer which are sent to fn bitmain_scanhash and to famous Xhash() to be verifed on armv7, then with all info prepared and packed back to the stratum. Game over then , unless if there is a way to set asic chain with registers with chosen algo or if the PIC is an actor in that. I doubt with D3 such performance speed that asics algo are selectable or the algo chain inside could be selectable in the burned asic pipe, whatever is the ant strategy. So unless someone have saints in bitmain to have a clue how to change a chain on the (if the ants are designed in chain asic by algo or asic registers ) is dead end, D3 is x11 only for now. Title: Re: Antminer D3 firmware testing Post by: zcdname on August 06, 2018, 03:44:44 AM what Linux you use? can you update cgminer to 4.10 version? I run arch linux Ill look into updating to 4.10 :D thx d4nntheman Could you tell me how to make it with firmware? tar xvf to extract the tar then use 7z to extract the .SD file you should get a .cpio file use Code: cpio -idv < /tmp/object.cpio make sure you are root when you extract the cpio file once its extracted you can replace any files in the firmware like cgminer the web pages ect. to build the firmware Code: find . | cpio -o -H newc > ../Angstrom-antminer_m-eglibc-ipk-v2013.06-beaglebone.rootfs.cpio I extracter the tar, used 7z to extract the .SD and i got the .cpio file. Then i extracted that one using the method u wrote. I edited some web page files and wanted to repack everything again. Even using ur commands, i can't get it to work. The CPIO file gets a root folder name "." before all the files packed. The original firmware doesn't have that "." folder at the beggining. How can i pack all the files into the .cpio without that "." folder appearing first, like the original .cpio i extracted. am i missing something? Title: Re: Antminer D3 firmware testing Post by: bearybarney on December 09, 2022, 01:13:53 PM I know this is a dead topic but its incomplete as the instructions are missing a step and I have been pulling my hair out for months (very part time) trying to get a firmware to load.
For anyone else looking how to do this the answer seems to be here but not specifying '-9' as the compression level for the gzip command: https://groups.google.com/g/beagleboard/c/eMEPdEuAQjE?pli=1 I have been using the steps posted earlier with the gzip command like this to repack the firmware up: find . | cpio -o -H newc > ../Angstrom-antminer_m-eglibc-ipk-v2013.06-beaglebone.rootfs.cpio cd .. gzip Angstrom-antminer_m-eglibc-ipk-v2013.06-beaglebone.rootfs.cpio mkimage -n 'Angstrom-antminer_m-eglibc-ipk-v' -A arm -O linux -T ramdisk -d Angstrom-antminer_m-eglibc-ipk-v2013.06-beaglebone.rootfs.cpio.gz ../initramfs.bin.SD cd .. tar czvf Antminer-D3-myversion.tar.gz initramfs.bin.SD runme.sh am335x-boneblack-bitmainer.dtb This should then generate the same file structure as you see in a working firmware image as before it was just putting the file system tree straight into the initramfs image. Hope this helps someone and may work for newer miners but I havent got one yet as still working on a PoC Thanks Adam |