Bitcoin Forum
November 11, 2024, 02:58:42 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2  All
  Print  
Author Topic: Antminer U1 USB + raspberry PI + minepeon setup  (Read 22533 times)
rostbiffen (OP)
Member
**
Offline Offline

Activity: 69
Merit: 10


View Profile
January 07, 2014, 09:23:48 PM
Last edit: February 07, 2014, 11:23:01 AM by rostbiffen
 #1

UPDATE 2014-01-07: Latest version of Minepeon works with Antminer!

For older versions:
 
1 INSTALL MINEPEON

1.1 download minepeon from sourceforge:
http://sourceforge.net/projects/minepeon/files/release/

1.2 install minepeon to the SD-card. i used RPi-writer for MAC.

1.3 Find the IP to the PI, i logged in to my router to find the IP.



2 RECOMPILE CGMINER TO BITMAIN:S VERSION.

This will recompile the cgminer so it will work with Antminer U1 USB.

2.1 SSH to the pi using: ssh minepeon@[yourip], default password is peon.

2.2 type in the following commands: ( the autogen.sh command will take a lot of time )

sudo pacman -S git base-devel ncurses curl libusbx jre7-openjdk-headless
cd /opt/
sudo git clone https://github.com/bitmaintech/cgminer.git
cd cgminer/
sudo ./autogen.sh --enable-bmsc --enable-bitmain
sudo make install


2.3 DONE!


with this setup it will ONLY work with bitmain chips, if you want to run minepeon with other devices, for example BitFury, you need to add it to the autogen.sh command.

HellDiverUK
Hero Member
*****
Offline Offline

Activity: 1246
Merit: 501



View Profile
January 07, 2014, 09:28:26 PM
 #2

OR wait a few days until BFG supports them properly, then upgrade MinePeon the normal way...
rostbiffen (OP)
Member
**
Offline Offline

Activity: 69
Merit: 10


View Profile
January 07, 2014, 09:30:17 PM
 #3

OR wait a few days until BFG supports them properly, then upgrade MinePeon the normal way...

yes ofc, just wanted to share how i did to get it up and running. Smiley

ScorpioCoin
Newbie
*
Offline Offline

Activity: 17
Merit: 0


View Profile
January 09, 2014, 01:25:51 AM
 #4

Hi,
I just installed MinePeon on my RPi because I found your solution here. But unfortunately, it doesn't work for me.
After the first command, it gives me the following errors, any ideas?

error: failed retrieving file 'curl-7.33.0-2-armv6h.pkg.tar.xz' from mirror.archlinuxarm.org : The requested URL returned error: 404 Not Found
warning: failed to retrieve some files
error: failed retrieving file 'automake-1.14-1-any.pkg.tar.xz' from mirror.archlinuxarm.org : The requested URL returned error: 404 Not Found
warning: failed to retrieve some files
error: failed retrieving file 'bison-3.0-1-armv6h.pkg.tar.xz' from mirror.archlinuxarm.org : The requested URL returned error: 404 Not Found
warning: failed to retrieve some files
error: failed retrieving file 'util-linux-2.24-1-armv6h.pkg.tar.xz' from mirror.archlinuxarm.org : The requested URL returned error: 404 Not Found
warning: failed to retrieve some files
error: failed retrieving file 'file-5.15-1-armv6h.pkg.tar.xz' from mirror.archlinuxarm.org : The requested URL returned error: 404 Not Found
warning: failed to retrieve some files
error: failed retrieving file 'make-4.0-1-armv6h.pkg.tar.xz' from mirror.archlinuxarm.org : The requested URL returned error: 404 Not Found
warning: failed to retrieve some files
error: failed retrieving file 'pacman-4.1.2-4-armv6h.pkg.tar.gz' from mirror.archlinuxarm.org : The requested URL returned error: 404 Not Found
warning: failed to retrieve some files
error: failed retrieving file 'texinfo-5.2-1-armv6h.pkg.tar.xz' from mirror.archlinuxarm.org : The requested URL returned error: 404 Not Found
warning: failed to retrieve some files
error: failed retrieving file 'libjpeg-turbo-1.3.0-3-armv6h.pkg.tar.xz' from mirror.archlinuxarm.org : The requested URL returned error: 404 Not Found
warning: failed to retrieve some files
error: failed retrieving file 'nspr-4.10.1-2-armv6h.pkg.tar.xz' from mirror.archlinuxarm.org : The requested URL returned error: 404 Not Found
warning: failed to retrieve some files
error: failed retrieving file 'nss-3.15.2-1-armv6h.pkg.tar.xz' from mirror.archlinuxarm.org : The requested URL returned error: 404 Not Found
warning: failed to retrieve some files
error: failed to commit transaction (download library error)
Errors occurred, no packages were upgraded.


This is how i did to get antminer U1 USB to work with minepeon
 
1 INSTALL MINEPEON

1.1 download minepeon from sourceforge:
http://sourceforge.net/projects/minepeon/files/release/

1.2 install minepeon to the SD-card. i used RPi-writer for MAC.

1.3 Find the IP to the PI, i logged in to my router to find the IP.



2 RECOMPILE CGMINER TO BITMAIN:S VERSION.

This will recompile the cgminer so it will work with Antminer U1 USB.

2.1 SSH to the pi using: ssh minepeon@[yourip], default password is peon.

2.2 type in the following commands: ( the autogen.sh command will take a lot of time )

sudo pacman -S git base-devel ncurses curl libusbx jre7-openjdk-headless
cd /opt/
sudo git clone https://github.com/bitmaintech/cgminer.git
cd cgminer/
sudo ./autogen.sh --enable-bmsc --enable-bitmain
sudo make install


2.3 DONE!


with this setup it will ONLY work with bitmain chips, if you want to run minepeon with other devices, for example BitFury, you need to add it to the autogen.sh command.
errkal
Newbie
*
Offline Offline

Activity: 16
Merit: 0


View Profile
January 11, 2014, 09:30:46 AM
 #5

I found another solution for any one having this issue.

Run the following commands.

git clone -b feature\/antminer-u1-support https://github.com/nwoolls/bfgminer.git bfgminer
cd bfgminer
./autogen.sh
./configure
make
mv /opt/minepeon/bin/bfgminer /opt/minepeon/bin/bfgminerOLD
mv bfgminer /opt/minepeon/bin/bfgminer
sudo reboot

Then go into minepeon and set bfgminer as your miner, save and reboot.

Once back up your miners will be running and proper speed and you get all the graphs etc. mine are now running at around 1961.257 MH/Sec
jobe
Newbie
*
Offline Offline

Activity: 14
Merit: 0


View Profile
January 11, 2014, 05:24:10 PM
 #6

I found another solution for any one having this issue.

Run the following commands.

git clone -b feature\/antminer-u1-support https://github.com/nwoolls/bfgminer.git bfgminer
cd bfgminer
./autogen.sh
./configure
make
mv /opt/minepeon/bin/bfgminer /opt/minepeon/bin/bfgminerOLD
mv bfgminer /opt/minepeon/bin/bfgminer
sudo reboot

Then go into minepeon and set bfgminer as your miner, save and reboot.

Once back up your miners will be running and proper speed and you get all the graphs etc. mine are now running at around 1961.257 MH/Sec

Thanks, you rock!
BigJRepairs
Newbie
*
Offline Offline

Activity: 58
Merit: 0


View Profile
January 11, 2014, 07:25:00 PM
 #7

This is how i did to get antminer U1 USB to work with minepeon
 
1 INSTALL MINEPEON

1.1 download minepeon from sourceforge:
http://sourceforge.net/projects/minepeon/files/release/

1.2 install minepeon to the SD-card. i used RPi-writer for MAC.

1.3 Find the IP to the PI, i logged in to my router to find the IP.



2 RECOMPILE CGMINER TO BITMAIN:S VERSION.

This will recompile the cgminer so it will work with Antminer U1 USB.

2.1 SSH to the pi using: ssh minepeon@[yourip], default password is peon.

2.2 type in the following commands: ( the autogen.sh command will take a lot of time )

sudo pacman -S git base-devel ncurses curl libusbx jre7-openjdk-headless
cd /opt/
sudo git clone https://github.com/bitmaintech/cgminer.git
cd cgminer/
sudo ./autogen.sh --enable-bmsc --enable-bitmain
sudo make install


2.3 DONE!


with this setup it will ONLY work with bitmain chips, if you want to run minepeon with other devices, for example BitFury, you need to add it to the autogen.sh command.

I think you gotta add "sudo pacman -Syu" first? 
wzcocoon
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
January 11, 2014, 11:04:20 PM
 #8

it is now 2 days that i try to make it work but no luck

the max I ever reach is 650Mghz but on avarage it gives 500ghz it make me mad any idea why?
Blackbird0
Full Member
***
Offline Offline

Activity: 207
Merit: 100


View Profile
January 12, 2014, 12:56:20 AM
 #9

it is now 2 days that i try to make it work but no luck

the max I ever reach is 650Mghz but on avarage it gives 500ghz it make me mad any idea why?

You probably don't have the right drivers. Did you do what the OP did?
ScorpioCoin
Newbie
*
Offline Offline

Activity: 17
Merit: 0


View Profile
January 12, 2014, 01:21:10 AM
 #10

The solution here on the Minepeon forum helped me:
http://minepeon.com/forums/viewtopic.php?f=4&t=1213&start=30
lensgrabber
Newbie
*
Offline Offline

Activity: 37
Merit: 0


View Profile
January 12, 2014, 04:37:28 AM
 #11


I'm still waiting on the Pi and Antminers to get here.  Will minepeon and bitmain:s compile automatically see multiple, let's say four, Antminers or will there be more magic needed for them to work?
BigJRepairs
Newbie
*
Offline Offline

Activity: 58
Merit: 0


View Profile
January 12, 2014, 06:29:54 AM
Last edit: January 21, 2014, 03:51:50 PM by BigJRepairs
 #12

**For those still having issues, make sure you are not plugging straight into the pi
*Fresh install minepeon


Code:
sudo pacman -Syu
sudo pacman -S git base-devel ncurses curl libusbx jre7-openjdk-headless
**Hit Enter
*Hit Y
Code:
cd /opt/
sudo git clone https://github.com/bitmaintech/cgminer.git
cd cgminer/
sudo ./autogen.sh --enable-bmsc --enable-bitmain
sudo rm /opt/minepeon/bin/cgminer/
sudo make install
cd ..
sudo mv cgminer /opt/minepeon/bin/
**edit mine peon startup settings
Code:
/usr/bin/screen -dmS miner /opt/minepeon/bin/cgminer --bmsc-options 115200:20 --bmsc-freq 0781 -c /opt/minepeon/etc/miner.conf
**Reboot

*Optional if you're having issues, I made this addition to miner.conf, don't think it matters***

sudo nano /opt/minepeon/etc/miner.conf
"api-mcast-port" : "4028",

**Added step to fix Watchdog if you have to manually reboot the miner...well ever

So minepeon has watchdog built in, I'm not sure if I broke it before or if this interferes with the webgui restart/reboot. I was having a problem with the PI locking up which made the webgui inaccessible. If yours didn't break don't do this.

Code:
sudo modprobe bcm2708_wdog
echo "bcm2708_wdog" | sudo tee /etc/modules-load.d/bcm2708_wdog.conf
sudo pacman -S watchdog
sudo systemctl enable watchdog
sudo nano /etc/watchdog.conf

Here you unrem line 23 #watchdog-device = /dev/watchdog
Writeout and exit

Code:
sudo systemctl start watchdog.service


***Extra option***
Donate more than the 15 minutes this man asks for

If you're loaded an froggy, or were about to drop kick your pi down the street after wasting a Saturday
BTC
1FT5Z9Z96z8Mear6BXApkQEgUpbr8gXgxz
BigJRepairs
Newbie
*
Offline Offline

Activity: 58
Merit: 0


View Profile
January 12, 2014, 06:06:34 PM
 #13

Just wanted to add that this broke my graph on the WebUI, I'm not sure if I broke with crappy Linux skill or if it was a bug.

cd /opt/minepeon/etc/cron.d/5min
nano RECORDHashrate

change line 33:
$hashrate = $return['SUMMARY'][0]['MHSav'] * 1000
to
$hashrate = $return['SUMMARY'][0]['GHSav'] * 1000000

after you save you shouldn't have to reboot just
./RECORDHashrate

This changes the chart to GH/s as well which is more relevant now I think.
bitcoinblog
Sr. Member
****
Offline Offline

Activity: 501
Merit: 252


View Profile
January 16, 2014, 07:35:26 PM
 #14

My Stats using Two AntMiner usb with Raspberry Pi



Why i am getting too many Discard ? Any problem ? and Pool is showing less Ghash but Raspberry is showing more.

** FREE SPACE **
BigJRepairs
Newbie
*
Offline Offline

Activity: 58
Merit: 0


View Profile
January 17, 2014, 02:55:08 PM
 #15

It depends how the pool calculates your rate. I think on here it gives the full speed possible, if you subtract your hardware rejects and difficulty accepted rejects your speed is lower. Anything under 5% really isn't that bad especially if you're overclocking it. Try lowering or increasing the difficulty of your worker if you think it can go higher. If you're mining bitcoin with these anymore I'd expect a lot more DREJ coming. It's easier to setup on an altcoin then point it at bitcoin and hope for the best.
Ginsley
Full Member
***
Offline Offline

Activity: 234
Merit: 114


View Profile
January 17, 2014, 04:34:30 PM
 #16

***For those still having issues, make sure you are not plugging straight into the pi
**Fresh install minepeon
*This runs 1.7 to 2 stable, I think we should compare charts to bfg to see if it matters

sudo pacman -Syu
sudo pacman -S git base-devel ncurses curl libusbx jre7-openjdk-headless
**Hit Enter
*Hit Y
cd /opt/
sudo git clone https://github.com/bitmaintech/cgminer.git
cd cgminer/
sudo ./autogen.sh --enable-bmsc --enable-bitmain
sudo rm /opt/minepeon/bin/cgminer/
sudo make install
cd ..
sudo mv cgminer /opt/minepeon/bin/cgminer
**edit mine peon startup settings
/usr/bin/screen -dmS miner /opt/minepeon/bin/cgminer/cgminer --bmsc-options 115200:20 --bmsc-freq 0881 -c /opt/minepeon/etc/miner.conf
**Reboot

***Optional if you're having issues, I made this addition to miner.conf, don't think it matters***

sudo nano /opt/minepeon/etc/miner.conf
"api-mcast-port" : "4028",

***Extra option***
Donate more than the 15 minutes this man asks for

If you're loaded an froggy, or were about to drop kick your pi down the street after wasting a Saturday
BTC
1FT5Z9Z96z8Mear6BXApkQEgUpbr8gXgxz

Thanks for this procedure - so far it works for me, but only if i start cgminer manually with

Code:
cd /opt/minepeon/bin
cgminer --bmsc-options 115200:20 --bmsc-freq 0881 -c /opt/minepeon/etc/miner.conf

I have to start cgminer after navigating to the folder the start-file is in. If i try to start it with

Code:
/opt/minepeon/bin/cgminer --bmsc-options 115200:20 --bmsc-freq 0881 -c /opt/minepeon/etc/miner.conf

i get the following output:

/opt/minepeon/bin/cgminer: --bmsc-options: unrecognized option


looks curious to me, because there is no difference in the options i give to cgminer. Any hint?

1HYeuyxKHGmFs1ARvAPGgmEW9pW6u8L26U
bitcoinblog
Sr. Member
****
Offline Offline

Activity: 501
Merit: 252


View Profile
January 18, 2014, 10:53:29 AM
 #17

It depends how the pool calculates your rate. I think on here it gives the full speed possible, if you subtract your hardware rejects and difficulty accepted rejects your speed is lower. Anything under 5% really isn't that bad especially if you're overclocking it. Try lowering or increasing the difficulty of your worker if you think it can go higher. If you're mining bitcoin with these anymore I'd expect a lot more DREJ coming. It's easier to setup on an altcoin then point it at bitcoin and hope for the best.

I am actually new for this all , so not able to catch many things in your text.

I have installed minepeon and done the rest instruction provided in this thread. Then i inserted my 2 AntMiners from external USB hub provided 2 Amp current from Outside on 5 V. And set my pool of coinex.pw which is of JouleCoin.

I saw so many Discard. What actually those Discard stands for ? and as u said " Anything under 5% " how do i calculate that percentage ? And how to to make it normal and profitable ?

** FREE SPACE **
BigJRepairs
Newbie
*
Offline Offline

Activity: 58
Merit: 0


View Profile
January 18, 2014, 08:22:24 PM
 #18

Change the third line, it's more stable and it'll prolong the life of the sticks unless you're cooling them. If you're running the PI on that hub try unplugging one of the miners.

PI         - .7 A
Miner 1 - 1A
Miner 2 - 1A

/usr/bin/screen -dmS miner /opt/minepeon/bin/cgminer/cgminer --bmsc-options 115200:20 --bmsc-freq 0781

If BTC/USD goes to 10K this year you'd make $200 on the year per stick. Otherwise you're not likely to make a profit.
Blackbird0
Full Member
***
Offline Offline

Activity: 207
Merit: 100


View Profile
January 20, 2014, 05:38:32 PM
 #19

Change the third line, it's more stable and it'll prolong the life of the sticks unless you're cooling them. If you're running the PI on that hub try unplugging one of the miners.

PI         - .7 A
Miner 1 - 1A
Miner 2 - 1A

/usr/bin/screen -dmS miner /opt/minepeon/bin/cgminer/cgminer --bmsc-options 115200:20 --bmsc-freq 0781

If BTC/USD goes to 10K this year you'd make $200 on the year per stick. Otherwise you're not likely to make a profit.

Wise words. No one should be buying an Antminer thinking they're going to make a "profit" on it. Even if you get one fairly cheap for them ~$60: you're not going to be able to mine BTC, PPC, or anything else and get any sort of ROI (with electricity costs), absent BTC/PPC/ALT appreciating enormously.
BigJRepairs
Newbie
*
Offline Offline

Activity: 58
Merit: 0


View Profile
January 20, 2014, 05:55:21 PM
 #20

Kind words Blackbird. I don't want to roll too far on a tangent but TGB is the only legitimate calculator I've found that tells the whole story. http://mining.thegenesisblock.com/

If you do this for fun and hobby wait until summer when the mining farms start fire sales on their TH miners because it costs more to keep the lights on and they couldn't break even ROI. Some of them know it's coming, that's why they're selling contracts.
Pages: [1] 2  All
  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!