Bitcoin Forum
April 23, 2024, 03:48:35 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 ... 26 27 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 ... 221 »
  Print  
Author Topic: Avalon ASIC users thread  (Read 438333 times)
invader
Sr. Member
****
Offline Offline

Activity: 266
Merit: 250



View Profile
June 30, 2013, 09:50:25 AM
Last edit: June 30, 2013, 11:31:37 AM by invader
 #1501

Trying to set a build envirement via build-avalon-image.sh --clone to make cgminer binary and image with it. Really, it takes a long time to build a toolchain.. Got some errors in process due to $LD_LIBRARY_PATH variable .. now need to run again >_<. Changed git path in script to clone latest cgminer 3.3.1 also.

ckolivas, can you also upload to git changes that you made in luci / cgminer-webui , please?
currently it's taken from here
git clone git://github.com/BitSyncom/luci.git && (cd luci && git checkout -b cgminer-webui origin/cgminer-webui) )

I know what i must change to be able to run inverted pwm fan, but it's not so easy in first time to make binary for avalon with option enabled xor(0xA0,fan) in avalon_init_task() ... Im intending to buld a functional image identical to 20130627 for now from sources, then i will try to make changes.

EDIT:

So basically, i edited the sources and compiled it successfully!
Only problem that toolchain is in process of building right now, so i have only binary for x86 now.

What i edited :

in cgminer.c
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
Code:
extern bool opt_avalon_invert_pwm;

in driver-avalon.c
Code:
bool opt_avalon_invert_pwm;
...
        if (opt_avalon_invert_pwm) {
            at->fan_pwm_data = 0xA0 ^ at->fan_pwm_data;
        }

That's all. Now only testing is needed.
1713887315
Hero Member
*
Offline Offline

Posts: 1713887315

View Profile Personal Message (Offline)

Ignore
1713887315
Reply with quote  #2

1713887315
Report to moderator
Bitcoin mining is now a specialized and very risky industry, just like gold mining. Amateur miners are unlikely to make much money, and may even lose money. Bitcoin is much more than just mining, though!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713887315
Hero Member
*
Offline Offline

Posts: 1713887315

View Profile Personal Message (Offline)

Ignore
1713887315
Reply with quote  #2

1713887315
Report to moderator
Bogart
Legendary
*
Offline Offline

Activity: 966
Merit: 1000


View Profile
June 30, 2013, 12:15:14 PM
 #1502

Trying to set a build envirement via build-avalon-image.sh --clone to make cgminer binary and image with it. Really, it takes a long time to build a toolchain.

It sure does take a long time.  I built an image using that script back when it used cgminer 2.11.

It ended up using 6 gigs of disk for all the things, and took many hours to complete on a 6 core system with fast fiber internets.

Once you do it once, though, subsequent builds should go a lot faster.

"All safe deposit boxes in banks or financial institutions have been sealed... and may only be opened in the presence of an agent of the I.R.S." - President F.D. Roosevelt, 1933
invader
Sr. Member
****
Offline Offline

Activity: 266
Merit: 250



View Profile
June 30, 2013, 12:56:12 PM
Last edit: June 30, 2013, 04:26:55 PM by invader
 #1503

Now i done with toolchain, trying to build mips binary with my changes - seems that its overwriting my changes by downloading cgminer sources from git and repackaging it in cgminer-*.tar.bz2, then unpacking it and building. Damn.

EDIT:

At last! Cheated build script by repacking sources with my changed files to cgminer-3.3.1-<longcharstring>.tar.bz2

Code:
root@avalon:/tmp# ./cgminer-mips --help
..
--avalon-auto       Adjust avalon overclock frequency dynamically for best hashrate
--avalon-invert-pwm Enable avalon use with inverted PWM fans.
--avalon-cutoff <arg> Set avalon overheat cut off temperature (default: 60)
--avalon-options <arg> Set avalon options baud:miners:asic:timeout:freq
--avalon-temp <arg> Set avalon target temperature (default: 50)
..

Now going to test it.

ADD:

Test FAILED. Sad Something strange happened, new cgminer started, but no accepted shares received and no temp/fan info. F*ck.
It's WORKING as intended!!! Now with options --avalon-invert-pwm --avalon-temp 0 fans going to full rpm, not stopping. Going test is a bit more with different temp targets now. Previous problem was probably caused by multiple cgminer instances running.

ADD:

Still something strange is going on, when i set target temp to 50 and real temp is going over it - fans is stopping!
Need to check calculation regarding xor(0xA0, fan).
YEP, wrong.
20 ^ A0 = 80
40 ^ A0 = E0 <- stops here
80 ^ A0 = 20
Need recalculate. XOR is not suitable, must be correct and more universal piece of code with mix/max/invert options.

ADD:

Added options to allow set fixed PWM value from arguments, and it looks like following from measures

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

Activity: 1764
Merit: 1002



