Bitcoin Forum
May 08, 2024, 02:23:09 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 [3]  All
  Print  
Author Topic: Antminer D3 firmware testing  (Read 3260 times)
pavesi
Member
**
Offline Offline

Activity: 83
Merit: 12


View Profile
March 18, 2018, 04:21:11 AM
Last edit: March 20, 2018, 05:10:37 PM by pavesi
 #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..

1715134989
Hero Member
*
Offline Offline

Posts: 1715134989

View Profile Personal Message (Offline)

Ignore
1715134989
Reply with quote  #2

1715134989
Report to moderator
Even in the event that an attacker gains more than 50% of the network's computational power, only transactions sent by the attacker could be reversed or double-spent. The network would not be destroyed.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
olebol
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
March 23, 2018, 10: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
pavesi
Member
**
Offline Offline

Activity: 83
Merit: 12


View Profile
March 23, 2018, 07: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.

agatazit
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
April 06, 2018, 11: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.
pavesi
Member
**
Offline Offline

Activity: 83
Merit: 12


View Profile
April 10, 2018, 02:52:43 PM
 #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.

Bajula
Member
**
Offline Offline

Activity: 166
Merit: 16


View Profile
April 25, 2018, 01:18:46 PM
 #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.
agatazit
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
April 26, 2018, 06:00:22 PM
Last edit: April 26, 2018, 08:55:38 PM by agatazit
 #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.
 
zcdname
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
August 06, 2018, 03:44:44 AM
 #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?
bearybarney
Newbie
*
Offline Offline

Activity: 11
Merit: 0


View Profile
December 09, 2022, 01:13:53 PM
 #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
Pages: « 1 2 [3]  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!