Bitcoin Forum

Other => Beginners & Help => Topic started by: Sheep on March 17, 2012, 02:55:57 PM



Title: Running an FPGA on Raspberry Pi, possible?
Post by: Sheep on March 17, 2012, 02:55:57 PM
I've come to the conclusion that next month (for my birthday) i'm going to order a butterfly labs single. I am a tad bit confused on how it works though.

First of all, it needs to be plugged into an existing computer correct? So not only would you have to deduct the cost of power from the single itself, but the computer that is running as well.  Knowing this, would it be worth setting up a super low power rig to hook the single up to? This got me thinking about using the Raspberry Pi as a host for a single. After a little searching I did find a similar post https://bitcointalk.org/index.php?topic=55532.0;all (https://bitcointalk.org/index.php?topic=55532.0;all), but I couldn't figure out if it was just ideas being thrown around hopelessly, or if mining on the Rpi is a possibility.

So far what I noted is that you would need

1.An FPGA (butterfly labs single)
2.A raspberry pi model B
3.A powered hub (to power the single)
4.A debian ARM based operating system that can mine bitcoins

The only problem I can see is obviously with the operating system. Would the current linux miners work in an ARM environment? Or would new software have to be developed?

In the end, with the proper equipment, would running 1 butterfly labs single on a Rpi ever work?


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: matthewh3 on March 17, 2012, 04:50:16 PM
Yes it would you have to compile the mining software from source.  I'm in the process of ordering a different FPGA board to the BFL-Single.  Once I have the board and a RaspberryPi I will do a 'How-To' thread on the forum.


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: alatus on March 17, 2012, 05:38:03 PM
Matthew: What do You mean by different FPGA board FOR the BFL Singles?
I don't really get it... ???


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: matthewh3 on March 17, 2012, 05:41:38 PM
Matthew: What do You mean by different FPGA board FOR the BFL Singles?
I don't really get it... ???

I meant a different FPGA board then the BFL-Single (an alternative product made by somebody else).  The company selling them hasn't gone public yet and I can release no details but the company will be going public about the product within two weeks.


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: Sheep on March 17, 2012, 07:54:36 PM
I'm not big on the whole "code" side of things, but I guess i'll have to if I want to do this project :P. I commend you for taking initiative, Matthew. I'll be keeping an eye our for your posts.

I will also be keeping an eye out for this new FPGA you speak about. Thank you!


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: matthewh3 on March 17, 2012, 09:13:59 PM
I'm not big on the whole "code" side of things, but I guess i'll have to if I want to do this project :P. I commend you for taking initiative, Matthew. I'll be keeping an eye our for your posts.

I will also be keeping an eye out for this new FPGA you speak about. Thank you!

Yeah once I've got these new FPGA boards which have the same hash rate of the BFL-Single but at half the wattage tho will be more expensive I will do a how-to on setting the boards up with Ubuntu and the RaspberryPi as well.  Also this new company will ship from both the USA and the EU to help get around import tax and give next day delivery.  Tho I probably saying to much and you should wait for them to go public within two weeks.


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: DILLIGAF on March 17, 2012, 10:33:45 PM
I'm not big on the whole "code" side of things, but I guess i'll have to if I want to do this project :P. I commend you for taking initiative, Matthew. I'll be keeping an eye our for your posts.

I will also be keeping an eye out for this new FPGA you speak about. Thank you!

Yeah once I've got these new FPGA boards which have the same hash rate of the BFL-Single but at half the wattage tho will be more expensive I will do a how-to on setting the boards up with Ubuntu and the RaspberryPi as well.  Also this new company will ship from both the USA and the EU to help get around import tax and give next day delivery.  Tho I probably saying to much and you should wait for them to go public within two weeks.

Will they have actual product in stock ready to ship on launch?


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: shad on March 18, 2012, 06:38:33 AM
i was running the X6500 on an ARM device with MPBM
i managed it on openwrt without any compile work, the only problem i see is getting an raspberry

RS Components always writes me that at the moment the only sell to companys
so if you have an wlan-router with an usb port flash it with openwrt, you don't need a fast cpu, most work is done bei the fpga


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: blackup on March 18, 2012, 03:48:33 PM
i only skimmed the OP, but could there be some way of magically running this off a jailbroken IOS device? something like ITouch>ITouch USB> USB Hub>BFL.
i know someone would have to make custom drivers or something of the sort.
OOOOHHH Brainstorm! DD-wrt/Openwrt Router?

