Bitcoin Forum
October 14, 2024, 11:40:06 PM *
News: Latest Bitcoin Core release: 28.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 21 22 23 24 25 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 ... 97 »
721  Bitcoin / Hardware / Re: FPGA development board "Icarus" - DisContinued/ important announcement on: March 25, 2012, 06:01:58 PM
...
cgminer.c:regeneatehash(work)
...
I wrote it (including the difficulty generation, which is in fact my own original code)
What's wrong with it?
It is called every time cgminer shows you an Accepted or Rejected share.

Because xiangfu tested and found no issues I'm pretty sure nothing's wrong with the code itself. It's probably my toolchain or something with the device, I just mentioned the code because without calling that function my openwrt cgminer has been running for 2 days now and as soon as it gets called, segfault.
722  Bitcoin / Hardware / Re: FPGA development board "Icarus" - DisContinued/ important announcement on: March 25, 2012, 02:24:10 PM
I am using  Linux 3.0.0-14-generic #23-Ubuntu SMP x86_64, Ubuntu 11.10, the latest build is using  OpenWrt trunk 30834, you can find the .config file, VERSIONS here:
  http://downloads.qi-hardware.com/people/xiangfu/icarus/openwrt-ar71xx-generic-trunk-30834/

BTW: the MAX_DEVICES under miner.h define is 32. so if you want support more then 32 devices. just change that one. I changed MAX_DEVICES to 64 and connect 41 Icarus. works just fine.

Thanks. I know about MAX_DEVICES and I don't yet have enough cards to make it worth changing Smiley

