Tutorials:ASIC Mining on Ubuntu and other Linux distros

For this tutorial, I am going to ask you to follow steps 1, 3, 9, and 10 on this tutorial: http://rdmsnippets.com/2013/03/20/bi...s-and-cgminer/

get build-essential in case you haven't already:
sudo apt-get install build-essential

Then run these commands (in the mining program directory) to complete the setup for BFL ASIC devices:

./autogen.sh
./configure --enable-bflsc
make
sudo make install

Now that you have cgminer installed (or follow an almost identical tutorial for bfgminer), you will need to make sure your device is recognized properly from the computer or the miner will readout: No devices connected, cannot mine! or something of the sort.

Download the required USB drivers from this link: http://www.ftdichip.com/Drivers/VCP.htm

To check if the drivers are loaded (tutorial derived from here: http://ftdi-usb-sio.sourceforge.net/),

run this command
lsusb | grep -i ft

and you should see a readout like this:
Bus 001 Device 031: ID 0403:6014 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC

where the 0403 is the vendor ID and 6014 is the product ID or at least in the case of my Jalapeno

run this command to manually probe for the device
modprobe ftdi_sio vendor=0x403 product=0x6014 (you may have to change the vendor or product ID for your device)

to test that it worked run this
dmesg | tail

and you should see a readout similar to this:
USB Serial support registered for FTDI USB Serial Device
ftdi_sio 1-5.6:1.0: FTDI USB Serial Device converter detected
usb 1-5.6: Detected FT8U232AM
usb 1-5.6: Number of endpoints 2
usb 1-5.6: Endpoint 1 MaxPacketSize 64
usb 1-5.6: Endpoint 2 MaxPacketSize 64
usb 1-5.6: Setting MaxPacketSize 64
usb 1-5.6: FTDI USB Serial Device converter now attached to ttyUSB0
usbcore: registered new interface driver ftdi_sio
ftdi_sio: v1.5.0:USB FTDI Serial Converters Driver

once you've loaded the drivers properly,

check to see that your device is listed under connected USB devices by running:
ls -l /dev/ttyUSB*

If it is listed, which by now there should be no chance it is not you need to change the USB permissions of the device by running:
chmod 666 /dev/ttyUSB*

Now that your device is recognized properly and you have BFGMiner or CGMiner ready to go on Ubuntu, you'll probably want to just make a quick script to run it...

open up the text editor of your choice or just go oldschool and pico it

input should be similar to this:
./bfgminer -o miningpool:port -u username.workername -p workerpass

save it as xxxxx.sh

chmod +x xxxxx.sh and/or chmod 666 xxxxx.sh

then run it ./xxxxx.sh

You should now be successfully mining on Ubuntu with BFG or CGMiner on Ubuntu

(EasyMiner to be added once linux distro or EasyMiner is available)

Bookmarks

Posting Permissions

Posting Permissions
  • You may not create new articles
  • You may edit articles
  • You may not protect articles
  • You may not post comments
  • You may not post attachments
  • You may not edit your comments