Compiling cgminer for the Raspberry Pi and Butterfly Labs “Jalapeño”

These instructions are for compiling cgminer on Raspian (a debian distro for the Raspberry Pi).

First, dependencies have to be installed:


sudo apt-get update
sudo apt-get install build-essential git pkg-config libtool \ libcurl4-openssl-dev libncurses5-dev libudev-dev autoconf \ automake

Next clone the source files from github:

git clone https://github.com/ckolivas/cgminer.git

Once you have the source files, move to that directory and compile the code:

cd cgminer
./autogen.sh
CFLAGS="-O2 -Wall" ./configure --enable-bflsc
make
sudo make install

All that’s left is to plug in your Jalapeño (or any other BFL device) and run cgminer with:

./cgminer

If you encounter any problems, it’s likely because your build environment is different (or I forgot something). Leave a comment or message me and I can try to help.