Bitcoin Forum
May 06, 2024, 05:27:25 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Warning: One or more bitcointalk.org users have reported that they strongly believe that the creator of this topic is a scammer. (Login to see the detailed trust ratings.) While the bitcointalk.org administration does not verify such claims, you should proceed with extreme caution.
Pages: [1]
  Print  
Author Topic: FPGA project assistance with old source code  (Read 3029 times)
jasinlee (OP)
Hero Member
*****
Offline Offline

Activity: 742
Merit: 500


Its as easy as 0, 1, 1, 2, 3


View Profile
December 29, 2012, 05:56:07 PM
Last edit: March 13, 2013, 06:49:32 AM by jasinlee
 #1

Where can I locate the function information for the older miners?

BTC 1JASiNZxmAN1WBS4dmGEDoPpzN3GV7dnjX DVC 1CxxZzqcy7YEVXfCn5KvgRxjeWvPpniK3                     Earn Devcoins Devtome.com
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714973245
Hero Member
*
Offline Offline

Posts: 1714973245

View Profile Personal Message (Offline)

Ignore
1714973245
Reply with quote  #2

1714973245
Report to moderator
hardcore-fs
Full Member
***
Offline Offline

Activity: 196
Merit: 100


View Profile WWW
December 31, 2012, 12:40:18 AM
 #2

Take a look at  "the seven"'s code

https://github.com/TheSeven/Modular-Python-Bitcoin-Miner

It is fine to get started and it is broken down into manageable sections.

BTC:1PCTzvkZUFuUF7DA6aMEVjBUUp35wN5JtF
jasinlee (OP)
Hero Member
*****
Offline Offline

Activity: 742
Merit: 500


Its as easy as 0, 1, 1, 2, 3


View Profile
December 31, 2012, 03:06:21 AM
 #3

Thanks I will poke through it Smiley

BTC 1JASiNZxmAN1WBS4dmGEDoPpzN3GV7dnjX DVC 1CxxZzqcy7YEVXfCn5KvgRxjeWvPpniK3                     Earn Devcoins Devtome.com
Luke-Jr
Legendary
*
Offline Offline

Activity: 2576
Merit: 1186



View Profile
December 31, 2012, 11:57:02 AM
 #4

Where can I locate the function in one of the old miners source code to add interface to fpga processing? Or which mining software is the easiest to use as reference design (learning purposes)?
BFGMiner's device API is pretty straightforward.

hardcore-fs
Full Member
***
Offline Offline

Activity: 196
Merit: 100


View Profile WWW
January 01, 2013, 02:33:33 AM
 #5

I am just having trouble finding the spot in the source where you choose the implementation.

Exactly WHICH source are you talking about?

BTC:1PCTzvkZUFuUF7DA6aMEVjBUUp35wN5JtF
purelithium
Hero Member
*****
Offline Offline

Activity: 504
Merit: 500



View Profile
January 01, 2013, 02:53:53 AM
 #6

I dunno, kano, I prefer BFGMiner. I find your need for attention to be off-putting. Luke was just trying to give a community member something to look at for his project and you turned it into a ridiculous trainwreck of a thread. Stop trolling and live your life.

Like my post? 1H7bfRYh7F89mfmFgsRCdn4awDaUHQmYqY
jasinlee (OP)
Hero Member
*****
Offline Offline

Activity: 742
Merit: 500


Its as easy as 0, 1, 1, 2, 3


View Profile
January 01, 2013, 03:56:32 AM
Last edit: March 13, 2013, 06:48:55 AM by jasinlee
 #7

lol

BTC 1JASiNZxmAN1WBS4dmGEDoPpzN3GV7dnjX DVC 1CxxZzqcy7YEVXfCn5KvgRxjeWvPpniK3                     Earn Devcoins Devtome.com
K1773R
Legendary
*
Offline Offline

Activity: 1792
Merit: 1008


/dev/null


View Profile
January 01, 2013, 04:03:18 AM
 #8

