Author

Topic: [ANN][BLC] Blakecoin Blake-256 for GPU/FPGA With Merged Mined Pools Stable Net - page 169. (Read 409569 times)

legendary
Activity: 1470
Merit: 1001
Use Coinbase Account almosanywhere with Shift card
no good.

just in case flipped each switch back and forth to make sure all in correct positions (power off)

Doing reload again

flip switch 3 back while still on and connected to virtual box?
sr. member
Activity: 384
Merit: 250
Moving (and renaming Wink ) file was going to be my next try but I was able to get good loads on 2nd try on p0 p1 and 1st trys on p2 p3

Cool, I just checked and its OK to run from the home directory
Code:
root@cainsmore:~# xc3sprog -c cm1 -v -p0 hv-04a-80.bit
XC3SPROG (c) 2004-2011 xc3sprog project $Rev: 674 $ OS: Linux
Free software: If you contribute nothing, expect nothing!
Feedback on success/failure/enhancement requests:
        http://sourceforge.net/mail/?group_id=170565
Check Sourceforge for updates:
        http://sourceforge.net/projects/xc3sprog/develop

Using devlist.txt
Using cablelist.txt
Cable cm1 type ftdi VID 0x0403 PID 0x8350 dbus data 00 enable 0b cbus data 00 data 00
Using Libftdi, Using JTAG frequency 1500000 from undivided clock
JTAG chainpos: 0 Device IDCODE = 0x3401d093     Desc: XC6SLX150
Created from NCD file: HASHVOODOO_routed.ncd;UserID=0xFFFFFFFF
Target device: 6slx150fgg484
Created: 2013/11/15 23:15:58
Bitstream length: 33761696 bits
DNA is 0xb95c8eff6fc14bff
done. Programming time 22693.1 ms
USB transactions: Write 2077 read 11 retries 3

