Author

Topic: Installing cgminer and cpuminer with gridseed on ubuntu (Read 2560 times)

sr. member
Activity: 338
Merit: 251
That did the trick, thank you! I was googling and saw that article as well!

This command fixed my problems -- sudo usermod -a -G dialout myusernamehere

One other question...

My devices are running at 850mhz, and they are hashing at some oddball #'s according to the overview, are these #s correct? Via CGMIner they all hash around 360k each

GSD 0 | 850 MHz | 105.8/ 71.6 KH/s | A: 1 R: 0 H: 0
 GSD 1 | 850 MHz | 105.8/ 71.7 KH/s | A: 1 R: 0 H: 0
 GSD 2 | 850 MHz | 317.5/ 71.9 KH/s | A: 3 R: 0 H: 0
 GSD 3 | 850 MHz | 423.4/143.5 KH/s | A: 4 R: 0 H: 0
 GSD 4 | 850 MHz | 211.7/143.8 KH/s | A: 2 R: 0 H: 0
 GSD 5 | 850 MHz | 529.2/215.7 KH/s | A: 4 R: 1 H: 0

I am planning on switching over 50 gridseeds and running them on ubuntu. My raspberri pi's are piss poor and unreliable. They have constant kernel crashes and the onlything I can do to get them going again is to power them down manually and reboot them.

Here is my current config:

screen -dmS miner ./minerd --gc3355=/dev/ttyACM0,/dev/ttyACM1,/dev/ttyACM2,/dev/ttyACM3,/dev/ttyACM4,/dev/ttyACM5 --gc3355-freq=/dev/ttyACM0:850 --freq=850 --url=stratum+tcp://useast.wafflepool.com:3333 --userpass=blah:blah --retries=1

I have 3 questions:

  • 1. Is this running in dual mode or single? (I hope single scrypt mode -- lol)
  • 2. Is it possible to run minerD with a config similar to cgminer (./cgminer -c miner.conf). I want to have multipools as failovers incase one goes down and its easier to run from a config file. I couldn't find any documentation on this at all.
  • 3. If I plan on runnijng 50 devices, do I need to list every device in the command line to launch? IE: --gc3355=/dev/ttyACM0,/dev/ttyACM1,/dev/ttyACM2,/dev/ttyACM3,/dev/ttyACM4,/dev/ttyACM5/etc/etc/etc to 50

Thanks for your help and I hope that this runs more stable than CGMiner, if it does some donations will be due to you. I lose about 8 hours of mine time every day  when I am away and cannot hard power my rasp pis.

Well you have to give it time to stabilize the hashrate, it calculates the hashrate from each individual chip, unlike cgminer.
Remove the --retries=1, that's for backup pools.
1. Scrypt mode only
2. Not yet, but soon, there is a basic backup pool script on github
3. Yes

Awesome.. As soon as my rig rentals are done, I am freaking stoked to plug all 50 in and see how it goes Cheesy

I saw the backup pool script on github, it is below:

Quote
while true ; do
./minerd --gc3355=/dev/ttyACM0,/dev/ttyACM1,/dev/ttyACM2 --gc3355-freq=/dev/ttyACM0:800 --gc3355-autotune --freq=850 --url=stratum+tcp://pool1:port --userpass=user:pass --retries=1
./minerd --gc3355=/dev/ttyACM0,/dev/ttyACM1,/dev/ttyACM2 --gc3355-freq=/dev/ttyACM0:800 --gc3355-autotune --freq=850 --url=stratum+tcp://pool2:port --userpass=user:pass --retries=1
./minerd --gc3355=/dev/ttyACM0,/dev/ttyACM1,/dev/ttyACM2 --gc3355-freq=/dev/ttyACM0:800 --gc3355-autotune --freq=850 --url=stratum+tcp://pool2:port --userpass=user:pass --retries=1
done

Would I just cut and paste that in terminal to run it? or should I make a file like nano startup.sh and then put the commands in that. then to execute do startup.sh in terminal?
hero member
Activity: 616
Merit: 500
That did the trick, thank you! I was googling and saw that article as well!

This command fixed my problems -- sudo usermod -a -G dialout myusernamehere

One other question...

My devices are running at 850mhz, and they are hashing at some oddball #'s according to the overview, are these #s correct? Via CGMIner they all hash around 360k each

GSD 0 | 850 MHz | 105.8/ 71.6 KH/s | A: 1 R: 0 H: 0
 GSD 1 | 850 MHz | 105.8/ 71.7 KH/s | A: 1 R: 0 H: 0
 GSD 2 | 850 MHz | 317.5/ 71.9 KH/s | A: 3 R: 0 H: 0
 GSD 3 | 850 MHz | 423.4/143.5 KH/s | A: 4 R: 0 H: 0
 GSD 4 | 850 MHz | 211.7/143.8 KH/s | A: 2 R: 0 H: 0
 GSD 5 | 850 MHz | 529.2/215.7 KH/s | A: 4 R: 1 H: 0

