Bitcoin Forum
November 24, 2017, 08:07:51 AM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: « 1 ... 28 29 30 31 32 33 34 35 36 37 38 39 40 41 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 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 ... 221 »
  Print  
Author Topic: Avalon ASIC users thread  (Read 433737 times)
-ck
Moderator
Legendary
*
Offline Offline

Activity: 2352


Ruu \o/


View Profile WWW
July 01, 2013, 05:54:52 AM
 #1541

New avalon firmware:

http://ck.kolivas.org/apps/cgminer/avalon/20130701/

Changes:

I've changed the default hardware error target with avalon-auto to a bit lower so it hovers closer to 1.2% instead of 1.8%. The hashrate increase of the higher error rate was marginal at best but I'd prefer a little more headroom so that auto can be left on. (Yes it will give slightly lower hashrates, if you don't like it then set a manual value!)

Auto now will not raise the frequency if you are over the target temperature.
Auto will try to drop the frequency to minimum if it has to idle the avalon due to overheat.

New command line options:

--avalon-fan <arg> Set fanspeed percentage for avalon, single value or range (default: 20-100)
--avalon-freq <arg> Set frequency range for avalon-auto, single value or range

These of course have to be added to the "More options" box in the web interface if you're not running cgminer directly.

Note that if you give invalid options it will not start mining!

Primary developer/maintainer for cgminer and ckpool/ckproxy.
ZERO FEE Pooled mining at ckpool.org 1% Fee Solo mining at solo.ckpool.org
-ck
Join ICO Now A blockchain platform for effective freelancing
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1511510871
Hero Member
*
Offline Offline

Posts: 1511510871

View Profile Personal Message (Offline)

Ignore
1511510871
Reply with quote  #2

1511510871
Report to moderator
1511510871
Hero Member
*
Offline Offline

Posts: 1511510871

View Profile Personal Message (Offline)

Ignore
1511510871
Reply with quote  #2

1511510871
Report to moderator
loshia
Legendary
*
Offline Offline

Activity: 1610


View Profile
July 01, 2013, 05:57:35 AM
 #1542

Con,

Seems i got it working stable

Batch ONE unit with unmodified WR703 powered from molex/USB HUB just for power - PSU. Jumper 5 Removed, and FPGA connected directly to WR703 USB. ftdi/usbserial drivers removed, Wifi drivers removed also


The results

Elapsed 1day 16h 56m 52s   
Difficulty Accepted: 2907218.00000000 1183.30/m 84704.14 - MHS

Clock is set to auto moving between 357-362

Thank you

PS: you read my mind - two great options Wink

--avalon-fan <arg> Set fanspeed percentage for avalon, single value or range (default: 20-100)
--avalon-freq <arg> Set frequency range for avalon-auto, single value or range


Please help the Led Boy aka Bicknellski to make us a nice Christmas led tree and pay WASP membership fee here:
https://bitcointalk.org/index.php?topic=643999.msg7191563#msg7191563
And remember Bicknellski is not collecting money from community;D
cypherdoc
Legendary
*
Offline Offline

Activity: 1764



View Profile
July 01, 2013, 06:08:43 AM
 #1543

New avalon firmware:

http://ck.kolivas.org/apps/cgminer/avalon/20130701/

Changes:

I've changed the default hardware error target with avalon-auto to a bit lower so it hovers closer to 1.2% instead of 1.8%. The hashrate increase of the higher error rate was marginal at best but I'd prefer a little more headroom so that auto can be left on.

Auto now will not raise the frequency if you are over the target temperature.
Auto will try to drop the frequency to minimum if it has to idle the avalon due to overheat.

New command line options:

--avalon-fan <arg> Set fanspeed percentage for avalon, single value or range (default: 20-100)
--avalon-freq <arg> Set frequency range for avalon-auto, single value or range

These of course have to be added to the "More options" box in the web interface if you're not running cgminer directly.

Note that if you give invalid options it will not start mining!

when installing your firmware, should we always not check the "Keep Settings" box?
-ck
Moderator
Legendary
*
Offline Offline

Activity: 2352


Ruu \o/


View Profile WWW
July 01, 2013, 06:11:07 AM
 #1544

when installing your firmware, should we always not check the "Keep Settings" box?
Actually you shouldn't need to do this except when you're changing from very old firmware that used the old serial interface as that might have had commands which are no longer valid.

Primary developer/maintainer for cgminer and ckpool/ckproxy.
ZERO FEE Pooled mining at ckpool.org 1% Fee Solo mining at solo.ckpool.org
-ck
-ck
Moderator
Legendary
*
Offline Offline

Activity: 2352


Ruu \o/


View Profile WWW
July 01, 2013, 06:33:06 AM
 #1545

Minor mistake, it won't be going to maximum frequency by default. I will post another firmware shortly.

I've reuploaded it. If you're flashing, this is the md5sum of the proper 20130701 firmware:
a57305b42abe77d3335d44790e938d9e *openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-factory.bin

Primary developer/maintainer for cgminer and ckpool/ckproxy.
ZERO FEE Pooled mining at ckpool.org 1% Fee Solo mining at solo.ckpool.org
-ck
jddebug
Sr. Member
****
Offline Offline

Activity: 426



View Profile
July 01, 2013, 06:37:55 AM
 #1546

Minor mistake, it won't be going to maximum frequency by default. I will post another firmware shortly.

Conman,

Will you make a post reviewing all the extra commands and how they work. (When you have time of course.)

I'm not sure of what all is available and the usage of each. If there's a separate readme that I missed just point me to it.

Thanks.
-ck
Moderator
Legendary
*
Offline Offline

Activity: 2352


Ruu \o/


View Profile WWW
July 01, 2013, 06:41:34 AM
 #1547

Minor mistake, it won't be going to maximum frequency by default. I will post another firmware shortly.

Conman,

Will you make a post reviewing all the extra commands and how they work. (When you have time of course.)

I'm not sure of what all is available and the usage of each. If there's a separate readme that I missed just point me to it.

Thanks.

https://raw.github.com/ckolivas/cgminer/master/ASIC-README

Primary developer/maintainer for cgminer and ckpool/ckproxy.
ZERO FEE Pooled mining at ckpool.org 1% Fee Solo mining at solo.ckpool.org
-ck
jddebug
Sr. Member
****
Offline Offline

Activity: 426



View Profile
July 01, 2013, 06:43:12 AM
 #1548

Minor mistake, it won't be going to maximum frequency by default. I will post another firmware shortly.

Conman,

Will you make a post reviewing all the extra commands and how they work. (When you have time of course.)

I'm not sure of what all is available and the usage of each. If there's a separate readme that I missed just point me to it.

Thanks.

https://raw.github.com/ckolivas/cgminer/master/ASIC-README

Excellent. Thank you.
Tesla71
Sr. Member
****
Online Online

Activity: 295



View Profile
July 01, 2013, 07:11:11 AM
 #1549

Minor mistake, it won't be going to maximum frequency by default. I will post another firmware shortly.

I've reuploaded it. If you're flashing, this is the md5sum of the proper 20130701 firmware:
a57305b42abe77d3335d44790e938d9e *openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-factory.bin


just to be safe, the firmware is also for avalon batch #2 ?
-ck
Moderator
Legendary
*
Offline Offline

Activity: 2352


Ruu \o/


View Profile WWW
July 01, 2013, 07:18:27 AM
 #1550

Minor mistake, it won't be going to maximum frequency by default. I will post another firmware shortly.

I've reuploaded it. If you're flashing, this is the md5sum of the proper 20130701 firmware:
a57305b42abe77d3335d44790e938d9e *openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-factory.bin


just to be safe, the firmware is also for avalon batch #2 ?
It is for all avalons. The settings you choose will depend on your hardware but default settings are safe on all of them.

Primary developer/maintainer for cgminer and ckpool/ckproxy.
ZERO FEE Pooled mining at ckpool.org 1% Fee Solo mining at solo.ckpool.org
-ck
Tesla71
Sr. Member
****
Online Online

Activity: 295



View Profile
July 01, 2013, 07:24:07 AM
 #1551

As I am a little frightend to flash it right after it arrives, could I instead disconnect the wr703 and use a pi to test the overclockin so I have a fallback with the original firmware?
-ck
Moderator
Legendary
*
Offline Offline

Activity: 2352


Ruu \o/


View Profile WWW
July 01, 2013, 07:29:10 AM
 #1552

As I am a little frightend to flash it right after it arrives, could I instead disconnect the wr703 and use a pi to test the overclockin so I have a fallback with the original firmware?
You can, but the new firmware doesn't overclock, it just gives you the ability to overclock if you desire...

Primary developer/maintainer for cgminer and ckpool/ckproxy.
ZERO FEE Pooled mining at ckpool.org 1% Fee Solo mining at solo.ckpool.org
-ck
Tesla71
Sr. Member
****
Online Online

Activity: 295



View Profile
July 01, 2013, 07:30:29 AM
 #1553

As I am a little frightend to flash it right after it arrives, could I instead disconnect the wr703 and use a pi to test the overclockin so I have a fallback with the original firmware?
You can, but the new firmware doesn't overclock, it just gives you the ability to overclock if you desire...
yea thanks, I am not frightend of the firmware itself but with my luck I will brick the wr703 while updating...
fhh
Legendary
*
Offline Offline

Activity: 1204



View Profile
July 01, 2013, 07:46:44 AM
 #1554


New command line options:

--avalon-fan <arg> Set fanspeed percentage for avalon, single value or range (default: 20-100)
--avalon-freq <arg> Set frequency range for avalon-auto, single value or range


love it!

thanks a lot for this options, especially the fans
will try it later

Deutsche Bitcoinbörse: https://www.bitcoin.de/r/yyfrkv
das passende Konto gibts bei der fidor Bank https://banking.fidor.de/registrierung?ibid=43076568
invader
Sr. Member
****
Offline Offline

Activity: 262



View Profile
July 01, 2013, 09:33:08 AM
 #1555


New command line options:

--avalon-fan <arg> Set fanspeed percentage for avalon, single value or range (default: 20-100)
--avalon-freq <arg> Set frequency range for avalon-auto, single value or range


Well, i would finish soon code for custom fans to allow setting MIN/MAX_PWM value (currently hardcoded 0x20, 0xA0 values) and inverse pwm option behavior when 0x00 = full speed (im back to original solution when change in temp_rise(), temp_drop() functions is needed) would you also include this changes after i test them on my inverse PWM fans?
To allow avalon be more flexible with different type of fans - like this :
Code:
0x00 = 4320 RPM
0x20 = 3840 RPM
0x40 = 3120 .. 3000 RPM
0x80 = 1440 .. 1320 RPM
0x84 = 1200 .. 1080 RPM
0x88 = 960 .. 840 RPM
0x8A = 720 .. 600 RPM
0x8C = STOP , 0 RPM

ADD:

Edited fresh sources, now with --avalon-fan i think only one additional option is needed,
so i added options --avalon-invert-pwm and functions temp_rise_invert(), temp_drop_invert(), adjust_fan_invert()
also changed some places where DEFAULT_PWM_MIN/MAX constants appears.
I will post the changes once i test them on my setup.

ADD:

So it works as expected! I think im done here.
Now what i have done to the latest cgminer sources from git :

in cgminer.c , inserted @ LINE 1063
Code:
           OPT_WITHOUT_ARG("--avalon-invert-pwm",
                                    opt_set_bool, &opt_avalon_invert_pwm,
                                    "Enable avalon use with inverted PWM fans."),

in driver-avalon.h , inserted @ LINE 164
Code:
extern bool opt_avalon_invert_pwm;

in driver-avalon.c

inserted @ LINE 13
Code:
bool opt_avalon_invert_pwm;

changed in function avalon_init_task()
Code:
at->fan_pwm_data = (fan ? fan : AVALON_DEFAULT_FAN_MAX_PWM);
to
Code:
if (!opt_avalon_invert_pwm)
    at->fan_pwm_data = (fan ? fan : AVALON_DEFAULT_FAN_MAX_PWM);
else
    at->fan_pwm_data = (fan ? fan : 0);

changed in function avalon_detect_one()
Code:
info->fan_pwm = AVALON_DEFAULT_FAN_MIN_PWM;
to
Code:
if (!opt_avalon_invert_pwm)
    info->fan_pwm = AVALON_DEFAULT_FAN_MIN_PWM;
else
    info->fan_pwm = AVALON_DEFAULT_FAN_MAX_PWM - AVALON_DEFAULT_FAN_MIN_PWM;

changed in function avalon_update_temps()
Code:
adjust_fan(info);
to
Code:
if (!opt_avalon_invert_pwm)
        adjust_fan(info);
else
        adjust_fan_invert(info);

added function adjust_fan_invert()
Code:
static inline void adjust_fan_invert(struct avalon_info *info)
{
        int temp_new;

        temp_new = info->temp_sum / info->temp_history_count;
        
        if (temp_new > info->temp_old)
                temp_rise_invert(info, temp_new);
        else if (temp_new < info->temp_old)
                temp_drop_invert(info, temp_new);
        else {
                /* temp_new == info->temp_old */
                if (temp_new > opt_avalon_temp)
                        temp_rise_invert(info, temp_new);
                else if (temp_new < opt_avalon_temp - AVALON_TEMP_HYSTERESIS)
                        temp_drop_invert(info, temp_new);
        }
        info->temp_old = temp_new;
        if (info->temp_old <= opt_avalon_temp)
                info->optimal = true;
        else
                info->optimal = false;
}

added function temp_rise_invert()
Code:
static void temp_rise_invert(struct avalon_info *info, int temp)
{
        if (temp >= opt_avalon_temp + AVALON_TEMP_HYSTERESIS * 3) {
                info->fan_pwm = 0;
                return;
        }
        if (temp >= opt_avalon_temp + AVALON_TEMP_HYSTERESIS * 2)
                info->fan_pwm -= 10;
        else if (temp > opt_avalon_temp)
                info->fan_pwm -= 5;
        else if (temp >= opt_avalon_temp - AVALON_TEMP_HYSTERESIS)
                info->fan_pwm -= 1;
        else
                return;

        if (info->fan_pwm < (AVALON_PWM_MAX - opt_avalon_fan_max))
                info->fan_pwm = (AVALON_PWM_MAX - opt_avalon_fan_max);
}

added function temp_drop_invert()
Code:
static void temp_drop_invert(struct avalon_info *info, int temp)
{
        if (temp <= opt_avalon_temp - AVALON_TEMP_HYSTERESIS * 3) {
                info->fan_pwm = (AVALON_PWM_MAX - opt_avalon_fan_min);
                return;
        }
        if (temp <= opt_avalon_temp - AVALON_TEMP_HYSTERESIS * 2)
                info->fan_pwm += 10;
        else if (temp <= opt_avalon_temp - AVALON_TEMP_HYSTERESIS)
                info->fan_pwm += 5;
        else if (temp < opt_avalon_temp)
                info->fan_pwm += 1;

        if (info->fan_pwm > (AVALON_PWM_MAX - opt_avalon_fan_min))
                info->fan_pwm = (AVALON_PWM_MAX - opt_avalon_fan_min);
}


So, this change allow to use inverted PWM fans, and also correctly works with --avalon-fan options
ckolivas, please include this changes in future releases! (donation would be send)
thorvald
Sr. Member
****
Offline Offline

Activity: 242

Aa7kiQZaSRf7BDPvr3SUJyD7K63HEu6Tnt


View Profile
July 01, 2013, 09:59:39 AM
 #1556

tested again with the latest firmware
flash it without keep settings , restart , change root pass and change ip , restart power off 1min
try to hash for donation , stop start cgminer   power off 1 min
apply settings again 282 , cgminer stop , power off
0 hash rate
I think there must be something wrong with the fpga bord   in my av ver 1
went back to 519b
Regards
Thor
aardvark
Newbie
*
Offline Offline

Activity: 3


View Profile
July 01, 2013, 10:28:03 AM
 #1557

If any avalon users have managed to brick their wr703n and dont have serial access to it , I can offer an unbricking service for 0.50 btc or if they have blown it up somehow ... a new ready programmed modified wr703n with the additional memory for 1btc.. pm if interested ..Prices include p&p in the Uk  for overseas users , there will be additional nominal postage . Turnaround should be same day ... pm if interested


 
Tinua
Hero Member
*****
Offline Offline

Activity: 858



View Profile
July 01, 2013, 01:35:09 PM
 #1558


Hello ckolivas

Great job!
Everything is going great.
I love the fix value for the fans speed!
Let my 5 Avalon for a few hours on your donation pool!

Many thanks

Greetings from Switzerland
Tinu

PS: What I see is, "memory usage" in the "process status" is at 119% Huh
-ck
Moderator
Legendary
*
Offline Offline

Activity: 2352


Ruu \o/


View Profile WWW
July 01, 2013, 02:16:34 PM
 #1559


Hello ckolivas

Great job!
Everything is going great.
I love the fix value for the fans speed!
Let my 5 Avalon for a few hours on your donation pool!

Many thanks

Greetings from Switzerland
Tinu

PS: What I see is, "memory usage" in the "process status" is at 119% Huh
Thanks, much appreciated hash donation!

Memory usage on linux looks like that often as it includes all sorts of cached data as well as what's actually in use. It's of no major significance.

Primary developer/maintainer for cgminer and ckpool/ckproxy.
ZERO FEE Pooled mining at ckpool.org 1% Fee Solo mining at solo.ckpool.org
-ck
Tinua
Hero Member
*****
Offline Offline

Activity: 858



View Profile
July 01, 2013, 02:24:18 PM
 #1560


Thanks, much appreciated hash donation!

You're welcome!

You are now No.1 on Ozcoin  Grin
Pages: « 1 ... 28 29 30 31 32 33 34 35 36 37 38 39 40 41 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 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 ... 221 »
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!