But doing  some more debug I realized the function that triggers the segfault (in an unrelated place, so I'm guessing memory mismanage) is cgminer.c:regeneatehash(work). This is only called if doing verbose output and since you are passing -q to your cgminer you do net follow this code path. Could you give it a try without the -q, just to make sure it's not some weird thing with my setup? It segfaults as soon as a nonce is submitted to the pool.

Also, did you have to do anything to handle the device's endianess? It's weird, because I had to swab32 the data I receive which is consistent with BIG_ENDIAN, but defining __BIG_ENDIAN__ breaks everything hard. Could be an effect of the bi-endianess of mips, dunno.
723  Economy / Goods / Re: [WTS] Free Yubikey on: March 24, 2012, 01:20:58 AM
2 btc shipped to Europe.
He isn't shipping it, he will just be giving you a code that you can redeem at MtGox for the Yubikey. MtGox will then ship you the Yubikey directly.

That's what I get for not reading through properly. I read "I got a Mt. Gox Free Yubikey" and skipped the rest... I already got one for free from MtGox so I'll just retract myself from further bidding.
724  Economy / Goods / Re: [WTS] Free Yubikey on: March 23, 2012, 09:27:33 PM
2 btc shipped to Europe.
725  Bitcoin / Hardware / Re: FPGA development board "Icarus" - DisContinued/ important announcement on: March 23, 2012, 07:50:17 PM
Hi

I am surprised TP-LINK WR703N router performance, it can handle 31 Icarus. the cgminer status: http://downloads.openmobilefree.net/Icarus/, I updated my stuff on this wiki page: http://en.qi-hardware.com/wiki/Icarus.

I've been trying to get cgminer working on another TP-LINK device (TL-MR3420) but every time it submits a proof of work to the pool it segfaults. I haven't been able to properly debug it but it seems the json_rpc_call() is returning an empty string, so I'm pointing my quicker finger at libcurl. Can you give me a quick overview of your build env and process?
726  Bitcoin / Bitcoin Discussion / Re: 195.200.253.240 is a real jerk on: March 23, 2012, 12:45:05 AM
That is interesting nelisky, did you maybe give your IP a long time ago to be one of the IPs to add for people trying to connect without IRC or whatever? That would seem to give credence to the botnet theory as IRC activity might get some attention.

Not really. It hasn't been up that long, but I guess it is easy for it to get "harvested" into a botnet list of usable IPs, I guess.
727  Bitcoin / Bitcoin Discussion / Re: 195.200.253.240 is a real jerk on: March 22, 2012, 09:47:08 PM
That's CRAZY!!!

That IP is mine, I have a bitcoind running there but not only are the generation addresses not mine but also I have never found a block there that I can remember.

So... what's going on?
728  Bitcoin / Mining software (miners) / Re: CGMINER GPU FPGA overclock monitor fanspeed GCN RPC linux/windows/osx 2.3.1 on: March 19, 2012, 07:33:40 PM
I've hacked hotplug support into my ztex cgminer fork, but when I say 'hacked' I'm not joking, it's just a proof of concept.

There are a few things that I'd need to get this cleaned up:

 - A hotplug managing thread. I'm spawning the first ztex thread on startup as the hotplug manager which in turn will handle (re)connects, but this should be a proper top level thread.
 - Proper support for adding threads on the fly; I added a MAX_THREADS def and alloc memory for all of them on startup in thr_info[], because otherwise the other threads (long polling, watchdog, etc) would become interleaved with the mining threads and break all the "for i in len(mining_threads)" that expect 0 based and sequencial miner_threads. A simple solution to prevent the need to pre-alloc would be to move all non mining threads to the top of the array instead.
 - A little more dynamic variables handling the curses output, specifically being able to add lines to the device statuses.
 - When unplugging I'm setting deven to DEV_DISABLED, but there should really be a DEV_DISCONNECTED state too. I didn't need it because I search for devices being disabled and ztex, reusing those entries and threads as needed (because the only time ztex devices are disabled is when they are disconnected or malfunctioning) but if cgminer ever supports hotplugging for multiple device types we really need to know exactly which devices[] entries we can reuse.

There's more, but if you just look at my changes to cgminer.c you'll see what I mean.

What I've done works for me but I don't feel it is even close to clean to make a pull request out of it (without even going into the fact I changed a lot of tab indentations to double space Smiley ) but I would really love to work with the core developer(s) in order to come up with a plan that stands a chance of being accepted in the mainline.

Update code at the usual place: https://github.com/nelisky/cgminer/tree/ztex
729  Bitcoin / Hardware / Re: ZTEX USB-FPGA Module 1.15x: 210 MH/s FPGA Board on: March 14, 2012, 10:45:31 PM
(cross posting from the cgminer thread)

A small status update: the cgminer support for ztex boards now compiles and runs on linux, osx and windows. There are still features missing and the hash rate reporting is pretty broken but the boards hash at their expected speed. Check it out: https://github.com/nelisky/cgminer/tree/ztex

Let me know of any problems / suggestions.
730  Bitcoin / Mining software (miners) / Re: CGMINER GPU FPGA overclock monitor fanspeed GCN RPC linux/windows/osx 2.3.1 on: March 14, 2012, 10:43:46 PM
A small status update: the cgminer support for ztex boards now compiles and runs on linux, osx and windows. There are still features missing and the hash rate reporting is pretty broken but the boards hash at their expected speed. Check it out: https://github.com/nelisky/cgminer/tree/ztex

Let me know of any problems / suggestions.
731  Bitcoin / Mining software (miners) / Re: CGMINER GPU FPGA overclock monitor fanspeed GCN RPC linux/windows/osx 2.3.1 on: March 13, 2012, 12:40:41 PM
I've started to get ztex boards supported on cgminer. The current implementation uses libusb-1.0, compiles cleanly on linux (ubuntu, but all others should be fine) and osx (snow leopard here). I'll try to make it work for windows soon; https://github.com/nelisky/cgminer/tree/ztex

This is not feature complete, not all that tested so be careful. I have been mining with it for a while and the biggest caveat is that the hash rate measurement is completely broken. It seems cgminer doesn't like when I do a full nonce scan that can take 12~15 secs and only report the calc'd nonces at the end of that. Limiting the nonce space does make it report correctly and of course the actual speed is the ~200MHs expected from the board regardless of what cgminer reports Smiley

But what I'd really like to put in, and I'm not sure if this will be well supported in cgminer, is hotplug support. Will I be able to dynamically add / remove workers? Should I use a main worker thread and then spawn child threads, one per board? I would also like to use multiple boards per thread and just split the nonce space, as there is enough time between polls to handle that.

Opinions? Pointers? All well appreciated Smiley
732  Bitcoin / Electrum / Re: Electrum: the blockchain is the cloud on: March 13, 2012, 09:40:19 AM
(...) being able to import public addresses to monitor, without having to also store their priv keys.

no, you did not miss the way to do it :-)
ovidiusoft was willing to implement monitored addresses, but I think he's been too busy lately.
for the moment I am concentrating on ithe client/server protocol.

I need a good excuse to look at the source code, so I might take a stab at that if I get a little off time.
733  Bitcoin / Electrum / Re: Electrum: the blockchain is the cloud on: March 12, 2012, 06:15:32 PM
I love that electrum can be used as a simple text only client (something I need) without needing to have a long running process there. The one thing I couldn't immediately do (though I'm sure it wouldn't be hard to fix if not yet supported) is being able to import public addresses to monitor, without having to also store their priv keys.

