Author

Topic: Help needed for testing script - Easy Litecoin/Bitcoin mining on/using a RPi (Read 2841 times)

newbie
Activity: 40
Merit: 0
Switched to bfgminer from cgminer....bfgminer specializes in ASIC/FPGA devices.
newbie
Activity: 40
Merit: 0
Your FAQ needs some updating.
Quote
Q: Why can't I mine Litecoins with my FPGA or ASIC miner?
A: There are currently no scrypt compatible FPGAs or ASICs.
There we go  Grin
LOL, I was just thinking about that!
full member
Activity: 223
Merit: 100
Your FAQ needs some updating.
Quote
Q: Why can't I mine Litecoins with my FPGA or ASIC miner?
A: There are currently no scrypt compatible FPGAs or ASICs.
There we go  Grin
newbie
Activity: 40
Merit: 0
Looking forward....   this would save a lot of time for me.. thanks..


You're welcome and thanks, I appreciate the complement. Do you have any FPGA or ASIC so you can test for me? I don't have any, but I've confirmed that CPU mining works.
hero member
Activity: 770
Merit: 500
You're fat, because you dont have any pics on FB
Looking forward....   this would save a lot of time for me.. thanks..

newbie
Activity: 40
Merit: 0
Download:
https://www.dropbox.com/s/xor5oijgkvf8sxa/setup?dl=1

Introduction:

This script will convert your $35 Raspberry Pi and enable it to work as:

1. A host for your all your ASIC's and FPGA's
2. A Litecoin CPU miner that for me generated 20 shares on Netcode Pool in 10 hours

This script will not remove anything from your Pi!
Setup:

1. Make sure SSH access is enabled on your Pi. If not, run raspi-config and go to the advanced options.
2. Log in via SSH and type in the following:
Code:
sudo nano /usr/bin/setup
3. Paste the contents of the file into the window, and then press Ctrl+X. Press y, and then press enter.
4. From wherever (SSH or the Pi itself), type in the following commands:

Code:
sudo chmod +x /usr/bin/setup
setup

And the script will let your Pi be a (headless) Bitcoin mining host and Litecoin CPU miner.

To mine litecoins using the CPU, type in the following command from anywhere, substituting yourpool, port, username, and password:

minerd --url http://yourpool:port --userpass username:password
or for Stratum:
minerd --url stratum+tcp://yourpool:port --userpass username:password

To use your FPGA or ASIC, type in the following command from anywhere, substituting yourpool, port, username, and password:

sudo bfgminer -o http://yourpool:port -u username -p password
or for Stratum:
sudo bfgminer -o stratum+tcp://yourpool:port -u username -p password

Sudo is necessary for bfgminer to save your configuration.

Pooler's CPU miner has been built, installed, and used successfully testing this script in QEMU.

FAQ:

Q: My Icarus or other USB-powered miner won't power up!
A: You will need a powered USB hub. The Pi's USB ports (at 140mA each) can barely power a keyboard and mouse, they can't power your miner.

Q: Why can't you just compile BFGminer with scrypt and CPU support?
A: BFGminer specializes in ASIC's and FPGA's, not CPU mining. Pooler's CPU miner is very optimized for it.

Q: Why can't I mine Litecoins with my FPGA or ASIC miner?
A: There are no scrypt-compatible FPGA's or ASIC's (though they can be made).

Q: How do I exit the miner and power off the Pi?
A: Press Ctrl+C and type in

sudo poweroff

You can safely unplug the Pi once the TV says "No Signal".

Q: I really want to mine bitcoins using the CPU!!!!!!!
A: Add --algo sha256d to the minerd flags.

Q: I don't want to see the hashrate display.
A: Add -q to the cpuminer flags. Don't worry - the miner will display the hashrate only when a share is submitted.

Q: I want more performance for Litecoin mining!
A: Edit your config.txt using Windows (or /boot/config.txt on other OS's) and increase the values to the following:

arm_freq=1000
sdram_freq=500
core_freq=500

And add the following line: over_voltage=6

Expect 0.48 khash/s.

Q: What happened to the image?
A: It took a while to make it, put it in a zip, and upload it, even just for installing one package. Updating the script is much easier to do.
Jump to: