Bitcoin Forum
September 22, 2025, 01:08:11 PM *
News: Latest Bitcoin Core release: 29.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1] 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 »
1  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][BLC] Blakecoin Blake-256 for GPU/FPGA With Merged Mined Pools 1TH/s+ Net on: August 29, 2014, 12:39:37 PM
ok, then it would be interesting if kramble could have a look at just adapting CryptoNote to the zTex?
And why not have world peace and ponies while he's at it? If you refer to the Cryptonight hash that most Cryptonote coins use, it's a combination of a few different hash/encryption functions and it needs a couple of megs of fast cache. It might fit on one of those big-ass FPGAs that cost thousands apiece. Conversely, Blake is a single, relatively simple hash, which is why it's great for practical FPGA implementations. And as BlueDragon747 already pointed out, even that hasn't been quite trivial.

In the software world, it's easy to make bigger and bigger programs for the same CPU/GPU, as long as you have more memory. The CPU is only running a small part of the program at any single time. This is why we've seen crazy PoW solutions like X11/13/15. But when you're doing something in hardware, as in FPGA, you basically have to fit everything on the chip at once. That's why FPGA/ASIC projects run into hard limits more easily than software ones.

Cheers! Couldn't have said it better myself.  Wink

Actually I'm pretty much finished with crypto on FPGA now. It is just not worth the investment of my time (and the frustration, see what Blue said about ISE). I did have a look at a couple of other algos (groestl, keccak) and got initial, rather poorly performing, builds working, but the GPUs perform far better. The only advantage for FPGA is power consumption.

As for X11/X13, I reckon it can be done on a LX150, but only via a soft-CPU optimized for hashing. A huge amount of work for a very poorly performing hasher. So I'm not going there.

Anyway, best of luck rupy.
2  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][BLC] Blakecoin Blake-256 for GPU/FPGA With Merged Mined Pools 1TH/s+ Net on: July 22, 2014, 09:01:59 PM
well board had more HW than accepted, so now im running at 175 MHz and no more HW and more shares being submitted, still have a wu of aprox 20 :-p

The HW errors are reported on the raw diff=1 shares, but since the pool (currently) accepts at diff=32, it's not quite as bad as it looks. You should be aiming for a HW error rate of a few percent of the diff=1 share rate, so anything less than the accept rate at diff=32 is probably OK (as usual, it's the hash rate reported by the pool that really matters). So you may be able to bump up the clock a little from 175MHz. I was easily achieving 200MHz, though since you've got an early board, it may perform a little worse than the later ones. Good luck Smiley
3  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][BLC] Blakecoin Blake-256 for GPU/FPGA With Merged Mined Pools 1TH/s+ Net on: July 22, 2014, 04:26:36 PM
ive changed the timing, but since blue is setting up umo on the pool, its a bit hard to test, im just letting it run, at some point it will connect again :-p

It's useful to set up a failover pool (just add --failover-only and the second pool login credentials). I actually failover to solo mining so that I pick up the occasional pristine block.

Quote
awesome, ill safe this page so i can see if you update it with more good stuff :-)

Umm, I think that was just about it. I'm not actually doing very much with FPGA at the moment (especially the LX150 which is a right PITA to work with). Just waiting to come up with some cool idea to get stuck into (crypto-mining is pretty much dead on FPGA now, blake is just about the only algo that's worth mining with).

I updated the WU in my previous post to 5.6 per device (60 * 2 * clock * 1000000) / 2^32 ) so you should be seeing around 20 or so for the CM1 board. The pool will tell you the actual rate (should be around 1600MHash/s at 200MHz).
4  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][BLC] Blakecoin Blake-256 for GPU/FPGA With Merged Mined Pools 1TH/s+ Net on: July 22, 2014, 03:53:36 PM
edit:
Kramble, i think you have done an awesome job, everywhere i went to try and figure this out, your name came up :-p, could you by any chance point me in a direction of learning about programming fpgas? books or websites?

Aww, shucks Embarrassed I'm just an amateur, I learned on Bitcoin https://bitcointalk.org/index.php?topic=9047.0

That said, from my bookmarks

http://www.fpga4fun.com/
http://svenand.blogdrive.com/
http://www.asic-world.com/verilog/veritut.html
http://excamera.com/sphinx/fpga-vhdl-verilog.html#main
http://www.joelw.id.au/FPGA/CheapFPGADevelopmentBoards
http://opencores.org/or1k/Main_Page
http://www.rcis.aist.go.jp/special/SASEBO/SHA3-en.html (the inspiration for the blakecoin miner)
http://cryptography.gmu.edu/athena/index.php?id=source_codes (other crypto algos)

and I'll add some more once I've gone through them properly (apologies Blue if this is off topic).
5  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][BLC] Blakecoin Blake-256 for GPU/FPGA With Merged Mined Pools 1TH/s+ Net on: July 22, 2014, 03:41:37 PM
yeah got all that and patched up cgminer, i think its running now though with the following command line (im running linux) :-) yuhu got 3 shares, over the last 6 minutes :-p

sudo ./cgminer --icarus-timing long -S /dev/ttyUSB0 -S /dev/ttyUSB1 -S /dev/ttyUSB2 -S /dev/ttyUSB3 --url stratum+tcp://eu3.blakecoin.com:3334 --userpass FireWalkerX.1:x --cainsmore-clock 200,200,190,180

Yep, that looks good. As long as all four devices are giving accepted hashes at the right sort of rate (WU around 5.6 per fpga 13 I think off the top of my head, I run my lancelot in background I don't see the interactive display, I'll need to check back through the thread to see what others are getting with the CM1). If you run it with the --verbose switch you'll see the difficulty=1 shares being reported in the log (the pool accepts at diff=32 so most of them will be above-targets, but it will show that it's working).

Use "--icarus-timing 1.0=20" instead of long as this gives better control of the work (20 is one work refresh every 2 seconds). You don't want the nonce wrapping and the devices going idle (yellow led).
6  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][BLC] Blakecoin Blake-256 for GPU/FPGA With Merged Mined Pools 1TH/s+ Net on: July 22, 2014, 03:18:33 PM
well, my cm1 has the serial number 11 so im guessing i have one of the "bad" ones...

I think the problem with the early boards was that only three of the four fpgas would work reliably (the clock signal was poorly routed and picked up noise), so you may still be mostly OK.

Quote
i cant seem to get spiprog to load, but i have a feeling its allready on, since when i flashed the bitstreams info where trown at me about made with top.(someting) and another with voodoo something dynamic... it counted and stuff, but im still trying to get it tostart mining.. so far py miner gives me errors about the hash...

It's a long time ago since I worked with this, and the board's since been returned to BlueDragon so I don't think I'm going to be able to help much, but here goes anyway (from memory)...

Spiprog.exe is in http://www.enterpoint.co.uk/cairnsmore/CAIRNSMORE1_CONTROLLER_SHARING_V1_5.zip and you'll need to copy hashvoodoo_controller_25.bit into the same folder (get it from https://github.com/downloads/pmumby/hashvoodoo-fpga-bitcoin-miner/hashvoodoo_release_09_23_2012.zip), then open a DOS command prompt and navigate down to the right place (shift-rightclick on the folder then open command prompt is a useful shortcut under more recent versions of windows).

As for mining, best to post your cgminer command string (and config file if you're using one). You need to use my custom version from https://github.com/kramble/FPGA-Blakecoin-Miner/tree/master/cgminer/cgminer-3.1.1 (and I assume you're running on windows?). Run it with the -T and -D switches and redirect the output to a log file with 2>log.txt then post that up.
7  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][BLC] Blakecoin Blake-256 for GPU/FPGA With Merged Mined Pools 1TH/s+ Net on: July 22, 2014, 08:45:05 AM
since im quite new to fpga's can someone point me in the right direction on a step by step of what i need to do to set my cairnsmore 1 up for blakecoin mining?

There is not much I can add to what has been said by BlueDragon and sidgrip. Just be sure to load the hashvoodo firmware via spiprog (or impact) before flashing the blake bitstream. I'll add those notes to the CM1 github README as it's a bit terse at the moment. EDIT: OK, that's done. Let me know if I can improve it or if there are any errors.

I didn't find the CM1 to be very reliable (at least the one I was testing on, borrowed from BlueDragon) as it kept dropping off the USB every few hours, needing a complete power cycle (including disconnecting and reconnecting the USB cable) to reset it. While the CM1 appears to be of really good build quality, there were some design issues with the USB, the clock distribution and the broken serial chaining of the FPGA devices. Later devices were apparently slightly better (serial number 0051 onwards, see here), but I don't know if Enterpoint ever got it properly up to production quality (and I'm not reading all the way through that thread to find out). There is also some useful background information on the Hashvoodo thread.
8  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][ELT] Electron, a new Blake-256 coin for GPU/FPGA on: June 23, 2014, 02:52:02 PM
Thanks Kramble, I will give the vangen a try.
For github, I am using the windows client and it annoyingly won't let me make an src/obj directory. I will try to make it on Ubuntu.  
May I send some ELT your way as a token of appreciation?

I'm not a github expert either, am using windows client myself. BlueDragon may be able to help though. Or just put a note in the README (most users don't bother with the daemon I expect).

All donations are gratefully received. Might as well use eKramgtvXd45wgW3HYNCtUyPm5uqTXzHyz (eating my own dogfood  Wink )
9  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][ELT] Electron, a new Blake-256 coin for GPU/FPGA on: June 23, 2014, 12:19:38 PM
Vanitygen for electron

Continuing from the blakecoin thread ...

Ok, thanks kramble.  Electron should be almost the same as blakecoin, except with using 92 as the address starting instead of 26 for BLC. The hashing part was untouched.

OK, it should just work using ./vanitygen -F compressed -X 92 pattern (using my hacked version at https://github.com/kramble/FPGA-Blakecoin-Miner/tree/master/vanitygen) EDIT: No it won't work as is, since the blake checksum is only applied to -X 26. You'll need to change util.c (see the previous commit for the file), around line 129. EDIT2: Also vanitygen.c line 397 may need changing. So I've got three variants of the code to check, need to compile an electron wallet first (2 hour job on raspi, quicker on ubuntu, once I sort out a VM for it). EDIT3: That took longer than I expected. Yes, both changes are needed, I'll take this onto your thread now as it's OT here.

Give it a try (check if the electron wallet will import the private key, and that the resulting address is the same as the one generated). Also try sending some coin to the addresss, then import the private key (into an empty wallet) and try spending the coin.

Mogrith: Doing a paper wallet (like bitaddress.org) is beyond my skill set, but a competent web/javascript developer should be able to do it easily. It just needs a javascript version of blake256, 8 round variant (which is the slightly tricky bit) to do the custom checksum.

I've tested this using the electrond daemon on unbuntu 12.04 (not tested sending any coin yet I have tasted my own dogfood and it's yummy ELT to eKram and eKram to eCoin)

You need to start with my hacked version of vanitygen from https://github.com/kramble/FPGA-Blakecoin-Miner/tree/master/vanitygen

You will need to compile it yourself (works ok on raspi and ubuntu, not tested on windows), but first edit two files:
util.c line 129, change if (blake_flag == 26) to if (1)
vanitygen.c line 397, change if (addrtype == 26) to if (1)
make vanitygen (OK on ubuntu, but raspi needs the top line of Makefile editing to remove -march=native)

Now run it
./vanitygen -F compressed -X 92 eCoin

And annoyingly, it works fine on raspi but takes a while to get going on ubuntu. Perhaps because I ran it in a VM?

As a side issue, you need to make a couple of changes in your git repo to fix the daemon build
mkdir src/obj
chmod +x src/leveldb/build_detect_platform
10  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][BLC] Blakecoin Blake-256 for GPU/FPGA With Merged Mined Pools 1.8TH/s+ Net on: June 23, 2014, 08:09:45 AM
may not need van gen at all

I I'm using coins seal QR code of secret key into  see https://bitcoingeneralstore.com/cold-storage/

2. back up wallet
3. open blakecoin-qt with new blank wallet
4. create new address and save in file
5. on console dumpprivkey of new address and save to same file
6 QR print each Key insure printed key is readable
7. close blakecoin-qt and delete wallet file
8. restore old wallet
9. seal secret key in coin
10. send BLC to public address
11. send coin to new public address
12 keep pubkey QR so I can send more BLC later. (or could check history of wallet if doing it from same wallet)

Yes, that's a perfectly good way of generating keys, with the proviso that this can all be done on an off-net system, or even a ubuntu live-cd (it just needs to be online for a short period to run the apt-get's for the wallet dependencies, and I'm not sure even this step is needed as the runtime versions may already be present in the base distribution so you just need a precompiled wallet). Note that blakecoin-qt (or blakecoind which is easier to use for this purpose) does not need to be online in order to generate addresses, so everything can be done totally sterile (you just have to hope the NSA haven't compromised the RNG [/paranoia]).