Did I just miss the way to do this?
734  Local / Português (Portuguese) / Re: Onde Posso Comprar Bitcoins em Portugal? on: March 12, 2012, 12:46:25 PM
JMS74: Tal como já foi dito, as exchanges funcionam bem se não tiveres muita pressa, com a vantagem de comprares a 'spot price'.

Se usares irc, podes tambem perguntar em #bitcoin-otc-eu no freenode, ele há gente de toda a europa por lá (e não só).

Eu pessoalmente costumava usar o mtgox, mas estou mais no intersango desde que o mtgox ficou sem SEPA e, francamente, recomendo muito o intersango. Mas o -otc é sem duvida o melhor sítio para combinar transações "em pessoa".
735  Bitcoin / Hardware / Re: Free 4xSpartan 6 DIY design and schematics!!! on: March 09, 2012, 03:03:28 PM
Watching closely...
736  Economy / Marketplace / Re: Got my BFL Single today and I'm giving it away for 0.5BTC! on: March 08, 2012, 11:18:49 PM
Me wants...
737  Bitcoin / Hardware / Re: ZTEX USB-FPGA Module 1.15x: 210 MH/s FPGA Board on: March 07, 2012, 09:22:53 AM
Is there a way to stop the FPGA from mining without forcing a reconfigure to get it going again? The use case being many boards loosing network connectivity which will make them go round and round on the same data while waiting for new work, which is wasted electricity.

Already implemented: after about 5 minutes of inactivity the FPGA board enters a low power state. This is implemented in firmware,

But due to the support of backup servers this feature shouldn't be used much.

Backup servers are fine, and they do solve the most common use case but my biggest pain is not pool downtime, rather network issues and no backup pool will help with those.

So just not sending new work to the board for 5 minutes will trigger low power sounds like a great feature, and if I want to force the FPGA to hold still I can issue a resetFpga() though that means I need to reconfigure it afterwards, correct?
738  Bitcoin / Mining software (miners) / Re: CGMINER GPU FPGA overclock monitor fanspeed GCN RPC linux/windows/osx 2.3.1 on: March 06, 2012, 03:13:05 PM
... and on a different subject ... ZTEX

I wasted an hour or so on it so far and worked out what appears to be the commands
(and changed all the cgminer code that needs changing and created a template ztex.c)

So if anyone has one it would be good if they could drop by #cgminer on FreeNode and I'll ask you to run a few commands so I can work out what the commands really are.

I asked the ZTEX people and got 2 useless replies in one email:
1) Read the java code, the mining commands for the bitstreams aren't documented
(yeah I had already done that that's why I asked to confirm what I had worked out)
2) "You cannot do this within a day."
lol - well I've only spend a couple of hours on it so far ...
(and then decided after than comment ... stuff it I'll do it tomorrow ... or whenever ...)

You may want to read my code instead, as python is much more readable than java and you have everything I needed on mpbm in one single source.

https://github.com/nelisky/Modular-Python-Bitcoin-Miner/blob/ztex/worker/fpgamining/ztexdev.py

I will try to find you on irc once I get some work things out of the way.
739  Bitcoin / Hardware / Re: ZTEX USB-FPGA Module 1.15x: 210 MH/s FPGA Board on: March 06, 2012, 02:47:29 PM
Every time you poll ztex board you get 2 x nonce and 2 x goldennonce. The latter is when there's a diff=1 share found and the former is just the last calculated nonce (twice because ztex uses 2 hashers in parallel, I believe).

I don't know why as it's been a while since I had to tinker with the sha256 algo, but hash(nonce)[28:32] == H7+0x5be0cd19 if the hasher is doing its thing. Ztex can set me straight if I'm full of it right now Smiley

But regardless, in a nutshell you get nonces to verify at every read, but the board verifies and stores the golden nonces itself. I am assuming that going the interrupt transfer route you would only be interested in getting transfers in the event of a golden nonce, making the error rate resolution much smaller and potentially harmful to the board.

If, on the other hand, you would get interrupt transfers for every nonce calculated... well, nothing gained from current approach, right?

I might have gotten this all wrong, so feel free to call bs.
740  Bitcoin / Pools / Re: [320GH/s] p2pool: Decentralized, DoS-resistant, Hop-Proof pool on: March 06, 2012, 12:24:09 PM
This was just discussed at length.  Go back a page or two, or skip right to the conclusion.

I had read it, but apparently misunderstood it. Sorry.

So basically 9x650 + 1x13000 == 10x650 if you have diff set at 650, got it.
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 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 ... 97 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!