sorry if that doenst have anything to do with Rasberry PI/Fpga's, my line of thought was getting a BFL single up and running using the least amount of power possible


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: Sheep on March 18, 2012, 04:39:54 PM
It's still a good idea, but I planned on getting a Rpi anyway. So I just thought it would be cool to incorporate both of my projects into one.


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: Sheep on March 18, 2012, 06:28:51 PM
i only skimmed the OP, but could there be some way of magically running this off a jailbroken IOS device? something like ITouch>ITouch USB> USB Hub>BFL.
i know someone would have to make custom drivers or something of the sort.
OOOOHHH Brainstorm! DD-wrt/Openwrt Router?

sorry if that doenst have anything to do with Rasberry PI/Fpga's, my line of thought was getting a BFL single up and running using the least amount of power possible

I doubt even a jailbroken Itouch would ever have mining software made for it.


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: matthewh3 on March 18, 2012, 11:43:36 PM
i only skimmed the OP, but could there be some way of magically running this off a jailbroken IOS device? something like ITouch>ITouch USB> USB Hub>BFL.
i know someone would have to make custom drivers or something of the sort.
OOOOHHH Brainstorm! DD-wrt/Openwrt Router?

sorry if that doenst have anything to do with Rasberry PI/Fpga's, my line of thought was getting a BFL single up and running using the least amount of power possible

I doubt even a jailbroken Itouch would ever have mining software made for it.

The RaspberryPi is only 5v and at ~700mA(I think) only.  So a touch over 3W and less than 4W it's still uses a lot less power than a 200W PC.


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: shad on March 19, 2012, 07:30:12 AM
the raspberry Pi is hard to get, i am trying since rls, but rs-components doesn't have that much
i think my wlan router need around 4-5watt, i am currently not mining on it because there was no webinterface for MPBM
but there is a new beta version with WebUI frontend

MPBM is the way to go for headless devices
you only have to install python and ncurses, no compiling

but i think if you want to go on ARM devices the BFL is the wrong choice


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: Sheep on March 19, 2012, 08:50:37 AM
the raspberry Pi is hard to get, i am trying since rls, but rs-components doesn't have that much
i think my wlan router need around 4-5watt, i am currently not mining on it because there was no webinterface for MPBM
but there is a new beta version with WebUI frontend

MPBM is the way to go for headless devices
you only have to install python and ncurses, no compiling

but i think if you want to go on ARM devices the BFL is the wrong choice

What is MPBM, and why shouldn't I use an ARM device?


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: pieppiep on March 19, 2012, 09:00:38 AM
Google for "MPBM bitcoin" gave me Modular Python Bitcoin Miner.

I have no idea why python won't run on an ARM device.
Maybe it uses some libraries that aren't available on ARM?


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: Sheep on March 19, 2012, 09:42:51 AM
Alright, that's pretty cool, but why do that instead of making a little Rpi rig? Besides that I'd be tough to get a Rpi.

I'm not getting my FPGA probably until months from now. Getting a Rpi should be a lot easier by that time.


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: sexystick on March 19, 2012, 02:39:46 PM
subscribing.
I've got a Raspberry Pi on the way and am very interested in introducing it to a FPGA!!


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: shad on March 21, 2012, 07:06:03 PM
the raspberry Pi is hard to get, i am trying since rls, but rs-components doesn't have that much
i think my wlan router need around 4-5watt, i am currently not mining on it because there was no webinterface for MPBM
but there is a new beta version with WebUI frontend

MPBM is the way to go for headless devices
you only have to install python and ncurses, no compiling

but i think if you want to go on ARM devices the BFL is the wrong choice

What is MPBM, and why shouldn't I use an ARM device?

i didn't mean you shouldn't use a ARM device, i think it's smart to use an ARM device
but i don't think BFL is(will) support ARM devices
you have that ARM support with MPBM which supports X6500 icarus and ztex


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: wogaut on March 21, 2012, 07:17:27 PM
the raspberry Pi is hard to get, i am trying since rls, but rs-components doesn't have that much
i think my wlan router need around 4-5watt, i am currently not mining on it because there was no webinterface for MPBM
but there is a new beta version with WebUI frontend

