Author

Topic: Avalon ASIC users thread - page 169. (Read 438516 times)

legendary
Activity: 3080
Merit: 1080
June 21, 2013, 07:32:28 PM
Latest version of the firmware 06-07 produces a LOT of HW errors. For example, 102 accepted shares 62 HW errors. It also oddly stops hashing intermittently.  I am guessing cgminer is crashing or something as the monitor script revives it and it resumes hashing but still with the unusually high error rate. 0519 has been rock solid for me so I flashed back to that version.

I'm running it at 300 if that has any bearing on anything. Anyone else noticing this or is it just my unit? I should also mention that I did not clear the settings before flashing to 06-07 (I told it to remember settings).


This is a combination of more accurate reporting of hw errors, and more software caused errors as a result of the changes. Fixes are in newer cgminer code which has yet to make it into a new firmware for you to flash.

Ok, gotcha. I shall patiently await a newer firmware from Xiangfu.

Thanks for all the great work you do!

sr. member
Activity: 397
Merit: 500
June 21, 2013, 07:10:04 PM
I have running the binary from ckolivas for some hours now. Looks realy fine, thanks ckolivas!

If someone want to do the same, even after restart here is how I got it running.
ATTANTION!!! Do this only if you know what you are doing! Do not expand with too many text, as if it gets to big you can't change anything in your avalon and you have ro reflash!!!

1. Go to System -> Startup
2. Disable cgminer, this prevents the start of the standard cgminer binary after reboot
3. Delete anything in the "Local Startup" text area
4. Copy the script below in the "Local Startup" text area
5. Edit betwen "Settings start" and "Settings end"
5. Click the "Submit" button
6. Restart/Reboot

Code:
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.

### custom cgminer ###
#
# Settings start
#
FTPpath="http://content.wuala.com/contents/ebereon/Shared/bitcoin/cgminer/cgminer" # Path to cgminer binary on a server (http or ftp)
DIRcgminer=/tmp/cgminer # Path to new directory on avalon (ddwrt)
APP=cgminer # name of the cgminer binary
PID_FILE=/var/run/$APP.pid # PID file

# Pool 1
_pool1url=
_pool1user=
_pool1pw=1

# Pool 2
_pool2url=
_pool2user=
_pool2pw=

# Pool 3
_pool3url=stratum+tcp://stratum.mining.eligius.st:3334
_pool3user=19hauaqtbJ8CFL7947YzkrJZY9ZXBpMoae
_pool3pw=1

# chip_frequency (only allowed: 256,270,282,300,325,350,375)
_cf=350

# miner_count
_mc=24

# api_allow
_aa=W:127.0.0.1

# default pool_balance
_pb=

# more_options
_mo=

#
# Settings end
#

mkdir $DIRcgminer # create new directory in tmp (tmpfs)
wget -P $DIRcgminer $FTPpath # download the custom cgminer binary
chmod +x $DIRcgminer/$APP

##########################
# cgminer startup script:
if [ "$_pool1url" != "" -a "$_pool1user" != "" -a "$_pool1pw" != "" ]; then
POOL1="-o $_pool1url -O $_pool1user:$_pool1pw"
fi
if [ "$_pool2url" != "" -a "$_pool2user" != "" -a "$_pool2pw" != "" ]; then
POOL2="-o $_pool2url -O $_pool2user:$_pool2pw"
fi
if [ "$_pool3url" != "" -a "$_pool3user" != "" -a "$_pool3pw" != "" ]; then
POOL3="-o $_pool3url -O $_pool3user:$_pool3pw"
fi

case "$_cf" in
256)
CF="50:256"
;;
270)
CF="47:270"
;;
282)
CF="45:282"
;;
300)
CF="43:300"
;;
325)
CF="39:325"
;;
350)
CF="36:350"
;;
375)
CF="34:375"
;;
esac

AOPTIONS=" --avalon-options 115200:$_mc:10:$CF "
PARAMS=" --lowmem $AOPTIONS $POOL1 $POOL2 $POOL3 $_pb --api-allow $_aa --api-listen $_mo"

$DIRcgminer/$APP --avalon-options 115200:$_mc:10:50:256 -q >/dev/null 2>&1
sleep 1

if [ ! -f /tmp/cgminer-ntpd-done ]; then
while [ "$NTPD_RET" != "0" ]; do
ntpd -d -n -q -N \
-p 0.openwrt.pool.ntp.org \
-p 1.openwrt.pool.ntp.org \
-p 2.openwrt.pool.ntp.org \
-p 3.openwrt.pool.ntp.org

NTPD_RET=$?
done

touch /tmp/cgminer-ntpd-done
fi

start-stop-daemon -S -x $DIRcgminer/$APP -p $PID_FILE -m -b -- $PARAMS

exit 0

