Post
Topic
Board CPU/GPU Bitcoin mining hardware
Re: Raspberry Pi alternatives that can run multiple BFL singles, ASICs ?
by
LWCoder
on 13/11/2012, 16:11:55 UTC
Good news!  Smiley
I bought a few hackberry days ago, i think they will be delivered this week.
Please can you give a more information about Ubuntu and cgminer version and how you compiled ftdi_sio?  Wink


This should be everything, but if I missed something in my notes please let me know.

Ubuntu OS

Follow the instructions from the first post of this thread to download and install the OS image.

System Setup

Once Ubuntu is booting run the following commands on the Hackberry.

Code:
#Remove web and sql servers from base image
sudo apt-get remove lighttpd mysql-server
sudo apt-get autoremove

#Update system
sudo apt-get update
sudo apt-get upgrade

#Install tools
sudo apt-get install git autoconf

#Install libs for cgminer
sudo apt-get install libcurl4-openssl-dev libncurses5-dev pkg-config libtool libudev-dev

#Retrieve cgminer source
cd /opt
git clone https://github.com/ckolivas/cgminer.git

#Compile and Install cgminer
cd /opt/cgminer
./autogen.sh --enable-bitforce
make
sudo make install

#Create the modules directory used later
mkdir -p /lib/modules/3.0.36+/kernel/drivers/usb/serial

Compile Modules
I followed these instruction for compiling the kernel and modules on a separate linux server. Grab the .config file from here instead of generating a new one. (If needed I could possibly provide the ones I compiled.)

Once you have finished the compile instruction the only two files you need are ftdi_sio.ko and usbserial.ko. With the Hackberry still on I did the following.

On the Linux Server
Code:
scp output/lib/modules/3.0.36+/kernel/drivers/usb/serial/ftdi_sio.ko linaro@HACKBERRY_IP_ADDRESS:/lib/modules/3.0.36+/kernel/drivers/usb/serial/
scp output/lib/modules/3.0.36+/kernel/drivers/usb/serial/usbserial.ko linaro@HACKBERRY_IP_ADDRESS:/lib/modules/3.0.36+/kernel/drivers/usb/serial/

On the Hackberry
Code:
sudo depmod -a

WiFi
My access point uses WPA2-PSK so your settings may be different.

Add to the end of /etc/network/interfaces
Code:
auto wlan2
iface wlan2 inet dhcp
wpa-conf /etc/wpa.conf

Create new file /etc/wpa.conf
Code:
network={
        ssid="MY_ESSID"
        key_mgmt=WPA-PSK
        psk="MY_PASSPHRASE"
}

Reboot the hackberry and you should be good. Let me know how it works.