LaserHorse (OP)
|
|
July 07, 2013, 03:21:26 AM |
|
hrrrmm … possible you have another instance cgminer running in the background?
Your best bet is to reboot the Pi and try running cgminer normally (not in background) using:
sudo ./cgminer-3.1.1/cgminer --config /home/pi/cgminer.conf -S /dev/ttyUSB0 -S /dev/ttyUSB1
If cgminer runs into an issue, it should display an error.
|
|
|
|
Rotorgeek
Newbie
Offline
Activity: 44
Merit: 0
|
|
July 07, 2013, 04:00:32 AM |
|
Guys thanks for all the help, I got it fixed. Someone asked me for a screen grab of the .conf file and when I was editing out the login info I noticed something. The instructions said Update the below template with your mining pool credentials by replacing "PoolAddress:Port", "UserName.WorkerName", and "Password" with your info, then copy & paste into the nano editor: Well I din't verify it transferred over properly. There were some line break errors. I fixed those and it's up and hashing away.
|
|
|
|
LaserHorse (OP)
|
|
July 07, 2013, 04:03:18 AM |
|
excellent
|
|
|
|
howzbit
Newbie
Offline
Activity: 27
Merit: 0
|
|
July 09, 2013, 03:45:58 AM |
|
Thank you for this! I'm planning on building a PiMiner also...just gather all the parts. Wish me luck!
|
|
|
|
LaserHorse (OP)
|
|
July 09, 2013, 06:25:35 AM |
|
Thank you for this!
I'm planning on building a PiMiner also...just gather all the parts.
Wish me luck!
Good Luck! Working on v1.1 now - new features coming soon.
|
|
|
|
howzbit
Newbie
Offline
Activity: 27
Merit: 0
|
|
July 09, 2013, 09:08:55 AM |
|
Quick question: I'm planning to run 30 usb miners with the PiMiner, could I hook up 3 of these 10 port USB hubs (RPi non-compatible) to say 1 D-link hub that is compatible for the RPi? Will this work? I plan to add more later.
|
|
|
|
LaserHorse (OP)
|
|
July 09, 2013, 09:16:33 AM |
|
I'm planning to run 30 usb miners with the PiMiner, could I hook up 3 of these 10 port USB hubs (RPi non-compatible) to say 1 D-link hub that is compatible for the RPi? Will this work? Unforch, not likely. USB 1.1 devices, like the Erupters, don't work through USB3 hubs on the Pi. sucks. I wanted to use one as well.
|
|
|
|
howzbit
Newbie
Offline
Activity: 27
Merit: 0
|
|
July 09, 2013, 09:36:45 AM |
|
I'm planning to run 30 usb miners with the PiMiner, could I hook up 3 of these 10 port USB hubs (RPi non-compatible) to say 1 D-link hub that is compatible for the RPi? Will this work? Unforch, not likely. USB 1.1 devices, like the Erupters, don't work through USB3 hubs on the Pi. sucks. I wanted to use one as well. So my best bet would to use link multiple USB 2.0 hubs but I'm hardly seeing compatible 10-port on that list with enough amps to use all 10-ports. Correct me if I'm wrong but each USB miner uses .5a, right?
|
|
|
|
LaserHorse (OP)
|
|
July 09, 2013, 10:19:53 AM |
|
So my best bet would to use link multiple USB 2.0 hubs but I'm hardly seeing compatible 10-port on that list with enough amps to use all 10-ports.
Correct me if I'm wrong but each USB miner uses .5a, right?
yup .5A most accomodating hub i've used so far is the d-link dub-h7
|
|
|
|
jimmy3dita
|
|
July 09, 2013, 10:35:04 AM |
|
yup .5A most accomodating hub i've used so far is the d-link dub-h7
+1 I'm using the same model (newer, black version) it's well built and works great connected to the Pi. Note that I haven't done tests with the Block Erupters, by now it's connected only to some FPGAs (powering the Pi itself too)
|
Acquista il mio libro "Investire Bitcoin": clicca qui
|
|
|
|
MineForeman.com
Legendary
Offline
Activity: 896
Merit: 1000
|
|
July 11, 2013, 03:26:59 AM |
|
Project updated to version 1.1 I STILL have not received my LCD, it was supposed to get here on Friday but I just called the UPS guys and apparently it has taken a scenic trip around New Zealand. When it does actually manage to get here I will be 'git pull'ing . It does bring something up, my intentions are to be including a version of PiMiner in MinePeon (if that is OK with you, I have always had intentions to add LCD's and TFT's and there is no point re-inventing the wheel). How would you like to work together (assuming you do), my preference is that I just push from my own git any improvements and pull any of yours. The last thing I want to do is fork, that never seems to work out happily . Neil
|
|
|
|
LaserHorse (OP)
|
|
July 11, 2013, 04:22:14 AM Last edit: July 12, 2013, 03:13:20 AM by LaserHorse |
|
Project updated to version 1.1 I STILL have not received my LCD, it was supposed to get here on Friday but I just called the UPS guys and apparently it has taken a scenic trip around New Zealand. When it does actually manage to get here I will be 'git pull'ing . It does bring something up, my intentions are to be including a version of PiMiner in MinePeon (if that is OK with you, I have always had intentions to add LCD's and TFT's and there is no point re-inventing the wheel). How would you like to work together (assuming you do), my preference is that I just push from my own git any improvements and pull any of yours. The last thing I want to do is fork, that never seems to work out happily . Neil Ugh - sorry to hear about UPS going off-course! They're usually rock-solid for me here :/ I'd love to collaborate - and you are totally welcome to use the PiMiner code in MinePeon. I have to check a few things regarding push privileges - can get back to you on that tho. and yah - forking seems a very effect way to divide good intentions …
|
|
|
|
Rotorgeek
Newbie
Offline
Activity: 44
Merit: 0
|
|
July 11, 2013, 03:38:55 PM |
|
So I was wondering if there was a way to launch Pi.Miner form a "autorun" script when the Pi boots? Then press and hold the up button to launch cgminer with the predefined config file? The bonus would be still having the ability to SSH in independently and see the output from cgminer.
P.S. I also think you should come up with a way for people to mine on a schedule and be able to set aside time to mine (say thanks) to you for a given period of time per day/week, like cgwatcher does.
|
|
|
|
LaserHorse (OP)
|
|
July 12, 2013, 03:45:19 AM |
|
So I was wondering if there was a way to launch Pi.Miner form a "autorun" script when the Pi boots? Then press and hold the up button to launch cgminer with the predefined config file? The bonus would be still having the ability to SSH in independently and see the output from cgminer.
The tutorial now describes how to add auto-start and the scripts have been updated to support this functionality. This method starts cgminer up as well. Unfortunately, I haven't been able to run cgminer as a background job which can then be brought to the foreground. Whenever I tried, cgminer just stops while in background - this is why I ended up using nohup. I'm open to better solutions, of course. P.S. I also think you should come up with a way for people to mine on a schedule and be able to set aside time to mine (say thanks) to you for a given period of time per day/week, like cgwatcher does.
Interesting, but would need to be 1000% bulletproof/bug free - don't want to risk messing with folks' income! In any case, my address in in my sig
|
|
|
|
MineForeman.com
Legendary
Offline
Activity: 896
Merit: 1000
|
|
July 12, 2013, 04:03:37 AM |
|
I haven't been able to run cgminer as a background job which can then be brought to the foreground. Whenever I tried, cgminer just stops while in background - this is why I ended up using nohup. I'm open to better solutions, of course.
I don't know what you are using for init there are a few ways around it, if your using something oldish like SystemV (it has the /etc/init.d file structure) I have used this method a few times with limited success;- http://askubuntu.com/questions/257808/how-can-i-use-init-d-or-some-other-method-to-run-a-screen-script-on-boot-up/The issue with SystemV is that it is brain dead when it comes to monitoring processes and if the miner dies in background its dead. You can do some sort of bash loop but its not ideal. Id your using a more modern distro that has systemd instead everything gets easy, use this;- [Unit] Description=cgminer After=network.target openntpd.service
[Service] Type=forking ExecStart=/usr/bin/screen -dmS cgminer /opt/minepeon/bin/cgminer --api-listen --api-allow W:127.0.0.1 --sharelog /opt/minepeon/log/share.log -c /opt/mi nepeon/etc/miner.conf ExecStop=/usr/bin/screen -S cgminer -X quit Restart=always
[Install] WantedBy=multi-user.target And systemd will baby sit the process for you, you can even switch too it (screen -r) kill the miner and get dumped out and when you look at your process list it is still there . Neil
|
|
|
|
pitan
Member
Offline
Activity: 98
Merit: 10
|
|
July 12, 2013, 04:12:36 AM |
|
Love it but not the tinker type... Anybody doing mass production or anything similar will be interested
|
|
|
|
alexrossi
Legendary
Offline
Activity: 3962
Merit: 1759
Join the world-leading crypto sportsbook NOW!
|
|
July 13, 2013, 11:02:07 AM |
|
definitely love this project! Hope you'll continue to keep updated the code with new features. I'm going to build a piminer + 5/6 block erupters (with the d-link dub-h7), do you think that 6 is too much for the dlink? (higher probability of hw errors?)
|
|
|
|
LaserHorse (OP)
|
|
July 14, 2013, 07:06:57 AM |
|
definitely love this project! Hope you'll continue to keep updated the code with new features. I'm going to build a piminer + 5/6 block erupters (with the d-link dub-h7), do you think that 6 is too much for the dlink? (higher probability of hw errors?)
Thnx - always good to hear! Been a bit busy of late, but additional features are in the works. I use the dub-h7 with 5 erupters @ <1% HW errors. I've seen reports of it being used w up to 6, but no comparisons of error rate.
|
|
|
|
SilentStray
Newbie
Offline
Activity: 18
Merit: 0
|
|
July 14, 2013, 07:24:07 AM |
|
I'm totally in love with this project! Will be adapting it for BFL Jalapenos.
|
|
|
|
|