MPBM is the way to go for headless devices
you only have to install python and ncurses, no compiling

but i think if you want to go on ARM devices the BFL is the wrong choice

What is MPBM, and why shouldn't I use an ARM device?

i didn't mean you shouldn't use a ARM device, i think it's smart to use an ARM device
but i don't think BFL is(will) support ARM devices
you have that ARM support with MPBM which supports X6500 icarus and ztex

Isn't there ARM support for cgminer?


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: wogaut on May 24, 2012, 02:15:22 PM
Has anyone done that yet who can share their experience?


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: LordMord on May 24, 2012, 02:47:59 PM
I would really like to know if somebody got that to work.

I would try myself but is hard to get your hands on a Raspberry Pi in the moment.


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: wogaut on May 24, 2012, 03:59:42 PM
OK, here's what I got so far:
Code:
sudo apt-get update
sudo apt-get install autoconf
sudo apt-get install libtool
sudo apt-get install libncurses-dev
sudo apt-get install yasm
sudo apt-get install curl
sudo apt-get install libcurl4-openssl-dev
sudo apt-get install pkg-config
Download zip archive from https://github.com/ckolivas/cgminer
Code:
unzip ckolivas-cgminer-v2.4.1-9-gb69d735.zip 
cd ckolivas-cgminer-b69d735/
./autogen.sh
./configure --enable-bitforce
configure then quits after a while with the following errors:
Code:
./configure: line 9269: syntax error near unexpected token `PKG_CHECK_MODULES'
./configure: line 9269: `PKG_CHECK_MODULES(LIBCURL, libcurl >= 7.15.6, AC_DEFINE([CURL_HAS_SOCKOPT], [1], [Defined if version of curl supports sockopts.]),'

Any insights are appreciated!

Edit: Doing a
Code:
curl-config --version
results in
Code:
libcurl 7.21.0
so the libcurl version should work.


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: Jackbauer on May 24, 2012, 04:14:12 PM
Python will run fine on the device, its what they recommend you learn (the device is mostly meant for students). But honestly unless you try it yourself you will never know, ARM is a weird platform, some things will run fine with no issues, some things will explode.


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: wogaut on May 24, 2012, 04:16:52 PM
Python will run fine on the device, its what they recommend you learn (the device is mostly meant for students). But honestly unless you try it yourself you will never know, ARM is a weird platform, some things will run fine with no issues, some things will explode.

I'm confused, is this in response to the specific configure issues I quoted in my last post? Doesn't seem to help, sorry man.



Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: wogaut on May 24, 2012, 06:08:58 PM
OK, with the hint of P_Shep https://bitcointalk.org/index.php?topic=28402.msg919542#msg919542
and some additional command lines here's how to compile and install cgminer on your Raspberry Pi:

Note: These instructions are for Debian Squeeze Linux http://www.raspberrypi.org/downloads (http://www.raspberrypi.org/downloads). Other Linux distros may differ.

Code:
sudo apt-get update
sudo apt-get install autoconf
sudo apt-get install libtool
sudo apt-get install libncurses-dev
sudo apt-get install yasm
sudo apt-get install curl
sudo apt-get install libcurl4-openssl-dev
sudo apt-get install pkg-config
Download zip archive from https://github.com/ckolivas/cgminer
Code:
unzip ckolivas-cgminer-v2.4.1-9-gb69d735.zip 
cd ckolivas-cgminer-b69d735/
aclocal
./autogen.sh
export LIBCURL_CFLAGS='-I/usr/include/curl'
export LIBCURL_LIBS='-L/usr/lib -lcurl'
./configure --enable-bitforce
make
sudo make install

Now to run your BFL Single:
Plug it in now (may need a USB hub if you plan to also use USB kbd/mouse, I got around that with a PS/2-USB splitter).
Do a quick check if it registered with your Raspberry Pi Linux:
Code:
ls -l /dev/ttyUSB*
will show some ttyUSB device (typically ttyUSB0).
If not, check out that post: https://bitcointalk.org/index.php?topic=65879.msg915045#msg915045

Run cgminer the usual way but add the option
Code:
-S auto


Have fun!  :D


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: LordMord on May 25, 2012, 08:04:28 AM
th wogaut now i only need to get my hands on a Raspberry Pi.


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: punin on June 04, 2012, 09:24:37 PM
Has anyone gotten Raspberry Pi to work with Ztex boards?

Edit: Hashing happily away!


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: matthewh3 on June 05, 2012, 06:09:05 AM
Has anyone gotten Raspberry Pi to work with Ztex boards?

Edit: Hashing happily away!

On P2Pool?


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: jothan on June 05, 2012, 06:17:54 AM
I am doing this this, I am successfully running 6 BFL singles off of a DreamPlug with minimal CPU usage (< 2%).

Code:
cat /proc/cpuinfo 
Processor : Feroceon 88FR131 rev 1 (v5l)
BogoMIPS : 1192.75
Features : swp half thumb fastmult edsp
CPU implementer : 0x56
CPU architecture: 5TE
CPU variant : 0x2
CPU part : 0x131
CPU revision : 1

Hardware : Marvell GuruPlug Reference Board
Revision : 0000
Serial : 0000000000000000


https://www.globalscaletechnologies.com/t-dreamplugdetails.aspx


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: lafiamafia on June 05, 2012, 05:34:15 PM
what is an FPGA?


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: wogaut on June 05, 2012, 06:05:23 PM
what is an FPGA?

GIYF  :P


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: lafiamafia on June 05, 2012, 06:32:09 PM

as it turns out, it is


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: BitMinerN8 on July 26, 2012, 10:28:42 PM
I was able to get cgminer 2.5.0 running on the Pi. Thanks wogaut for the guide. I am a linux newbie and could use some help on a few commands.

1. How can you get cgminer to run in the background? I tried adding a "&" after the command but it does not seem to work. (tried sudo in front too) Example:
./cgminer -S auto -o pool:8332 -u acct -p pass &

I want to be able to keep it running and use "screen" to attach (screen -ls then screen -r PID) after I SSH to the Pi. I did a "sudo apt-get install screen", but it does not show any PID when I do a "screen -ls".

2. If I can get it to run in the background, where would the best place be to insert that command so that it starts on boot when the Pi is powered up? I found this: http://www.debian-administration.org/articles/28 but got a little confused and figured there might be a specific file to put it in?

Thanks for any hints.



Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: wogaut on July 26, 2012, 10:58:12 PM
Glad my guide is of use.

I noticed that cgminer doesn't like I/O redirections (like the '&' at the end).
When putting the '&' at the end without anything, it takes it as a command line parameter and fails.
When using '`' quotes for the cgminer command before appending the '&', it will run the CPU near 100% on the RPi.

The best I found is to put your cgminer command line into a script (e.g. startminer.script) that you can access from within a startup file.
Make sure your script is executable:
chmod a+x startminer.script

I shamelessly put it at the end of /etc/rc.local using the screen command (so rc.local would not hang there):

screen -dmS miner /home/pi/startminer.script




Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: BitMinerN8 on July 26, 2012, 11:59:00 PM
Glad my guide is of use.

I noticed that cgminer doesn't like I/O redirections (like the '&' at the end).
When putting the '&' at the end without anything, it takes it as a command line parameter and fails.
When using '`' quotes for the cgminer command before appending the '&', it will run the CPU near 100% on the RPi.

The best I found is to put your cgminer command line into a script (e.g. startminer.script) that you can access from within a startup file.
Make sure your script is executable:
chmod a+x startminer.script

I shamelessly put it at the end of /etc/rc.local using the screen command (so rc.local would not hang there):

screen -dmS miner /home/pi/startminer.script
I was able to create the script and launch it with screen command above, but it looked like it was not working on boot. (sudo nano /etc/rc.local) added before the exit 0. (sudo reboot) Then I did a ps -e -f and found it was running. When I put it after the exit 0 it did not seem to work.  :-\

(I'm sure you know already, this is for others that might be following along...)
You need to sudo and then it works:
Code:
pi@raspberrypi ~ $ screen -ls
No Sockets found in /var/run/screen/S-pi.

pi@raspberrypi ~ $ sudo screen -ls
There is a screen on:
        1428.miner      (26/07/12 16:26:54)     (Detached)
1 Socket in /var/run/screen/S-pi.

pi@raspberrypi ~ $ sudo screen -r 1428
Bingo! It connects fine, CTRL-A, D and it disconnects. Exactly what I wanted.  ;D Thank you!

Please send me your address so I can donate.  8)


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: wogaut on July 27, 2012, 03:44:08 PM
Yes, before the exit statement, otherwise it would be ignored.

Glad it works for you!





Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: BitMinerN8 on August 12, 2012, 03:07:43 AM
What is the max number of BFL Single anyone has running on a Pi?  :D


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: btrash on August 12, 2012, 01:33:22 PM
I thought this was done already with some of the prebuilt FPGA out there


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: BitMinerN8 on August 12, 2012, 01:37:15 PM
I thought this was done already with some of the prebuilt FPGA out there

Oh, I have it working with 3, but it started getting very unresponsive. I was going to add another 2 and see if it could handle it, but I need a bigger USB hub with more ports. I was just asking to save time if anyone had hit a wall on usability.


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: Jezzz on August 14, 2012, 07:38:50 PM
Going to try and set this up with 10 BFL singles tonight or tomorrow.  I'll post back with results.


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: BitMinerN8 on August 14, 2012, 09:23:50 PM
Going to try and set this up with 10 BFL singles tonight or tomorrow.  I'll post back with results.

Well, let me know if it works for you. For me two work great, three feels like a spinning top, seems to get unresponsive after a while. When I start cgminer it sometimes hangs when starting. I am able to CTRL-C and it will quit. Restarting it and it's good for a while. It's seems that if it's over an hour or two any changes will make it "hang", like enable/disable a pool. I had three running over 48 hours, but as soon as I did something to it, bam... down like a domino. So since I had more Pi's I just put two on each. Also, the 10 port USB hub that worked great on the PC was not happy at all on the Pi. Strange... still tinkering with it though.

It's still awesome to see three little black boxes (2 BFL, 1 Pi) generating ~1.6GHash with such little power and heat. I hope it will run a Jalapeņo or an SC Single.  8)

Also, if you are looking for a great case for the Pi this one is very nice: (Have 4, work great, quality)
http://builttospecstore.storenvy.com/products/404262-raspberry-pi-enclosure-kit


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: Jezzz on August 15, 2012, 12:56:59 AM
Result:  L33T!

The pi hammers out 10 BFLs like a champ.  No issues whatsoever.  I'll keep monitoring it tonight and tomorrow, but so far it's a glowing success.


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: wogaut on August 15, 2012, 02:24:23 AM
Going to try and set this up with 10 BFL singles tonight or tomorrow.  I'll post back with results.

Well, let me know if it works for you. For me two work great, three feels like a spinning top, seems to get unresponsive after a while. When I start cgminer it sometimes hangs when starting. I am able to CTRL-C and it will quit. Restarting it and it's good for a while. It's seems that if it's over an hour or two any changes will make it "hang", like enable/disable a pool. I had three running over 48 hours, but as soon as I did something to it, bam... down like a domino. So since I had more Pi's I just put two on each. Also, the 10 port USB hub that worked great on the PC was not happy at all on the Pi. Strange... still tinkering with it though.

It's still awesome to see three little black boxes (2 BFL, 1 Pi) generating ~1.6GHash with such little power and heat. I hope it will run a Jalapeņo or an SC Single.  8)

Also, if you are looking for a great case for the Pi this one is very nice: (Have 4, work great, quality)
http://builttospecstore.storenvy.com/products/404262-raspberry-pi-enclosure-kit


I prefer either that case:
https://www.modmypi.com/shop/raspberry-pi-cases/raspberry-pi-case-white
or that case (which I use):
http://www.shapeways.com/model/486999/

The Pi should be able to handle a large number of BFL Singles, if you use 'top' to look at CPU usage, there should be no more than a few percent usage for 1 or 2 Singles.

Some people have reported that certain USB hubs seem to give hardware issues.

One thing I noticed that pushes CPU load to 99% is trying to redirect stdio (e.g. using the '&' operator) to /dev/null on cgminer.

But the mere fact that you have several Singles mining should not be the issue.

@Jezzz: Thanks for the test results, that's great to hear!



Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: BitMinerN8 on August 15, 2012, 03:13:25 AM
Result:  L33T!

The pi hammers out 10 BFLs like a champ.  No issues whatsoever.  I'll keep monitoring it tonight and tomorrow, but so far it's a glowing success.

That's good to hear, my issues might be related to the USB hub then. If you don't mind sharing, what make/model are you using?


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: Jezzz on August 15, 2012, 02:00:11 PM
Result:  L33T!

The pi hammers out 10 BFLs like a champ.  No issues whatsoever.  I'll keep monitoring it tonight and tomorrow, but so far it's a glowing success.

That's good to hear, my issues might be related to the USB hub then. If you don't mind sharing, what make/model are you using?

This one:

http://www.amazon.com/Satechi-Power-Adapter-Control-Switches/dp/B0051PGX2I/ref=sr_1_6?ie=UTF8&qid=1345039001&sr=8-6&keywords=usb+hub (http://www.amazon.com/Satechi-Power-Adapter-Control-Switches/dp/B0051PGX2I/ref=sr_1_6?ie=UTF8&qid=1345039001&sr=8-6&keywords=usb+hub)


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: BitMinerN8 on August 15, 2012, 02:05:36 PM
Result:  L33T!

The pi hammers out 10 BFLs like a champ.  No issues whatsoever.  I'll keep monitoring it tonight and tomorrow, but so far it's a glowing success.

That's good to hear, my issues might be related to the USB hub then. If you don't mind sharing, what make/model are you using?

This one:

http://www.amazon.com/Satechi-Power-Adapter-Control-Switches/dp/B0051PGX2I/ref=sr_1_6?ie=UTF8&qid=1345039001&sr=8-6&keywords=usb+hub (http://www.amazon.com/Satechi-Power-Adapter-Control-Switches/dp/B0051PGX2I/ref=sr_1_6?ie=UTF8&qid=1345039001&sr=8-6&keywords=usb+hub)
Ordered, thanks.  ;)


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: bitboyben on November 04, 2012, 01:46:06 AM
Any information as to which ones to avoid?


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: bitcoindaddy on November 06, 2012, 02:50:26 PM
Any information as to which ones to avoid?

Here you go:

http://elinux.org/RPi_VerifiedPeripherals#Powered_USB_Hubs (http://elinux.org/RPi_VerifiedPeripherals#Powered_USB_Hubs)


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: bitboyben on November 06, 2012, 04:55:15 PM
You sir earned a cookie!


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: Ginsley on November 06, 2012, 07:10:45 PM
Hi,

i have no more clue - the biggest problem i think is, that i am not used to Linux^^
I used the instructions described here to install cgminer on my RPi with Wheezy.
So far it worked (besides smaller problems like "libusb is not installed" while running ./configure --enable-ztex -> libusb-dev was installed, but after installing libusb-1.0-0 this worked)

I havnt got any ttyUSB* in my /dev folder - so i followed the further modprobe instructions and got a ttyUSB0 in the folder.

Just thought i am lucky and can mine now - but cgminer just says "No devices detected"

Does anyone know this problem and can help me? It would be to nice if i could get my board running on the RPi.

I am using a RPi with 512MB ram, the newest Wheezy (from 28th octobre) and my ZTex 1.15x is noticed by dmesg.
I downloaded the version of cgminer linked in the post here (landed on cgminer-master branch).
I tried to install BFGMiner in hope this will work but i cant do ./autogen.sh cause it says it could not find git.


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: bitcoindaddy on November 07, 2012, 02:08:53 PM
You sir earned a cookie!
No problem, glad to help.


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: bitcoindaddy on November 07, 2012, 02:15:33 PM
Hi,