Taking it one step further, all you need to generate a private key is a cryptographically secure random number generator (even a set of dice will do the job). Once you have the 256 bit / 32 byte private key it is a straightforward process to derive the address. Take a look at this script which demonstrates the steps (it actually implements a blakecoin brain wallet, but can be trivially tweaked to accept the private key instead). Props to JackJack for the heavy lifting (it's based on his pywallet).

One thing that I have done myself is to use bitaddress.org (downloaded from github onto a usb-stick, then loaded onto an offline system, I use puppylinux on an ancient PC) which can generate addresses in bulk to a csv file. Ignore the bitcoin addresses and just use the private key values. Feed these into a variant of the above python script that reads private keys from a file and writes out the privkey + blake address. Note that the Wallet Import Format for the blake private key is not compatible with bitcoin WIF private keys, just like the addresses it needs a blake hash checksum, though we can trivially work around this in python by simply ignoring the checksum when reading the bitcoin WIF privkey (see WIFpriv2addr in the script above).
11  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][BLC] Blakecoin Blake-256 for GPU/FPGA With Merged Mined Pools 1.8TH/s+ Net on: June 22, 2014, 10:44:09 PM
Ok, thanks kramble.  Electron should be almost the same as blakecoin, except with using 92 as the address starting instead of 26 for BLC. The hashing part was untouched.

