U3 mining machine Raspberry Pi environment construction The purpose of this document is to build a Bitmain USB mining machine U3 operating environment on the Raspberry Pi. The goal is to use the Raspberry Pi to control and run a group of Antminer U3 miners 1. Preparation of items: 1. Bill of Materials: Raspberry Pi development board * 1 (Use Raspberry Pi 2nd generation Model B ) Mobile phone charger * 1 (with cable, similar to Android phone interface, output current >= 1A) USB HUB *1 (depending on the development board, there are only a few interfaces) Several U3 mining machines (power adapter, host, USB cable) TF card * 1 (Note: for Raspberry Pi, choose TF card or CF card. Recommended capacity > 4GB) Card reader* 1 (needed to write firmware to TF card) 2. Build the Raspberry Pi environment :1. Download related software : http://yun.baidu.com/s/1eQleGim#path=%252F%25E8%25AF%25BB%25E5%258D%25A1%25E5%2599%25A8%25E8%25BD%25AF%25E4%25BB%25B6 win32diskimager-v0.9-binary.zip TF card reader software raspuntu-tjc-2015-02-16.zip Raspberry Pi UBUNTU firmware Xshell Chinese green simplified version.rar Xshell software, used for SSH login 2. Make a Raspberry Pi system : Download the above three files and decompress them into the same directory. The directory file name cannot contain Chinese characters . Insert the TF card into the card reader, insert the card reader into the computer, and then use the win32diskimager software to write the raspuntu-tjc-2015-02-16.img file into the TF card. For the specific process, please refer to the following link: http://www.bitxixi.com/article-45.html 3. Compile cgminer Insert the TF card with UBUNTU firmware into the Raspberry Pi, plug in the power supply and network cable, and turn on the Raspberry Pi. The IP address of the Raspberry Pi is obtained automatically. If you don't know it, you can check it in the router DHCP client list. The client name is: raspberry The following assumes that the IP address automatically obtained by the Raspberry Pi is: 192.168.1.104 Use Xshell software to log in to the Raspberry Pi IP, 192.168.1.104 Username and password: linaro / linaro After logging in, run the following command line: wget -c http://www.bitxixi.com/data/article/cgminer-4.8.0-for-u3.tar.bz2 sudo apt-get install autoconf automake libtool sudo apt-get install libcurl4-openssl-dev sudo apt-get install libusb-dev libusb-1.0-0-dev libudev-dev tar jxvf cgminer-4.8.0-for-u3.tar.bz2 cd cgminer-4.8.0/ ./autogen.sh ./configure --enable-bmsc make 4. Start mining The default login user is not the root user and has no permission to access the USB device, so you need to change the root password: sudo passwd root [sudo] password for you: ---> Enter linaro , will not be displayed Enter new UNIX password: At this time, enter the root password you want to set twice and you will see password updated successfully! Log in as root user su root Enter the root password you just set Power on the Antminer U3 and plug in the Raspberry Pi Then run the following command: ./cgminer --bmsc-options 115200:0.57 -o stratum+tcp:// stratum.f2pool.com:3333 -u qq2564692980.raspi -p 123 --bmsc-voltage 0800 --bmsc-freq 1286 Raspberry Pi can mine. In the above command line: stratum.f2pool.com is the mining pool address, 3333 is the mining pool port number, qq2564692980.raspi is the miner account, all of which should be replaced with your own mining pool address and miner account. 5. Automatic mining Using the above command line, if you close the Xshell software interface or log out of the current user, mining will stop. We can set the mining command line to start at boot, which means that mining will start automatically as soon as the Raspberry Pi is turned on. First you need to log in as the root user, otherwise you do not have enough permissions su root Enter the root password you just set Then enter: vi /etc/rc.local Add a line above the exit at the bottom: /home/linaro/cgminer-4.8.0/cgminer --bmsc-options 115200:0.57 -o stratum+tcp:// stratum.f2pool.com:3333 -u qq2564692980.raspi -p 123 --bmsc-voltage 0800 --bmsc-freq 1286 & In the above command line: stratum.f2pool.com is the mining pool address, 3333 is the mining pool port number, qq2564692980.raspi is the miner account, all of which should be replaced with your own mining pool address and miner account. Then press ESC to exit the edit mode, then press Shift+: and enter the command wq to save and exit. Enter reboot again to restart the Raspberry Pi. After the Raspberry Pi restarts, it will automatically start mining. Original URL: http://shop.bitxixi.com/article-92.html |
<<: 7.7T! The largest Bitcoin mining machine in history - Antminer S5+
>>: Current Bitcoin Industry Development Status and Policy Research
Can Bitcoin be related to love? At present, it se...
I believe everyone has heard of the palm print wit...
The face of a woman who loves to stir up trouble ...
If a woman finds a good man, her life after marri...
Human eye shapes can be divided into many types, ...
The size of your ears can tell whether you are de...
Sometimes the moles on our bodies may grow in som...
In modern society, everyone hopes to have as much...
The reason why women grow beards is because of th...
Bitcoin (BTC) once hit 45k overnight, but soon lo...
When we encounter hardships, we often lament help...
Recently, news about Bitcoin has attracted a lot ...
Everyone hopes to find someone who is devoted to ...
As one of the traditional physiognomy techniques, ...
The SEC’s decision in June to drop charges agains...