I am planning on switching over 50 gridseeds and running them on ubuntu. My raspberri pi's are piss poor and unreliable. They have constant kernel crashes and the onlything I can do to get them going again is to power them down manually and reboot them.

Here is my current config:

screen -dmS miner ./minerd --gc3355=/dev/ttyACM0,/dev/ttyACM1,/dev/ttyACM2,/dev/ttyACM3,/dev/ttyACM4,/dev/ttyACM5 --gc3355-freq=/dev/ttyACM0:850 --freq=850 --url=stratum+tcp://useast.wafflepool.com:3333 --userpass=blah:blah --retries=1

I have 3 questions:

  • 1. Is this running in dual mode or single? (I hope single scrypt mode -- lol)
  • 2. Is it possible to run minerD with a config similar to cgminer (./cgminer -c miner.conf). I want to have multipools as failovers incase one goes down and its easier to run from a config file. I couldn't find any documentation on this at all.
  • 3. If I plan on runnijng 50 devices, do I need to list every device in the command line to launch? IE: --gc3355=/dev/ttyACM0,/dev/ttyACM1,/dev/ttyACM2,/dev/ttyACM3,/dev/ttyACM4,/dev/ttyACM5/etc/etc/etc to 50

Thanks for your help and I hope that this runs more stable than CGMiner, if it does some donations will be due to you. I lose about 8 hours of mine time every day  when I am away and cannot hard power my rasp pis.

Well you have to give it time to stabilize the hashrate, it calculates the hashrate from each individual chip, unlike cgminer.
Remove the --retries=1, that's for backup pools.
1. Scrypt mode only
2. Not yet, but soon, there is a basic backup pool script on github
3. Yes
sr. member
Activity: 338
Merit: 251
That did the trick, thank you! I was googling and saw that article as well!

This command fixed my problems -- sudo usermod -a -G dialout myusernamehere

One other question...

My devices are running at 850mhz, and they are hashing at some oddball #'s according to the overview, are these #s correct? Via CGMIner they all hash around 360k each

GSD 0 | 850 MHz | 105.8/ 71.6 KH/s | A: 1 R: 0 H: 0
 GSD 1 | 850 MHz | 105.8/ 71.7 KH/s | A: 1 R: 0 H: 0
 GSD 2 | 850 MHz | 317.5/ 71.9 KH/s | A: 3 R: 0 H: 0
 GSD 3 | 850 MHz | 423.4/143.5 KH/s | A: 4 R: 0 H: 0
 GSD 4 | 850 MHz | 211.7/143.8 KH/s | A: 2 R: 0 H: 0
 GSD 5 | 850 MHz | 529.2/215.7 KH/s | A: 4 R: 1 H: 0

I am planning on switching over 50 gridseeds and running them on ubuntu. My raspberri pi's are piss poor and unreliable. They have constant kernel crashes and the onlything I can do to get them going again is to power them down manually and reboot them.

Here is my current config:

screen -dmS miner ./minerd --gc3355=/dev/ttyACM0,/dev/ttyACM1,/dev/ttyACM2,/dev/ttyACM3,/dev/ttyACM4,/dev/ttyACM5 --gc3355-freq=/dev/ttyACM0:850 --freq=850 --url=stratum+tcp://useast.wafflepool.com:3333 --userpass=blah:blah --retries=1

I have 3 questions:

  • 1. Is this running in dual mode or single? (I hope single scrypt mode -- lol)
  • 2. Is it possible to run minerD with a config similar to cgminer (./cgminer -c miner.conf). I want to have multipools as failovers incase one goes down and its easier to run from a config file. I couldn't find any documentation on this at all.
  • 3. If I plan on runnijng 50 devices, do I need to list every device in the command line to launch? IE: --gc3355=/dev/ttyACM0,/dev/ttyACM1,/dev/ttyACM2,/dev/ttyACM3,/dev/ttyACM4,/dev/ttyACM5/etc/etc/etc to 50

Thanks for your help and I hope that this runs more stable than CGMiner, if it does some donations will be due to you. I lose about 8 hours of mine time every day  when I am away and cannot hard power my rasp pis.
hero member
Activity: 616
Merit: 500
Sorry to jump in your thread..

I am having an issue with CPUminer myself on Ubuntu. I cannot get any of my miners to mine and I am getting an error that I don't have user privlidges to open /dev/xxx... Any ideas how to fix this?

 [2014-04-30 10:15:37] 4: Do not have user privileges to open /dev/ttyACM4
 [2014-04-30 10:15:37] 4: Terminating GC3355 chip mining thread
 [2014-04-30 10:15:37] 5: GC3355 chip mining thread started, in SINGLE mode
 [2014-04-30 10:15:37] 5: open device /dev/ttyACM5
 [2014-04-30 10:15:37] 5: Do not have user privileges to open /dev/ttyACM5
 [2014-04-30 10:15:37] 5: Terminating GC3355 chip mining thread


