Bitcoin Forum
April 25, 2024, 01:06:28 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
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 438333 times)
loshia
Legendary
*
Offline Offline

Activity: 1610
Merit: 1000


View Profile
July 01, 2013, 05:57:35 AM
Last edit: July 01, 2013, 06:24:56 AM by loshia
 #1541

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
1714007188
Hero Member
*
Offline Offline

Posts: 1714007188

View Profile Personal Message (Offline)

Ignore
1714007188
Reply with quote  #2

1714007188
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714007188
Hero Member
*
Offline Offline

Posts: 1714007188

View Profile Personal Message (Offline)

Ignore
1714007188
Reply with quote  #2

1714007188
Report to moderator
cypherdoc
Legendary
*
Offline Offline

Activity: 1764
Merit: 1002



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

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
Legendary
*
Offline Offline

Activity: 4088
Merit: 1631


Ruu \o/


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

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.

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
-ck
Legendary
*
Offline Offline

Activity: 4088
Merit: 1631


Ruu \o/


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

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

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
jddebug
Sr. Member
****
Offline Offline

Activity: 446
Merit: 250



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

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
Legendary
*
Offline Offline

Activity: 4088
Merit: 1631


Ruu \o/


View Profile WWW
July 01, 2013, 06:41:34 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.

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

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
jddebug
Sr. Member
****
Offline Offline

Activity: 446
Merit: 250



View Profile
July 01, 2013, 06:43:12 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

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

Activity: 302
Merit: 252



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

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
Legendary
*
Offline Offline

Activity: 4088
Merit: 1631


Ruu \o/


View Profile WWW
July 01, 2013, 07:18:27 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 ?
It is for all avalons. The settings you choose will depend on your hardware but default settings are safe on all of them.

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
Tesla71
Sr. Member
****
Offline Offline

Activity: 302
Merit: 252



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

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
Legendary
*
Offline Offline

Activity: 4088
Merit: 1631


Ruu \o/


View Profile WWW
July 01, 2013, 07:29:10 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?
You can, but the new firmware doesn't overclock, it just gives you the ability to overclock if you desire...

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
Tesla71
Sr. Member
****
Offline Offline

Activity: 302
Merit: 252



View Profile
July 01, 2013, 07:30:29 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...
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: 1206
Merit: 1000



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


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: 266
Merit: 250



View Profile
July 01, 2013, 09:33:08 AM
Last edit: July 04, 2013, 07:46:18 AM by invader
 #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


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: 388
Merit: 250



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

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

▄▄▄████████▄▄▄
▄▄██████████████████▄▄
▄████████████████████████▄
▄██████████████████████▀  ███▄
████████████▀▀    ▀▀███▀  ▄█████
██████████▀         ██▀  ▄████████
█████████▀      ▄▄▄▄██▀  ▄██████████
████████     ▄██████▀  ▄██  ████████
████████     ███████▀  ▄██    ████████
████████    ██████▀  ▄████    ████████
████████    █████▀  ▄█████    ████████
████████    ███▀  ▄██████     ████████
████████  ███▀  ▄█████▀     ████████
███████████▀  ▄█▀▀▀▀      ▄█████████
█████████▀  ▄█         ▄██████████
██████▀  ▄██▄▄    ▄▄████████████
▀████  ▄█████████████████████▀
▀████████████████████████▀
▀▀██████████████████▀▀
▀▀▀████████▀▀▀




██████            ██████          ▄▄██████          ▄▄███████▄▄                ▄▄███████▄▄
 ██████          ██████        ▄██████████       ▄███████████████▄          ▄███████████████▄
 ▀█████▄        ▄█████▀       ████████████      ███████████████████        ███████████████████
  ▀█████▄      ▄█████▀       ████████▀▀        ███████▀▀    ▀▀██████      ██████▀▀     ▀▀██████
   ██████      ██████       ███████           ██████▀       ▄██████      █████▀           ▀█████
   ▀█████▄    ▄█████▀      ███████           ██████       ▄██████▀      █████               █████
    ▀█████▄  ▄█████▀       ██████            █████      ▄██████▀        █████               █████
     ██████  ██████        ██████            █████    ▄██████▀          █████               █████
     ▀█████▄▄█████▀        ██████            █████▄ ▄██████▀            █████               █████
      ▀██████████▀         ██████             ███████████▀     ▄███▄     █████▄           ▄█████
       ██████████          ██████              ████████▀    ▄▄██████      ██████▄▄     ▄▄██████
       ▀████████▀          ██████               ███████████████████        ███████████████████
        ▀██████▀           ██████                ▀███████████████▀          ▀███████████████▀
         ▀████▀            ██████                   ▀▀███████▀▀                ▀▀███████▀▀




[
 ▄███████████████████████▄
██▀                     ▀██
██  ▄█████████████████▄  ██
██  ███             ███  ██
██  ███             ███  ██
██  ███             ███  ██
██  ███             ███  ██
██  ███             ███  ██
██  ▀████████████████▀   ██
██                       ██
██                  ▄▄▄  ██
██   ██             ███  ██
██ ██████       ▄▄▄      ██
██   ██         ███    ▄ ██
██        ▄  ▄       ▄▀ ▄██
██      ▄▀ ▄▀      ▄▀ ▄██▀
██▄               ▀ ▄██▀
 ▀███████████████████▀
Telegram
ANN Thread
Website
]
aardvark
Newbie
*
Offline Offline

Activity: 3
Merit: 0


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

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: 871
Merit: 1000



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


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
Legendary
*
Offline Offline

Activity: 4088
Merit: 1631


Ruu \o/


View Profile WWW
July 01, 2013, 02:16:34 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
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.

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
Tinua
Hero Member
*****
Offline Offline

Activity: 871
Merit: 1000



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


Thanks, much appreciated hash donation!

You're welcome!

You are now No.1 on Ozcoin  Grin
invader
Sr. Member
****
Offline Offline

Activity: 266
Merit: 250



View Profile
July 01, 2013, 07:57:23 PM
Last edit: July 01, 2013, 10:33:31 PM by invader
 #1560

Anyone tried to build avalon image from sources?
I've got this error in the end of process
Code:
make[2]: Entering directory `/home/build-image/avalon/luci/contrib/uci/uci.git/lua'
gcc -I..  -I/include -O2 -fPIC -c -o uci.o uci.c
uci.c:24:21: fatal error: lauxlib.h: No such file or directory
compilation terminated.
make[2]: *** [uci.o] Error 1
make[2]: Leaving directory `/home/build-image/avalon/luci/contrib/uci/uci.git/lua'
make[1]: *** [compile] Error 2
make[1]: Leaving directory `/home/build-image/avalon/luci/contrib/uci'
*** Compilation of contrib/uci failed!
make: *** [gccbuild] Error 1
make: Leaving directory `/home/build-image/avalon/luci'
But i found ready image openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-factory.bin in /avalon/openwrt/bin/ar71xx
(not in avalon/bin/ as stated, probably because script is not exited correctly)
Should i just ignore this error and use it or something goes wrong?

ADD:

Seems that image only builds successfully on initial --clone option.
Found this, but it's not a solution. Seems that build script is not working "out of box"
If anyone already successfully build a working firmware, please share your experience.

ADD:

Fixed this errors by putting in makefiles "-I/home/build-image/avalon/openwrt/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include/" where compiler can't find this file. Something is wrong with the path where make for luci starts. I feel this is not the right way to do this (better solution anyone?), but received .bin image file in result.
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:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!