This script downloads the cgminer binary from ckolivas from my webspace to the tmpfs (ram). (You can change this to your own server. I will keep it on my webspace, so if you don't have an own place, let it unchanged.)
After it is downloaded it starts the new cgminer binary with the config from the settings you have given to the script. It wont load any setting from the web gui, but you can still view the cgminer status page. If you use the cgminer settings page, it will crash the modified cgminer and start the old one.

If its helpful for you, any tips are welcome Wink

Happy mining
ebereon

EDIT: To make sure the cronjob start the correct cgminer now, please change "/usr/bin/cgminer-monitor" as below:
Code:
#!/bin/sh
# This file is for cron job

# This if for make sure the start cgminer when there is network problem
C=`pidof cgminer | wc -w`
if [ "$C" != "1" ]; then
    killall -s 9 cgminer
    sleep 1
    chmod +x /etc/rc.local
    /etc/rc.local
    exit 0;
fi

A=`cat /tmp/cm.log`
B=`cgminer-api devs | grep "^   \[Last Valid Work\]"`
echo "$B" > /tmp/cm.log
if [ "$B" != "" -a "$A" == "$B" ]; then
    killall -s 9 cgminer
    sleep 1
    chmod +x /etc/rc.local
    /etc/rc.local
    exit 0;
fi
I know it's not fine, but it works and thats what I count  Cool
legendary
Activity: 1946
Merit: 1006
Bitcoin / Crypto mining Hardware.
June 21, 2013, 07:02:02 PM
I see I moved cgminer to /tmp/cgminer.old

Be aware this will trash it on startup as you suspected since there will be no binary in /tmp on reboot.

I know.. it's better to wait on a Xiangfu release.

Or use this one from Strombom:

https://bitcointalksearch.org/topic/m.2544524

The Strombom firmware operates all fan at 100%. Just loaded it and checked
sr. member
Activity: 315
Merit: 250
Official sponsor of Microsoft Corp.
June 21, 2013, 07:01:11 PM
Con, your new cgminer with bigger oc capabilities is just amazing. Thanks a lot.
I'd consider donation Wink
(and I'll donate when I receive and mine off my unit)
member
Activity: 107
Merit: 10
June 21, 2013, 06:51:54 PM
Con, your new cgminer with bigger oc capabilities is just amazing. Thanks a lot.
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
June 21, 2013, 06:43:56 PM
Latest version of the firmware 06-07 produces a LOT of HW errors. For example, 102 accepted shares 62 HW errors. It also oddly stops hashing intermittently.  I am guessing cgminer is crashing or something as the monitor script revives it and it resumes hashing but still with the unusually high error rate. 0519 has been rock solid for me so I flashed back to that version.

I'm running it at 300 if that has any bearing on anything. Anyone else noticing this or is it just my unit? I should also mention that I did not clear the settings before flashing to 06-07 (I told it to remember settings).


This is a combination of more accurate reporting of hw errors, and more software caused errors as a result of the changes. Fixes are in newer cgminer code which has yet to make it into a new firmware for you to flash.
legendary
Activity: 3080
Merit: 1080
June 21, 2013, 06:34:31 PM
Latest version of the firmware 06-07 produces a LOT of HW errors. For example, 102 accepted shares 62 HW errors. It also oddly stops hashing intermittently.  I am guessing cgminer is crashing or something as the monitor script revives it and it resumes hashing but still with the unusually high error rate. 0519 has been rock solid for me so I flashed back to that version.

I'm running it at 300 if that has any bearing on anything. Anyone else noticing this or is it just my unit? I should also mention that I did not clear the settings before flashing to 06-07 (I told it to remember settings).

-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
June 21, 2013, 06:33:03 PM
mv command returns mv: can't rename 'cgminer': No space left on device  Sad. I'm not sure why as filesystem is rw.

Flash filesystems aren't really rw. They are only write once and you cannot delete from them. When you delete a file, it makes the file inaccessible but you never regain the space till you flash the firmware again.

Oh thanks for explanation, I have no experience with flash filesystems, so I was a little bit suprised by this behavior. Any idea how to change it without new fw flash?

member
Activity: 107
Merit: 10
June 21, 2013, 06:32:02 PM
mv command returns mv: can't rename 'cgminer': No space left on device  Sad. I'm not sure why as filesystem is rw.

Flash filesystems aren't really rw. They are only write once and you cannot delete from them. When you delete a file, it makes the file inaccessible but you never regain the space till you flash the firmware again.

Oh thanks for explanation, I have no experience with flash filesystems, so I was a little bit suprised by this behavior. Any idea how to change it without new fw flash?
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
June 21, 2013, 06:29:50 PM
mv command returns mv: can't rename 'cgminer': No space left on device  Sad. I'm not sure why as filesystem is rw.

Flash filesystems aren't really rw. They are only write once and you cannot delete from them. When you delete a file, it makes the file inaccessible but you never regain the space till you flash the firmware again.
legendary
Activity: 892
Merit: 1002
1 BTC =1 BTC
June 21, 2013, 06:29:10 PM
I see I moved cgminer to /tmp/cgminer.old

Be aware this will trash it on startup as you suspected since there will be no binary in /tmp on reboot.

I know.. it's better to wait on a Xiangfu release.

Or use this one from Strombom:

https://bitcointalksearch.org/topic/m.2544524
member
Activity: 107
Merit: 10
June 21, 2013, 06:25:48 PM
a quick question, I'm not familar with openwrt:

Quote
root@OpenWrt:~df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                  320.0K    228.0K     92.0K  71% /
/dev/root                 2.5M      2.5M         0 100% /rom
tmpfs                    14.2M    540.0K     13.7M   4% /tmp
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/mtdblock3          320.0K    228.0K     92.0K  71% /overlay
overlayfs:/overlay      320.0K    228.0K     92.0K  71% /

it seems only /tmp have enough free space for new cgminer binary.
But it is a tmpfs so it will gone when restart , right?

This is what I did, wget the file to /tmp

(don't forget to chmod 755)

and replace the old cgminer with a symbolic link

cd /usr/bin
mv cgminer cgminer.old
ln -s /tmp/cgminer cgminer


mv command returns mv: can't rename 'cgminer': No space left on device  Sad. I'm not sure why as filesystem is rw.
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
June 21, 2013, 06:20:59 PM
a quick question, I'm not familar with openwrt:

Quote
root@OpenWrt:~df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                  320.0K    228.0K     92.0K  71% /
/dev/root                 2.5M      2.5M         0 100% /rom
tmpfs                    14.2M    540.0K     13.7M   4% /tmp
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/mtdblock3          320.0K    228.0K     92.0K  71% /overlay
overlayfs:/overlay      320.0K    228.0K     92.0K  71% /

it seems only /tmp have enough free space for new cgminer binary.
But it is a tmpfs so it will gone when restart , right?

This is what I did, wget the file to /tmp

(don't forget to chmod 755)

and replace the old cgminer with a symbolic link

cd /usr/bin
mv cgminer cgminer.old
ln -s /tmp/cgminer cgminer

Be aware this will trash it on startup as you suspected since there will be no binary in /tmp on reboot.
legendary
Activity: 892
Merit: 1002
1 BTC =1 BTC
June 21, 2013, 06:08:49 PM
No firmware yet, but if you know how to use the binary directly on the avalon here is a binary with the new speeds supported from the latest cgminer git:
http://ck.kolivas.org/apps/cgminer/temp/cgminer


Thanks man, stable as a rock Cool

hero member
Activity: 486
Merit: 500
June 21, 2013, 05:56:25 PM
No firmware yet, but if you know how to use the binary directly on the avalon here is a binary with the new speeds supported from the latest cgminer git:
http://ck.kolivas.org/apps/cgminer/temp/cgminer


can you give step by step instructions? I seem to get

kern.err kernel: [51298.090000] usb 1-1: clear tt 1 (00e0) error -71

wondering if I should try to solve this first before I try to fine tune this beast

hero member
Activity: 798
Merit: 1000
June 21, 2013, 01:08:08 PM
a quick question, I'm not familar with openwrt:

Quote
root@OpenWrt:~df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                  320.0K    228.0K     92.0K  71% /
/dev/root                 2.5M      2.5M         0 100% /rom
tmpfs                    14.2M    540.0K     13.7M   4% /tmp
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/mtdblock3          320.0K    228.0K     92.0K  71% /overlay
overlayfs:/overlay      320.0K    228.0K     92.0K  71% /

it seems only /tmp have enough free space for new cgminer binary.
But it is a tmpfs so it will gone when restart , right?
Yes, you need to upload it again.

full member
Activity: 159
Merit: 100
Winter is coming
June 21, 2013, 11:39:16 AM
a quick question, I'm not familar with openwrt:

Quote
root@OpenWrt:~df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                  320.0K    228.0K     92.0K  71% /
/dev/root                 2.5M      2.5M         0 100% /rom
tmpfs                    14.2M    540.0K     13.7M   4% /tmp
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/mtdblock3          320.0K    228.0K     92.0K  71% /overlay
overlayfs:/overlay      320.0K    228.0K     92.0K  71% /

it seems only /tmp have enough free space for new cgminer binary.
But it is a tmpfs so it will gone when restart , right?
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
June 21, 2013, 11:11:27 AM
No firmware yet, but if you know how to use the binary directly on the avalon here is a binary with the new speeds supported from the latest cgminer git:
http://ck.kolivas.org/apps/cgminer/temp/cgminer
hero member
Activity: 896
Merit: 1000
June 21, 2013, 09:34:21 AM
I haven't looked at the driver yet (still waiting for my Avalon... so not much motivation here) but would it be possible to tune each blade frequency independently of the others (or with even finer granularity)?

If we have access to hardware errors and frequency settings blade by blade or by groups of chips or even by individual chips I'm thinking of some nice automatic overclocking...
legendary
Activity: 1610
Merit: 1000
June 21, 2013, 08:39:36 AM
Okay I experimented with different frequencies around 350, and the hardware error count was about 1.8% by the time it was at 350, but the effective useful hashrate was the highest there, so on my hardware at least, 350 really is a sweet spot. It ran for 45 minutes and averaged about 82.3GH of submitted shares. An extra 11GH for another 10W is ... quite remarkable. I get ~82GH for 605W (at 240V) at the wall now where I used to get ~71GH at 595W at frequency 300.

Wow... with all these improvements, Batch3 is going to be great!

Actually this is all software...
And the guy who is making it  Wink

Thank You!

Jump to: