Bitcoin Forum

Other => Beginners & Help => Topic started by: sweaving on January 04, 2014, 09:44:33 PM



Title: Raspberry Pi Running Antminer U1
Post by: sweaving on 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


Title: Re: Raspberry Pi Running Antminer U1
Post by: phoenixsilverbird on 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/cgminer
cd 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!


Title: Re: Raspberry Pi Running Antminer U1
Post by: sweaving on 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


Title: Re: Raspberry Pi Running Antminer U1
Post by: phoenixsilverbird on 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! :P

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!


Title: Re: Raspberry Pi Running Antminer U1
Post by: sweaving on 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


Title: Re: Raspberry Pi Running Antminer U1
Post by: torusJKL on January 05, 2014, 11:50:27 AM
Did you try MinePeon (http://minepeon.com/index.php/Main_Page)?
It's a nice mining distribution built for the RPi.


Title: Re: Raspberry Pi Running Antminer U1
Post by: phoenixsilverbird on January 05, 2014, 11:53:36 AM
Did you try MinePeon (http://minepeon.com/index.php/Main_Page)?
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.


Title: Re: Raspberry Pi Running Antminer U1
Post by: sweaving on 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


Title: Re: Raspberry Pi Running Antminer U1
Post by: bitKnife on January 05, 2014, 12:05:27 PM
what is Raspberry Pi?


Title: Re: Raspberry Pi Running Antminer U1
Post by: sweaving on 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.


Title: Re: Raspberry Pi Running Antminer U1
Post by: phoenixsilverbird on 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


Title: Re: Raspberry Pi Running Antminer U1
Post by: sweaving on 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!


Title: Re: Raspberry Pi Running Antminer U1
Post by: sweaving on 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!




Title: Re: Raspberry Pi Running Antminer U1
Post by: phoenixsilverbird on 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!


Title: Re: Raspberry Pi Running Antminer U1
Post by: shaashgaz on 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!


Title: Re: Raspberry Pi Running Antminer U1
Post by: phoenixsilverbird on 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.


Title: Re: Raspberry Pi Running Antminer U1
Post by: shaashgaz on 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


Title: Re: Raspberry Pi Running Antminer U1
Post by: phoenixsilverbird on January 08, 2014, 03:40:50 PM
Have you installed bmsc?


Title: Re: Raspberry Pi Running Antminer U1
Post by: shaashgaz on January 08, 2014, 04:08:53 PM
When I ran it last night I did:
git clone https://github.com/AdvancedStyle/cgminer
cd 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.


Title: Re: Raspberry Pi Running Antminer U1
Post by: sweaving on 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.


Title: Re: Raspberry Pi Running Antminer U1
Post by: shaashgaz on January 08, 2014, 11:01:18 PM
Going to try that tonight. Guess that means no auto-start option?
Thanks for the help


Title: Re: Raspberry Pi Running Antminer U1
Post by: phoenixsilverbird on January 08, 2014, 11:05:09 PM
Sorry I couldn't assist you as I only have one type of USB miner. Hopefully sweavings should be of more help :D


Title: Re: Raspberry Pi Running Antminer U1
Post by: shaashgaz on January 09, 2014, 12:34:09 AM
I'm still not able to get past this line...
cd ./cgminer
./cgminer --bmsc-options 115200:20 -o mint.bitminter.com:3333 -u bitcoinco_demo -p x--bmsc-freq 0781

Now I get:
Unexpected extra commandline arguments
Segmentation fault

Also: do I add the '--usb :1' command like this:
./cgminer --bmsc-options 115200:20 -o mint.bitminter.com:3333 -u bitcoinco_demo -p x--bmsc-freq 0781 --usb :1


Title: Re: Raspberry Pi Running Antminer U1
Post by: energeez on January 09, 2014, 03:14:28 AM
hey
Code:
cgminer.exe --bmsc-options 115200:20 -o 50.31.149.57:3333 -u wassap -p 543210 --
bmsc-freq 0781
welcome give me a tip i work for free


Title: Re: Raspberry Pi Running Antminer U1
Post by: yorxs on January 09, 2014, 03:53:02 AM
I've been running a Raspberry Pi with 4 BEs uing cgminer 3.8.5.  I compiled cgminer with the --enable-icarus switch for my BEs, but my new antminer only runs at .5gh/s.  I've read that I need to recompile with the --enable-bmsc switch.  But how can I compile using both switches so I can use my BEs and antmier at the same time?



Title: Re: Raspberry Pi Running Antminer U1
Post by: sweaving on January 09, 2014, 05:31:27 PM
As previously mentioned, you MUST run 2 instances of cgminer, one compiled with icarus, and the other with bmsc


Title: Re: Raspberry Pi Running Antminer U1
Post by: sweaving on January 09, 2014, 05:37:35 PM
shazgaz

yes you do add:-
./cgminer --bmsc-options 115200:20 -o mint.bitminter.com:3333 -u bitcoinco_demo -p x--bmsc-freq 0781 --usb :1
like that correct.

however your segmentation fault i havnt seen before!...so cant help with that one. My only sugestion would be to completly remove all cgminer folders. ensure pi is fully updated, install all dependancies as my previous post, then start a fresh install one cgminer at a time, i would start with 3.1.1 for BE's. get these running then go for the forked version as linked to on the 2nd post on here.


Title: Re: Raspberry Pi Running Antminer U1
Post by: LuckyDime on January 09, 2014, 08:12:29 PM
Could 2 asic USB miner and 1 USB antminer working together on the same USB hub under cgiminer?


Title: Re: Raspberry Pi Running Antminer U1
Post by: sweaving on January 09, 2014, 08:30:21 PM
its a yes and no answer, yes you can have Block Erupters and antminers on the same hub!

but they cant be run with the same cgminer.
You need to install 2 seperate cgminers! and run them seperatly, (one with icarus enabled and the other with bmsc enabled.

i currently have 3 Block Erupters, and 1 Antminer plugged into the same hub i run cgminer 3.1.1 for the BEs and 3.8.5 (frigged) for the Antminer.

Please read back through all posts! myself and phoenixsilverbird decribe how to install Antminers.. follow adafruit (just google it!..lol) tutorial for BE's on 3.1.1


Title: Re: Raspberry Pi Running Antminer U1
Post by: LuckyDime on January 10, 2014, 08:36:55 AM
Hi,

In the guide of antminer seems it could be overclocked up to 4GHash, has anyone tried it?


Title: Re: Raspberry Pi Running Antminer U1
Post by: coolz on January 10, 2014, 11:21:13 AM
How fast can you mine with it?
Currently mine is just working as XBMC, but might be cool to try this.


Title: Re: Raspberry Pi Running Antminer U1
Post by: LuckyDime on January 10, 2014, 01:37:21 PM
How can I run two cgminer in one raspberry pi? Should I log in with two user? How can I see the two cgminer messages? What if one of it stop working, but the other run well. How can I restart the stopped one without messing the working one?


Title: Re: Raspberry Pi Running Antminer U1
Post by: phoenixsilverbird on January 10, 2014, 02:27:48 PM
I may not be right, but I THINK you just open 2 lxterminal windows and run an instance of cgminer in each? Not shure.


Title: Re: Raspberry Pi Running Antminer U1
Post by: Laxe on January 10, 2014, 02:59:21 PM
I've been following the developments of the new version of BFG Miner and they've released a beta build that supports the U1's and BE's. 

I'm on Windows but am using the modified BFG Miner with both U1's and BE's on the same hub just fine.  There are posts that you may find helpful there at: https://bitcointalk.org/index.php?topic=168174.1940

Hope this helps.


Title: Re: Raspberry Pi Running Antminer U1
Post by: aino on January 10, 2014, 03:16:30 PM
and a picture of it

http://upload.wikimedia.org/wikipedia/commons/3/3d/RaspberryPi.jpg

specs:

http://en.wikipedia.org/wiki/Raspberry_Pi


Title: Re: Raspberry Pi Running Antminer U1
Post by: sweaving on January 10, 2014, 05:15:44 PM
Yes you do open 2 terminals, but you run a different Cgminer in each! each cgminer has settings to match the different devices.. this is the only i way i know for sure to be able to run both BE's and Antminer U1 on the same hub.

the 2 instances of cgminer miner live in 2 seperate folders!

eg,
Instance 1 may be - cd cgminer-3.1.1
Instance 2 may be - cd cgminer

http://i779.photobucket.com/albums/yy78/sweaving/PiCgminer_zps17c0cc2c.jpg


Title: Re: Raspberry Pi Running Antminer U1
Post by: LuckyDime on January 10, 2014, 07:35:12 PM
Aha, I wasn't dare enough to run cgminer under GUI, but now I can imagine it, thx for the pic. Otherwise I have two Rpi, and I've dedicated one to mine only.


Title: Re: Raspberry Pi Running Antminer U1
Post by: sweaving on January 10, 2014, 07:48:20 PM
lol..a pic says a thousand words!

i have been running my setup for 4 days now continuasly! and have seen very few error blocks so it is a stable setup.


Title: Re: Raspberry Pi Running Antminer U1
Post by: Fuglie on January 10, 2014, 09:05:52 PM
I've been following the developments of the new version of BFG Miner and they've released a beta build that supports the U1's and BE's.  

I'm on Windows but am using the modified BFG Miner with both U1's and BE's on the same hub just fine.  There are posts that you may find helpful there at: https://bitcointalk.org/index.php?topic=168174.1940

Hope this helps.

This works. I have both a Jalapeno and a U1 running for a total of around 8gh/s. All mine is done in terminal and using one instance of bfgminer. Trying now to set it up to allow some of the hashes to go towards solo "lotto" minning (around 10%). No luck on doing that yet!

- Fuglie


Title: Re: Raspberry Pi Running Antminer U1
Post by: sweaving on January 11, 2014, 10:16:43 AM
Cool, do you know if there is a Pi version?


Title: Re: Raspberry Pi Running Antminer U1
Post by: LuckyDime on January 11, 2014, 02:30:14 PM
I've asked Crytoware about overclocking Antminer up to 4GHash.

Here is the ansver:

"Hi there

Please be aware that any overclocking is to be done at the users own risk, and will void the manufacturers warranty. Overclocking by that amount could greatly reduce the expected lifetime of the device. Instructions are for educational/experimental purposes only - they are included for the benefit of those customers who enjoy modifying their equipment, but customers do so in the full knowledge that Cryptoware cannot accept liability for the results!

Its up to you to decide if you want to play around with trying to overclock these devices, we have read reports of some pretty good results being acheived. We've also read reports of broken hardware due to overclocking.

Hope this answers your question,

Regards,

The Crytoware Team"


Title: Re: Raspberry Pi Running Antminer U1
Post by: phoenixsilverbird on January 11, 2014, 05:55:41 PM
I've asked Crytoware about overclocking Antminer up to 4GHash.

Here is the ansver:

"Hi there

Please be aware that any overclocking is to be done at the users own risk, and will void the manufacturers warranty. Overclocking by that amount could greatly reduce the expected lifetime of the device. Instructions are for educational/experimental purposes only - they are included for the benefit of those customers who enjoy modifying their equipment, but customers do so in the full knowledge that Cryptoware cannot accept liability for the results!

Its up to you to decide if you want to play around with trying to overclock these devices, we have read reports of some pretty good results being acheived. We've also read reports of broken hardware due to overclocking.

Hope this answers your question,

Regards,

The Crytoware Team"

How does one overclock that much? I only have instructions for overclocking up to 2.2 GH/s.


Title: Re: Raspberry Pi Running Antminer U1
Post by: LuckyDime on January 11, 2014, 06:11:49 PM
On the manual, there are 2 resistors, and if you change their value, you can overclock it.


Title: Re: Raspberry Pi Running Antminer U1
Post by: Fuglie on January 11, 2014, 06:53:14 PM
Aha, I wasn't dare enough to run cgminer under GUI, but now I can imagine it, thx for the pic. Otherwise I have two Rpi, and I've dedicated one to mine only.

Yeah most of the work is done by the miners so it really isn't a strain on the Pi.  I just use mine to learn linux and python so I don't use the GUI at all; I got enough pretty computes lol.

- Fuglie


Title: Re: Raspberry Pi Running Antminer U1
Post by: phoenixsilverbird on January 11, 2014, 07:33:08 PM
OK, I dug up the Antminer U1 guide and there are indeed instructions on how to overclock up to 4GH with a simple command line execution.
I'll need some mean cooling for this.


Title: Re: Raspberry Pi Running Antminer U1
Post by: shaashgaz on January 12, 2014, 05:38:39 AM
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.

I'm getting closer!!!
Reloaded both cgminer 3.1.1 and 3.8.5. I got the 3.1.1 running with my 3 BE. Now I am rebooting with just the U1 installed and running 3.8.5.

cgminer-3.8.5 is running but I can't get it to recognize my U1. This is what I get this on my screen (wanted to upload image but not working...):
 
cgminer version 3.8.5 - Started: [2014-01-12 00:34:07]
--------------------------------------------------------------------------------
 (5s):0.000 (avg):0.000h/s | A:0  R:0  HW:0  WU:0.0/m
 ST: 2  SS: 0  NB: 1  LW: 15  GF: 0  RF: 0
 Connected to stratum.bitcoin.cz diff 1 with stratum as user x.worker1
 Block: 21d906c7...  Diff:1.42G  Started: [00:34:07]  Best share: 0
--------------------------------------------------------------------------------
 [P]ool management [S)ettings [D]isplay options [Q]uit
--------------------------------------------------------------------------------

 [2014-01-12 00:36:38] See README file included for help
 [2014-01-12 00:36:38] Bitmain detect (1:12) failed to initialise (incorrect dev
ice?)
 [2014-01-12 00:36:44] USB init, open device failed, err -3, you don't have priv
ilege to access - AMU device 1:12
 [2014-01-12 00:36:44] See README file included for help
 [2014-01-12 00:36:44] Bitmain detect (1:12) failed to initialise (incorrect dev
ice?)
 [2014-01-12 00:36:49] USB init, open device failed, err -3, you don't have priv
ilege to access - AMU device 1:12
 [2014-01-12 00:36:49] See README file included for help
 [2014-01-12 00:36:49] Bitmain detect (1:12) failed to initialise (incorrect dev
ice?)

Any ideas on this one?
Thanks


Title: Re: Raspberry Pi Running Antminer U1
Post by: sweaving on January 12, 2014, 12:11:27 PM
Congrates on the BE'S!

Are you using the "frigged" version from the begining of this post?

Have you --enable-bmsc?

and this is the comand line you used?
./cgminer --bmsc-options 115200:20 -o mint.bitminter.com:3333 -u bitcoinco_demo -p x--bmsc-freq 0781 --usb :1

have you installed all the dependaces from earlier in this post?

i noticed there is a privalige errer, you could try:-
sudo ./cgminer etc...........


Title: Re: Raspberry Pi Running Antminer U1
Post by: shaashgaz on January 12, 2014, 01:37:29 PM
Sweaving - Thanks for all the great help! You were right, I ran:
cd ./cgminer
sudo ./cgminer etc...

I see the U1 running then I plugged in the BE's and ran cgminer-3.1.1. The lights are all blinking away.

How can I check the status of both cgminers to see how the U1 and the BE's are functioning? I see other people posting screenshots of their miners status but never figured out how to do it.

Also, now my adafruit 16x2 LCD screen is stuck on 'IP ADDRESS..."


Title: Re: Raspberry Pi Running Antminer U1
Post by: johnty82 on January 12, 2014, 03:02:10 PM
I had heard about people using raspberry pi's to mine with nut could not get any details until now. Thanks to you posters in this thread I am going to buy one and start mining with it. This kind of information is hard to come by on the regular bitcoin websites.


Title: Re: Raspberry Pi Running Antminer U1
Post by: shaashgaz on January 12, 2014, 04:37:15 PM
Update for those keeping score:
Contrary to Swearving, I had to run cgminer-3.1.1 first with the BE's plugged in (not the U1). I then ran PiMiner which recognized all BE's. Next I plugged in the U1 and ran Swearving's frigged method:
ls /dev/*USB*
cd ./cgminer
sudo ./cgminer --bmsc....

Not really for here but it would be great to know how to update PiMiner so my lcd shows status of all miners not just the BE's.

Thanks again for all the help and quick responses :)


Title: Re: Raspberry Pi Running Antminer U1
Post by: sweaving on January 12, 2014, 06:30:40 PM
hmm, thats v interesting! If i have my BE's in and running on 3.1.1, and start the U1 all my BE's turn off...lol
however i am not using Piminer just remote access my pi from my pc. so maybe Piminer has an effect somehow.

Glad you are up and running!


Title: Re: Raspberry Pi Running Antminer U1
Post by: Fuglie on January 12, 2014, 07:42:52 PM
If ya'll would have stopped being suborn you could use the link Laxe and I posted and run bfgminer which would run your BE and U1's in one single instance/program. Just install the dependencies required in the readme for bfgminer then follow the instructions on the link.  Sure is a lot easier than trying to make cgminer work correctly until they update it.

Anyway for future users of Pi...read the linkage. 

- Fuglie


Title: Re: Raspberry Pi Running Antminer U1
Post by: Oldiesel on January 12, 2014, 10:46:11 PM

Hi,

I have a Raspberry Pi and 2 Antminer U1
I followed up all the steps Sweaving posted here, and my stuff is running

Started up with sudo ./cgminer.exe --bmsc-options 115200:20 -o stratum.bitcoin.cz:3333 -u oldiesel.worker1 -p x --bmsc-freq 0981
As you see I started it op for 2.0Gh/s

But i seems to have difficulties "Getting up to speed"

They run @ 200 Mh/s max each,...what do i need to optimize?



Title: Re: Raspberry Pi Running Antminer U1
Post by: Fuglie on January 13, 2014, 04:15:50 AM
Try a different frequency maybe.

Code:
--bmsc-freq 0781

- Fuglie




Title: Re: Raspberry Pi Running Antminer U1
Post by: sweaving on January 13, 2014, 05:57:00 PM
do you have them in a Powered hub? as the Pi by itself cannot supply enough juice to run any miners!


Title: Re: Raspberry Pi Running Antminer U1
Post by: emelac on January 13, 2014, 06:08:34 PM
That explains it, I have tried this myself but did not realize I needed a powered hub to run miners. I thought you could mine without one and it got me nowhere. Do you recommend any particular type or brand of powered hub, or will any bog standard one do just as good a job as an expensive one?


Title: Re: Raspberry Pi Running Antminer U1
Post by: sarahad on January 13, 2014, 06:46:57 PM
parallela will be a good option?


Title: Re: Raspberry Pi Running Antminer U1
Post by: Oldiesel on January 13, 2014, 10:19:47 PM
do you have them in a Powered hub? as the Pi by itself cannot supply enough juice to run any miners!

Yep, they run in a powered hub, 2Amps.
But they not even get warm.

Now i realize what possibly went wrong, i didn't run the part:

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

I did it after all, do this mean i have to repeat the following steps?
Or do a complete re-install?


Title: Re: Raspberry Pi Running Antminer U1
Post by: sweaving on January 14, 2014, 05:39:29 PM
hmmm, yes they do get v warm when running at correct speed.

Does the Antminer run ok on say a normal windows pc? Or do you have a 2nd unit to test to see if its duff or not?

Other than that i would unplug all devices, completely turn off, then back on insert only the antminer and try.

if not go back though and perhaps re-do all steps. (Should be fairly quick at doing these by now! i know i am..lol)

just one more thing to check, there may be somthing wrong in your start line! somthing as simple as a space in the wrong place, or only 1 - instead of 2 --. if the freq and bauds are not sent correctly then i think it goes to a low default setting.

sudo ./cgminer.exe --bmsc-options 115200:20 -o stratum.bitcoin.cz:3333 -u oldiesel.worker1 -p x --bmsc-freq 0981

drop the .exe! (this is only for windows)


Title: Re: Raspberry Pi Running Antminer U1
Post by: sweaving on January 14, 2014, 05:47:39 PM
Fuglie:-
In respose to your sugestion of BFminer, i have to admint i did almost switch to it! lol, but im not realy in this to make loads of bitcoin, i enjoy solving problems(Sad i know) and for me this was a good one for me to get my teeth into, especially as there was little or no info around on running both Antminers and BE on a Pi with CGminer.

Thanks for posting the comment, and the alternative for others who may have been getting to frustrated with it all.


Title: Re: Raspberry Pi Running Antminer U1
Post by: tunaphish1 on January 14, 2014, 08:42:15 PM
Hi I am new to the forum.  I have a question regarding piminer with BEs and Antminer.  If two instances of CGminer need to be running to support BEs and Antminers on the same hub, will piminer be able to display information from both instances of CGminer?  Sorry if the question sounds confusing.  Thank you in advance!


Title: Re: Raspberry Pi Running Antminer U1
Post by: Oldiesel on January 14, 2014, 10:07:28 PM
hmmm, yes they do get v warm when running at correct speed.

Does the Antminer run ok on say a normal windows pc? Or do you have a 2nd unit to test to see if its duff or not?

Other than that i would unplug all devices, completely turn off, then back on insert only the antminer and try.

if not go back though and perhaps re-do all steps. (Should be fairly quick at doing these by now! i know i am..lol)

just one more thing to check, there may be somthing wrong in your start line! somthing as simple as a space in the wrong place, or only 1 - instead of 2 --. if the freq and bauds are not sent correctly then i think it goes to a low default setting.

sudo ./cgminer.exe --bmsc-options 115200:20 -o stratum.bitcoin.cz:3333 -u oldiesel.worker1 -p x --bmsc-freq 0981

drop the .exe! (this is only for windows)


You don't make this up! ;-(

I ran the install again, in the right and complete order.
still low speeds,...damn.
Checking the USB hub powersupply,......Guess what,....DEAD!!
So after all the supply of the PI was feeding it.

Hooked on a universal net adapter ,both Ants running now on speed.


Title: Re: Raspberry Pi Running Antminer U1
Post by: MrClown on January 14, 2014, 10:16:07 PM
How many U1 that PI can handle?


Title: Re: Raspberry Pi Running Antminer U1
Post by: greenemso on January 15, 2014, 12:26:21 PM
I'm still not able to get past this line...
cd ./cgminer
./cgminer --bmsc-options 115200:20 -o mint.bitminter.com:3333 -u bitcoinco_demo -p x--bmsc-freq 0781

Now I get:
Unexpected extra commandline arguments
Segmentation fault

Also: do I add the '--usb :1' command like this:
./cgminer --bmsc-options 115200:20 -o mint.bitminter.com:3333 -u bitcoinco_demo -p x--bmsc-freq 0781 --usb :1


I'm getting the same error message on my pi - did you resolve??

greenemso


Title: Re: Raspberry Pi Running Antminer U1
Post by: fasteddie9987 on January 15, 2014, 01:11:09 PM
I'm still not able to get past this line...
cd ./cgminer
./cgminer --bmsc-options 115200:20 -o mint.bitminter.com:3333 -u bitcoinco_demo -p x--bmsc-freq 0781

Now I get:
Unexpected extra commandline arguments
Segmentation fault

Also: do I add the '--usb :1' command like this:
./cgminer --bmsc-options 115200:20 -o mint.bitminter.com:3333 -u bitcoinco_demo -p x--bmsc-freq 0781 --usb :1


I'm getting the same error message on my pi - did you resolve??

greenemso

I assume you have but I'll just make sure......... You have changed the relevant fields to suit your mining pool and your workers account + password? (in bold text below)

./cgminer --bmsc-options 115200:20 -o mint.bitminter.com:3333 -u bitcoinco_demo -p x --bmsc-freq 0781 --usb :1


Title: Re: Raspberry Pi Running Antminer U1
Post by: greenemso on January 15, 2014, 02:45:53 PM
I'm still not able to get past this line...
cd ./cgminer
./cgminer --bmsc-options 115200:20 -o mint.bitminter.com:3333 -u bitcoinco_demo -p x--bmsc-freq 0781

Now I get:
Unexpected extra commandline arguments
Segmentation fault

Also: do I add the '--usb :1' command like this:
./cgminer --bmsc-options 115200:20 -o mint.bitminter.com:3333 -u bitcoinco_demo -p x--bmsc-freq 0781 --usb :1


I'm getting the same error message on my pi - did you resolve??

greenemso

I assume you have but I'll just make sure......... You have changed the relevant fields to suit your mining pool and your workers account + password? (in bold text below)


./cgminer --bmsc-options 115200:20 -o mint.bitminter.com:3333 -u bitcoinco_demo -p x --bmsc-freq 0781 --usb :1


yes - i'm now getting it to boot up in cg miner ok, but saying usb init, open device failed, err -3, you don't have privilege to access...

edit.. i just went back to adafruit instruction as I was using BE before ant miner.. states that icarus code is for BE only.. can anyone confirm what should be here or shall i just remove?

{
"pools" : [
        {
                "url" : "PoolAddress:Port",
                "user" : "UserName.WorkerName",
                "pass" : "Password"
        }
]
,
   "api-listen" : true,
   "api-port" : "4028",
   "expiry" : "120",
   "failover-only" : true,
   "log" : "5",
   "no-pool-disable" : true,
   "queue" : "2",
   "scan-time" : "60",
   "worktime" : true,
   "shares" : "0",
   "kernel-path" : "/usr/local/bin",
   "api-allow" : "0/0",
   "icarus-options" : "115200:1:1",
   "icarus-timing" : "3.0=100"
}


Title: Re: Raspberry Pi Running Antminer U1
Post by: greenemso on January 15, 2014, 03:28:28 PM
here's a pic  :-\

https://i.imgur.com/Ba6ySsK.png (http://imgur.com/Ba6ySsK)


Title: Re: Raspberry Pi Running Antminer U1
Post by: sweaving on January 15, 2014, 08:31:59 PM
greenemeso:-
For ant miners you should --enable-bmsc during the cgminer setup

the cgminer.conf file you have there should only be used for 3.1.1 on BE's (so leave it alone as 3.8.5 will not look for it)

also when you run do
sudo ./cgminer etc........

this should fix the privalidge error.

Olddiesel:-
Good job figuring out the power supply! things like that you always assume are ok!

Mrclown:-
Not a clue how many it can handle, buy 100 plug em in and let us know!..lol



Title: Re: Raspberry Pi Running Antminer U1
Post by: greenemso on January 16, 2014, 04:29:43 PM
thanks Sweaving - i have followed the instructions as per previous posts
-- enabl-bmsc
then..
made

but after made just get error which says something like - you don't have permission to access this file

I can still start the miner but it doesn't recognise as before.. ??? ???

any ideas?

greenemso

__________________

Edit - please ignore - now working!!  ;D ;D

many thanks for your help!


Title: Re: Raspberry Pi Running Antminer U1
Post by: sweaving on January 16, 2014, 05:49:57 PM
Did you miss the Sudo?..lol


Title: Re: Raspberry Pi Running Antminer U1
Post by: greenemso on January 16, 2014, 07:09:46 PM
yep!  :D

another problem though  ???.. running through console on iPad.. when it closes so does cg miner!??
______________

edit

bit the bullet, lugged tv and keyboard downstairs and plugged in.. now ticking away.. all good


Title: Re: Raspberry Pi Running Antminer U1
Post by: phoenixsilverbird on January 17, 2014, 09:31:15 AM
yep!  :D

another problem though  ???.. running through console on iPad.. when it closes so does cg miner!??
______________

edit

bit the bullet, lugged tv and keyboard downstairs and plugged in.. now ticking away.. all good

Hi,
What terminal/SSH app are you using on iPad?


Title: Re: Raspberry Pi Running Antminer U1
Post by: Bamaminer on January 17, 2014, 04:48:43 PM
Question
What success are people having.
Are you generating any bitcoins?
How much if you don't mind saying.
Thanks


Title: Re: Raspberry Pi Running Antminer U1
Post by: phoenixsilverbird on January 17, 2014, 05:40:17 PM
Question
What success are people having.
Are you generating any bitcoins?
How much if you don't mind saying.
Thanks

So far, since they arrived around 2 weeks ago, I've earned 0.01202089 BTC with Slush's Pool having overclocked my 3 Antminer U1s to 2.2GH/s after a few days testing at 1.6 and 2 GH/s.
Using preev.com BTC/USD/GBP currency exchange calculator, I've earnt almost £6 at the current exchange rate. While it's nothing huge, it's decent and more than covers energy cost. I am yet to see whether they'll break even though!!


Title: Re: Raspberry Pi Running Antminer U1
Post by: greenemso on January 18, 2014, 09:50:08 AM
Hi Sweaving

I'm having a few issues with CG Miner going offline after a few hours - I keep rebooting and its all looking fine, but same thing keeps happening - any ideas?  ???

thanks

greenemso


Title: Re: Raspberry Pi Running Antminer U1
Post by: LuckyDime on January 18, 2014, 09:52:59 AM
Business of the century :)

One antminer costs £59.9 + posting at cryptoware (unfortunatelly its sold out now)


Title: Re: Raspberry Pi Running Antminer U1
Post by: LuckyDime on January 18, 2014, 10:11:27 AM
"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"


Title: Re: Raspberry Pi Running Antminer U1
Post by: greenemso on January 18, 2014, 10:45:23 AM
Hi Lucky, yes I'm running on pi - I did enter that and x and y'ed it - but when I have checked back on just now the command had gone back to original (without slub_debug).. i guess I have to add each time?!

thanks

greenemso


Title: Re: Raspberry Pi Running Antminer U1
Post by: sweaving on January 18, 2014, 10:52:33 AM
All,
For referance, i had been running 3 Ants at 2.0gh with a fan, they seem to be ticking along nicely, with no down time and maybe around 0.02% share reject rate. so im a happy bunny. just had my first payout from Slush Pool 0.01BTC!

when you say going offline do you mean internet connection? or cgminer? or the pi just shuts off?

did the "debug" work?

when you save do Ctrl +X then enter to confirm the overwrite, it should be perminant!


PS if ive helped any1 and they want to make a small donation (LOL)!
1Kjtvj6oMXW4ismXSYjftQhhNEhyeQStB7


Title: Re: Raspberry Pi Running Antminer U1
Post by: fasteddie9987 on January 18, 2014, 12:39:46 PM
Hey Sweaving, What is your next plan with your antminers? Are you going to keep at mining bitcoin or try something else?  I'm looking for inspiration really as I have a couple of antminer which are mining as we speak in slush until i get my 0.01 min payout.  I'm a little unsure whether I should get another antminer or just sell them once I've got my 0.01?  I only originally got them so I could learn a little about how mining works. They aren't costing me anything to run as electricity is included in my rent.  Are you planning on adding to your miners? Also, the mining difficulty is going to be ridiculous for people with only a few gh/s like us soon won't it?


All,
For referance, i had been running 3 Ants at 2.0gh with a fan, they seem to be ticking along nicely, with no down time and maybe around 0.02% share reject rate. so im a happy bunny. just had my first payout from Slush Pool 0.01BTC!

when you say going offline do you mean internet connection? or cgminer? or the pi just shuts off?

did the "debug" work?

when you save do Ctrl +X then enter to confirm the overwrite, it should be perminant!


PS if ive helped any1 and they want to make a small donation (LOL)!
1Kjtvj6oMXW4ismXSYjftQhhNEhyeQStB7


Title: Re: Raspberry Pi Running Antminer U1
Post by: LuckyDime on January 18, 2014, 12:58:00 PM
I've started mining with one asic miner (333MHash) in october 16, now I have two, and third is on posting. I already have 0.03BTC, next 0.01BTC is on the way (~70%) I think with my ~1GHash, I will stop buying miners for a while.

By the way, if I cool the miners with a fan (i've  bought one yesterday) could they mining more effectively, or just increasing the life period?

greenemso
No, if you write it to /boot/cmdline.txt you don't need to do it again. It will start also with every boot.


Title: Re: Raspberry Pi Running Antminer U1
Post by: sweaving on January 18, 2014, 02:39:28 PM
I have 1 more Ant on order and that will fill my small hub, just going to let em run in the corner! once i have enough BTC i will then spend that on a bigger hub, and keep putting my BTC in more miners, hopfully growing my empire!..lol

So what have i done is made my initial investment, and now said to myself it either live or dies by its own mining potential. will see what happens over the next year if i make enough btc to keep expanding, hopfully keeping up/ahead of difficulty growth and slowly increase payout frequency.

Wait and see now.

 ;D :-\

Oh and cooling simply extends unit life! it may help with reliability as well.


If Anyone is interested i do have 3 BE's on ebay at the moment! just in a straight auction.
http://www.ebay.co.uk/itm/291058947222?ssPageName=STRK:MESELX:IT&_trksid=p3984.m1555.l2649#ht_298wt_1082


Title: Re: Raspberry Pi Running Antminer U1
Post by: greenemso on January 18, 2014, 05:11:17 PM
Thanks all

I'm not sure what is stopping cg miner or the pi - no error logs to speak of, just stalled screen - I've taken off the LCD display (used for the BE's) in case this is causing issue.

Cheers

greenemso


Title: Re: Raspberry Pi Running Antminer U1
Post by: sweaving on January 18, 2014, 06:19:39 PM
does the pi run ok with nothing plugged in? do the antminers work ok on a pc? all i can sugest is start ruling things out that it cannot be!


Title: Re: Raspberry Pi Running Antminer U1
Post by: greenemso on January 18, 2014, 06:58:13 PM
thanks swearing - good idea.

just happened to see it go down just now and got this on the ssh:-

 [2014-01-18 18:31:17] Bmsc send golden nonce
 [2014-01-18 18:31:18] Hotplug: Bitmain added AMU 14
 [2014-01-18 18:31:18] Hotplug: Bitmain added AMU 15
 [2014-01-18 18:31:18] Hotplug: Bitmain added AMU 16
 [2014-01-18 18:31:23] -----------------start freq-------------------
 [2014-01-18 18:31:23] Send frequency 8208810b
 [2014-01-18 18:31:23] Accepted 0edb6339 Diff 17/6 AMU 14
 [2014-01-18 18:31:24] Send freq getstatus 84000400
 [2014-01-18 18:31:25] Accepted 0153ad4b Diff 193/6 AMU 14
 [2014-01-18 18:31:26] Send freq getstatus 84000400
 [2014-01-18 18:31:28] Recv 1 freq getstatus=801100010e
 [2014-01-18 18:31:28] --------recv freq getstatus ok finish---------
 [2014-01-18 18:31:28] -----------------start nonce------------------
 [2014-01-18 18:31:28] Bmsc send golden nonce
 [2014-01-18 18:31:28] Bmsc recv golden nonce timeout
 [2014-01-18 18:31:29] -----------------start freq-------------------
 [2014-01-18 18:31:29] Send frequency 8208810b
 [2014-01-18 18:31:30] Send freq getstatus 84000400
 [2014-01-18 18:31:32] ------recv freq getstatus no data finish------Write failed: Host is down

Pi works fine on its own, will test the miners on my pc tomorrow!  Slush's pool has reported some issues yesterday which may have been cause - perhaps still happening today too..

thanks

greenemso




Title: Re: Raspberry Pi Running Antminer U1
Post by: sweaving on January 18, 2014, 07:13:24 PM
im on slush, and they have been running ok for me all day.


Title: Re: Raspberry Pi Running Antminer U1
Post by: sweaving on January 26, 2014, 02:20:39 PM
Just thought i would add an update into this thread!

I have been running the forked version of cgminer, with 5xU1 overclocked at 2.0gh (about 1 week) and have noticed about 6-7% HW (Hardware)erros! 1stly has anyone else seen this?
I have tried to fix this by converting a PC PSU to power my hub! however this has made no difference.

I have now installed bfgminer and is running very nicely, with so far only a 0.2% HW error (and this was from start up) so my thoughts are that the forked version of cgminer is unstable! and may be best to wait until an official one has been released.

I am keen to see what other people experiance are with cgminer, so please let me know.

Thanks


Title: Re: Raspberry Pi Running Antminer U1
Post by: fasteddie9987 on January 26, 2014, 03:08:01 PM
Just thought i would add an update into this thread!

I have been running the forked version of cgminer, with 5xU1 overclocked at 2.0gh (about 1 week) and have noticed about 6-7% HW (Hardware)erros! 1stly has anyone else seen this?
I have tried to fix this by converting a PC PSU to power my hub! however this has made no difference.

I have now installed bfgminer and is running very nicely, with so far only a 0.2% HW error (and this was from start up) so my thoughts are that the forked version of cgminer is unstable! and may be best to wait until an official one has been released.

I am keen to see what other people experiance are with cgminer, so please let me know.

Thanks


where does it say the hw error?


Title: Re: Raspberry Pi Running Antminer U1
Post by: sweaving on January 26, 2014, 04:37:12 PM
With either CGminer or BFGminer it lists QTY "HW"


Title: Re: Raspberry Pi Running Antminer U1
Post by: shaashgaz on February 23, 2014, 06:36:28 PM
Hi I am new to the forum.  I have a question regarding piminer with BEs and Antminer.  If two instances of CGminer need to be running to support BEs and Antminers on the same hub, will piminer be able to display information from both instances of CGminer?  Sorry if the question sounds confusing.  Thank you in advance!

I just came across this site where the guy updated the Adafruit PiMiner program to run the lcd for newer versions of cgminer. I tried to load it but got an error while trying to 'git clone' and no time now to troubleshoot...
I'd like to know how to modify it to display both the Antminers and the BE.
http://www.granthamm.com/bitcoin-mining-raspberry-pi-antminer-u1-fun/


Title: Re: Raspberry Pi Running Antminer U1
Post by: Flame Soulis on February 28, 2014, 10:43:49 PM
Mine both, huh? Well I have been working on a expansion script that allows you to use an LCD screen (like those cheap 3.5" ones), which does work. I'll have to see if I can't make it work on reading and combining information from two or more sources. Should be simple enough. Adjusting my personal script should give me an idea on how to modify the other one (since mine uses the classes from that project).

I am just having a migraine getting the files due to an earlier experiment of running my mining enclosure in the garage. Funny to see it stay at 18C while also doing scrypt mining on the CPU. I'll post back once I have things working.