{"id":252,"date":"2016-09-30T17:52:04","date_gmt":"2016-09-30T17:52:04","guid":{"rendered":"http:\/\/www.talkcrypto.org\/blog\/?p=252"},"modified":"2017-01-05T22:38:54","modified_gmt":"2017-01-05T22:38:54","slug":"how-to-build-bfgminer-for-the-alchemy-miner-from-scratch","status":"publish","type":"post","link":"https:\/\/www.talkcrypto.org\/blog\/2016\/09\/30\/how-to-build-bfgminer-for-the-alchemy-miner-from-scratch\/","title":{"rendered":"How to build bfgminer for the Alchemy miner from scratch"},"content":{"rendered":"<p><img fetchpriority=\"high\" decoding=\"async\" class=\"size-full wp-image-257 alignleft\" src=\"https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2016\/09\/2016-09-04-14.42.46-copy.jpg\" alt=\"\" width=\"226\" height=\"244\" \/>Sometimes when everything has gone wrong and nothing is working, the last resort is to build the software from scratch. It actually isn&#8217;t as hard as it sounds. Here are the steps for a raspberry pi:<\/p>\n<ul>\n<li>Grab the latest raspberry pi image by downloading the image and placing it on an 8Gb usb card.<\/li>\n<li>Connect the raspberry pi to your computer via\u00a0USB to TTL Serial Cable or with an ethernet cable.<\/li>\n<li>Run these commands<\/li>\n<\/ul>\n<pre>&gt;&gt; sudo apt-get install\r\n&gt;&gt;\u00a0sudo apt-get install build-essential autoconf automake libtool pkg-config libcurl4-gnutls-dev \r\nlibjansson-dev uthash-dev libncurses5-dev libudev-dev libusb-1.0-0-dev libevent-dev\r\n&gt;&gt; mkdir bfgminer\r\n&gt;&gt; sudo git clone --branch alcheminer_USB-Dongle_Support https:\/\/github.com\/jstefanop\/bfgminer.git\r\n&gt;&gt; cd bfgminer\r\n&gt;&gt; .\/autogen.sh\r\n&gt;&gt; sudo chmod +x .\/configure\r\n&gt;&gt; .\/configure CFLAGS=-O3 --enable-scrypt --enable-alchemist --disable-other-drivers --enable-broad-udevrules\r\n&gt;&gt; sudo make\r\n&gt;&gt; sudo make install<\/pre>\n<p>It should take about 30-60 minutes depending on if you have a fresh pi image already at hand or you need to create it and the speed of your internet.<\/p>\n<p>Reference:\u00a0https:\/\/bitcointalk.org\/index.php?topic=1468120.0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes when everything has gone wrong and nothing is working,<\/p>\n","protected":false},"author":1,"featured_media":257,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-252","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bitcoins"],"featured_image_urls":{"full":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2016\/09\/2016-09-04-14.42.46-copy.jpg",226,244,false],"thumbnail":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2016\/09\/2016-09-04-14.42.46-copy-150x150.jpg",150,150,true],"medium":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2016\/09\/2016-09-04-14.42.46-copy.jpg",226,244,false],"medium_large":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2016\/09\/2016-09-04-14.42.46-copy.jpg",226,244,false],"large":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2016\/09\/2016-09-04-14.42.46-copy.jpg",226,244,false],"1536x1536":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2016\/09\/2016-09-04-14.42.46-copy.jpg",226,244,false],"2048x2048":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2016\/09\/2016-09-04-14.42.46-copy.jpg",226,244,false],"chromenews-featured":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2016\/09\/2016-09-04-14.42.46-copy.jpg",226,244,false],"chromenews-large":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2016\/09\/2016-09-04-14.42.46-copy.jpg",226,244,false],"chromenews-medium":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2016\/09\/2016-09-04-14.42.46-copy.jpg",226,244,false]},"author_info":{"info":["seandotau"]},"category_info":"<a href=\"https:\/\/www.talkcrypto.org\/blog\/category\/bitcoins\/\" rel=\"category tag\">Bitcoins<\/a>","tag_info":"Bitcoins","comment_count":"0","_links":{"self":[{"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/posts\/252","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/comments?post=252"}],"version-history":[{"count":11,"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/posts\/252\/revisions"}],"predecessor-version":[{"id":621,"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/posts\/252\/revisions\/621"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/media\/257"}],"wp:attachment":[{"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/media?parent=252"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/categories?post=252"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/tags?post=252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}