<p>Doing it that way for an FPGA or ASIC would be very easy, once you have the FPGA or ASIC. All you need to talk to an FPGA or ASIC is a USB port and the software required is very simple. You would need a PC somewhere to act as the mining controller. Of course, if you're mining in a pool, the pool provides the controller, so no issues there.</p>

<p>Using a GPU is a bit harder -- you need a PCI-e interface. PCI-Express interface cores with Linux support are available for Linux -- they're used by some routers to interface to PCI Express mini WiFi cards. Xilinx also has an ARM-to-PCIe core with Linux drivers available. Unfortunately, at least as far as I can tell, there's no sane way to connect these to a Raspberry Pi board. You really want the PCI-Express controller combined with the ARM core or the interfacing gets difficult, ugly, and expensive.</p>

CC BY-SA 3.0
2011-12-24T02:33:14.733Z
2011-12-24T02:33:14.733Z
David Schwartz
<p>Reading this in 2017 with a chuckle.  The Pi is pretty much the defacto controller due to its low cost and energy use.  I have one running an ASIC over USB with cgminer, compiled on the Pi.</p>

<p>Some of Bitmain's Antminers use Beaglebone Blacks (TI?), I'm not sure why.  I'm in a Debian ARM mailing list and there are more little ARM machines than I can count.  Odroid comes to mind off the top of my head.  What the Pi has going for it is mostly a large userbase (over 8 million last time I checked) and the fact that Raspbian is almost perfect, I'm using it to write this.  I'm fixing to move my ASICs to a Zero since they both just need USB connections.  Cloned my SD card, set up the /boot/config.txt for the old monitor I'll use on it, I don't expect any problems.  The trouble with a Zero is that you need a mini HDMI adapter, an OTG cable, a USB hub, plus a USB to WiFi or LAN adapter.  More practical to just buy another Pi, but for $5 I had to try one.  This will be the first use I've found for it.</p>

CC BY-SA 3.0
2017-05-17T08:20:15.940Z
back in my day...! ;)
Sean Chapman
CC BY-SA 3.0
2017-05-16T00:57:50.407Z
2017-05-18T21:25:47.463Z
2017-05-18T21:25:47.463Z
Alan Corey
<p>Great summary here:</p>

<p><a href="https://www.electromaker.io/blog/article/cryptocurrency-mining-on-the-raspberry-pi-60" rel="nofollow noreferrer">https://www.electromaker.io/blog/article/cryptocurrency-mining-on-the-raspberry-pi-60</a></p>

<p>Also includes a step-by-step guide on how to mine crypto currency on the Raspberry pi</p>

CC BY-SA 3.0
2018-04-06T15:17:07.207Z
Welcome to Bitcoin! Whilst this may theoretically answer the question, [it would be preferable](//meta.stackoverflow.com/q/8259) to include the essential parts of the answer here, and provide the link for reference.
Ava Chow
CC BY-SA 3.0
2018-04-06T11:38:36.230Z
2018-04-06T11:38:36.230Z
richelliot
<p>Yes and no.</p>

<p>As far as FPGAs are concerned, I see no reason why you should not, technically, be able to handle a getwork on one of these and pass the work units to one or more FPGAs via USB.</p>

<p>These units do not, however, have a PCIe slot nor do they have any connectors which, to my knowledge, are capable of connecting to an external PCIe enclosure box, so GPU mining is out of the question.</p>

<p>The real problem you're likely to run into is software. The Raspberry Pi uses an ARM processor and runs on a custom-compiled version of Debian. All software running on the device will have to be compiled from source (since most projects don't just release ARM-compatible executables) and even then some software simply might not work. I'm not an FPGA expert by any means so I've got no idea what kind of software is required to speak to that particular hardware, but I do at least know that software <em>is</em> required and you'll probably have to do some tweaking to make that hardware work.</p>

<p>So yes, it's technically feasible, but don't expect it to be easy (or done for you).</p>

CC BY-SA 3.0
2011-12-24T00:07:17.523Z
This is what I thought also. I really hope they release a PCI-e breakout for it, but that really is wishful thinking. The project is already amazing as it is. 

As for recompiling programs, I think you're right that it is completely feasible to run a FPGA since most FPGA/Bitcoin related projects are open source :)
Sean Chapman
CC BY-SA 3.0
2011-12-24T00:15:20.973Z
Agreed, I just wanted to make sure folks were prepared for the amount/level of crazy they're about to be in for grabbing their first ARM platform. You start off thinking "Oh, I'll just compile Bitcoin from source" and then it relies on library X, which relies on Y Z and Q, which each have 7 libraries they rely on none of which have ARM binaries and all of which have to be compiled from source. Total culture shock for those whose primary Linux experience was Ubuntu on i386-compatible hardware.
David Perry
CC BY-SA 3.0
2011-12-24T01:13:36.807Z
Yeah, I admit I'm not looking forward to recompiling everything... But it's possible! I don't actually own a FPGA yet sadly.
Sean Chapman
CC BY-SA 3.0
2011-12-23T23:53:17.967Z
2011-12-23T23:53:17.967Z
David Perry
<p><a href="http://www.bbc.co.uk/news/technology-16316439">Raspberry Pi $25/£16 PC article</a></p>

<p>I saw this article today and it looks like a really interesting development in budget computing.</p>

<p>It's a $25 barebones computer that runs Linux, and can play games like Quake 3 Arena with no problems.</p>

<p>My question is would we be able to run GPUs/FPGAs with it?</p>

<p>I'm guessing FPGAs are feasible since there are USB ports to connect them to, but what about GPUs?</p>

