invader
|
|
June 30, 2013, 09:50:25 AM Last edit: June 30, 2013, 11:31:37 AM by invader |
|
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 OPT_WITHOUT_ARG("--avalon-invert-pwm", opt_set_bool, &opt_avalon_invert_pwm, "Enable avalon use with inverted PWM fans."),
in driver-avalon.h extern bool opt_avalon_invert_pwm;
in driver-avalon.c 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.
|
|
|
|
Bogart
Legendary
Offline
Activity: 966
Merit: 1000
|
|
June 30, 2013, 12:15:14 PM |
|
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
|
|
June 30, 2013, 12:56:12 PM Last edit: June 30, 2013, 04:26:55 PM by invader |
|
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 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. 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 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
Activity: 1764
Merit: 1002
|
|
June 30, 2013, 01:01:23 PM |
|
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: : Error opening block database. Do you want to rebuild the block database now?
|
|
|
|
Bogart
Legendary
Offline
Activity: 966
Merit: 1000
|
|
June 30, 2013, 01:15:03 PM |
|
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: : 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
|
|
June 30, 2013, 01:15:42 PM |
|
try "sudo bitcoind"
|
|
|
|
cypherdoc
Legendary
Offline
Activity: 1764
Merit: 1002
|
|
June 30, 2013, 01:40:36 PM |
|
i ran this: 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
Activity: 966
Merit: 1000
|
|
June 30, 2013, 01:45:52 PM |
|
i ran this: 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
Activity: 1764
Merit: 1002
|
|
June 30, 2013, 01:57:56 PM |
|
i ran this: 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
Activity: 1764
Merit: 1002
|
|
June 30, 2013, 03:05:16 PM |
|
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
Activity: 1764
Merit: 1002
|
|
June 30, 2013, 03:17:55 PM |
|
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
Activity: 892
Merit: 1002
1 BTC =1 BTC
|
|
June 30, 2013, 03:51:23 PM |
|
350 and pretty cool without airco (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.
|
|
|
|
|
Vicus
|
|
June 30, 2013, 05:13:55 PM |
|
any suggestions?:
Dead PSU?
|
|
|
|
shmadz
Legendary
Offline
Activity: 1512
Merit: 1000
@theshmadz
|
|
June 30, 2013, 05:25:36 PM |
|
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
Activity: 892
Merit: 1002
1 BTC =1 BTC
|
|
June 30, 2013, 06:04:42 PM |
|
@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
Activity: 1764
Merit: 1002
|
|
June 30, 2013, 06:21:11 PM |
|
Did you un-check the box that said "keep settings"? no, i was told to keep it checked that's what the wiki says to do too.
|
|
|
|
cypherdoc
Legendary
Offline
Activity: 1764
Merit: 1002
|
|
June 30, 2013, 06:25:17 PM |
|
@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 ?
[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
Activity: 1764
Merit: 1002
|
|
June 30, 2013, 06:28:41 PM |
|
still sick:
|
|
|
|
shmadz
Legendary
Offline
Activity: 1512
Merit: 1000
@theshmadz
|
|
June 30, 2013, 06:43:46 PM |
|
Did you un-check the box that said "keep settings"? no, i was told to keep it checked 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
|
|
|
|