Author

Topic: Antminer D3 firmware testing (Read 3259 times)

newbie
Activity: 11
Merit: 0
December 09, 2022, 09:13:53 AM
#49
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
newbie
Activity: 1
Merit: 0
August 05, 2018, 11:44:44 PM
#48
what Linux you use?
can you update cgminer to 4.10 version?

I run arch linux
Ill look into updating to 4.10

Cheesy 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
to extract the cpio file
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
cd ..
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 ../initramfs.bin.SD
cd ..
tar czvf Antminer-D3-myversion.tar.gz initramfs.bin.SD runme.sh am335x-boneblack-bitmainer.dtb
make sure the first command is as root as well

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?
newbie
Activity: 3
Merit: 0
April 26, 2018, 02:00:22 PM
#47
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.
 
member
Activity: 166
Merit: 16
April 25, 2018, 09:18:46 AM
#46
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.
member
Activity: 83
Merit: 12
April 10, 2018, 10:52:43 AM
#45
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.

newbie
Activity: 3
Merit: 0
April 06, 2018, 07:55:01 PM
#44
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.
member
Activity: 83
Merit: 12
March 23, 2018, 03:06:01 PM
#43
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.

newbie
Activity: 3
Merit: 0
March 23, 2018, 06:45:14 AM
#42
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 Wink i think its possible
member
Activity: 83
Merit: 12
March 18, 2018, 12:21:11 AM
#41
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..

member
Activity: 166
Merit: 16
February 03, 2018, 05:38:32 PM
#40
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. Smiley
newbie
Activity: 7
Merit: 0
February 02, 2018, 12:46:07 AM
#39
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?
member
Activity: 166
Merit: 16
January 27, 2018, 10:01:36 AM
#38
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.
member
Activity: 166
Merit: 16
January 24, 2018, 03:01:55 PM
#37
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.


member
Activity: 166
Merit: 16
January 24, 2018, 08:25:15 AM
#36
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  Huh Grin

Wish I had found this thread earlier, reading through now... BUT this particular thing I know the answer to. Smiley
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. Smiley
I should search through topics more often. Hahaha.. but I have to admit I've learned alot so might have been worth it.
newbie
Activity: 33
Merit: 0
January 19, 2018, 05:54:16 AM
#35
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.
newbie
Activity: 1
Merit: 0
January 17, 2018, 04:18:33 AM
#34
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?
hta
jr. member
Activity: 261
Merit: 6
A happy family is but an earlier heaven!
January 02, 2018, 12:38:28 PM
#33
Hi, sorry to disturb you again, is necessary to recompile CGMiner to pass voltage controls?

Cheers W_M
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.
listed out the changes now for you. Cheesy
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
haven't implemented this yet maybe some time soon

I am moving to San Diego  so my development may be limited in the near future
up
newbie
Activity: 8
Merit: 0
December 18, 2017, 03:12:20 PM
#32
Hi, sorry to disturb you again, is necessary to recompile CGMiner to pass voltage controls?

Cheers W_M
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.
listed out the changes now for you. Cheesy
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
haven't implemented this yet maybe some time soon

I am moving to San Diego  so my development may be limited in the near future
hta
jr. member
Activity: 261
Merit: 6
A happy family is but an earlier heaven!
December 18, 2017, 03:23:54 AM
#31
listed out the changes now for you. Cheesy
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
legendary
Activity: 1018
Merit: 1001
December 18, 2017, 03:11:01 AM
#30
Hi, sorry to disturb you again, is necessary to recompile CGMiner to pass voltage controls?

Cheers W_M
newbie
Activity: 8
Merit: 0
December 17, 2017, 04:46:42 PM
#29
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.
Yes you can set the fan slope by increasing or decreasing the max fan temp and min fan temp
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?

Cheers W_M
Kinda if you modify the file /config/cgminer.conf then restart cgminer you should be good
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 voltage

Edit I misread this. Yes I'm working on individual board voltage I just need some modivation to finish. No eta yet
newbie
Activity: 5
Merit: 0
December 17, 2017, 03:47:02 PM
#28
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.
full member
Activity: 141
Merit: 100
December 17, 2017, 10:17:05 AM
#27
you may try ssh it too
quick way to go in if you don't mind changing a lot  Wink

which parameters I have to choose to login?
Port?

ssh is tcp 22
user: root
pass: admin
legendary
Activity: 1018
Merit: 1001
December 17, 2017, 09:28:28 AM
#26
Hi, is possible to pass the voltage settings using ssh commands instead of using web interface?

Cheers W_M
newbie
Activity: 18
Merit: 0
December 17, 2017, 07:35:41 AM
#25
For the voltage can I do it for individual board with tons of hw? Or the voltage setting is for all 3 board?
member
Activity: 143
Merit: 11
December 17, 2017, 07:26:51 AM
#24
you may try ssh it too
quick way to go in if you don't mind changing a lot  Wink