i have no more clue - the biggest problem i think is, that i am not used to Linux^^
I used the instructions described here to install cgminer on my RPi with Wheezy.
So far it worked (besides smaller problems like "libusb is not installed" while running ./configure --enable-ztex -> libusb-dev was installed, but after installing libusb-1.0-0 this worked)

I havnt got any ttyUSB* in my /dev folder - so i followed the further modprobe instructions and got a ttyUSB0 in the folder.

Just thought i am lucky and can mine now - but cgminer just says "No devices detected"

Does anyone know this problem and can help me? It would be to nice if i could get my board running on the RPi.

I am using a RPi with 512MB ram, the newest Wheezy (from 28th octobre) and my ZTex 1.15x is noticed by dmesg.
I downloaded the version of cgminer linked in the post here (landed on cgminer-master branch).
I tried to install BFGMiner in hope this will work but i cant do ./autogen.sh cause it says it could not find git.

Does dmesg tell you what device the ztex shows up as ?  because you can specify that device on the cgminer command line.  Make sure libusb-dev is installed for ztex auto detection as well as libudev-dev:

sudo apt-get install libusb-dev
sudo apt-get install libudev-dev


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: Ginsley on November 07, 2012, 04:39:39 PM
Hi,

dmesg | grep -i ztex gives the following output
[  867.285970] usb 1-1.3.3: Manufacturer: ZTEX