<p><strong>NOTE: The Raspberry Pi would only getwork and pass it to the FPGAs/GPUs. I didn't mean mining directly on the Raspberry Pi itself!</strong></p>

CC BY-SA 3.0
2011-12-23T23:19:26.407Z
Good clarification
Gary
CC BY-SA 3.0
2011-12-23T23:27:51.143Z
Yeah I thought I best put that before people start posting saying "this won't even get 1Mhash/s"
Sean Chapman
<mining-setup><mining-hardware><raspberry-pi><gpu-mining>
Could the $25/£16 Raspberry Pi computer be used to run mining equipment?
Sean Chapman
# Could the $25/£16 Raspberry Pi computer be used to run mining equipment?

(Asked by: username_0 on 2011-12-23)

[Raspberry Pi $25/£16 PC article](http://www.bbc.co.uk/news/technology-16316439)

I saw this article today and it looks like a really interesting development in budget computing.

It's a $25 barebones computer that runs Linux, and can play games like Quake 3 Arena with no problems.

My question is would we be able to run GPUs/FPGAs with it?

I'm guessing FPGAs are feasible since there are USB ports to connect them to, but what about GPUs?

**NOTE: The Raspberry Pi would only getwork and pass it to the FPGAs/GPUs. I didn't mean mining directly on the Raspberry Pi itself!**

**Tags:** mining-setup, mining-hardware, raspberry-pi, gpu-mining

> **Comments:**
> **username_1**: Good clarification  
> **username_0**: Yeah I thought I best put that before people start posting saying "this won't even get 1Mhash/s"  

---

## 4 answers

### Answer by username_6 on 2011-12-23. Score: 7 | Accepted answer

Yes and no.

As far as FPGAs are concerned, I see no reason why you should not, technically, be able to handle a getwork on one of these and pass the work units to one or more FPGAs via USB.

These units do not, however, have a PCIe slot nor do they have any connectors which, to my knowledge, are capable of connecting to an external PCIe enclosure box, so GPU mining is out of the question.

The real problem you're likely to run into is software. The Raspberry Pi uses an ARM processor and runs on a custom-compiled version of Debian. All software running on the device will have to be compiled from source (since most projects don't just release ARM-compatible executables) and even then some software simply might not work. I'm not an FPGA expert by any means so I've got no idea what kind of software is required to speak to that particular hardware, but I do at least know that software *is* required and you'll probably have to do some tweaking to make that hardware work.

So yes, it's technically feasible, but don't expect it to be easy (or done for you).

> **Comments:**
> **username_0**: This is what I thought also. I really hope they release a PCI-e breakout for it, but that really is wishful thinking. The project is already amazing as it is.   As for recompiling programs, I think you're right that it is completely feasible to run a FPGA since most FPGA/Bitcoin related projects are open source :)  
> **username_6**: Agreed, I just wanted to make sure folks were prepared for the amount/level of crazy they're about to be in for grabbing their first ARM platform. You start off thinking "Oh, I'll just compile Bitcoin from source" and then it relies on library X, which relies on Y Z and Q, which each have 7 libraries they rely on none of which have ARM binaries and all of which have to be compiled from source. Total culture shock for those whose primary Linux experience was Ubuntu on i386-compatible hardware.  
> **username_0**: Yeah, I admit I'm not looking forward to recompiling everything... But it's possible! I don't actually own a FPGA yet sadly.  

---

### Answer by username_2 on 2011-12-24. Score: 4

Doing it that way for an FPGA or ASIC would be very easy, once you have the FPGA or ASIC. All you need to talk to an FPGA or ASIC is a USB port and the software required is very simple. You would need a PC somewhere to act as the mining controller. Of course, if you're mining in a pool, the pool provides the controller, so no issues there.

Using a GPU is a bit harder -- you need a PCI-e interface. PCI-Express interface cores with Linux support are available for Linux -- they're used by some routers to interface to PCI Express mini WiFi cards. Xilinx also has an ARM-to-PCIe core with Linux drivers available. Unfortunately, at least as far as I can tell, there's no sane way to connect these to a Raspberry Pi board. You really want the PCI-Express controller combined with the ARM core or the interfacing gets difficult, ugly, and expensive.


---

### Answer by username_3 on 2017-05-16. Score: 2

Reading this in 2017 with a chuckle. The Pi is pretty much the defacto controller due to its low cost and energy use. I have one running an ASIC over USB with cgminer, compiled on the Pi.

Some of Bitmain's Antminers use Beaglebone Blacks (TI?), I'm not sure why. I'm in a Debian ARM mailing list and there are more little ARM machines than I can count. Odroid comes to mind off the top of my head. What the Pi has going for it is mostly a large userbase (over 8 million last time I checked) and the fact that Raspbian is almost perfect, I'm using it to write this. I'm fixing to move my ASICs to a Zero since they both just need USB connections. Cloned my SD card, set up the /boot/config.txt for the old monitor I'll use on it, I don't expect any problems. The trouble with a Zero is that you need a mini HDMI adapter, an OTG cable, a USB hub, plus a USB to WiFi or LAN adapter. More practical to just buy another Pi, but for $5 I had to try one. This will be the first use I've found for it.

> **Comments:**
> **username_0**: back in my day...! ;)  

---

### Answer by username_4 on 2018-04-06. Score: 0

Great summary here:

<https://www.electromaker.io/blog/article/cryptocurrency-mining-on-the-raspberry-pi-60>

Also includes a step-by-step guide on how to mine crypto currency on the Raspberry pi

> **Comments:**
> **username_5**: Welcome to Bitcoin! Whilst this may theoretically answer the question, [it would be preferable](//meta.stackoverflow.com/q/8259) to include the essential parts of the answer here, and provide the link for reference.  

---