Looks like the user permissions on serial ports are off.
Look here : http://askubuntu.com/questions/58119/changing-permissions-on-serial-port
sr. member
Activity: 338
Merit: 251
Sorry to jump in your thread..

I am having an issue with CPUminer myself on Ubuntu. I cannot get any of my miners to mine and I am getting an error that I don't have user privlidges to open /dev/xxx... Any ideas how to fix this?

 [2014-04-30 10:15:37] 4: Do not have user privileges to open /dev/ttyACM4
 [2014-04-30 10:15:37] 4: Terminating GC3355 chip mining thread
 [2014-04-30 10:15:37] 5: GC3355 chip mining thread started, in SINGLE mode
 [2014-04-30 10:15:37] 5: open device /dev/ttyACM5
 [2014-04-30 10:15:37] 5: Do not have user privileges to open /dev/ttyACM5
 [2014-04-30 10:15:37] 5: Terminating GC3355 chip mining thread
donator
Activity: 2058
Merit: 1007
Poor impulse control.
Would help if you could list the errors that you're getting.

Sure. Would you prefer here or github?

Github is fine.

Done. Again, thanks for the time you're putting into this. I can see from your recent posts you're answering questions everywhere!



Should be good now, I suggest pulling the changes from git.

Thank you - compiling and working properly.
hero member
Activity: 616
Merit: 500
Would help if you could list the errors that you're getting.

Sure. Would you prefer here or github?

Github is fine.

Done. Again, thanks for the time you're putting into this. I can see from your recent posts you're answering questions everywhere!



Should be good now, I suggest pulling the changes from git.
donator
Activity: 2058
Merit: 1007
Poor impulse control.
Would help if you could list the errors that you're getting.

Sure. Would you prefer here or github?

Github is fine.

Done. Again, thanks for the time you're putting into this. I can see from your recent posts you're answering questions everywhere!

hero member
Activity: 616
Merit: 500
Would help if you could list the errors that you're getting.

Sure. Would you prefer here or github?

Github is fine.
donator
Activity: 2058
Merit: 1007
Poor impulse control.
Would help if you could list the errors that you're getting.

Sure. Would you prefer here or github?
donator
Activity: 2058
Merit: 1007
Poor impulse control.
Code:
apt-get update
apt-get install -y build-essential libtool libcurl4-openssl-dev libjansson-dev libudev-dev autoconf automake
git clone https://github.com/siklon/cpuminer-gc3355
cd cpuminer-gc3355
./autogen.sh
./configure CFLAGS="-O3"
make

Hi Sandor,

Thanks for your work on this. I attempted to compile from git, but it failed at "make" - it appeared to dislike cpu-miner.c

I'm using Ubuntu 13.10 - are there other dependencies that need to be added? I used your most current README.md which adds the libncurse5-dev to the apt-get install line.



Don't forget to reconfigure and link ncurses.

Code:
./configure CFLAGS="-O3 -lncurses"


Yes, I did. I did it again just then, checking to make sure I used an O instead of 0.  I still get errors after "make".
donator
Activity: 2058
Merit: 1007
Poor impulse control.
Code:
apt-get update
apt-get install -y build-essential libtool libcurl4-openssl-dev libjansson-dev libudev-dev autoconf automake
git clone https://github.com/siklon/cpuminer-gc3355
cd cpuminer-gc3355
./autogen.sh
./configure CFLAGS="-O3"
make

Hi Sandor,

Thanks for your work on this. I attempted to compile from git, but it failed at "make" - it appeared to dislike cpu-miner.c

I'm using Ubuntu 13.10 - are there other dependencies that need to be added? I used your most current README.md which adds the libncurse5-dev to the apt-get install line.

hero member
Activity: 616
Merit: 500
Code:
apt-get update
apt-get install -y build-essential libtool libcurl4-openssl-dev libjansson-dev libudev-dev autoconf automake
git clone https://github.com/siklon/cpuminer-gc3355
cd cpuminer-gc3355
./autogen.sh
./configure CFLAGS="-O3"
make
newbie
Activity: 26
Merit: 10
Hi
I read the epic thread regarding installation of cgminer and cpuminer for ubuntu 12.04.
I am trying to install it in order to mine with a gridseed system.  After curl and jansson install fine, I keep getting error messages when attempting to build cpuminer from github.

When I get to -
CFLAGS="-02 -Wal -march=native" ./configure

I get:
configure: error: in '/home/x/usb-miner/software/cpuminer':
configure: error: C compiler cannot create executables

What am I doing wrong?
Please help me.  I think I am almost to the point of mining, but I'm stuck

Anything anyone can do would be greatly appreciated.
Jump to: