I am unable to set the password arguments inside a Bitmain device. Using
Code: Select all
n=myminer01
Code: Select all
n=myminer01 m=solo c=litecoin
Code: Select all
+ START=99
+ APP=cgminer
+ PID_FILE=/var/run/cgminer.pid
+ [ -n ]
+ ALL_COMMANDS=start stop reload restart boot shutdown enable disable enabled depends
+ list_contains ALL_COMMANDS start
+ local var=ALL_COMMANDS
+ local str=start
+ local val
+ eval val=" ${ALL_COMMANDS} "
+ val= start stop reload restart boot shutdown enable disable enabled depends
+ [ != start stop reload restart boot shutdown enable disable enabled depends ]
+ [ start = reload ]
+ start
+ [ ! -d /sys/class/gpio/gpio27 ]
+ echo out
+ echo 0
+ sleep 1
+ echo 1
+ local _pool1url
+ local _pool1user
+ local _pool2url
+ local _pool2user
+ local _pool3url
+ local _pool3user
+ local _freq
+ config_load cgminer
+ [ -n ]
+ uci_load cgminer
+ local PACKAGE=cgminer
+ local DATA
+ local RET
+ local VAR
+ _C=0
+ [ -z ]
+ export -n CONFIG_LIST_STATE=
+ export -n CONFIG_SECTIONS=
+ export -n CONFIG_NUM_SECTIONS=0
+ export -n CONFIG_SECTION=
+ /sbin/uci -P /var/state -S -n export cgminer
+ DATA=package cgminer
config cgminer 'default'
option freq '600:300:0b83'
option api_allow 'W:0/0'
option pool1user 'antuser'
option pool_balance ' '
option pool1url 'stratum+tcp://prohashing.com:3333'
option pool2user 'antuser'
option pool2url 'stratum+tcp://proxy.prohashing.com:443'
option pool1pw 'n=antrouter1 c=litecoin m=solo'
option pool2pw 'n=antrouter2 c=litecoin m=solo'
+ RET=0
+ [ 0 != 0 -o -z package cgminer
config cgminer 'default'
option freq '600:300:0b83'
option api_allow 'W:0/0'
option pool1user 'antuser'
option pool_balance ' '
option pool1url 'stratum+tcp://prohashing.com:3333'
option pool2user 'antuser'
option pool2url 'stratum+tcp://proxy.prohashing.com:443'
option pool1pw 'n=antrouter1 c=litecoin m=solo'
option pool2pw 'n=antrouter2 c=litecoin m=solo' ]
+ eval package cgminer
config cgminer 'default'
option freq '600:300:0b83'
option api_allow 'W:0/0'
option pool1user 'antuser'
option pool_balance ' '
option pool1url 'stratum+tcp://prohashing.com:3333'
option pool2user 'antuser'
option pool2url 'stratum+tcp://proxy.prohashing.com:443'
option pool1pw 'n=antrouter1 c=litecoin m=solo'
option pool2pw 'n=antrouter2 c=litecoin m=solo'
+ package cgminer
+ return 0
+ config cgminer default
+ local cfgtype=cgminer
+ local name=default
+ export -n CONFIG_NUM_SECTIONS=1
+ name=default
+ append CONFIG_SECTIONS default
+ local var=CONFIG_SECTIONS
+ local value=default
+ local sep=
+ eval export -n -- "CONFIG_SECTIONS=${CONFIG_SECTIONS:+${CONFIG_SECTIONS}${value:+$sep}}$value"
+ export -n -- CONFIG_SECTIONS=default
+ [ -n ]
+ config_cb cgminer default
+ return 0
+ export -n CONFIG_SECTION=default
+ export -n CONFIG_default_TYPE=cgminer
+ option freq 600:300:0b83
+ local varname=freq
+ shift
+ local value=600:300:0b83
+ export -n CONFIG_default_freq=600:300:0b83
+ [ -n ]
+ option_cb freq 600:300:0b83
+ return 0
+ option api_allow W:0/0
+ local varname=api_allow
+ shift
+ local value=W:0/0
+ export -n CONFIG_default_api_allow=W:0/0
+ [ -n ]
+ option_cb api_allow W:0/0
+ return 0
+ option pool1user antuser
+ local varname=pool1user
+ shift
+ local value=antuser
+ export -n CONFIG_default_pool1user=antuser
+ [ -n ]
+ option_cb pool1user antuser
+ return 0
+ option pool_balance
+ local varname=pool_balance
+ shift
+ local value=
+ export -n CONFIG_default_pool_balance=
+ [ -n ]
+ option_cb pool_balance
+ return 0
+ option pool1url stratum+tcp://prohashing.com:3333
+ local varname=pool1url
+ shift
+ local value=stratum+tcp://prohashing.com:3333
+ export -n CONFIG_default_pool1url=stratum+tcp://prohashing.com:3333
+ [ -n ]
+ option_cb pool1url stratum+tcp://prohashing.com:3333
+ return 0
+ option pool2user antuser
+ local varname=pool2user
+ shift
+ local value=antuser
+ export -n CONFIG_default_pool2user=antuser
+ [ -n ]
+ option_cb pool2user antuser
+ return 0
+ option pool2url stratum+tcp://proxy.prohashing.com:443
+ local varname=pool2url
+ shift
+ local value=stratum+tcp://proxy.prohashing.com:443
+ export -n CONFIG_default_pool2url=stratum+tcp://proxy.prohashing.com:443
+ [ -n ]
+ option_cb pool2url stratum+tcp://proxy.prohashing.com:443
+ return 0
+ option pool1pw n=antrouter1 c=litecoin m=solo
+ local varname=pool1pw
+ shift
+ local value=n=antrouter1 c=litecoin m=solo
+ export -n CONFIG_default_pool1pw=n=antrouter1 c=litecoin m=solo
+ [ -n ]
+ option_cb pool1pw n=antrouter1 c=litecoin m=solo
+ return 0
+ option pool2pw n=antrouter2 c=litecoin m=solo
+ local varname=pool2pw
+ shift
+ local value=n=antrouter2 c=litecoin m=solo
+ export -n CONFIG_default_pool2pw=n=antrouter2 c=litecoin m=solo
+ [ -n ]
+ option_cb pool2pw n=antrouter2 c=litecoin m=solo
+ return 0
+ unset DATA
+ config_cb
+ return 0
+ return 0
+ config_get _aa default api_allow
+ eval export -n -- _aa=${CONFIG_default_api_allow:-${4}}
+ export -n -- _aa=W:0/0
+ config_get _freq default freq
+ eval export -n -- _freq=${CONFIG_default_freq:-${4}}
+ export -n -- _freq=600:300:0b83
+ config_get _pool1url default pool1url
+ eval export -n -- _pool1url=${CONFIG_default_pool1url:-${4}}
+ export -n -- _pool1url=stratum+tcp://prohashing.com:3333
+ config_get _pool1user default pool1user
+ eval export -n -- _pool1user=${CONFIG_default_pool1user:-${4}}
+ export -n -- _pool1user=antuser
+ config_get _pool1pw default pool1pw
+ eval export -n -- _pool1pw=${CONFIG_default_pool1pw:-${4}}
+ export -n -- _pool1pw=n=antrouter1 c=litecoin m=solo
+ config_get _pool2url default pool2url
+ eval export -n -- _pool2url=${CONFIG_default_pool2url:-${4}}
+ export -n -- _pool2url=stratum+tcp://proxy.prohashing.com:443
+ config_get _pool2user default pool2user
+ eval export -n -- _pool2user=${CONFIG_default_pool2user:-${4}}
+ export -n -- _pool2user=antuser
+ config_get _pool2pw default pool2pw
+ eval export -n -- _pool2pw=${CONFIG_default_pool2pw:-${4}}
+ export -n -- _pool2pw=n=antrouter2 c=litecoin m=solo
+ config_get _pool3url default pool3url
+ eval export -n -- _pool3url=${CONFIG_default_pool3url:-${4}}
+ export -n -- _pool3url=
+ config_get _pool3user default pool3user
+ eval export -n -- _pool3user=${CONFIG_default_pool3user:-${4}}
+ export -n -- _pool3user=
+ config_get _pool3pw default pool3pw
+ eval export -n -- _pool3pw=${CONFIG_default_pool3pw:-${4}}
+ export -n -- _pool3pw=
+ [ stratum+tcp://prohashing.com:3333 != -a antuser != -a n=antrouter1 c=litecoin m=solo != ]
+ POOL1=-o stratum+tcp://prohashing.com:3333 -O antuser:n=antrouter1 c=litecoin m=solo
+ [ stratum+tcp://proxy.prohashing.com:443 != -a antuser != -a n=antrouter2 c=litecoin m=solo != ]
+ POOL2=-o stratum+tcp://proxy.prohashing.com:443 -O antuser:n=antrouter2 c=litecoin m=solo
+ [ != -a != -a != ]
+ source /etc/init.d/usr_bak
+ temp_file=/tmp/temp_usr.txt
+ user_mtd=/dev/mtdblock6
+ hexdump -v -n 3 -e 1/1 "%02x" /dev/mtdblock6
hexdump: /dev/mtdblock6: No such file or directory
+ magic_str=
+ magic=
+ usr_file=/etc/config/cgminer
+ [ != 97 ]
sh: 97: unknown operand
+ user_pos=
+ let user_pos=0x
/etc/rc.common: let: line 1: arithmetic syntax error
+ echo
+ user_pos=
+ dd of=/tmp/temp_usr.txt if=/dev/mtdblock6 bs=1 count=100 skip=
dd: invalid number ''
+ sed -n 1p /tmp/temp_usr.txt
sed: /tmp/temp_usr.txt: No such file or directory
+ fl_user=
+ echo
+ sed -n 2p /tmp/temp_usr.txt
sed: /tmp/temp_usr.txt: No such file or directory
+ fl_cg_ctrl=
+ [ != -o != ]
+ AOPTIONS=--antrouter-options 115200:600:300:0b83
+ PARAMS=--antrouter-options 115200:600:300:0b83 -o stratum+tcp://prohashing.com:3333 -O antuser:n=antrouter1 c=litecoin m=solo -o stratum+tcp://proxy.prohashing.com:443 -O antuser:n=antrouter2 c=litecoin m=solo --api-listen --scrypt --api-allow W:0/0 --version-file /usr/bin/compile_time --queue 50
+ cgminer --lowmem --bitmain-options 115200:600:300:0b83 -q
+ sleep 1
+ touch /tmp/cgminer-ntpd-done
+ cnt=0
+ [ ! -f /tmp/cgminer-ntpd-done ]
+ start-stop-daemon -S -x cgminer -p /var/run/cgminer.pid -m -- --antrouter-options 115200:600:300:0b83 -o stratum+tcp://prohashing.com:3333 -O antuser:n=antrouter1 c=litecoin m=solo -o stratum+tcp://proxy.prohashing.com:443 -O antuser:n=antrouter2 c=litecoin m=solo --api-listen --scrypt --api-allow W:0/0 --version-file /usr/bin/compile_time --queue 50
[2017-10-07 12:10:15] Unexpected extra commandline arguments
It only works when I have exactly one password argument and no space in between it. I am using stock, unmodified Bitmain Software, testing on an Antrouter R1-LTC with current firmware.
What I tried:
- re-flashing the device with current firmware,
- replacing the spaces with other seperators like ".", ";"
- Adding single quotes to the $_pool1pw variables inside /etc/init.d/cgminer
I am out of my wits. Help. <3
-Chris.