Bitcoin Forum
May 04, 2024, 10:09:36 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 [15] 16 17 18 »  All
  Print  
Author Topic: Custom FPGA Board for Sale!  (Read 91594 times)
li_gangyi
Full Member
***
Offline Offline

Activity: 157
Merit: 100



View Profile
August 31, 2011, 03:38:24 PM
 #281

UPDATE0 Aug 19th 10:00 - I ordered Xilinx USB platform cable through ebay.de for €41.50 = $59 incl. shipping from HongKong.

UPDATE1 Aug 19th 10:10 - I received an invoice from Li via paypal and payed $440 (+$12 for shipping and handling) = $452. I noticed my shipping address in paypal was a very old address of mine and PMed Li with the correct address. I hope it'll work out.

UPDATE2 Aug 19th 10:20 - Li confirmed receiving the payment and also confirmed he would send to the correct shipping address.

UPDATE3 Aug 23rd 06:42 - PM from Li, saying he shipped the board! Gave me tracking-# and ETA 6-8 days.

UPDATE4 Aug 30th 13:30 - Received package containing FPGA miner "built with care". Also received Platform Cable same day Smiley


UPDATE5 Aug 31st 16:53 - After initial disappointment that I might have to use windows, I got the X5000 to work on LINUX (see above post with pic)

Good job, please do share with the community what you've done to make it work. I'm sure it'll be an interesting read at least.
1714860576
Hero Member
*
Offline Offline

Posts: 1714860576

View Profile Personal Message (Offline)

Ignore
1714860576
Reply with quote  #2

1714860576
Report to moderator
1714860576
Hero Member
*
Offline Offline

Posts: 1714860576

View Profile Personal Message (Offline)

Ignore
1714860576
Reply with quote  #2

1714860576
Report to moderator
If you want to be a moderator, report many posts with accuracy. You will be noticed.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714860576
Hero Member
*
Offline Offline

Posts: 1714860576

View Profile Personal Message (Offline)

Ignore
1714860576
Reply with quote  #2

1714860576
Report to moderator
Pipesnake
Legendary
*
Offline Offline

Activity: 1012
Merit: 1000



View Profile
August 31, 2011, 03:56:11 PM
 #282


OMG it's so cute!!  I can't wait!!

 Cheesy


 ██▄                ██        ▄███████▄        ██                  ██      ▄█████████▄ 
 ████              ██      █                  █      ██                  ██      ██                ██
 ██  ▀█            ██    ▄█                  █▄    ██                  ██    ██                  ██
 ██    █▄          ██    ██                  ██    ██                  ██    ▀█                     
 ██      █▄        ██    ██                  ██    ██                  ██      ██                   
 ██        █▄      ██                                  ██                  ██       ▀████████▄   
 ██          █▄    ██    ██                  ██    ██                  ██                        ██ 
 ██            █▄  ██    ██                  ██    ██                  ██                          ██
 ██              █▄██    ██                  ██    ▀█                  █▀    ▄▄                  █▀
 ██                ███      █                  █        █                  █      ██                ██ 
 ██                  ▀█        ▀███████▀            ▀███████▀         ▀█████████▀   











Nousplatform Youtube     
molecular
Donator
Legendary
*
Offline Offline

Activity: 2772
Merit: 1019



View Profile
August 31, 2011, 04:03:13 PM
 #283

YESSSS!

I got it working, on LINUX! fucking hell yea!

You total legend!!  Grin  and 100 MH/s no less. Sweeeeeeet.  Cool

Yeah, well. Lots of luck in a 15 minutes measuring window. It goes from 80 to 130 if you look at 15 minute average. That's not the X5000, of course, that's just fortuna playing with it Wink

PGP key molecular F9B70769 fingerprint 9CDD C0D3 20F8 279F 6BE0  3F39 FC49 2362 F9B7 0769
molecular
Donator
Legendary
*
Offline Offline

Activity: 2772
Merit: 1019



View Profile
August 31, 2011, 05:09:11 PM
Last edit: August 31, 2011, 07:59:11 PM by molecular
 #284

Good job, please do share with the community what you've done to make it work. I'm sure it'll be an interesting read at least.

Allright, here we go: Linux guide to X5000 mining:

