Giter Site home page Giter Site logo

eos21 / cpuminer-multi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bosuke/cpuminer-multi

0.0 1.0 0.0 19.07 MB

FPGA(bitcoin_miner)対応 cpuminer-multi

Home Page: https://github.com/BOSUKE/fpga_x_cryptocurrency

License: Other

Makefile 0.11% Dockerfile 0.01% C 92.32% PHP 0.14% HTML 0.03% Assembly 5.43% Shell 0.04% M4 0.16% C++ 1.27% Roff 0.14% NSIS 0.21% Perl 0.02% Objective-C 0.11%

cpuminer-multi's Introduction

FPGA(bitcoin_miner)対応 CPUMiner-Multi

これは何か?

電脳律速の同人誌「FPGA×仮想通貨」でPYNQ-Z1のFPGA(PL)に 実装したBitcoinのマイニングハードウエア(bitcoin_miner)を利用するように改造した cpuminer。

同人誌「FPGA×仮想通貨」について : https://d-rissoku.net/サークルサポート/fpga_x_仮想通貨/ bitcoin_miner のコード等 : https://github.com/BOSUKE/fpga_x_cryptocurrency fork元 : https://github.com/tpruvot/cpuminer-multi

元々のcpuminer-multiは様々なアルゴリズムに対応しているが、この改造版cpuminer-multiは sha256dをbitcoin_miner(FPGA)を用いてマイニングすることしか考えずに改造。

PYNQ-Z1で動作するUbuntu 16.04 LTS (GNU/Linux 4.9.0-xilinx armv7l)でのみ動作確認済み。

依存ライブラリなどの入手

fork元を参考にPYNQ-Z1上で次を実施。ただし、実際のところデフォルトのPYNQ-Z1のイメージを使っている場合、足りないのは libjansson-dev のみと思われる。

 sudo apt-get install automake autoconf pkg-config libcurl4-openssl-dev libjansson-dev libssl-dev libgmp-dev make g++

ダウンロードとビルド

PYNQ-Z1上にて

git clone https://github.com/BOSUKE/cpuminer-multi
cd cpuminer-multi
./build.sh

Walletとマイニングプールの準備

すでに準備がある人はそれを使えばOK。

準備がない人で、とりあえずbitcoin_minerを動かしてみたい人は https://www.bitaddress.org/ に行ってマウスをぐりぐり動かして、Bitcoin Addressを生成。SHAREとSECRETの値をメモっておくだけでOK。

実行

予め https://github.com/BOSUKE/fpga_x_cryptocurrency の jupyter_notebooks/miner.py を用いてPYNQ-Z1を bitcoin_minerにコンフィグレーションした状態でPYNQ-Z1上で以下を実行。

sudo ./cpuminer -a sha256d -o stratum+tcp://(マイニングプール) -u (ユーザ名) -p (パスワード)

上でBitcoin Addressだけは作ったという人は、以下を実行すればとりあえずマイニング処理は動作します。

sudo ./cpuminer -a sha256d -o stratum+tcp://solo.ckpool.org:3333 -u (作成したBitcoin Address(SHARE))

cpuminer-multi's People

Contributors

agx avatar axkuhta avatar bitbandi avatar bosuke avatar caiotoledo avatar domob1812 avatar erkmos avatar g1itch avatar jeteon avatar lucasjones avatar madzebra avatar mahallon avatar mikemurdo avatar pooler avatar rst00 avatar tpruvot avatar xcoredev avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.