dmesg | grep -i vendor gives that output
[  949.549067] usb 1-1.3.4.4: New USB device found, idVendor=046a, idProduct=0023

After doing
sudo modprobe ftdi_sio vendor=0x221a product=0x0100
i get a ttyUSB0 in the /dev folder and i do
sudo chmod a+rw /dev/ttyUSB*

The packages libusb-dev and libudev-dev are installed as the newest version (apt-get says that).

So far it looks right and from the tutorials it should work. But cgminer just says
"All devices disabled, cannot mine!"

How do i specify the device on the commandline? Seems to be my last hope before trying it with Debian Squeeze

EDIT:
I just found out how to specify a device - it should be
cgminer -S /dev/ttyUSB0 or
cgminer --scan-serial /dev/ttyUSB0

But cgminer just says this is an unrecognized option :/ Can it be i have a wrong cgminer-version or something?
cgminer -V says its cgminer 2.9.1


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: bitcoindaddy on November 08, 2012, 05:59:27 PM
Hi,

dmesg | grep -i ztex gives the following output
[  867.285970] usb 1-1.3.3: Manufacturer: ZTEX

dmesg | grep -i vendor gives that output
[  949.549067] usb 1-1.3.4.4: New USB device found, idVendor=046a, idProduct=0023

After doing
sudo modprobe ftdi_sio vendor=0x221a product=0x0100
i get a ttyUSB0 in the /dev folder and i do
sudo chmod a+rw /dev/ttyUSB*

