I've been asked a few times about a mining script for the current KC705 firmware. I wrote a plugin for Modular Python Bitcoin Miner. Here's the message I sent to someone about it:
I uploaded the custom MBPM module, which is compatible with the current KC705 mining code, here:
https://mega.co.nz/#!Oh5HTDRB!C0RLYW4yZN8gbg38FfgLpzmKFcseOql3Xx1i_gXTfdMYou'll want to download a copy of MPBM's testing branch. Then extract the above archive into
Code:
modules/fpgamining
such that you end up with:
Code:
modules/fpgamining/kc705_uart/__init__.py
modules/fpgamining/kc705_uart/kc705uartworker.py
Once you start MPBM, you can now add a KC705 Worker by openning up the MPBM web-interface (
http://127.0.0.1:8832) and clicking the "Workers" button on the left. On Windows, I ran MPBM under Cygwin, and the "Port" ended up being /dev/com2 for me. The Baudrate is 115200.
~fpgaminer
I haven't had a chance to clean it up and put it on the repo yet.
Have you tested the code on windows? Having a hell of a time trying to get mining. Tried as best I could without knowing python to get it running without much success. First was getting a ton of indentation errors. PyWin editor was telling me 1/2 the code was not idented properly. Think I fixed those successfully; now getting the following errors. Any idea?
I was thinking it was a result of my python setup in windows [since another user was able to get it running under linux on the VC707]. Tried 3.3 and 3.2 with same errors on both.
2013-05-11 00:10:32.222 [100] KC705: Traceback (most recent call last):
File "c:\FPGA Work\Scripts\mpm\modules\fpgamining\kc705_uart\kc705uartworker.py", line 201, in main
self._sendjob(job)
File "c:\FPGA Work\Scripts\mpm\modules\fpgamining\kc705_uart\kc705uartworker.py", line 391, in _sendjob
self.handle.write(job.data[64:76].encode('hex') + job.midstate.encode('hex') + "\n")
AttributeError: 'bytes' object has no attribute 'encode'
2013-05-11 00:10:32.223 [100] KC705: Traceback (most recent call last):
File "c:\FPGA Work\Scripts\mpm\modules\fpgamining\kc705_uart\kc705uartworker.py", line 323, in _listener
data_buffer += self.handle.read(9)
TypeError: Can't convert 'bytes' object to str implicitly
When running the code default without changing any of the indentations I get:
2013-05-11 00:41:46.872 [300] Core: Could not load module fpgamining.kc705_uart: Traceback (most recent call last):
File "c:\FPGA Work\Scripts\mpm\core\core.py", line 108, in __init__
module = getattr(__import__("modules.%s" % maintainer, globals(), locals(), [module], 0), module)
File "c:\FPGA Work\Scripts\mpm\modules\fpgamining\kc705_uart\__init__.py", line 1, in
from .kc705uartworker import KC705UARTWorker
File "c:\FPGA Work\Scripts\mpm\modules\fpgamining\kc705_uart\kc705uartworker.py", line 324
if '\n' not in data_buffer: continue
^
TabError: inconsistent use of tabs and spaces in indentation