which parameters I have to choose to login?
Port?
full member
Activity: 141
Merit: 100
December 17, 2017, 03:29:59 AM
#23
you may try ssh it too
quick way to go in if you don't mind changing a lot  Wink
newbie
Activity: 18
Merit: 0
December 16, 2017, 10:29:05 PM
#22
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  Huh Grin
newbie
Activity: 44
Merit: 0
December 16, 2017, 04:16:09 PM
#21
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
newbie
Activity: 1
Merit: 0
December 16, 2017, 04:07:17 PM
#20
Who can tell please, how i can open bitmain firmware and some change in there ?
Some script for ubuntu or what ? Help please
newbie
Activity: 44
Merit: 0
December 13, 2017, 05:34:45 PM
#19
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
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
newbie
Activity: 44
Merit: 0
December 13, 2017, 05:09:42 PM
#18
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
newbie
Activity: 8
Merit: 0
December 12, 2017, 10:08:55 PM
#17
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
newbie
Activity: 44
Merit: 0
December 12, 2017, 07:46:36 PM
#16
good job
i rebild and test it tomorrow
newbie
Activity: 8
Merit: 0
December 12, 2017, 04:25:28 PM
#15
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.
full member
Activity: 141
Merit: 100
December 12, 2017, 03:17:22 PM
#14
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
newbie
Activity: 44
Merit: 0
December 12, 2017, 11:32:42 AM
#13
Hi all
test my firmware at the screen

756W from wall
newbie
Activity: 44
Merit: 0
December 09, 2017, 06:13:38 PM
#12
Antminer D3 firmware without dev fee
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.
newbie
Activity: 44
Merit: 0
December 09, 2017, 11:27:12 AM
#11
hi
my firmware with d4nntheman cgminer 4.9
384/50

and powermetr

425/75


531/100


newbie
Activity: 44
Merit: 0
December 09, 2017, 08:50:34 AM
#10
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
newbie
Activity: 8
Merit: 0
December 06, 2017, 07:41:55 PM
#9
what Linux you use?
can you update cgminer to 4.10 version?

I run arch linux
Ill look into updating to 4.10

Cheesy 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
to extract the cpio file
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
cd ..
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 ../initramfs.bin.SD
cd ..
tar czvf Antminer-D3-myversion.tar.gz initramfs.bin.SD runme.sh am335x-boneblack-bitmainer.dtb
make sure the first command is as root as well
copper member
Activity: 3
Merit: 0
December 05, 2017, 11:05:08 PM
#8
 Cheesy thx d4nntheman

Could you tell me how to make it with firmware?
newbie
Activity: 44
Merit: 0
December 05, 2017, 07:37:57 PM
#7
Ultimately I have been testing a firmware replacement for the Antminer D3.
broke my head. Sad
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
then make
and you shoud be good
what Linux you use?
can you update cgminer to 4.10 version?
jr. member
Activity: 133
Merit: 2
December 05, 2017, 04:08:13 AM
#6
Ultimately I have been testing a firmware replacement for the Antminer D3.
broke my head. Sad
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
then make
and you shoud be good
thank you very much! I use ubuntu too, but set only CC,  not CCLD. and flags is only -O2. go to the beer and try to do as U advice. thanx!

upd: all done.
Code:
login as: root
[email protected]'s password:
root@antMiner:~# ./cgminer1
 [2017-12-05 08:48:14] Started cgminer 4.9.0
 [2017-12-05 08:48:14] Need to specify at least one pool server.                
 [2017-12-05 08:48:14] Pool setup failed
root@antMiner:~#
thanx you very much again!
newbie
Activity: 8
Merit: 0
December 05, 2017, 02:38:52 AM
#5
Ultimately I have been testing a firmware replacement for the Antminer D3.
broke my head. Sad
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
then make
and you shoud be good
jr. member
Activity: 133
Merit: 2
December 05, 2017, 01:02:58 AM
#4
Ultimately I have been testing a firmware replacement for the Antminer D3.
broke my head. Sad
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.
newbie
Activity: 8
Merit: 0
December 04, 2017, 05:01:55 PM
#3
listed out the changes now for you. Cheesy
its literally just custom voltage and slowing the fans so far
newbie
Activity: 44
Merit: 0
December 04, 2017, 12:24:18 PM
#2
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/file/d/1wsuyHwKJvszxSsdgBkfo8MofRqMRkVEL/view?usp=sharing

also a standard I am not responsible for anything this miner causes to hardware, you, feelings, ect...



Hi
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?
newbie
Activity: 8
Merit: 0
December 04, 2017, 12:04:08 AM
#1
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
Jump to: