Bitcoin Forum
October 03, 2024, 04:09:50 PM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Installing cgminer and cpuminer with gridseed on ubuntu  (Read 2550 times)
bitplanet (OP)
Newbie
*
Offline Offline

Activity: 26
Merit: 10


View Profile
April 23, 2014, 11:45:17 PM
 #1

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

Activity: 616
Merit: 500



View Profile WWW
April 24, 2014, 12:56:44 AM
 #2

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

organofcorti
Donator
Legendary
*
Offline Offline

Activity: 2058
Merit: 1007


Poor impulse control.


View Profile WWW
April 28, 2014, 03:02:33 AM
 #3

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.


Bitcoin network and pool analysis 12QxPHEuxDrs7mCyGSx1iVSozTwtquDB3r
follow @oocBlog for new post notifications
organofcorti
Donator
Legendary
*
Offline Offline

Activity: 2058
Merit: 1007


Poor impulse control.


View Profile WWW
April 28, 2014, 03:09:24 AM
 #4

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".

Bitcoin network and pool analysis 12QxPHEuxDrs7mCyGSx1iVSozTwtquDB3r
follow @oocBlog for new post notifications
organofcorti
Donator
Legendary
*
Offline Offline

Activity: 2058
Merit: 1007


Poor impulse control.


View Profile WWW
April 28, 2014, 03:16:17 AM
 #5

Would help if you could list the errors that you're getting.

Sure. Would you prefer here or github?

Bitcoin network and pool analysis 12QxPHEuxDrs7mCyGSx1iVSozTwtquDB3r
follow @oocBlog for new post notifications
sandor111
Hero Member
*****
Offline Offline

Activity: 616
Merit: 500



View Profile WWW
April 28, 2014, 03:19:07 AM
 #6

Would help if you could list the errors that you're getting.

Sure. Would you prefer here or github?

Github is fine.

organofcorti
Donator
Legendary
*
Offline Offline

Activity: 2058
Merit: 1007


Poor impulse control.


View Profile WWW
April 28, 2014, 03:28:45 AM
 #7

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!


Bitcoin network and pool analysis 12QxPHEuxDrs7mCyGSx1iVSozTwtquDB3r
follow @oocBlog for new post notifications
sandor111
Hero Member
*****
Offline Offline

Activity: 616
Merit: 500



View Profile WWW
April 29, 2014, 06:40:37 AM
 #8

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.

organofcorti
Donator
Legendary
*
Offline Offline

Activity: 2058
Merit: 1007


Poor impulse control.


View Profile WWW
April 30, 2014, 03:28:44 AM
 #9

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.

Bitcoin network and pool analysis 12QxPHEuxDrs7mCyGSx1iVSozTwtquDB3r
follow @oocBlog for new post notifications
anarchyx914
Sr. Member
****
Offline Offline

Activity: 338
Merit: 251


View Profile
April 30, 2014, 02:16:54 PM
 #10

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

Activity: 616
Merit: 500



View Profile WWW
April 30, 2014, 02:22:10 PM
 #11

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

anarchyx914
Sr. Member
****
Offline Offline

Activity: 338
Merit: 251


View Profile
April 30, 2014, 02:36:22 PM
Last edit: April 30, 2014, 02:46:40 PM by anarchyx914
 #12

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

Activity: 616
Merit: 500



View Profile WWW
April 30, 2014, 03:25:39 PM
 #13

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

anarchyx914
Sr. Member
****
Offline Offline

Activity: 338
Merit: 251


View Profile
April 30, 2014, 03:34:13 PM
 #14

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?
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!