Time out: Can anyone point me to the section of code I am looking for on ANY of the miners so I dont have to reverse engineer the whole thing?
just take a look at FPGA miners, cgminer or BTCMiner(http://www.ztex.de/btcminer/) for example.

[GPG Public Key]
BTC/DVC/TRC/FRC: 1K1773RbXRZVRQSSXe9N6N2MUFERvrdu6y ANC/XPM AK1773RTmRKtvbKBCrUu95UQg5iegrqyeA NMC: NK1773Rzv8b4ugmCgX789PbjewA9fL9Dy1 LTC: LKi773RBuPepQH8E6Zb1ponoCvgbU7hHmd EMC: EK1773RxUes1HX1YAGMZ1xVYBBRUCqfDoF BQC: bK1773R1APJz4yTgRkmdKQhjhiMyQpJgfN
Luke-Jr
Legendary
*
Offline Offline

Activity: 2576
Merit: 1186



View Profile
January 01, 2013, 04:31:22 AM
 #9

Time out: Can anyone point me to the section of code I am looking for on ANY of the miners so I dont have to reverse engineer the whole thing?
https://github.com/luke-jr/bfgminer/blob/bfgminer/miner.c#L7889 is where the device detection is called from... not really sure what you're looking for.

jasinlee (OP)
Hero Member
*****
Offline Offline

Activity: 742
Merit: 500


Its as easy as 0, 1, 1, 2, 3


View Profile
January 01, 2013, 04:37:17 AM
 #10

Thank you much! Learning as I go, so just needed info.

BTC 1JASiNZxmAN1WBS4dmGEDoPpzN3GV7dnjX DVC 1CxxZzqcy7YEVXfCn5KvgRxjeWvPpniK3                     Earn Devcoins Devtome.com
K1773R
Legendary
*
Offline Offline

Activity: 1792
Merit: 1008


/dev/null


View Profile
January 01, 2013, 04:38:36 AM
 #11

Time out: Can anyone point me to the section of code I am looking for on ANY of the miners so I dont have to reverse engineer the whole thing?
https://github.com/luke-jr/bfgminer/blob/bfgminer/miner.c#L7889 is where the device detection is called from... not really sure what you're looking for.
same as cgminer, same story again, so bad/sad  Roll Eyes

[GPG Public Key]
BTC/DVC/TRC/FRC: 1K1773RbXRZVRQSSXe9N6N2MUFERvrdu6y ANC/XPM AK1773RTmRKtvbKBCrUu95UQg5iegrqyeA NMC: NK1773Rzv8b4ugmCgX789PbjewA9fL9Dy1 LTC: LKi773RBuPepQH8E6Zb1ponoCvgbU7hHmd EMC: EK1773RxUes1HX1YAGMZ1xVYBBRUCqfDoF BQC: bK1773R1APJz4yTgRkmdKQhjhiMyQpJgfN
kano
Legendary
*
Offline Offline

Activity: 4494
Merit: 1808


Linux since 1997 RedHat 4


View Profile
January 01, 2013, 04:43:37 AM
 #12

Time out: Can anyone point me to the section of code I am looking for on ANY of the miners so I dont have to reverse engineer the whole thing?
What you need to know are a few things, e.g.
1) What the commands and or data requirements are to talk to the FPGA (often called the protocol)
2) The libraries to use to talk to the FPGA (USB or the crappy serial-USB ... or some other)

Each of the driver-*.c files in cgminer will include the commands to talk to each FPGA.
In my case I've named them rather than just put random short strings splattered about in each one.
e.g. look at the top of the driver-modminer.c code where I put them.

cgminer is moving to only using libusb to talk to FPGAs
(I've completed MMQ, and have BFL working but want to do more testing)

The old code uses serial-USB which will be problematic for ASICs so I've been rewriting it all to spend the effort to find some of the problems involved and solve them before the ASICs turn up.

Pool: https://kano.is - low 0.5% fee PPLNS 3 Days - Most reliable Solo with ONLY 0.5% fee   Bitcointalk thread: Forum
Discord support invite at https://kano.is/ Majority developer of the ckpool code - k for kano
The ONLY active original developer of cgminer. Original master git: https://github.com/kanoi/cgminer
hardcore-fs
Full Member
***
Offline Offline

Activity: 196
Merit: 100


View Profile WWW
January 03, 2013, 01:16:38 AM
 #13

Time out: Can anyone point me to the section of code I am looking for on ANY of the miners so I dont have to reverse engineer the whole thing?
What you need to know are a few things, e.g.
1) What the commands and or data requirements are to talk to the FPGA (often called the protocol)
2) The libraries to use to talk to the FPGA (USB or the crappy serial-USB ... or some other)

Each of the driver-*.c files in cgminer will include the commands to talk to each FPGA.
In my case I've named them rather than just put random short strings splattered about in each one.
e.g. look at the top of the driver-modminer.c code where I put them.

cgminer is moving to only using libusb to talk to FPGAs
(I've completed MMQ, and have BFL working but want to do more testing)

The old code uses serial-USB which will be problematic for ASICs so I've been rewriting it all to spend the effort to find some of the problems involved and solve them before the ASICs turn up.

I have to say Kano, I was looking at porting cgminer to an arm linux 2.9x-3.x platform and found it bloody confusing......
 ESP. as regards the dependancies.
The only requirements  would be Serial & usb, its not like I'd need CPU or GPU mining on an arm development board.


BTC:1PCTzvkZUFuUF7DA6aMEVjBUUp35wN5JtF
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!