Bitcoin Forum
April 16, 2024, 11:42:14 PM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Help needed for testing script - Easy Litecoin/Bitcoin mining on/using a RPi  (Read 2829 times)
Anon10W1z (OP)
Newbie
*
Offline Offline

Activity: 40
Merit: 0



View Profile WWW
June 22, 2013, 11:20:45 PM
Last edit: July 02, 2013, 08:20:21 PM by Anon10W1z
 #1

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.
1713310934
Hero Member
*
Offline Offline

Posts: 1713310934

View Profile Personal Message (Offline)

Ignore
1713310934
Reply with quote  #2

1713310934
Report to moderator
1713310934
Hero Member
*
Offline Offline

Posts: 1713310934

View Profile Personal Message (Offline)

Ignore
1713310934
Reply with quote  #2

1713310934
Report to moderator
I HATE TABLES I HATE TABLES I HA(╯°□°)╯︵ ┻━┻ TABLES I HATE TABLES I HATE TABLES
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713310934
Hero Member
*
Offline Offline

Posts: 1713310934

View Profile Personal Message (Offline)

Ignore
1713310934
Reply with quote  #2

1713310934
Report to moderator
1713310934
Hero Member
*
Offline Offline

Posts: 1713310934

View Profile Personal Message (Offline)

Ignore
1713310934
Reply with quote  #2

1713310934
Report to moderator
1713310934
Hero Member
*
Offline Offline

Posts: 1713310934

View Profile Personal Message (Offline)

Ignore
1713310934
Reply with quote  #2

1713310934
Report to moderator
teflone
Hero Member
*****
Offline Offline

Activity: 770
Merit: 500


You're fat, because you dont have any pics on FB


View Profile
June 27, 2013, 06:18:12 AM
 #2

Looking forward....   this would save a lot of time for me.. thanks..


For Canadians by Canadians: Canada's Bitcoin Community - https://www.coinforum.ca/
Anon10W1z (OP)
Newbie
*
Offline Offline

Activity: 40
Merit: 0



View Profile WWW
June 27, 2013, 05:03:41 PM
Last edit: June 28, 2013, 05:48:27 AM by Anon10W1z
 #3

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.
ebildude123
Full Member
***
Offline Offline

Activity: 223
Merit: 100


View Profile
June 28, 2013, 02:34:51 PM
 #4

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
Anon10W1z (OP)
Newbie
*
Offline Offline

Activity: 40
Merit: 0



View Profile WWW
June 28, 2013, 04:35:18 PM
 #5

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!
Anon10W1z (OP)
Newbie
*
Offline Offline

Activity: 40
Merit: 0



View Profile WWW
July 01, 2013, 03:55:07 AM
 #6

Switched to bfgminer from cgminer....bfgminer specializes in ASIC/FPGA devices.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!