So flip the switch (3), confirm the red LEDs are flashing, init 0, replug the usb and give it a whirl  Cool
legendary
Activity: 1470
Merit: 1001
Use Coinbase Account almosanywhere with Shift card
Moving (and renaming Wink ) file was going to be my next try but I was able to get good loads on 2nd try on p0 p1 and 1st trys on p2 p3
legendary
Activity: 1470
Merit: 1001
Use Coinbase Account almosanywhere with Shift card
retried a few more times now have p0-p3 loaded no errors but lights are yellow red
sr. member
Activity: 384
Merit: 250
if I CD into xc3sprog it fails unble to find the bit file
if I co back up one level (where .bit file is then I get
xc3sprog -c cm1 -v -p0 CM1-hv-v04a-80MHz-ucf-75-fmax-78.bit
--snip--
p0 device failed to configure instruction capture is 0x3f
USB transactions: Write 2175 read 60 reties 2

You should (probably - see below) move the bitfile into the xc3sprog  directory
cd
mv CM1-hv-v04a-80MHz-ucf-75-fmax-78.bit xc3sprog
It helps to use tab for filename completion, also renaming the bit file to hv.bit makes typing a lot quicker Wink

Bear with me a few minutes and I'll check out if it really matters which directory you run the commands from.
legendary
Activity: 1470
Merit: 1001
Use Coinbase Account almosanywhere with Shift card
if I CD into xc3sprog it fails unble to find the bit file

if I co back up one level (where .bit file is then I get


xc3sprog -c cm1 -v -p0 CM1-hv-v04a-80MHz-ucf-75-fmax-78.bit

--snip--

p0 device failed to configure instruction capture is 0x3f
USB transactions: Write 2175 read 60 reties 2
legendary
Activity: 1470
Merit: 1001
Use Coinbase Account almosanywhere with Shift card
sr. member
Activity: 384
Merit: 250
altered switches
ok were blue at powerup then turned red/yellow

com 20-23 is my com ports also

got 3 test failed one failed to open (com22)

OK. You'll have to reprogram it (its only temporary unless you flash the MSC ROMs, which I don't recommend until we've got a good working version of the bitstream).

The way to tell the difference between my firmware and the bitcoin version is that the blue/green leds are swapped.

On bitcoin blue flashes as work is sent, and green flashes for a hash.
On blakecoin green flashes as work is sent, and blue flashes for a hash.

The difference is pretty obvious as the work is sent all together, while hashes occur randomly.

Anyway, to program ... power off the board, set the switches

x
x
x
x

x
    x  (three = program)
x      (two = fan override, switch this if not using the fans)
x

Wait for it to initialise, sequentially first blue, then red/yellow.

Start up your VirtualBox, login root/password
cd xc3sprog
xc3sprog -c cm1 -v -p0 CM1-hv-v04a-80MHz-ucf-75-fmax-78.bit
LEDs will go blue on one device
If all goes well, after 20 seconds you'll see red/yellow/green, and the green will fade
Repeat for p1 p2 p3
If instead it stays blue, just move on to the next one, once all four are blue, start from p0 again and it should work this time.
Now set the switches all in the ON position (assuming you've got the fan(s) connected, else switch 2 goes OFF)

x
x
x
x

x
x
x     (two = fan override, switch this if not using the fans)
x

The red LEDs should start flashing slowly (about once per second)
Type "init 0" (that's zero) to shutdown the VirtualBox, wait until closed
Disconnect and reconnect the USB
Now start the cgminer. You should get four blue flashes as they are detected (unfortunately the old bitcoin bitstream will also do this, but the blakecoin one will now give regular green flashes with occasional blue, while bitcoin gives regular blue ones with occasional green).

If it works, you can try the faster bitstreams, and eventually try flashing to ROM which will make them permanent via "xc3sprog -c cm1 -p0 -Ixc6lx150.bit CM1-hv-v04a-80MHz-ucf-75-fmax-78.bit"


legendary
Activity: 1470
Merit: 1001
Use Coinbase Account almosanywhere with Shift card
altered switches
ok were blue at powerup then turned red/yellow

com 20-23 is my com ports also

got 3 test failed one failed to open (com22)
sr. member
Activity: 384
Merit: 250
this is my current config
holding board with 4 & 6 pin power pointing left (green phoniex on top)
switches as follow

x
x
x
  x

x
x
x
x

this is what CM1Quickstart calls Mining software configuration

My configuration ...

x
x
x
x

x
x
  x
x

Switch 2 is the fan override since I'm not using the supplied fans. Switch 5 is the clock speed setting, needs to be in the opposite direction for the hashvoodo firmware.
legendary
Activity: 1470
Merit: 1001
Use Coinbase Account almosanywhere with Shift card
this is my current config
holding board with 4 & 6 pin power pointing left (green phoniex on top)
switches as follow

x
x
x
  x

x
x
x
x

this is what CM1Quickstart calls Mining software configuration
sr. member
Activity: 384
Merit: 250
May not have loaded bitsteam correctly

all 4 have yellow and red solid led no blue  Sad
slow red blinker center of board

Turn switch 3 back on, the red LEDs should start to blink. If you used the VirtualBox instance to program the devices, shut it down (init 0), unplug then replug the USB cable, then start cgminer (runblake.bat).
legendary
Activity: 1470
Merit: 1001
Use Coinbase Account almosanywhere with Shift card
May not have loaded bitsteam correctly

all 4 have yellow and red solid led no blue  Sad
slow red blinker center of board
legendary
Activity: 1470
Merit: 1001
Use Coinbase Account almosanywhere with Shift card
progress

got icarus fails so tried -notest version

Code:

D:\Coin_Wallets\Miners\cgminer-blake256-FPGA>D:\Coin_Wallets\Miners\cgminer-blak
e256-FPGA\cgminer-311-2013-11-16-CM1-notest.exe -T --disable-gpu --icarus-timing
 long -S \\.\COM20 -S \\.\COM21 -S \\.\CM22 -S \\.\COM23 --url 127.0.0.1:8772 -u
 mogrith -p nonono  2>log.txt
 [2013-11-17 13:20:47] Started cgminer 3.1.1
 [2013-11-17 13:20:48] Icarus Detect: Test failed at \\.\COM20: get 00000000, sh
ould: 00468bb4
 [2013-11-17 13:20:48] Icarus Detect: Test failed at \\.\COM21: get 00000000, sh
ould: 00468bb4
 [2013-11-17 13:20:48] Icarus Detect: Failed to open \\.\CM22

 [2013-11-17 13:20:48] Icarus Detect: Test failed at \\.\COM23: get 00000000, sh
ould: 00468bb4
 [2013-11-17 13:20:48] Probing for an alive pool
 [2013-11-17 13:20:48] Network diff set to 1.46K
 [2013-11-17 13:20:48] No suitable long-poll found for http://127.0.0.1:8772

 [2013-11-17 13:20:59] Network diff set to 1.46K
 [2013-11-17 13:20:59] New block detected on network
 [2013-11-17 13:21:45] Network diff set to 1.46K
 [2013-11-17 13:21:45] New block detected on network
 [2013-11-17 13:22:30] Network diff set to 1.46K
 [2013-11-17 13:22:30] New block detected on network
(5s):1.138G (avg):1.115Gh/s | A:0  R:0  HW:0  U:0.0/m  WU:0.0/m

so it's sorta running
sr. member
Activity: 384
Merit: 250
Yep, sorry its a bit rough at the moment. I wrote some quick notes here https://github.com/kramble/FPGA-Blakecoin-Miner/blob/master/cgminer/cgminer-3.1.1/README.txt

I did dry to get it working on cgminer 3.4.3 (the latest version that included ztex support), but no joy, its broken (works on ztex though) .

I'll make a start on BFGminer tomorrow, cgminer just doesn't seem to support the CM1 (kano didn't get his dev board, so no surprise there, its not easy to code blind without hardware to test on).
legendary
Activity: 1509
Merit: 1030
Solutions Architect
Now I get program cannot start because libsub-1.0.dll is missing

ok add these to your cgminer folder its the dependancies for kramble's mod should fix that issue Smiley
https://www.dropbox.com/s/xa01f9hhakpsexv/cgminer-3.1.1-blakefpga.zip
legendary
Activity: 1470
Merit: 1001
Use Coinbase Account almosanywhere with Shift card
Now I get program cannot start because libsub-1.0.dll is missing
legendary
Activity: 1509
Merit: 1030
Solutions Architect
new hashvoodo loaded as controller
hashvoodoo_controller_25.bit

bitstream loaded on p0-p3
CM1-hv-v04a-80MHz-ucf-75-fmax-78.bit

Can't get cgminer to run WIn7

D:\Coin_Wallets\Miners\cgminer-blake256>D:\Coin_Wallets\Miners\cgminer-blake256\
cgminer -T --disable-gpu -S \\.\COM20 -S \\.\COM21 -S \\.\COM22 -S \\.\COM23 --u
rl localhost:8772 -u mogrith -p xxxx  2>log.txt
 [2013-11-17 12:28:43] cgminer: -S: unrecognized option

are you sure that is the right cgminer?

use the version kramble has modded as the newer versions of cgminer don't support the -S option any more Sad
https://www.dropbox.com/s/m18kr3kgrl102w2/cgminer-311-2013-11-16-CM1.exe
legendary
Activity: 1470
Merit: 1001
Use Coinbase Account almosanywhere with Shift card
EDit Wrong cgminer was using one for GPU. D/L correct one now.  Embarrassed

new hashvoodo loaded as controller
hashvoodoo_controller_25.bit

bitstream loaded on p0-p3
CM1-hv-v04a-80MHz-ucf-75-fmax-78.bit

Can't get cgminer to run WIn7

D:\Coin_Wallets\Miners\cgminer-blake256>D:\Coin_Wallets\Miners\cgminer-blake256\
cgminer -T --disable-gpu -S \\.\COM20 -S \\.\COM21 -S \\.\COM22 -S \\.\COM23 --u
rl localhost:8772 -u mogrith -p xxxx  2>log.txt
 [2013-11-17 12:28:43] cgminer: -S: unrecognized option
legendary
Activity: 1509
Merit: 1030
Solutions Architect
and I dont see here using blake algo to generate merkleroot - maybe here is the problem?

The merkleroot is a double SHA-256 and uses the same ecdsa curve as Bitcoin like I have said in pm to you but the stratum pool software does not just do a single doublesha on the merkleroot  Huh

also the cpu miner uses the getwork2 for mining the wallet?

Hi - correct me if I am wrong but when you mine a wallet you don't calculate merkleroot therefore you can find blocks with cpuminer or cgminer, but when you mine with stratum pool then cpuminer is calculating merkleroot (just sha algo), then stratum server calculates it once again (with blake algo according to your modified function) and then wallet checks merkleroot (also with blake algo) and this check fails. Thats why I pointed this part of stratum work build function in cpuminer as first step which logically is wrong (assuming wallet function as baseline).

yes I see what you mean  Undecided

I have tested with a modified stratum proxy and the block candidate is still rejected but I have not yet tried with a modified block submission method and the modified stratum proxy at the same time this is the only way I can think of to avoid a calculation error like the one you are suggesting

only issue with that fix is the pool has a lot more duplicate shares that get submitted Embarrassed
  
Jump to: