Author

Topic: Linux noob needs help with Rpi & cgminer (Read 2442 times)

sr. member
Activity: 672
Merit: 250
September 08, 2013, 09:40:45 PM
#8
ckolivas,

Thanks for pointing me towards ASIC-README.  That fixed me right up!

I setup a conf file for the Rpi and all of my problems are solved.  It starts hashing away with no more sudo, stratum errors, or hardware detection issues.

Thanks so much for all of the help everyone!!!  I'm having a lot of fun with this little Rpi.  Wish I had bought one a long time ago.

Chad
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
September 08, 2013, 07:56:24 PM
#7
I'd try Arch, I heard it has decent support for rPi and it's a pretty stable distro. Also I think the proper command is "./cgminer -o stratum.bitcoin.cz:3333 -u xxxxxx - p xxxxxx" while in the cgminer folder.

I tried that from the cgminer directory and got the same error.  The exact error is "Pool 0 JSON auth failed:  (null)"

As a work around I guess I might try setting up miner.conf with all of my pool information in there.  Maybe that would take care of things.

I should probably add that just using cgminer says I don't have permission to access the devices.  I've been starting it with sudo cgminer.  Should I continue to do it this way or change some kind of user permissions?

Thanks!

Chad
Read ASIC-README. You have not installed the udev rules that give regular users access to the devices.
hero member
Activity: 1008
Merit: 501
September 08, 2013, 07:26:02 PM
#6
I'd try Arch, I heard it has decent support for rPi and it's a pretty stable distro. Also I think the proper command is "./cgminer -o stratum.bitcoin.cz:3333 -u xxxxxx - p xxxxxx" while in the cgminer folder.

I tried that from the cgminer directory and got the same error.  The exact error is "Pool 0 JSON auth failed:  (null)"

As a work around I guess I might try setting up miner.conf with all of my pool information in there.  Maybe that would take care of things.

I should probably add that just using cgminer says I don't have permission to access the devices.  I've been starting it with sudo cgminer.  Should I continue to do it this way or change some kind of user permissions?

Thanks!

Chad

Try bfgminer,

1: Open Terminal or SSH into your Linux machine.

2: Run "apt-get update"

3: Run "apt-get install git autoconf automake libtool pkg-config libcurl4-gnutls-dev libjansson-dev uthash-dev libncurses5-dev"

4: Run "git clone git://github.com/luke-jr/bfgminer.git"

5: Enter the bfgminer directory

6: Run "./autogen.sh"

7: Run "./configure" (if you do not want to use GPUs on the machine, add --disable-opencl)

8: Run "make"

9: After make completes, you can run bfgminer directly (may require sudo), or create a shell script that includes your arguments.

Running BFGMiner:
./bfgminer -o stratum+tcp://pool:port -u yourUSERNAME -p your_PW -S all --icarus-options 115200:1:1 --icarus-timing 3.0=100

good luck
sr. member
Activity: 672
Merit: 250
September 08, 2013, 07:15:07 PM
#5
I'd try Arch, I heard it has decent support for rPi and it's a pretty stable distro. Also I think the proper command is "./cgminer -o stratum.bitcoin.cz:3333 -u xxxxxx - p xxxxxx" while in the cgminer folder.

I tried that from the cgminer directory and got the same error.  The exact error is "Pool 0 JSON auth failed:  (null)"

As a work around I guess I might try setting up miner.conf with all of my pool information in there.  Maybe that would take care of things.

I should probably add that just using cgminer says I don't have permission to access the devices.  I've been starting it with sudo cgminer.  Should I continue to do it this way or change some kind of user permissions?

Thanks!

Chad
full member
Activity: 235
Merit: 100
September 08, 2013, 07:02:08 PM
#4
I'd try Arch, I heard it has decent support for rPi and it's a pretty stable distro. Also I think the proper command is "./cgminer -o stratum.bitcoin.cz:3333 -u xxxxxx - p xxxxxx" while in the cgminer folder.
sr. member
Activity: 672
Merit: 250
September 08, 2013, 06:14:59 PM
#3
Install minepeon  Grin



I was tempted, but I also wanted this to be a learning experience to get more familiar with Linux.  I'd like to stick with a more mainstream distribution for now.  I'm probably showing more of my ignorance here, but I was under the impression that Debian variants are pretty common.  heh..

Thanks!

Chad
hero member
Activity: 1008
Merit: 501
September 08, 2013, 04:05:34 PM
#2
Install minepeon  Grin

sr. member
Activity: 672
Merit: 250
September 08, 2013, 02:26:22 PM
#1
I know next to nothing about Linux so I am sure my problem is relatively simple.  I'm trying to set up my Raspberry Pi with cgminer.  I'm running Raspbian Wheezy on my Rpi.  I was able to successfully build cgminer 3.4.2 with the updated libsub components. 

The first problem I'm having is starting cgminer with my normal command line inputs.  Does the syntax change with linux?  Here is what I'm using to mine on Slush' pool:
cgminer -o stratum+tcp://stratum.bitcoin.cz:3333 -u xxxxxx - p xxxxxx
It works fine using Windows, but on the Rpi cgminer halts with an error saying stratum (auth) failed.  If I ONLY type cgminer the program will prompt me for the pool address/password and start hashing away no problem after I manually type them in.

The second problem I'm having is every time I start cgminer it reports that the devices are already in use.  If I unplug the USB hub and reinsert it while cgminer is running they start hashing away just fine.

I'm sure these are just minor problems that show my ignorance of Linux in general.  Any help/tips would be greatly appreciated.

Thanks!

Chad
Jump to: