Bitcoin Forum
November 30, 2021, 09:13:05 AM *
News: Latest Bitcoin Core release: 22.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 ... 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 [92] 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 »
  Print  
Author Topic: Official FutureBit Moonlander 2 Driver and Support Thread  (Read 69168 times)
Kgonla
Newbie
*
Offline Offline

Activity: 129
Merit: 0


View Profile
February 21, 2019, 05:36:36 PM
 #1821

Same problem here, I've been testing one with these results:
Power supply 20A, CPU 0.9V, Mem 1.03V, one powerful fan on top of stick to get low temps.
Randomly crashing the higher the frequency the often.
From 796 to max, crashing after few minutes, at most about 1 h
From 756 to 796 same but it sometimes work for some hours
Now I'm testing 744 with 0.76V CPU & 0.85V mem, crashing after several minutes to several hours

Also tested different frequencies with higher and lower voltages but no changes
Having to unplug to get to work again, the miner software is unable to restart the stick

Is it a Moonlander problem or a softare problem?
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
Bill48105
Jr. Member
*
Offline Offline

Activity: 48
Merit: 8


View Profile
February 21, 2019, 07:00:53 PM
Last edit: February 21, 2019, 11:50:59 PM by Bill48105
 #1822

EDIT: See next post for the updated "smart" method that bases the kill on speed vs just blindly timed
I've tested these moonlanders on multiple systems, multiple hubs, default & custom settings, original release & newer beta, and for some reason they each show 0 for speed eventually.  It's not an ideal solution but so far the cleanest I've found is on my raspberry pi running latest raspbian is to restart bfgminer every hour. I didn't see an option in bfgminer itself so I went a more brute force way which while maybe not pretty, so far seems to do the trick. (Surely there are cleaner ways to go about this but I worked with what I know how to do the fastest since I've wasted too much time on this already)

I start a screen session manually, then start bfgminer in a looping script that's in my home directory with a delay after it to have time to stop with ctrl-c it if needed:
(Be sure to set the correct path to your bfgminer, your own POOL, PORT & USERNAME etc. Set your own command line options like speed as needed)

nano run.sh
Code:
#!/bin/sh
while true
do
  cd /home/pi/moonlander2/bfgminer_5.4.2-futurebit2_linux_armv6/
  ./bfgminer --scrypt -o stratum+tcp://POOL:PORT -u USERNAME -p x -S ALL
  echo "Sleeping 5 seconds.. Press Ctrl-C to stop bfgminer restart."
  sleep 5s
done

Make it executable:
sudo chmod +x run.sh

Then I use the root crontab to tell bfgminer to shutdown every 60 minutes using pkill:

sudo crontab -e
Code:
*/60 * * * * /usr/bin/pkill -f bfgminer
NOTE: Be sure to use sudo crontab -e otherwise if you don't use sudo pkill won't have permissions to work under normal user's crontab

Once setup & running I can watch the screen session cleanly restart hourly. (Use more or less time to balance work lost restarting with how long you're willing to accept 1 or more miners hung)

No doubt this solution isn't ideal & has drawbacks (such as while pskill tells bfgminer to shutdown the same as if you hit Q, it does not help if the issue is USB or hardware related.  Plus unless set on command line, the difficulty has to be negotiated again.  It's possible to lose out on work being done but not as much work is being lost having moonlander's hung up at 0 mhs.


Bill48105
Jr. Member
*
Offline Offline

Activity: 48
Merit: 8


View Profile
February 22, 2019, 12:19:33 AM
 #1823

NEW AND IMPROVED METHOD!
So while my big hammer method above worked it felt too dirty & dumb. Here's a smarter "2.0" method that reads in the speed via RPC & only stops bfgminer if the speed falls below a certain level.

nano run.sh
Code:
#!/bin/sh
while true
do
  cd /home/pi/moonlander2/bfgminer_5.4.2-futurebit2_linux_armv6/
  ./bfgminer --scrypt -o stratum+tcp://POOL:PORT -u USERNAME -p x -S ALL --api-listen
  echo "Sleeping 5 seconds.. Press Ctrl-C to stop bfgminer restart."
  sleep 5s
done
NOTE: This run.sh is same as previous method except --api-listen is added to enable RPC API for localhost reading of mining stats. Be sure to set the correct path to your bfgminer, your own POOL, PORT & USERNAME etc. Set your own command line options like clock speeds etc as needed

Make it executable:
sudo chmod +x run.sh

We also need a new script:
nano monitor.sh
Code:
#!/bin/sh
MINSPEED=10
MINWAIT=180
cd /home/pi/moonlander2/bfgminer_5.4.2-futurebit2_linux_armv6/
RPCDATA=$(./bfgminer-rpc)
SPEEDTXT=$(echo "$RPCDATA" | grep '\[MHS 20s\]' | sed -e 's/^[[:space:]]*//')
ELAPSEDTXT=$(echo "$RPCDATA" | grep '\[Elapsed\]' | sed -e 's/^[[:space:]]*//')
SPEEDFLOAT=${SPEEDTXT##*>}
SPEED=${SPEEDFLOAT%.*}
ELAPSED=${ELAPSEDTXT##*>}
if [ $ELAPSED -gt $MINWAIT ] && [ "$SPEED" -lt "$MINSPEED" ]; then
  echo "Slow speed detected.. Killing bfgminer!"
  /usr/bin/pkill -f bfgminer
fi
echo "ELAPSED:" $ELAPSED "SPEED:" $SPEED
NOTE: Be sure to set MINSPEED, MINWAIT & path to where bfgminer-rpc is (the cd line)

Make it executable:
sudo chmod +x monitor.sh

sudo crontab -e
Code:
*/5 * * * * /home/pi/monitor.sh
(Don't forget sudo so you're editing root's crontab.  This runs the monitor every 5 minutes, adjust accordingly. Be sure to set path to your script as well. I just put mine in my pi home directory)

So what the heck does this do? Well like before I'm running bfgminer a screen session, in a loop, so that if told to exit it will just run again after a 5 second delay to give you time to hit Ctrl-C to terminate the script.  But now instead of blindly killing off bgminer every hour, I'm running my monitor script every 5 minutes.  The monitor script calls bfgminer-rpc to get the stats (remember you must enable RPC with --api-listen option unlike the earlier method above), parses that output for the 20 second average speed and how much seconds have elapsed since bfgminer started. If the speed is less than MINSPEED (default is 10 MHS since I have 4 stock moonlanders running. Obviously adjust this to suit your speed. Go a little under the average you see in bfgminer though to give it a little wiggle room. I see 12-13 on my 4 so 10 seems like a pretty safe level to detected 1 or more that are stuck) and elapsed time is at least MINWAIT (default is 180 seconds or 3 minutes to give the miners time to settle in & not try to restart bfgminer while it's ramping up. Adjust if needed) then the script kills off bfgminer otherwise it does nothing. (Checking elapsed isn't really needed if you're careful to only run the monitor script after the miner gets up to speed but it was simple enough sanity check that it seemed worth the trouble adding it.)

So far this method is working quite well for me here but no promises. Smiley  I'd highly recommend you manually run ./monitor.sh while testing before adding it to your crontab to help troubleshoot. Once you're sure it's working as expected then add it to the crontab.

Some word of warning: Not much error or sanity checking is done to keep the script small & simple. For example you'll get an error if you run monitor.sh when bfgminer is not running, if RPC API isn't enabled, if the bfgminer was just started & RPC isn't ready, etc. So far the errors I've seen are benign & can be ignored. The script does nothing unless the stated criteria is met so it should be harmless if it hits a snag.  The only issue I've seen myself is if I set the MINSPEED too high or if one of the miners is locked enough that it needs power cycled then the script will restart the bfgminer over & over at whatever interval you set in crontab. So keep that in mind & adjust accordingly.  Also note that 20s speed is floating point but to keep it simple in bash script I "convert" to integer chopping off everything after the dot.  I realize this isn't ideal but again was trying to keep it simple & it should be accurate enough for the purpose of monitoring. Obviously if your speed is less than 1 the script isn't going to work right so you'd need to adjust the script. Also note that this assumes . vs , so I'm not sure if bfgminer is localized so you'd need to modify the script for that if needed.  You'd try SPEED=${SPEEDFLOAT%,*} instead perhaps.

AkiAfroo
Jr. Member
*
Offline Offline

Activity: 116
Merit: 2


View Profile
February 23, 2019, 02:13:54 AM
 #1824

@Bill48105 , thx you save my life. works perfect both scripts. monitor.sh and run.sh.  Grin
Bill48105
Jr. Member
*
Offline Offline

Activity: 48
Merit: 8


View Profile
February 23, 2019, 06:22:07 AM
 #1825

@Bill48105 , thx you save my life. works perfect both scripts. monitor.sh and run.sh.  Grin

awesome! glad it worked & you found it useful Smiley I've been very pleased with it here myself. I'm seeing my daily payouts increased already since there is less downtime where I was AFK & didn't notice 1 or more moonlanders were 0.  Now it's rare to look & find one stuck.
jstefanop
Legendary
*
Offline Offline

Activity: 1929
Merit: 1310


View Profile
February 23, 2019, 04:55:55 PM
 #1826

Yea sorry guys I know I need to update the binaries for the pi that fixes this issue...you can just pull the latest source off the repo and compile though.

Project Apollo: A Pod Miner Designed for the Home https://bitcointalk.org/index.php?topic=4974036
FutureBit Moonlander 2 USB Scrypt Stick Miner: https://bitcointalk.org/index.php?topic=2125643.0
LTC:LX5vpxrQE4eLRLPobKwZhw2comkKFCh3p4 - BTC:14w9Lea6kdVzspJk8TQRe7qSYu9LhzJJsh
Bill48105
Jr. Member
*
Offline Offline

Activity: 48
Merit: 8


View Profile
February 23, 2019, 05:50:22 PM
 #1827

Yea sorry guys I know I need to update the binaries for the pi that fixes this issue...you can just pull the latest source off the repo and compile though.
Ok thanks. I had checked github but didn't see any new release but will look again. EDIT: it shows last edit was Nov 2018.. Am I missing something? Smiley
Kgonla
Newbie
*
Offline Offline

Activity: 129
Merit: 0


View Profile
February 23, 2019, 07:17:57 PM
 #1828

@Bill48105
Thank your for your info...
As I'm using Windows I tested your first method with a frequency that I know it hangs about every 3 hours.
I created a .bat file for restarting miner every hour but it happens the same, after about 3 hours it hangs.
I'm using 1 second to restart, will try to use longer time but I think the problem is in the moonlander, it need to be powered off and on again to work.
I have no idea how to do the 2nd method in Windows.
Bill48105
Jr. Member
*
Offline Offline

Activity: 48
Merit: 8


View Profile
February 24, 2019, 06:02:23 AM
 #1829

@Bill48105
Thank your for your info...
As I'm using Windows I tested your first method with a frequency that I know it hangs about every 3 hours.
I created a .bat file for restarting miner every hour but it happens the same, after about 3 hours it hangs.
I'm using 1 second to restart, will try to use longer time but I think the problem is in the moonlander, it need to be powered off and on again to work.
I have no idea how to do the 2nd method in Windows.

Hi. Sorry to say but the instructions are for nix type installations, not Windows. I did it on raspberry pi myself. I suppose they could possibly be tweaked to work on Windows with some effort (for example the scripting was done for bash vs cmd or even powershell), but if your issue isn't resolved restarting bfgminer then the tricks I did won't likely help you anyway. If the computer is dedicated to mining you might be able to work in a restart of the computer but that could be ugly.  Hopefully the new compiled binaries once jstefanop releases are available soon & will help with your issues & not need to bother with these sort of work-arounds.

Btw for what it's worth I had all kinds of issues on 1 of my Win10 computers where I had to power cycle the hub and/or unplug the moonlanders often. Funny thing was exact same setup worked fine on another Win10 computer but I'm not sure what was different other than the one that had issues was a few years newer. In any case I got sick of fighting with it so I ordered a pi kit for like $60 off amazon and it's make mining much less of a hassle. (Besides the locking of the miners I had an odd issue where keyboard keystrokes were delayed or lost until bfgminer.exe was restarted which was mega annoying.)  The bad news was that the moonlanders still locked (went to 0 mhs) but unlike Windows, a power cycle of the powered hub or removing/replacing the moonlanders was no longer needed thus the above "fixes" being born out of necessity.
COINKING7
Newbie
*
Offline Offline

Activity: 46
Merit: 0


View Profile
March 01, 2019, 09:26:33 PM
 #1830

Thinking about buying 1 to solo mine for fun.

Anyone suggest the best coin/pool for this? I know my chances are slim.
sunk818
Full Member
***
Offline Offline

Activity: 1148
Merit: 111



View Profile WWW
March 04, 2019, 07:32:37 PM
 #1831

can we have bfgminer 5.5 binaries for moonlander 2 (mac, linux, windows)? I see apollo has 5.5 on there so would like to use features on there for moonlander2

dayday15
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
March 10, 2019, 06:17:52 PM
 #1832

Anyone in the US, any hints on what hubs can be found for under $100 to work with a few of these?  Cool

I have tried most of the powered usb hubs on amazon this one is the only one that has worked well for me.

https://www.amazon.com/gp/product/B07NBTS71S/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=B07NBTS71S&linkCode=as2&tag=dodailey-20&linkId=4be2ed5ae20f321010c5693eed1f5fe3

I currently have 5 Moonlanders running on one of these hubs. Pulling close to 20Mh/s total without tinkering with the over clocking techniques.

Happy Mining!
sunk818
Full Member
***
Offline Offline

Activity: 1148
Merit: 111



View Profile WWW
March 12, 2019, 03:45:21 PM
 #1833

Anyone in the US, any hints on what hubs can be found for under $100 to work with a few of these?  Cool

I have tried most of the powered usb hubs on amazon this one is the only one that has worked well for me.

https://www.amazon.com/gp/product/B07NBTS71S/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=B07NBTS71S&linkCode=as2&tag=dodailey-20&linkId=4be2ed5ae20f321010c5693eed1f5fe3

I currently have 5 Moonlanders running on one of these hubs. Pulling close to 20Mh/s total without tinkering with the over clocking techniques.

Happy Mining!

I have a similar one labelled as a different company. I have about 6-7 ML2 running at base settings. And that seems to be working. I've been through 2 of these. Running 10 of them, will melt the hub eventually. So, running 75% or less (6-7 ML2). If you are clocking up and taking up more watts, you may want to limit to 5 out of 10 ports.

devincrypt
Jr. Member
*
Offline Offline

Activity: 55
Merit: 1


View Profile
March 13, 2019, 07:07:14 PM
 #1834

Replacing my ML2s (five of them) with another Apollo. Anyone want to buy them (US only please) - thinking of about $35 each. They are all currently online and working well.
Greekone79
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
March 15, 2019, 10:15:12 PM
 #1835

Got cash for someone willing to help out setting up 4 moonlander 2's and 12 gridseed on raspberry pi with eye boot 49 port hub.
I can get one moonlander in bfg 5.4.2 and 12 gridseed orbs in 5.5.0. But I want all devices in 5.5.0 if possible. When I start the
moonlanders in 5.4.2 all 4 run/hash, Then 3 shut down. Just stop hashing. Been reading for 4 days till 12pm. lol
Hair thinning.

Thanks in advance. Grin
NCarter84
Jr. Member
*
Offline Offline

Activity: 194
Merit: 3


View Profile
March 16, 2019, 12:22:47 AM
 #1836

Replacing my ML2s (five of them) with another Apollo. Anyone want to buy them (US only please) - thinking of about $35 each. They are all currently online and working well.

Tried to send you a PM... Wont allow it.
whiteogre
Jr. Member
*
Offline Offline

Activity: 61
Merit: 4


View Profile
March 16, 2019, 12:36:27 AM
 #1837

Got cash for someone willing to help out setting up 4 moonlander 2's and 12 gridseed on raspberry pi with eye boot 49 port hub.
I can get one moonlander in bfg 5.4.2 and 12 gridseed orbs in 5.5.0. But I want all devices in 5.5.0 if possible. When I start the
moonlanders in 5.4.2 all 4 run/hash, Then 3 shut down. Just stop hashing. Been reading for 4 days till 12pm. lol
Hair thinning.

Thanks in advance. Grin
https://github.com/jstefanop/bfgminer/tree/futurebit2_driver appears to have bfgminer 5.5.0 with moonlander 2 support based on NEWS file content. It just hasn't been released so there aren't any pre-compiled binaries available.
Kgonla
Newbie
*
Offline Offline

Activity: 129
Merit: 0


View Profile
March 17, 2019, 08:57:12 PM
 #1838

Got cash for someone willing to help out setting up 4 moonlander 2's and 12 gridseed on raspberry pi with eye boot 49 port hub.
I can get one moonlander in bfg 5.4.2 and 12 gridseed orbs in 5.5.0. But I want all devices in 5.5.0 if possible. When I start the
moonlanders in 5.4.2 all 4 run/hash, Then 3 shut down. Just stop hashing. Been reading for 4 days till 12pm. lol
Hair thinning.

Thanks in advance. Grin
https://github.com/jstefanop/bfgminer/tree/futurebit2_driver appears to have bfgminer 5.5.0 with moonlander 2 support based on NEWS file content. It just hasn't been released so there aren't any pre-compiled binaries available.

But last entry from Stefano for bfgminer moonlander is one year old, if it have not been compiled yet I don't think it would be Sad
whiteogre
Jr. Member
*
Offline Offline

Activity: 61
Merit: 4


View Profile
March 17, 2019, 09:55:02 PM
 #1839

Got cash for someone willing to help out setting up 4 moonlander 2's and 12 gridseed on raspberry pi with eye boot 49 port hub.
I can get one moonlander in bfg 5.4.2 and 12 gridseed orbs in 5.5.0. But I want all devices in 5.5.0 if possible. When I start the
moonlanders in 5.4.2 all 4 run/hash, Then 3 shut down. Just stop hashing. Been reading for 4 days till 12pm. lol
Hair thinning.

Thanks in advance. Grin
https://github.com/jstefanop/bfgminer/tree/futurebit2_driver appears to have bfgminer 5.5.0 with moonlander 2 support based on NEWS file content. It just hasn't been released so there aren't any pre-compiled binaries available.

But last entry from Stefano for bfgminer moonlander is one year old, if it have not been compiled yet I don't think it would be Sad

Well, that's easy to test if it can be compiled:

Code:
$ sudo apt-get install git build-essential autoconf automake libtool pkg-config libcurl4-gnutls-dev libjansson-dev uthash-dev libncursesw5-dev libudev-dev libusb-1.0-0-dev
...
$ git clone https://github.com/jstefanop/bfgminer -b futurebit2_driver bfgminer_futurebit2
...
$ cd bfgminer_futurebit2
$ ./autogen.sh
(some complaining about version file)
$ ./configure --disable-other-drivers --disable-sha256d --enable-scrypt --enable-futurebit
...
------------------------------------------------------------------------
bfgminer 5.5.0 configuration options summary
------------------------------------------------------------------------

  CFLAGS...............: -D_GNU_SOURCE -D_DEFAULT_SOURCE -I/usr/include/ncursesw -pthread -g -O2 -I/usr/include/libusb-1.0 -pthread -I/root/bfgminer_futurebit2/libbase58 -I/root/bfgminer_futurebit2/libblkmaker
  LDFLAGS..............: -pthread -lpthread -lcurl -ljansson -lncursesw -ltinfo -lm -ludev -lusb-1.0 -L/root/bfgminer_futurebit2/libbase58/.libs -Wl,-rpath,\$$ORIGIN/libbase58/.libs,-zorigin -lbase58 -L/root/bfgminer_futurebit2/libblkmaker/.libs -Wl,-rpath,\$$ORIGIN/libblkmaker/.libs,-zorigin -lblkmaker_jansson-0.1 -lblkmaker-0.1
  Installation.prefix..: /usr/local

  Enabled..Lowlevel....: usb vcom
  Disabled.Lowlevel....: ftdi hid mswin pci spi
  Enabled..Drivers.....: futurebit
  Disabled.Drivers.....: alchemist antminer avalon avalonmm bfsb bfx bifury bigpic bitforce bitfury bitmain cairnsmore cointerra compac cpu drillbit dualminer erupter gridseed hashbuster hashbusterusb hashfast icarus jingtian klondike knc kncasic littlefury metabank minergate minion modminer nanofury opencl proxy rockminer titan twinfury x6500 zeusminer ztex
  Enabled..Algorithms..: scrypt
  Disabled.Algorithms..: Keccak SHA256d
  Enabled..Options.....: ncursesw5
  Disabled.Options.....:
$ make -j4
...
$ ./bfgminer --version
bfgminer 5.2.0-243-gbbc9596a
  Lowlevel: usb vcom
  Drivers: futurebit
  Algorithms: scrypt
  Options: ncursesw5

So the final version in the bfgminer output doesn't match the version show after ./configure (which appears to be the correct one) due to some issue on how autogen.sh tries to guess the version script from a git cloned workspace. Otherwise, that result in a working bfgminer binary which is more recent than the latest released Moonlander 2 version and also contains the last changes made to that branch.
juggalonoke
Newbie
*
Offline Offline

Activity: 17
Merit: 0


View Profile
March 20, 2019, 04:53:59 AM
 #1840

Hello I am new to mining and this is my very first attempt at it with the moonlander. It seems like a great product but im having issues keeping mine running as you can see below this is what it looks like for at MOST 3 minutes.
http://s138.photobucket.com/user/obliviousmuse/media/moonlander%20screenshot%202_zpszwancmvz.png.html

but then very soon after i end up with this screen...
https://s138.photobucket.com/user/obliviousmuse/media/moonlander%20screenshot_zpsnwvahi0y.png.html

mind you i am a COMPLETE NOOB and have no idea what im looking at really i was given this miner as a gift and am enjoying it other then not being able to keep it running. when it is hashing correctly i can see the work registering into my pool account. The Moonlander is fresh out of the box no changes it it at all. any help at all would be amazing please.

can someone please help me with this issue i still dont know what is making it happen and ive tried everything i can think of.
Pages: « 1 ... 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 [92] 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 »
  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!