Step 1: start download of Xilinx ISE (it's development environment. There might be other ways to program the FPGA, but for now, I used this, as Li suggested in the windows version of the guide). The file is huge (4.6GB), so we start this now to avoid coffee breaks later.

Step 2: Get the USB Platform Cable to work (I use a USB platform cable here, there are others, this guide is for USB Platform cable, I have a "Model DLC9G")

Step 2 A: Plug the "Cable" (it's called cable, although it's a box, and I will just call it "Cable" or "Platform Cable") into a USB port. Better try without a hub first. Check if the USB portion of the device works:

Code:
#> lsusb
Bus 001 Device 120: ID 03fd:0008 Xilinx, Inc.

Step 2 B: Driver for Platform Cable

Before we start, lets make a directory to work in:

Code:
#> cd ~
#> mkdir x5000
#> cd x5000


My gentoo linux did not have any sort of driver coming with it and there is no module in vanilla kernel 2.6, at least not in mine.

The Xilinx ISE actually comes with source for a kernel mode driver, called "windrvr". I tried to compile this but I failed miserably.

I used this: http://rmdir.de/~michael/xilinx/. It's a usermode driver that uses libusb (or parport for parallel port cables) and emulated windrvr afaik. Download, unpack, compile it and check it created the lib we need:

Code:
x5000 #> wget http://git.zerfleddert.de/cgi-bin/gitweb.cgi/usb-driver?a=snapshot;h=HEAD;sf=tgz
x5000 #> tar -xzf usb-driver-HEAD-913cbbf.tar.gz
x5000 #> cd usb-driver-HEAD-913cbbf
usb-driver-HEAD-913cbbf #> make
usb-driver-HEAD-913cbbf #> ls libusb-driver.so
libusb-driver.so

Now, this software comes with a script that copies firmware-files from the Xilinx ISE install directory, this means we have to install the Xilinx ISE now:

Code:
downloads #> tar -x Xilinx_ISE_DS_Lin_13.2_O.61xd.0.0.tar
downloads #> Xilinx_ISE_DS_Lin_13.2_O.61xd.0.0/xsetup

I checked the option "install driver" here. First I ran this as user and after unzipping files for an hour, the installer told me I'm not root and therefor drivers could not be installed. I did the whole shebang again as root, and this time it told me that driver installation failed. Since we do not use the windrvr that comes with the ISE, screw it. You can try, though, maybe it works for you.

I chose /opt/Xilinx as install directory. You can choose any dir, just replace that in the following

Now let's run the above-mentioned setup-script:
Code:
#> cd ~/x5000/usb-driver-HEAD-913cbbf
#> ./setup_pcusb

This installs some udev-rules in /etc/udev/rules.d/xusbdfwu.rules by copying from xilinx folder somewhere. They already mod these xilinx-rules for newer udev versions, but it seems udev changed again, so I had to edit that file:

Code:
#> edit /etc/udev/rules.d/xusbdfwu.rules

change all occurences of "$tempnode" to "%N" (uppercase N)

you also need a tool called fxload to upload the firmware to the device, install it (this example is gentoo)

Code:
#> emerge fxload

now if you replug the USB Platoform Cable, the firmware should load and the LED on the device go from "maybe very dimly red" to "BRIGHT RED", when the firmware is loaded. If x5000 is connected, it will go green.

If it doesn't work for some reason, set udev_log="debug" in /etc/udev/udev.conf to see what's going on in the syslog when you replug.

You can also load the firmware manually (look in the rules file and lsusb which one by device id):

Code:
#> fxload /usr/share/xusb_....hex

At this point, the driver should be working and the LED on cable should be either GREEN or RED depending on wether x5000 is plugged in or not.

To check if driver works libusb and the firmware works, you can use another tool, urJTAG (http://urjtag.org/):

Code:
#> jtag
jtag> cable xpc_ext
jtag> detect

maybe we can even program with this tool, I don't know. Anyone?

Step 3: program the FPGA using ISE:

Now you can start impact, which can be used to program the X5000 fpga, preloading the usb driver:
Code:
#> LD_PRELOAD=~/x5000/usb-driver-HEAD-913cbbf/libusb-driver.so /opt/Xilinx/13.2/ISE_DS/ISE/bin/lin/impact

impact should start up and ask you some stuff about project folder. Just answer as you see fit. It also asks you "Configure devices using Boundary-Scan (JTAG)". You can try "Automatically connect to a cable...." here, but it never worked for me. Instead, I select "Enter a boundary-chain manually".

The gui starts now. Important: Do  "Menu: Output -> Reset Cable". This helped me to get the cable working at all. It did not work for me without doing this.

No you can select "boundary Scan" on the left and then Right Click on "Right click to Add Device....". and select "Cable Setup...". This is also in the "Output Menu".

If it says: "warning, windrvr not installed", you probably did something wrong with the LD_PRELOAD above.

Select "Platform Cble USB/II" (at least for me that's what I wanted) and then check out "Advanced USB Cable Setup", it should show an entry in the list of usb cables/ports. If it doesn't, exit that stuff and try "Output -> Reset Cables" again.

If it says: "this function requires a target to be set first", it's probably working Wink. Load the xxx.bit file from the miner.zip by right-clicking on the white "boundary scan" areay and selecting "Add xilinx device...". Then try again with the Cable Setup.

The cable works and a nice Xilinx image popped up in the white area? Then you can program the fpga by right-clicking the image and selecting "program". Took 11 seconds for me, the bar didn't go all the way to 100%.

Step 4: mine!

go to the directory where you unpacked Miner.zip and make a script, mine.sh

Code:
#> cd ~/x5000/Miner
Miner #> edit mine.sh

Quote from: mine.sh
#!/bin/sh
export PLATFORM=lin
#if ("`arch | grep -c "64"`" == "1") then <- fix this if you have 64 bit system
#    PLATFORM=${PLATFORM}64
#fi
export XIL_CSE_TCL=/opt/Xilinx/13.2/ISE_DS/ISE/cse/tcl
export XILINX=${XIL_CSE_TCL}/../..
export PATH=${XILINX}/lib/${PLATFORM}:${XILINX}/bin/${PLATFORM}:$PATH
export LD_LIBRARY_PATH=${XILINX}/lib/${PLATFORM}:${XILINX}/bin/${PLATFORM}

export LD_PRELOAD=~/x5000/usb-driver-HEAD-913cbbf/libusb-driver.so

tclsh mine.tcl

note that this script quite sucks, you probably have to change a couple of paths.

edit the configfile... and start to mine

Code:
Miner #> edit config.tcl
Miner #> ./mine.sh

you might get some errors. If tcl complains about missing packages, try installing tcllib.

Ok, that's it. Hope it helps someone.


PGP key molecular F9B70769 fingerprint 9CDD C0D3 20F8 279F 6BE0  3F39 FC49 2362 F9B7 0769
newMeat1 (OP)
Full Member
***
Offline Offline

Activity: 210
Merit: 100



View Profile
August 31, 2011, 06:10:17 PM
 #285

I think it's fitting that molecular is about to become a Hero Member.    Cheesy

He's right about the variation on hash rate from our boards. They are pretty much hard-wired to run at 100 MHz right now, doing one hash per cycle. Any variation on that is due to latency communicating with the pool or something like that.

molecular
Donator
Legendary
*
Offline Offline

Activity: 2772
Merit: 1019



View Profile
August 31, 2011, 06:15:21 PM
 #286

I think it's fitting that molecular is about to become a Hero Member.    Cheesy

Lol. Thanks for the flowers, but not all of my 498 posts are as long and contentrich as the above one Wink


PGP key molecular F9B70769 fingerprint 9CDD C0D3 20F8 279F 6BE0  3F39 FC49 2362 F9B7 0769
thirdlight
Sr. Member
****
Offline Offline

Activity: 445
Merit: 250



View Profile
August 31, 2011, 08:13:55 PM
 #287

That's a fantastic guide, molecular.

Can't wait....

coblee
Donator
Legendary
*
Offline Offline

Activity: 1653
Merit: 1286


Creator of Litecoin. Cryptocurrency enthusiast.


View Profile
August 31, 2011, 08:23:06 PM
 #288

Any ideas if the mining scripts will run on a mac?

makomk
Hero Member
*****
Offline Offline

Activity: 686
Merit: 564


View Profile
August 31, 2011, 09:24:56 PM
 #289

Any ideas if the mining scripts will run on a mac?
Nope, because none of the usual FPGA tools support Macs. (Someone I vaguely know was complaining about this on Twitter the other day.) It's possible someone will write an alternative that doesn't need them and works on Macs at some point but I wouldn't hold your breath...

Edit: Of course the new board version and the scripts for that might, once they're finished, but...

Quad XC6SLX150 Board: 860 MHash/s or so.
SIGS ABOUT BUTTERFLY LABS ARE PAID ADS
coblee
Donator
Legendary
*
Offline Offline

Activity: 1653
Merit: 1286


Creator of Litecoin. Cryptocurrency enthusiast.


View Profile
August 31, 2011, 09:29:57 PM
 #290

Any ideas if the mining scripts will run on a mac?
Nope, because none of the usual FPGA tools support Macs. (Someone I vaguely know was complaining about this on Twitter the other day.) It's possible someone will write an alternative that doesn't need them and works on Macs at some point but I wouldn't hold your breath...

With the X6000/X6500, you don't need to program the FPGA chip, right? So we just need the mining script to work on the Mac. Does that script support the Mac? Anyone know? I'd love to be able to plug this into my iMac and start mining.

molecular
Donator
Legendary
*
Offline Offline

Activity: 2772
Merit: 1019



View Profile
August 31, 2011, 09:48:55 PM
 #291

Any ideas if the mining scripts will run on a mac?

Don't know osx a lot, but let me do some guessing from my experience with linux.

The script itself is in tcl, that should be no problem. Also probably libusb should be right there in osx, right, so it's a matter of compiling that "libusb-driver"? You'd also have to see about the firmware upload. Don't know about the Xilinx ISE or what else could be used to smolder the logic onto the chip.

So: I wouldn't count on it and it might require some fiddling, but chances are it's doable, I'd say. You'd best need someone who knows his way around osx.

PGP key molecular F9B70769 fingerprint 9CDD C0D3 20F8 279F 6BE0  3F39 FC49 2362 F9B7 0769
molecular
Donator
Legendary
*
Offline Offline

Activity: 2772
Merit: 1019



View Profile
September 04, 2011, 10:08:10 AM
 #292



Maybe I can wake someone up Wink

PGP key molecular F9B70769 fingerprint 9CDD C0D3 20F8 279F 6BE0  3F39 FC49 2362 F9B7 0769
kazoo
Newbie
*
Offline Offline

Activity: 12
Merit: 0


View Profile
September 05, 2011, 12:04:19 AM
 #293

I'm on deck! I have my preorder in. Are hardware schematics available to study?
 Smiley
newMeat1 (OP)
Full Member
***
Offline Offline

Activity: 210
Merit: 100



View Profile
September 05, 2011, 04:42:42 AM
Last edit: September 05, 2011, 05:23:03 AM by newMeat1
 #294

Hey kazoo,

Thanks for the order! first of all. We haven't released any schematics yet. I don't imagine we will anytime soon, because FPGA's are turning into a hot field. Wouldn't want to give away our secret sauce. But, if you send me a PM, I'll answer almost any hardware question you want.

film2240
Legendary
*
Offline Offline

Activity: 1022
Merit: 1000


Freelance videographer


View Profile WWW
September 05, 2011, 01:48:20 PM
 #295

Where can I buy these boards? What range of boards can you offer?

[This signature is available for rent.BTC/ETH/LTC or £50 equivalent a month]
[This signature is available for rent.BTC/ETH/LTC or £50 equivalent a month]
[This signature is available for rent.BTC/ETH/LTC or £50 equivalent a month]
fizzisist
Hero Member
*****
Offline Offline

Activity: 720
Merit: 525



View Profile WWW
September 05, 2011, 03:10:42 PM
 #296

Nice work, molecular! Do you mind if I put your guide up on fpgamining.com?

With the X6000/X6500, you don't need to program the FPGA chip, right? So we just need the mining script to work on the Mac. Does that script support the Mac? Anyone know? I'd love to be able to plug this into my iMac and start mining.

It still needs to be tested, of course, but I see no reason that the X6000/X6500s won't work on Mac, Linux, and Windows.

Where can I buy these boards? What range of boards can you offer?

This particular board is done, and the next generation is about to come out. Here's the thread for it: https://bitcointalk.org/index.php?topic=40058.0

senseless
Hero Member
*****
Offline Offline

Activity: 1118
Merit: 541



View Profile
September 05, 2011, 05:39:01 PM
 #297


Do you have the capability to make a custom board once you get the FPGA design to 150+mhash/s?

I'd like 8 chips on a single width 1x pci-e slot . I'd be willing to pay 1$ per 0.75 mhash .. About 1600$ per card as long as you can get the design above 150mhash/s average.

I'd want 6 cards.

Also, Would you be able to build a board if I sent you the chips? I managed to find a Virtex 5 LX240T for 100$ and 4 Spartan 6 LX150s for < 150$.








molecular
Donator
Legendary
*
Offline Offline

Activity: 2772
Merit: 1019



View Profile
September 06, 2011, 06:00:31 AM
 #298

Nice work, molecular! Do you mind if I put your guide up on fpgamining.com?

Sure, I mean: no, I don't mind.

PGP key molecular F9B70769 fingerprint 9CDD C0D3 20F8 279F 6BE0  3F39 FC49 2362 F9B7 0769
fizzisist
Hero Member
*****
Offline Offline

Activity: 720
Merit: 525



View Profile WWW
September 06, 2011, 01:01:23 PM
 #299

Nice work, molecular! Do you mind if I put your guide up on fpgamining.com?

Sure, I mean: no, I don't mind.

Great! It is done: fpgamining.com/index.php?title=X5000_Guide

molecular
Donator
Legendary
*
Offline Offline

Activity: 2772
Merit: 1019



View Profile
September 06, 2011, 08:41:55 PM
 #300

Nice work, molecular! Do you mind if I put your guide up on fpgamining.com?

Sure, I mean: no, I don't mind.

Great! It is done: fpgamining.com/index.php?title=X5000_Guide

cool!

PGP key molecular F9B70769 fingerprint 9CDD C0D3 20F8 279F 6BE0  3F39 FC49 2362 F9B7 0769
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 [15] 16 17 18 »  All
  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!