I hate to be constantly asking questions and it seems like im taking the easy way out but i keep running into road blocks and i spend hours trying to make it work before asking on here. When i start the command ./start_moonlander2.sh it takes me to the mining screen and there 2 things happen. Either it doesnt find any devices on my powered usb hub or i get this message futurebit write error input/output error. I am so lost on why these 4 moonlanders arent showing up as a device
So, you may need to figure out where the Moonlander is connected, then declare it. I just got into this, and if you are not used to to the terminal it can be frustrating. I wrote this so it will do the work for you in Linux (if you are on a Raspberry Pi).
export MoonlanderDEV=$(dmesg | grep tty | awk '/cp210x/ {print $NF}' | tail -n1)
echo $MoonlanderDEV
./bfgminer --scrypt -S /dev/$MoonlanderDEV --set MLD:clock=600 -o stratum+tcp://scrypt.na.mine.zpool.ca:3433/#skipcbcheck -u <WALLET> -p c=<COIN>,sd=128
if you run "dmesg | grep tty" it will return the plug/unplug events and state where the device "mounts". Awk then searches and prints only the appropriate line (something to the effect of "ttyUSB0"). Tail only prints the last time it was done. I set that as an environmental variable, then run the bfgminer based on that.
(I only do this because I also have a Gekko Newpac and the two do not play well together unless you specify the ports)
I hope this helps!
Thank you so much for taking the time to help me. I was getting frustrated because no matter what i tried or looked for on the internet did not work :/ The code that you have me enter, when do i enter that? after i run the whole BFGminer setup?
You need to have a working bfgminer program first (so download and untar the one from the futurebit website). Then cd to that directory "cd bfgminer". Then run the three commands one at a time. (the echo is not really necessary, but I like to see that the script is working, so it should return something like ttyUSB0). Then the following line will actually start the mining, so you don't use the StartMoonlander.sh anymore.
TL;DR. Enter it in the same directory as the bfgminer program.
Best of luck!
Very Much appreciate it! (dmesg | grep tty | awk '/cp210x/ {print $NF}' | tail -n1) is this symbol "|" suppose to represent anything in the command line
Your making this more complicated than it needs to be...all the script does is most likely put in /dev/ttyUSB0 next to the scan command so just cd into the folder and run this command and it should work
./bfgminer --scrypt -S /dev/ttyUSB0 --set MLD:clock=600 -o stratum+tcp://scrypt.na.mine.zpool.ca:3433/#skipcbcheck -u <WALLET> -p c=<COIN>,sd=128
if that does not work then cd into /dev and ls...youll see what the right ttyUSB number is
im not trying to make this difficult im just trying to figure out things and ask questions my bad.
this is what it gives me when i search for usb the moonlanders do not show u
Code:
[pi@raspberrypi:/dev $ cd /dev
pi@raspberrypi:/dev $ ls
argon-h264mem mapper serial0 tty37 v4l
argon-hevcmem media0 serial1 tty38 vchiq
argon-intcmem mem shm tty39 vcio
argon-vp9mem memory_bandwidth snd tty4 vc-mem
autofs mmcblk0 stderr tty40 vcs
block mmcblk0p1 stdin tty41 vcs1
btrfs-control mmcblk0p2 stdout tty42 vcs2
bus mqueue tty tty43 vcs3
cachefiles net tty0 tty44 vcs4
char network_latency tty1 tty45 vcs5
console network_throughput tty10 tty46 vcs6
cpu_dma_latency null tty11 tty47 vcs7
cuse port tty12 tty48 vcsa
disk ppp tty13 tty49 vcsa1
fb0 ptmx tty14 tty5 vcsa2
fd pts tty15 tty50 vcsa3
full ram0 tty16 tty51 vcsa4
fuse ram1 tty17 tty52 vcsa5
gpiochip0 ram10 tty18 tty53 vcsa6
gpiochip1 ram11 tty19 tty54 vcsa7
gpiochip2 ram12 tty2 tty55 vcsm
gpiomem ram13 tty20 tty56 vcsm-cma
hidraw0 ram14 tty21 tty57 vcsu
hidraw1 ram15 tty22 tty58 vcsu1
hwrng ram2 tty23 tty59 vcsu2
i2c-1 ram3 tty24 tty6 vcsu3
initctl ram4 tty25 tty60 vcsu4
input ram5 tty26 tty61 vcsu5
kmsg ram6 tty27 tty62 vcsu6
log ram7 tty28 tty63 vcsu7
loop0 ram8 tty29 tty7 vga_arbiter
loop1 ram9 tty3 tty8 vhci
loop2 random tty30 tty9 video10
loop3 raw tty31 ttyAMA0 video11
loop4 rfkill tty32 ttyprintk video12
loop5 rpivid-h264mem tty33 ttyS0 watchdog
loop6 rpivid-hevcmem tty34 uhid watchdog0
loop7 rpivid-intcmem tty35 uinput zero
loop-control rpivid-vp9mem tty36 urandom
pi@raspberrypi:/dev $
/code]
Well, that is odd. I don't think I can help. if you run "dmesg | grep ttyUSB" what does it give you?