sweaving (OP)
Newbie
Offline
Activity: 31
Merit: 0
|
|
January 04, 2014, 09:44:33 PM |
|
Hello all, This question has probably come up before but i cant find any responses in search so hear goes.
I have an Antminer U1 that i want to run through my Raspberry Pi, it currently runs fine through Windows using the "Tweeked" CGminer.
My Pi currently runs Raspbian, and CGMiner 3.1.1 on BE's does anyone have any setup info to enable me to run the Antminer through the Pi?
This would be great to get set up and save having to have my PC running all time.
Regards Steve
|
|
|
|
phoenixsilverbird
Full Member
Offline
Activity: 154
Merit: 100
BUYING ANTMINER S1!!!
|
|
January 05, 2014, 12:12:49 AM |
|
I haven't received my antminers yet but perhaps this may help (didn't write, found online somewhere): First install a modified version of cgminer that has the Bitmain drivers git clone https://github.com/AdvancedStyle/cgminercd cgminer sudo apt-get install libusb-1.0 sudo apt-get install libudev-dev ./autogen.sh ./configure –enable-bmsc make -j 6 To run cgminer use a command such as: sudo ./cgminer –bmsc-options 115200:20 -o mint.bitminter.com:3333 -u bitcoinco_demo -p x –bmsc-freq 0781 If you are using a Raspberry Pi do the following: sudo nano /boot/cmdline.txt Add the following code at the end of the first line (on the same line as the other text) slub_debug=FP Let me know how this works for you please!
|
|
|
|
sweaving (OP)
Newbie
Offline
Activity: 31
Merit: 0
|
|
January 05, 2014, 11:15:41 AM |
|
Hi! Thanks for the info.
i have just been tring to install on my pi this morning but not with alot of luck!
i can clone from the git ok.
i can cd cgminer ok
install both dependacies ok
however the ./autogen.sh gives me a not found bash.
and the ./configure –enable-bmsc also gives me a no such file or directoty bash
but i was able to open and edit the cmdline.txt file ok
the silly thing is both files are there in the directory!!
are further thoughts?
Thanks Steve
|
|
|
|
phoenixsilverbird
Full Member
Offline
Activity: 154
Merit: 100
BUYING ANTMINER S1!!!
|
|
January 05, 2014, 11:28:48 AM |
|
I'm a newbie myself, having only recently joined this site. I'm trying to make sense of it all. I also experienced the exact same things as you - and I mean exact, I could do everything you could do and couldn't do everything you couldn't! I'm not sure if those things are needed, since I think I'm able to run cgminer without them - can you? I have no idea what those commands actually do so I'm at a loss here. Sorry!
|
|
|
|
sweaving (OP)
Newbie
Offline
Activity: 31
Merit: 0
|
|
January 05, 2014, 11:44:58 AM |
|
well at least we are not going mad! i do think that the bmsc driver is required, as would be the "make"
this is more or less the same process i used on cgminer 3.1.1 to setup a block erupter, only excption being i used the icarus driver.
can you actually run the start line?
sudo ./cgminer –bmsc-options 115200:20 -o mint.bitminter.com:3333 -u bitcoinco_demo -p x –bmsc-freq 0781
as i tried this and again get the file not found bash.
for info the freq 0781 is an overclocked one! i use 0681 in windows and get 1.4gh wich i think is safe ish..lol
|
|
|
|
torusJKL
|
|
January 05, 2014, 11:50:27 AM |
|
Did you try MinePeon? It's a nice mining distribution built for the RPi.
|
|
|
|
phoenixsilverbird
Full Member
Offline
Activity: 154
Merit: 100
BUYING ANTMINER S1!!!
|
|
January 05, 2014, 11:53:36 AM |
|
Did you try MinePeon? It's a nice mining distribution built for the RPi. MinePeon is an independent distro which is, essentially, its own operating system just for bitcoin mining. We cannot use this as it hasn't got the tweaked version of Cgminer needed for Antminer U1 USBs. As well as this, the rPi can't be used for anything else but mining while running minepeon, but what we are trying to do is install cgminer on raspbian so we can use the rpi for other things while cgminer runs in the background.
|
|
|
|
sweaving (OP)
Newbie
Offline
Activity: 31
Merit: 0
|
|
January 05, 2014, 12:01:45 PM |
|
i can 2nd that, i would like to be able to use my pi for other things while it is running cgminer, it also makes remote access alot easier running raspbian rather that that of minpeon
|
|
|
|
bitKnife
Member
Offline
Activity: 69
Merit: 10
|
|
January 05, 2014, 12:05:27 PM |
|
what is Raspberry Pi?
|
|
|
|
sweaving (OP)
Newbie
Offline
Activity: 31
Merit: 0
|
|
January 05, 2014, 12:10:50 PM |
|
The Raspberry Pi is a small computer, that has been designed so it is fully hackable, and programable by novices and experts alike, it can be turned into many different things, from an arcade machine playing asteroids and such like, or maybe a home brewing monitor measuring pressures/ temperatures etc, or like we are doing a remote header that can run bitcoin mining hardware. the main advantage over a pc being its power consumpsution being around 4 or 5watts.ish. There are loads for sale just check out ebay, or Maplin.
|
|
|
|
phoenixsilverbird
Full Member
Offline
Activity: 154
Merit: 100
BUYING ANTMINER S1!!!
|
|
January 05, 2014, 12:15:26 PM |
|
You can also find them on Amazon, and there is a huge community of helpful people at the raspberry pi forums at raspberrypi.org
|
|
|
|
sweaving (OP)
Newbie
Offline
Activity: 31
Merit: 0
|
|
January 06, 2014, 07:23:30 PM |
|
Ok Back to topic..lol, i have had some success! i have found out that the autogen.sh, needs dependancies installed to run! (some of these you may allready have installed) So i have done the following:-
sudo apt-get update sudo apt-get install autoconf libusb-1.0-0-dev libncurses5-dev libcurl4-openssl-dev screen libtool automake pkg-config libjansson-dev sudo ./autogen.sh (This takes an age to run so be patiant) sudo ./configure --enable-bmsc Sudo Make
This get cgminer running but it does not recognise the bmsc setting from the start line! take them out and cgminer opens, But...does not detect my device..grrrrr.
progress i suppose. lol
Let me know how you get on!
|
|
|
|
sweaving (OP)
Newbie
Offline
Activity: 31
Merit: 0
|
|
January 06, 2014, 07:31:36 PM |
|
ITS WORKING!!!!!!!!!!!!!!!!!!
missed a - when typing the start line
sudo ./cgminer --bmsc-options 115200:20 -o mint.bitminter.com:3333 -u bitcoinco_demo -p x--bmsc-freq 0781
Must be 2 --
give it a go and let me know!
|
|
|
|
phoenixsilverbird
Full Member
Offline
Activity: 154
Merit: 100
BUYING ANTMINER S1!!!
|
|
January 06, 2014, 08:37:36 PM |
|
I haven't received mine yet, waiting to collect them from my delivery locker. Will do when I arrive, thanks!
|
|
|
|
shaashgaz
Newbie
Offline
Activity: 10
Merit: 0
|
|
January 08, 2014, 02:36:41 PM |
|
New to rpi and mining. I got my BE's working with cgminer 3.1.1 but having same trouble as others with upgrade and the U1.
So far everything is going relatively smooth... except when I get to: sudo ./cgminer --bmsc-options 115200:20 -o mint.bitminter.com:3333 -u bitcoinco_demo -p x--bmsc-freq 0781 I get: sudo ./cgminer not found
Any suggesting to help me out?
Also: If I want to run BE and Antminer on the same hub can I just enable both icarus and bmsc? How does this change the autostart up line? I know I need something for the BE's to autostart too. This is what I have so far:
sudo nano /etc/rc.local
cd /home/pi/PiMiner python PiMiner.py & cd .. nohup ./cgminer/cgminer --config /home/pi/cgminer.conf --bmsc-options 115200:20
Thanks for the help!
|
|
|
|
phoenixsilverbird
Full Member
Offline
Activity: 154
Merit: 100
BUYING ANTMINER S1!!!
|
|
January 08, 2014, 02:50:42 PM |
|
Don't sudo cgminer, just type in 'cd cgminer' and then your commands from there. After cd cgminer you are operating cgminer console.
|
|
|
|
shaashgaz
Newbie
Offline
Activity: 10
Merit: 0
|
|
January 08, 2014, 03:19:04 PM |
|
Thanks for the response. Late night trying on my own to no avail. I tried that before, and just just did it again: cd ./cgminer ./cgminer --bmsc-options 115200:20 -o mint.bitminter.com:3333 -u bitcoinco_demo -p x--bmsc-freq 0781
I get: ./cgminer: --bmsc-options: unrecognized option
|
|
|
|
phoenixsilverbird
Full Member
Offline
Activity: 154
Merit: 100
BUYING ANTMINER S1!!!
|
|
January 08, 2014, 03:40:50 PM |
|
Have you installed bmsc?
|
|
|
|
shaashgaz
Newbie
Offline
Activity: 10
Merit: 0
|
|
January 08, 2014, 04:08:53 PM |
|
When I ran it last night I did: git clone https://github.com/AdvancedStyle/cgminercd cgminer sudo apt-get install libusb-1.0 sudo apt-get install libudev-dev ./autogen.sh ./configure --enable-bmsc ./configure --enable-icarus make -j 6 My thought was that I'd be enabling both the antminer and my BE. I am rerunning it now with just bmsc to see if there is a conflict when both are enabled. Should know soon.
|
|
|
|
sweaving (OP)
Newbie
Offline
Activity: 31
Merit: 0
|
|
January 08, 2014, 05:30:24 PM |
|
Ok, i am running both BE's and Ant miner on my Pi, first thing you MUST do is install 2 instances of cgminer, get one to run ok with BE's using icarus(No ant miner plugged in) and then do the same with the other instance of cgminer for Ant miner using bmsc..
i use 3.1.1 for BE's and the "frigged" 3.8.5 version from above for ant miner.
now, to run 2 cgminers at the same time, 1st unplug all miners..now plug in antminer and on the command line from above at the end of it add --usb :1 This tells cgminer to look for the 1st hotplug device and no more..now this cgminer should be running.
plug in your BEs
do ls /dev/*USB*
this will list all your USB devices(except for the ant miner)
now run the cgminer-3.1.1 start line adding -S /dev/ttyUSB0 -S /dev/ttyUSB1 .......etc for all devices.
nb there will be conflict between icarus and bmsc thus 2 cgminer instances.
|
|
|
|
|