View Profile
June 30, 2013, 01:01:23 PM
 #1504

can someone tell me how to delete the blockchain in ubuntu and start a re-download?

unless you can tell me how to get out of this error:

Code:
: Error opening block database.
Do you want to rebuild the block database now?
Bogart
Legendary
*
Offline Offline

Activity: 966
Merit: 1000


View Profile
June 30, 2013, 01:15:03 PM
 #1505

can someone tell me how to delete the blockchain in ubuntu and start a re-download?

unless you can tell me how to get out of this error:

Code:
: Error opening block database.
Do you want to rebuild the block database now?

Run bitcoind in non-daemon mode, and answer "yes" when asked if you want to rebuild the block database.

(The rebuild will take a long time.)

"All safe deposit boxes in banks or financial institutions have been sealed... and may only be opened in the presence of an agent of the I.R.S." - President F.D. Roosevelt, 1933
mitak64
Full Member
***
Offline Offline

Activity: 254
Merit: 100


View Profile
June 30, 2013, 01:15:42 PM
 #1506

try "sudo bitcoind"
cypherdoc
Legendary
*
Offline Offline

Activity: 1764
Merit: 1002



View Profile
June 30, 2013, 01:40:36 PM
 #1507

i ran this:

Code:
home@server:~/git/bitcoin$ bitcoind -reindex

cursor dropped down one line and is just blinking by itself.  does that mean its reindexing?  how can i tell?
Bogart
Legendary
*
Offline Offline

Activity: 966
Merit: 1000


View Profile
June 30, 2013, 01:45:52 PM
 #1508

i ran this:

Code:
home@server:~/git/bitcoin$ bitcoind -reindex

cursor dropped down one line and is just blinking by itself.  does that mean its reindexing?  how can i tell?

Probably.  Is your disk activity light blinking?  Does top or ps show bitcoind using a lot of CPU?  If yes, then it's doing its thing.

For me the process takes hours on a fast system with an SSD.

"All safe deposit boxes in banks or financial institutions have been sealed... and may only be opened in the presence of an agent of the I.R.S." - President F.D. Roosevelt, 1933
cypherdoc
Legendary
*
Offline Offline

Activity: 1764
Merit: 1002



View Profile
June 30, 2013, 01:57:56 PM
 #1509

i ran this:

Code:
home@server:~/git/bitcoin$ bitcoind -reindex

cursor dropped down one line and is just blinking by itself.  does that mean its reindexing?  how can i tell?

Probably.  Is your disk activity light blinking?  Does top or ps show bitcoind using a lot of CPU?  If yes, then it's doing its thing.

For me the process takes hours on a fast system with an SSD.

yeah, i got a blue light on front of pc flashing and top says bitcoind @ 60-70%
cypherdoc
Legendary
*
Offline Offline

Activity: 1764
Merit: 1002



View Profile
June 30, 2013, 03:05:16 PM
 #1510

finally got it to work with ozcoin.

any idea why registered hashrate at ozcoin would be half 33 MH/s vs. 66 MH/s in cgminer status?
cypherdoc
Legendary
*
Offline Offline

Activity: 1764
Merit: 1002



View Profile
June 30, 2013, 03:17:55 PM
 #1511

finally got it to work with ozcoin.

any idea why registered hashrate at ozcoin would be half 33 MH/s vs. 66 MH/s in cgminer status?

nvm.  ozcoin registering properly.
server
Legendary
*
Offline Offline

Activity: 892
Merit: 1002


1 BTC =1 BTC


View Profile
June 30, 2013, 03:51:23 PM
 #1512

350 and pretty cool without airco Cool



(1 fan on max rpm)

How do you set your ASIC to be like that? I'm getting 46 degrees. its crazy!

Avalon vertical, external psu and vent blowing to the bottemplate.
Mid-fan (fan2) blowing max rpm, other fans auto.

My ambient basement temp = 20-23 degrees.

Right now both fans are on auto again and therefor Temp2 is over 40.




cypherdoc
Legendary
*
Offline Offline

Activity: 1764
Merit: 1002



View Profile
June 30, 2013, 04:39:37 PM
 #1513

just upgraded firmware to ckolivas latest version:  http://ck.kolivas.org/apps/cgminer/avalon/20130627/openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-factory.bin

despite multiple restarts, reboots, hard reboots i still don't get hashing

any suggestions?:

Vicus
Hero Member
*****
Offline Offline

Activity: 798
Merit: 1000


View Profile
June 30, 2013, 05:13:55 PM
 #1514

any suggestions?:
Dead PSU?
shmadz
Legendary
*
Offline Offline

Activity: 1512
Merit: 1000


@theshmadz


View Profile
June 30, 2013, 05:25:36 PM
 #1515

just upgraded firmware to ckolivas latest version:  http://ck.kolivas.org/apps/cgminer/avalon/20130627/openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-factory.bin

despite multiple restarts, reboots, hard reboots i still don't get hashing

any suggestions?:


Did you un-check the box that said "keep settings"?

"You have no moral right to rule us, nor do you possess any methods of enforcement that we have reason to fear." - John Perry Barlow, 1996
server
Legendary
*
Offline Offline

Activity: 892
Merit: 1002


1 BTC =1 BTC


View Profile
June 30, 2013, 06:04:42 PM
 #1516

@cypherdoc:

Did you check all the connections inside the box ? All flat cables pushed in the sockets ?

Maybe change the USB cable into another port of the hub ?

Diagnostics from the Network-tab are functioning ? connection ok ?

What's visable in Cgminer API log ?

cypherdoc
Legendary
*
Offline Offline

Activity: 1764
Merit: 1002



View Profile
June 30, 2013, 06:21:11 PM
 #1517

just upgraded firmware to ckolivas latest version:  http://ck.kolivas.org/apps/cgminer/avalon/20130627/openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-factory.bin

despite multiple restarts, reboots, hard reboots i still don't get hashing

any suggestions?:


Did you un-check the box that said "keep settings"?

no, i was told to keep it checked Sad

that's what the wiki says to do too.
cypherdoc
Legendary
*
Offline Offline

Activity: 1764
Merit: 1002



View Profile
June 30, 2013, 06:25:17 PM
 #1518

@cypherdoc:

Did you check all the connections inside the box ? All flat cables pushed in the sockets ?  yes

Maybe change the USB cable into another port of the hub ?  not yet

Diagnostics from the Network-tab are functioning ? connection ok ?  yes

What's visable in Cgminer API log ?

Code:
[Firmware Version] => 20130627
cgminer-3454759
luci-d854edc+
cgminer-openwrt-packages-800cc58
Reply was 'STATUS=S,When=1372616659,Code=70,Msg=CGMiner stats,Description=cgminer 3.3.1|STATS=0,ID=POOL0,Elapsed=4279,Calls=0,Wait=0.000000,Max=0.000000,Min=99999999.000000,Pool Calls=0,Pool Attempts=0,Pool Wait=0.000000,Pool Max=0.000000,Pool Min=99999999.000000,Pool Av=0.000000,Work Had Roll Time=false,Work Can Roll=false,Work Had Expire=false,Work Roll Time=0,Work Diff=1.00000000,Min Diff=1.00000000,Max Diff=1.00000000,Min Diff Count=590,Max Diff Count=590,Times Sent=3,Bytes Sent=194,Times Recv=319,Bytes Recv=318031,Net Bytes Sent=194,Net Bytes Recv=318031|'
[STATUS] =>
(
   [STATUS] => S
   [When] => 1372616659
   [Code] => 70
   [Msg] => CGMiner stats
   [Description] => cgminer 3.3.1
)
[STATS0] =>
(
   [STATS] => 0
   [ID] => POOL0
   [Elapsed] => 4279
   [Calls] => 0
   [Wait] => 0.000000
   [Max] => 0.000000
   [Min] => 99999999.000000
   [Pool Calls] => 0
   [Pool Attempts] => 0
   [Pool Wait] => 0.000000
   [Pool Max] => 0.000000
   [Pool Min] => 99999999.000000
   [Pool Av] => 0.000000
   [Work Had Roll Time] => false
   [Work Can Roll] => false
   [Work Had Expire] => false
   [Work Roll Time] => 0
   [Work Diff] => 1.00000000
   [Min Diff] => 1.00000000
   [Max Diff] => 1.00000000
   [Min Diff Count] => 590
   [Max Diff Count] => 590
   [Times Sent] => 3
   [Bytes Sent] => 194
   [Times Recv] => 319
   [Bytes Recv] => 318031
   [Net Bytes Sent] => 194
   [Net Bytes Recv] => 318031
)
[/code]
cypherdoc
Legendary
*
Offline Offline

Activity: 1764
Merit: 1002



View Profile
June 30, 2013, 06:28:41 PM
 #1519

still sick:

shmadz
Legendary
*
Offline Offline

Activity: 1512
Merit: 1000


@theshmadz


View Profile
June 30, 2013, 06:43:46 PM
 #1520

just upgraded firmware to ckolivas latest version:  http://ck.kolivas.org/apps/cgminer/avalon/20130627/openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-factory.bin

despite multiple restarts, reboots, hard reboots i still don't get hashing

any suggestions?:


Did you un-check the box that said "keep settings"?

no, i was told to keep it checked Sad

that's what the wiki says to do too.

I'd suggest you try reflashing with "keep settings" UN-checked. This will reset your machine to defaults so you will have to set your password, network settings, turn off the WIFI, etc... just like you did when you first received your machine.


"You have no moral right to rule us, nor do you possess any methods of enforcement that we have reason to fear." - John Perry Barlow, 1996
Pages: « 1 ... 26 27 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 ... 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!