The packages libusb-dev and libudev-dev are installed as the newest version (apt-get says that).

So far it looks right and from the tutorials it should work. But cgminer just says
"All devices disabled, cannot mine!"

How do i specify the device on the commandline? Seems to be my last hope before trying it with Debian Squeeze

EDIT:
I just found out how to specify a device - it should be
cgminer -S /dev/ttyUSB0 or
cgminer --scan-serial /dev/ttyUSB0

But cgminer just says this is an unrecognized option :/ Can it be i have a wrong cgminer-version or something?
cgminer -V says its cgminer 2.9.1

Did you compile the code yourself or download a binary? Was is compiled with the option to recognize the ztex?


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: beekeeper on November 08, 2012, 06:19:17 PM
I had lot of issues with mine, the filesystem kept getting corrupted when I overloaded USB ports. After some investigation I found that USB hub design its crap, you need to bridge polyfuses and add a big, low ESR, electrolytic capacitor, in order to avoid power spikes caused by USB devices. Like this:

http://theiopage.blogspot.nl/

Also try to add a small ceramic cap (100nF) on SD card power supply pins.


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: bitcoindaddy on November 09, 2012, 03:10:18 PM
If I manage to get one of the ASIC devices sent to me, I'll probably run it on a PC for the first couple weeks - just to make sure I milk as much coin from it as possible. I don't have any history with the raspberry pi and won't trust it until I see it run for days at a time without problems.


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: Ginsley on November 10, 2012, 08:56:31 PM
Hi,

dmesg | grep -i ztex gives the following output
[  867.285970] usb 1-1.3.3: Manufacturer: ZTEX

dmesg | grep -i vendor gives that output
[  949.549067] usb 1-1.3.4.4: New USB device found, idVendor=046a, idProduct=0023

After doing
sudo modprobe ftdi_sio vendor=0x221a product=0x0100
i get a ttyUSB0 in the /dev folder and i do
sudo chmod a+rw /dev/ttyUSB*

The packages libusb-dev and libudev-dev are installed as the newest version (apt-get says that).

So far it looks right and from the tutorials it should work. But cgminer just says
"All devices disabled, cannot mine!"

How do i specify the device on the commandline? Seems to be my last hope before trying it with Debian Squeeze

EDIT:
I just found out how to specify a device - it should be
cgminer -S /dev/ttyUSB0 or
cgminer --scan-serial /dev/ttyUSB0

But cgminer just says this is an unrecognized option :/ Can it be i have a wrong cgminer-version or something?
cgminer -V says its cgminer 2.9.1

Did you compile the code yourself or download a binary? Was is compiled with the option to recognize the ztex?

I did it this way:

Code:
unzip cgminer-master
cd cgminer-master
aclocal
./autogen.sh
export LIBCURL_CFLAGS='-I/usr/include/curl'
export LIBCURL_LIBS='-L/usr/lib -lcurl'
./configure --enable-ztex
make
sudo make install

I followed the instructions from one of the posts in this thread. Its on page two - there is a link to cgminer too, i followed it and got the cgminer-master.zip. Just dont know, if its right or wrong.


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: haarts on November 10, 2012, 10:05:26 PM
I believe it is possible; I'm certainly going to try it. Currently I'm following this post: https://bitcointalk.org/index.php?topic=121253.0
Be sure to add
Code:
deb http://backports.debian.org/debian-backports squeeze-backports main
to
Code:
/etc/apt/sources.list


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: ChipGeek on November 11, 2012, 03:57:31 AM
I also wrote a guide (with LOTS of help) for running cgminer on a R-Pi here:
https://bitcointalk.org/index.php?topic=28402.msg1229746#msg1229746 (https://bitcointalk.org/index.php?topic=28402.msg1229746#msg1229746)


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: Ginsley on November 12, 2012, 04:58:47 PM
Hi ChipGeek,

i followed your instructions - my ZTex isnt found again.
Even the option -S isnt recognized by cgminer

[2012-11-12 16:56:29] cgminer: -S: unrecognized option

This time i have taken the cgminer directly from git - as you mentioned in your instructions...


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: stampz on November 12, 2012, 06:13:23 PM
Why not get an Intel Atom board? I tried one before and couldn't get it to go above 15 Watts whatever programs I ran.

http://www.newegg.com/Product/Product.aspx?Item=N82E16813121596

They're small and you can get fanless power supplies for them.

Add a small SSD disk and you have a dead quiet system.


You can put either Linux or Windows on them (I tried Windows 7 and Ubuntu 12  something)



Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: Ginsley on November 12, 2012, 07:05:01 PM
This thing looks good.
How is it powered? With a normal pc-power supply (if i have no fanless PS)?


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: ChipGeek on November 13, 2012, 02:06:05 AM
Hi ChipGeek,

i followed your instructions - my ZTex isnt found again.
Even the option -S isnt recognized by cgminer

[2012-11-12 16:56:29] cgminer: -S: unrecognized option

This time i have taken the cgminer directly from git - as you mentioned in your instructions...

Did you include the " --enable-ztex " option when you ran autogen.sh?  Like this:

sudo ./autogen.sh --enable-scrypt --enable-bitforce --enable-icarus  --enable-modminer --enable-ztex --with-libudev

If you did, I would post your questions on the cgminer thread.  (Go to the last page of the thread I posted previously.)  I do not own a Ztex but at least one of the developers (kano I think) has one and should be able to help.


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: ChipGeek on November 13, 2012, 02:07:47 AM
This thing looks good.
How is it powered? With a normal pc-power supply (if i have no fanless PS)?
It is powered with a 1A cell phone charger.  This is one I recommend as some typical phone chargers do not have enough current capability or have slightly too low voltage.
  http://adafruit.com/products/501 (http://adafruit.com/products/501)


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: dunand on November 13, 2012, 02:23:38 AM
Why not get an Intel Atom board? I tried one before and couldn't get it to go above 15 Watts whatever programs I ran.

http://www.newegg.com/Product/Product.aspx?Item=N82E16813121596

They're small and you can get fanless power supplies for them.

Add a small SSD disk and you have a dead quiet system.

You can put either Linux or Windows on them (I tried Windows 7 and Ubuntu 12  something)

Because a RPI is smaller, cost a little bit less and use less energy. But with the Atom you can power up to 4 devices without a hub and you can easily power it with the same PSU you use to power your FPGA/ASIC miners. I am asking myself the same question.


Title: Re: Running an FPGA on Raspberry Pi, possible?
Post by: stampz on November 14, 2012, 02:24:33 PM
The atoms I tested had som small internal power-pcb and was powered by a laptop supply.

It might be a good idea to get the power supply from the same vendor, I had a weird problem with one board refusing to start up at all with a another seemingly identical psu.