OK, it should just work using ./vanitygen -F compressed -X 92 pattern (using my hacked version at https://github.com/kramble/FPGA-Blakecoin-Miner/tree/master/vanitygen) EDIT: No it won't work as is, since the blake checksum is only applied to -X 26. You'll need to change util.c (see the previous commit for the file), around line 129. EDIT2: Also vanitygen.c line 397 may need changing. So I've got three variants of the code to check, need to compile an electron wallet first (2 hour job on raspi, quicker on ubuntu, once I sort out a VM for it). EDIT3: That took longer than I expected. Yes, both changes are needed, I'll take this onto your thread now as it's OT here.

Give it a try (check if the electron wallet will import the private key, and that the resulting address is the same as the one generated). Also try sending some coin to the addresss, then import the private key (into an empty wallet) and try spending the coin.

Mogrith: Doing a paper wallet (like bitaddress.org) is beyond my skill set, but a competent web/javascript developer should be able to do it easily. It just needs a javascript version of blake256, 8 round variant (which is the slightly tricky bit) to do the custom checksum.
12  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [ANN][BLC] Blakecoin Blake-256 for GPU/FPGA With Merged Mined Pools 1.8TH/s+ Net on: June 22, 2014, 10:26:59 PM
Yeah, I took a look at it briefly and saw Kramble's notes.  Maybe I will ask him.

It's getting late here, so I'll go look at this tomorrow (it's a while since I worked on this and I'm a bit rusty).

Anyway, Blake addresses are the same as Bitcoin, except with a different network byte. That much is the same as any other alt-coin, and if that was all then the standard vanitygen could generate the addresses.

Two differences: blake uses the blake8 hash to generate the address checksum (last few characters) instead of sha256, and we need to use the compressed address (the standard vanitygen only creates uncompressed).

I'll need to look at what electron does.
13  Alternate cryptocurrencies / Mining (Altcoins) / Re: Fury/Blizzard tuning and mods on: June 20, 2014, 08:57:37 PM
I've gone up to 2.06v on gridseed. and by the time they will blow, I think they won't be profitable anymore.

Yep, gotcha. I was being a bit nannyish I suppose. ZiG's comment was very helpful though, thanks!

Did you see the chip input clock speed in the datasheet, 12MHz. I think we were assuming 32MHz from the Blizzard schematics, and you were talking about using 42.2 MHz in this post. This probably needs a rethink if the blizzard schematic was a typo. The next step up from 115200 baud is 153600, which is a 33% increase, so a 16MHz crystal should do it (but will need a recompile of the windows executable, and I think won't work on linux).
14  Alternate cryptocurrencies / Mining (Altcoins) / Re: Fury/Blizzard tuning and mods on: June 20, 2014, 06:53:12 PM
"Houston, we have had a problem", a crazy modder supplied the chips with 1.6v even if it's rated 1.32v max. He is even speaking of going up to 1.8v...
7.5k resistor should be the way to go for the actual clock cap. it gives 1.35v

You do risk destroying the chips if you overvolt them. I don't know the absolute limits for the 55nm process (google has not been very helpful so far). Even if they work at a given voltage, the devices may degrade and die at some later time.
15  Alternate cryptocurrencies / Mining (Altcoins) / Re: Fury/Blizzard tuning and mods on: June 20, 2014, 04:46:30 PM
I don't suppose anyone has an adjustable clockgen to feed into the bpclk pin huh?

I hadn't had time yet to look at the schematics again to verify...but are the bpclk pins and pad_bypass centrally connected?

Also..according to the datasheet....the internal pll supports 62.5Mhz-1500Mhz....  Would that indicate that we could in fact blow past the 381Mhz 'limit' we're running into now?

Yes, pad_bypass switches the internal hash clock source between the PLL output and the bpclk input pad. Eyeballing the layout masks on the schematic, it looks like these pads are unrouted, but it may be possible to make connection with them (depending on your SMT rework skills).

The problem with the PLL is telling it what multiply/divide ratio to use. Divide seems to be 8, but the configuration field only goes up to 255 so we are limited to 255/8 * 12MHz = 382.5MHz maximum. Unless there is some undocumented way of changing the divide ratio or supplying a higher multiplier (seems unlikely, but then there are those TEST pins; but even if it is possible, it's not going to be practical with the existing boards). I was hoping there might be something in the command protocol to allow a higher clock multiplier than 255 to be specified, but that's rather grasping at straws.
16  Alternate cryptocurrencies / Mining (Altcoins) / Re: Fury/Blizzard tuning and mods on: June 20, 2014, 04:07:01 PM
Zeus CHIP SPECS...DATA SHEET...here...
https://mega.co.nz/#!t54SgYIR!_WzDmy7SuwVurOdWZUIRnNh93C3lSJ_6bUld-BJdlsM
( Link from http://zeusminer.com/shcematics/ ...at the bottom...)

Great, that's (almost) exactly what we were looking for (a little extra detail on TESTMODE/EN and MODESEL would have been nice, but I won't quibble).

One slight confusion is the 12MHz clock input, whereas the Blizzard schematic shows Y1 as 32M (though the X32A schematic shows 12M so perhaps that's a typo). It would be useful to measure the clock speed at the oscillator via a scope just to confirm this.

So it looks like we could bypass the clock input and clock directly via BPCLK while still retaining the 12MHz baud clock. The spec only says 200MHz though, which is a lot slower than I'd like, but perhaps this is just being conservative.

It still might be better to replace the 12MHz crystal with a slightly faster one and just up the baud rate in the driver to match, as pushing a 400MHz raw clock onto the chip seems unlikely to work very well.
17  Alternate cryptocurrencies / Mining (Altcoins) / Re: Fury/Blizzard tuning and mods on: June 20, 2014, 02:53:47 PM
I'll run: --set zus0:ignore_golden_nonce=1 --set zus:freq=383 --set zus:cores=8 --set zus:chips=6 -S zus:\\.\COMxx

and see if any improvement after a couple of hours

Edit: I quit it again.  Seems like it is running at stock frequencies.  Could be my build.

That is exactly the behavior I'd expect if clock code 255 (383MHz) is simply being ignored by the ASIC (as in the verilog I linked a couple of posts above).
18  Alternate cryptocurrencies / Mining (Altcoins) / Re: Fury/Blizzard tuning and mods on: June 20, 2014, 01:43:23 PM
I'm running Windows - not sure if that would work.
The path seems optional.  I get an error about "doesn't have permission on the com port" (not an exact quote)

Just tried --set zus0:ignore_golden_nonce=1 and it didn't crash so maybe that is one way to use it in Windows.

I suppose Windows ought to work something like
--set zus@\\.\COM4:ignore_golden_nonce=1
or
--set zus@//./COM4:ignore_golden_nonce=1

(One of my pet niggles about DOS/windows is it's use of the wrong slash for paths, unix came first, why not follow the standards Microsoft, oh, it's because you want to do it differently just because you can. Then oops, you just broke character escaping in C, shells, etc etc </rant>)
19  Alternate cryptocurrencies / Mining (Altcoins) / Re: Fury/Blizzard tuning and mods on: June 20, 2014, 01:19:56 PM
I can't figure out how to use:
--set zus@/path/to/zeus:ignore_golden_nonce=1

Do you use it like this?

Code:
--set zus@/dev/ttyUSB2:nocheck_golden=1
20  Alternate cryptocurrencies / Mining (Altcoins) / Re: Fury/Blizzard tuning and mods on: June 20, 2014, 01:10:15 PM
wasn't is supposed to fail over 382?

It depends on whether they treat 255 as a valid clock speed (my FPGA code does not, see here). I'm curious about whether it works too!

Quote
I'm still waiting for my crystals, I should have ordered from mouser or similar with 24h shipping, but paying 20€ shipping for 2 crystals at 4€ each didn't look as a bargain.

In the UK I use Farnell. No delivery charge for any size order (pretty insane really, I once ordered a single device in a 144 pin TQFP package and it came packed in a 60 chip carrier array in a huge box, must have cost them more to send it than the chip was worth!).
Pages: [1] 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!