Bitcoin Forum
November 18, 2024, 01:28:27 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Can't get a Technobit HEX16 on a Raspberry with Raspbian / Debian to work  (Read 2772 times)
sbogovac (OP)
Legendary
*
Offline Offline

Activity: 2744
Merit: 1193


I don't believe in denial.


View Profile
January 11, 2014, 03:13:05 PM
 #1

Dear readers,

After a substantial amount of time on this forum (and others) I tried to get my Technobit HEX16 to work on a Raspberry. It works on a Windows machine in combination with HEXminer but I am not impressed by it's stability...

Being a total newbie on Linux I followed several "tutorials" I found on the fora. The one I had the "best" result with (and being quoted by others as working) is the one described by 2GOOD [https://bitcointalk.org/index.php?topic=303538.msg3371198#msg3371198] (BIG thank you for that one 2GOOD, BTW!).

But after I:

sudo apt-get update

and I:

sudo apt-get install autoconf yasm pkg-config make libusb-1.0-0-dev libusb-1.0-0 libcurl4-openssl-dev libncurses5-dev libudev-dev

succesfully, then I:

Download the build cgminer-hex16a-3.6.1.tar.gz with: wget https://dl.dropboxusercontent.com/u/8082585/cg/cgminer-hex16a-3.6.1.tar.gz  

I extract the archive with: tar -xvf cgminer-hex16a-3.6.1.tar.gz

But the tutorial then says to "Edit cgminer.conf - it is preconfigured for speeds 480Mhz @ 1440mV"
I have no idea what to do so I type: "edit cgminer.conf" and all it says is:

Warning: unknown mime-type for "cgminer.conf" -- using "application/octet-stream"
Error: no "edit" mailcap rules found for type "application/octet-stream"

I change directory by: cd cgminer-hex16a-3.6.1 and try again, but with the same result

Assuming I need some sort of editor to do this AND assuming that the preconfigured file should be OK for now I run cgminer with:
sudo ./cgminer -c ./cgminer.conf

But I get this message:
./cgminer: 1: ./cgminer: Syntax error: word unexpected (expecting ")")

Undeterred I continue with the tutorial (thinking maybe I should run the patch before this actually works), and I: cd

Then I: apt-get install autoconf libtool libcurl4-openssl-dev libncurses5-dev pkg-config yasm make

AND HERE IT STOPS FOR ME WITH THE MESSAGE:
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?



Just to be complete, the rest of the tutorial says to:
wget https://github.com/ckolivas/cgminer/archive/v3.6.1.tar.gz
tar -xvf v3.6.1.tar.gz
cd cgminer-3.6.1
wget https://dl.dropboxusercontent.com/u/8082585/cg/cgminer_3_6_1_rev_fe5da9672767e18116444dad18db54638936490a.patch
patch < cgminer_3_6_1_rev_fe5da9672767e18116444dad18db54638936490a.patch
./autogen.sh --disable-opencl --disable-adl --enable-avalon --enable-hexminer --enable-bflsc --enable-icarus
make
sudo ./cgminer -n
to check the HEX board is detected

Could you please help me get this Technobit HEX16 on a Raspberry with a clean install of Raspbian / Debian to work?

0x7442A5c37E513D335F53843cD20c00F77eAC7867
sbogovac (OP)
Legendary
*
Offline Offline

Activity: 2744
Merit: 1193


I don't believe in denial.


View Profile
January 14, 2014, 12:16:09 PM
 #2

Problem solved!

Start the command where I get stuck with "sudo" too, et voila!

Then I encountered another problem with the missing cgminer.conf file.

I edited that (to include my miner-worker details) in the GUI and copied it from the directory cgminer-hex16a-3.6.1 to the directory cgminer-3.6.1

In the directory cgminer-3.6.1 i ran cgminer with: sudo ./cgminer -c ./cgminer.conf

Works like a charm, even with another Butterfly labs miner connected next to the Technobit one.

Enjoy!

0x7442A5c37E513D335F53843cD20c00F77eAC7867
sbogovac (OP)
Legendary
*
Offline Offline

Activity: 2744
Merit: 1193


I don't believe in denial.


View Profile
January 14, 2014, 01:17:04 PM
 #3

Oh, and you start the GUI with the command: startx

0x7442A5c37E513D335F53843cD20c00F77eAC7867
sbogovac (OP)
Legendary
*
Offline Offline

Activity: 2744
Merit: 1193


I don't believe in denial.


View Profile
January 20, 2014, 08:12:52 PM
 #4

In the mean time, this is what worked for me, both with the Technobit as well as the Butterflylabs ASIC (apart and together):

Code:
sudo apt-get update

sudo apt-get install autoconf yasm pkg-config make libusb-1.0-0-dev libusb-1.0-0 libcurl4-openssl-dev libncurses5-dev libudev-dev

wget https://dl.dropboxusercontent.com/u/8082585/cg/cgminer-hex16a-3.6.1.tar.gz 

tar -xvf cgminer-hex16a-3.6.1.tar.gz

sudo apt-get install autoconf libtool libcurl4-openssl-dev libncurses5-dev pkg-config yasm make

wget https://github.com/ckolivas/cgminer/archive/v3.6.1.tar.gz

tar -xvf v3.6.1.tar.gz

cd cgminer-3.6.1

wget https://dl.dropboxusercontent.com/u/8082585/cg/cgminer_3_6_1_rev_fe5da9672767e18116444dad18db54638936490a.patch

patch < cgminer_3_6_1_rev_fe5da9672767e18116444dad18db54638936490a.patch

./autogen.sh --disable-opencl --disable-adl --enable-avalon --enable-hexminer --enable-bflsc --enable-icarus

CFLAGS="-O2 -Wall -march=native" ./configure --disable-opencl --disable-adl --enable-avalon --enable-hexminer --enable-bflsc --enable-icarus

make

sudo ./cgminer -n

wget https://dl.dropboxusercontent.com/u/42933939/cgminer.conf

nano cgminer.conf

sudo ./cgminer -c ./cgminer.conf

Happy hashing!

0x7442A5c37E513D335F53843cD20c00F77eAC7867
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!