Post
Topic
Board Mining (Altcoins)
Re: Swedish ASIC miner company kncminer.com
by
TaggedYa
on 25/11/2013, 12:09:51 UTC
(...)
Now the problem.  I shut the full speed unit down for a few minutes to change locations and when I restarted it cgminer fails to start.  The bone boots and I can tty into it.  I can try to manually start cgminer and I get a "cgminer failed to start: Write Error".
(...)


I'm not able to find the string 'Write Error' (without caps as well) in cgminer source code.
Is it the exact error msg you get ?

The error seems to have been thrown by /etc/init.d/cgminer.sh
I can't seem to reproduce it right now.  Instead I am getting "-sh: etc/init.d/cgminer: not found"  however "less /etc/init.d/cgminer.sh" gives:

Code:
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/bin/cgminer
NAME=cgminer
DESC="Cgminer daemon"

set -e

test -x "$DAEMON" || exit 0

do_start() {
        # Stop SPI poller
        spi_ena=0
        i2cset -y 2 0x71 2 $spi_ena

        good_ports=""
        bad_ports=""

        # CLear faults in megadlynx's
        for b in 3 4 5 6 7 8 ; do
                for d in 0 1 2 3 4 5 6 7 ; do
                        i2cset -y $b 0x1$d 3 >/dev/null 2>&1 || true
                done
        done

        for p in 0 1 2 3 4 5 ; do
                i2cset -y 2 0x71 1 $((p+1))
                good_flag=0
                ar="$(spi-test -s 50000 -OHC -D /dev/spidev1.0 0x80,3,0,0,0,0,0,0 | tail -c 13)"
                if [ "x$ar" = "x00 30 A0 01" ] ; then
                        good_flag=1
                fi
                ar="$(spi-test -s 50000 -OHC -D /dev/spidev1.0 0x80,2,0,0,0,0,0,0 | tail -c 13)"
                if [ "x$ar" = "x00 30 A0 01" ] ; then
                        good_flag=1
                fi
                ar="$(spi-test -s 50000 -OHC -D /dev/spidev1.0 0x80,1,0,0,0,0,0,0 | tail -c 13)"
                if [ "x$ar" = "x00 30 A0 01" ] ; then
                        good_flag=1
                fi
                ar="$(spi-test -s 50000 -OHC -D /dev/spidev1.0 0x80,0,0,0,0,0,0,0 | tail -c 13)"
                if [ "x$ar" = "x00 30 A0 01" ] ; then
                        good_flag=1
                fi

                if [ "$good_flag" = "1" ] ; then
                        good_ports=$good_ports" $p"
                else
                        bad_ports=$bad_ports" $p"
                fi
        done
.
.
.



Quote
If so I guess your issue is located somewhere in the OS.
Anything useful in the log file ?

*Note: journalctl is the replacement for a "less /var/log/syslog"
http://www.freedesktop.org/software/systemd/man/journalctl.html

I have not gotten a result from journalctl.  Probably because it is not in the path and I don't know where to find it.

I haven't messed with a Unix system for 30 years so I am a little rusty.  :-)  I would be more at home in JCL.  I guess in the morning I will have to go find a good Linux book.

TaggedYa