Bitcoin Forum

Bitcoin => Mining support => Topic started by: MoonBitter on June 19, 2018, 12:18:22 PM



Title: My own ASIC
Post by: MoonBitter on June 19, 2018, 12:18:22 PM
Hi all,
i already know that bitcoin mining is remunerative (maybe) only with ASIC hardware but... i like to develop hardware and firmware so, just for fun, i'd like to create an USB powered device that use microcontroller to "emulate" actual ASIC.
My target is to realize a useless Mh/s device (other than a GPU miner)  ;D
I know they use USB/UART converter to comunicate and this is easy, but where i can find protocol and commands it has to respond to?

Thank you


Title: Re: My own ASIC
Post by: sidehack on June 19, 2018, 12:22:33 PM
If you're already coding your own hashing function, why use someone else's protocol? There's no standard, and every manufacturer's is already different.
Also most of them aren't really published info.

Older Avalon (gen4 and back) datasheets can be found with some protocol info, but their stuff's a bit weird and changed a couple times in there. Bitmain's protocol has been relatively fixed from S1 to S9, and the BM1385 (S7) datasheet has decent info on it.


Title: Re: My own ASIC
Post by: MoonBitter on June 19, 2018, 12:27:09 PM
thank you sidehack...
my problem is how to create a "driver" to use my device with cfgminer  ???


Title: Re: My own ASIC
Post by: sidehack on June 19, 2018, 01:08:17 PM
Ah. I can't really help you there. I do all the hardware and firmware but someone else writes the driver. I could probably do it given enough time, but I'm already tied up with design and manufacturing and hosting and whatever else is going on at the shop.

VH integrates my GekkoScience stuff into cgminer. You might also talk to jstefanop (the MoonLander guy); I'm pretty sure he did both hardware and driver for his miners.

From what I understand, cgminer basically has the framework in it for pool communication and for organizing how work gets divided up and distributed. The particular format in which it is sent to the miner, and the particular format in which nonces are received, is hardware-dependent, as are any control signals (setting clocks, etc). The driver would mostly be a translator between cgminer's base structures and your miner's specific protocol implementation.


Title: Re: My own ASIC
Post by: MoonBitter on June 28, 2018, 08:26:41 AM
Finally i got it  ;D
I found this good example how to create an Arduino Miner:
https://github.com/joric/arduino-bitcoin-miner

It is mining at 45 H/s so i think it is the more useless and slower miner ever  ;D ;D ;D ... but i like it  :)

It is emulating an Icarus FPGA but i don't know why my BFGMiner is saying it is mining at 360MH/s  ??? ??? ??? ???
Do you have any idea?
This is a screenshot of BFGMiner
https://imgur.com/a/NuaXQa0