Mine BitCoins on i.MX8x platform

Document created by Shenwei Wang Employee on Nov 14, 2017Last modified by Shenwei Wang Employee on Nov 14, 2017
Version 2Show Document
  • View in full screen mode

Bitcoin is a cryptocurrency which is quite popular among many investors, tech enthusiasts, and some digital sellers/buyers due to its flexible, anonymous and robust nature. 

BFG Miner is a bitcoin miner which has the ability to mine bitcoins on a range of devices from ASIC, to FPGA, to GPU, to obsolete CPU systems. This article will guide you step by step to do bitcoin mining on a i.MX8x platform by using the bfgminer.
1) Download the necessary software.
bfgminer https://github.com/luke-jr/bfgminer.git
jansson https://github.com/akheron/jansson.git
uthash https://github.com/troydhanson/uthash.git

2) Cross compile the software:
bfgminer:
./configure --prefix=${YourDirectory} --host=aarch64-linux-gnu --enable-scrypt --enable-cpumining --without-libevent --without-libmicrohttpd
make

jansson
./configure --prefix=${YourDirectory} --host=aarch64-linux-gnu
make

If everything runs correctly, you should get the following binaries and libraries:
Ubuntu14:/opt/output$ ls -R
.:
bin include lib sbin share

./bin:
bfgminer bfgminer-rpc start-bfgminer.sh

./include:
jansson_config.h jansson.h libbase58.h libblkmaker-0.1##

./include/libblkmaker-0.1:
blkmaker.h blkmaker_jansson.h blktemplate.h

./lib:
libbase58.la libbase58.so.0 libblkmaker-0.1.la libblkmaker-0.1.so.6 libblkmaker_jansson-0.1.la
libblkmaker_jansson-0.1.so.6 libjansson.a libjansson.so libjansson.so.4.10.0
libbase58.so libbase58.so.0.0.2 libblkmaker-0.1.so libblkmaker-0.1.so.6.1.0 libblkmaker_jansson-0.1.so
libblkmaker_jansson-0.1.so.6.1.0 libjansson.la libjansson.so.4 pkgconfig

3) Install those binaries and libraries onto the i.MX8x target filesystem under directory /usr/bin and /usr/lib.
Run the following command to start mining:

#bfgminer -o stratum+tcp://us.ss.btc.com:1800 -u nxa001.001 -p ""

 

 Mining

Attachments

    Outcomes