Bitcoin Forum
June 24, 2024, 08:07:23 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 ... 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 [586] 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 »
11701  Economy / Computer hardware / Re: Custom FPGA Board for Sale! on: August 31, 2011, 09:48:55 PM
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.
11702  Economy / Computer hardware / Re: Custom FPGA Board for Sale! on: August 31, 2011, 06:15:21 PM
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

11703  Economy / Computer hardware / Re: Custom FPGA Board for Sale! on: August 31, 2011, 05:09:11 PM
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.

11704  Economy / Computer hardware / Re: Custom FPGA Board for Sale! on: August 31, 2011, 04:03:13 PM
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
11705  Economy / Computer hardware / Re: Custom FPGA Board for Sale! on: August 31, 2011, 03:04:55 PM
One question: is it safe to plug in/out the power plug while the PSU is on? I'd really hate to have to power off my system for this (my X5000 currently runs on it's own PSU but I want to switch to the one used by my wall-pc)
11706  Economy / Computer hardware / Re: Custom FPGA Board for Sale! on: August 31, 2011, 02:54:04 PM
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)
11707  Economy / Computer hardware / Re: Custom FPGA Board for Sale! on: August 31, 2011, 02:52:16 PM


Looks awesome, right. Green LED and all Wink It get's better:

Quote from: x5000
FPGA is now searching for lottery ticket...
I've got a Golden Ticket!!
7BD107D0
Hex nonce: 7BD107D0
New nonce hex: 7bd107d0
Original data: 00000001e8162cee2367fac1993d45171558e47140cd2bb5efad0d1b0000077400000000df73099 e56202184f57a5fec25eeb7840d311513aa89894ea24e3e927a172c244e5e48501a096fe3000000 0000000080000000000000000000000000000000000000000000000000000000000000000000000 0000000000080020000
Golden data: 00000001e8162cee2367fac1993d45171558e47140cd2bb5efad0d1b0000077400000000df73099 e56202184f57a5fec25eeb7840d311513aa89894ea24e3e927a172c244e5e48501a096fe3d007d1 7b00000080000000000000000000000000000000000000000000000000000000000000000000000 0000000000080020000
Submitting work ...
Result: {"id":1,"error":null,"result":true}

YESSSS!

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

Li, newMeat, should I write up a little linux guide. It's not been trivial ^^

EDIT: changed image to include eligius screenshot of hashrate
11708  Bitcoin / Hardware / Re: Custom FPGA Mining Board: X6000/X6500 on: August 31, 2011, 02:46:03 PM
Quote from: x5000
FPGA is now searching for lottery ticket...
I've got a Golden Ticket!!
7BD107D0
Hex nonce: 7BD107D0
New nonce hex: 7bd107d0
Original data: 00000001e8162cee2367fac1993d45171558e47140cd2bb5efad0d1b0000077400000000df73099 e56202184f57a5fec25eeb7840d311513aa89894ea24e3e927a172c244e5e48501a096fe3000000 0000000080000000000000000000000000000000000000000000000000000000000000000000000 0000000000080020000
Golden data: 00000001e8162cee2367fac1993d45171558e47140cd2bb5efad0d1b0000077400000000df73099 e56202184f57a5fec25eeb7840d311513aa89894ea24e3e927a172c244e5e48501a096fe3d007d1 7b00000080000000000000000000000000000000000000000000000000000000000000000000000 0000000000080020000
Submitting work ...
Result: {"id":1,"error":null,"result":true}

YESSSS!

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

Li, newMeat, should I write up a little linux guide. It's not been trivial ^^

EDIT: Arghhh! sorry, this is the wrong thread. will crosspost to x5000 thread Wink
11709  Economy / Computer hardware / Re: Custom FPGA Board for Sale! on: August 30, 2011, 01:40:31 PM
Go bravely Molecular, you pioneer.  Just remember that the whole bitcoin world is watching you and counting on those trembling hands. Shocked

Feel safer now?  Tongue 

Hmm, [mumbling, cig in mouth], just let me get this, .... power ... hmgrbl ... plug ... which way w.. BRATZL BRUTZ ZAPPP
11710  Economy / Computer hardware / Re: Custom FPGA Board for Sale! on: August 30, 2011, 11:41:19 AM
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

now what? I'm afraid!
11711  Bitcoin / Bitcoin Discussion / Re: This Whole Country is Going to be Accepting Bitcoins, and I"M MOVING THERE! on: August 28, 2011, 07:24:25 AM

If there's any place you're perfectly safe when there's a tsunami, it's on a floating island.


Try watching some movies of ships in Tsunami's. You'll be surprised...

There are indeed some videos (http://www.youtube.com/watch?v=06huCv3cCaM) that show a big tsunami wave hitting a ship (it survives just fine, btw).

You have to know that such waves only get high when the come close to land (more precisely, when the ocean gets shallower). Further out (where I assume such an island would be built), the wave have the same energy, but are more spread out (wider), you probably wouldn't even notice it passing by.
11712  Bitcoin / Bitcoin Discussion / Re: This Whole Country is Going to be Accepting Bitcoins, and I"M MOVING THERE! on: August 28, 2011, 07:16:15 AM
Quote
The structure would be far enough off shore to be exempt from jurisdictions covering taxes, regulations, building codes, welfare requirements and weapons restrictions.
Until someone marches in an army, that is.

I'd use the navy or airforce.

Other than that: what's to gain for a country to invade this except bad publicity for murdering naive libertarians?
11713  Bitcoin / Bitcoin Discussion / Re: This Whole Country is Going to be Accepting Bitcoins, and I"M MOVING THERE! on: August 28, 2011, 07:11:29 AM
how do i sign up? i want to live there how much is a 3 1/2 condo on this island

In the beginning, I would imagine they will be paying people to move there, but in the long run, real estate will be difficult to measure. It will probably be like bitcoins. One day a piece of Prime Real Estate will cost you 1000 bitcoins, the next day it will be worth 1/4 of that, and just after you sold it, the value will triple, then a few days later, triple again.


If they use bitcoins, the real estate prices will probably be stable. The will fluctuate measured in USD, of course, like bitcoin.

This could be the first island of stability for bitcoin Wink
11714  Other / Beginners & Help / Re: SolidCoin and IX Exchange Mirror - visit solidcoins.info and ixc2btc.info on: August 27, 2011, 10:25:56 PM
Cool page, like it, thanks. Sent some coins your way.

shameless plug: I added market depth graph to my SolidCoin graph page: http://solidcoin.kicks-ass.org/graphs/graphs.html
11715  Economy / Service Discussion / Re: VPS hosting evalutation thread on: August 27, 2011, 09:28:10 AM
Europhase and Exoware are the only ones I can recommend, being totally honest.

It would be interesting to know which ones you tested and can therefore not recommend. Surely you didn't test the whole list.
11716  Bitcoin / Project Development / Re: [ANNOUNCE] Abe 0.5: Open Source Block Explorer Knockoff on: August 26, 2011, 09:41:17 PM
Just some minor reformatting which I did.  Thanks!

You're welcome. Love to be able to give back a little code, too.
11717  Other / Beginners & Help / Re: SolidCoin Exchange Mirror - feel free to visit solidcoins.info on: August 26, 2011, 07:17:29 PM
Cool!
11718  Bitcoin / Project Development / Re: [ANNOUNCE] Abe 0.5: Open Source Block Explorer Knockoff on: August 26, 2011, 07:05:12 PM
The joining looks correct.  My "way" to format decimals is
Code:
format_satoshis(satoshis, chain)
.

I've had some problem with format_satoshis (worked around them by casting to UNSIGNED in the sql query)

Code:
format_satoshis(decimal.Decimal('12.3456'), 1)
gives
Code:
1.23456E-7.012.3456

other than that, I made alle the changes you requested:

Code:

    def q_getreceivedbyaddress(abe, page, chain):
        """getreceivedbyaddress"""
        addr = wsgiref.util.shift_path_info(page['env'])
        if chain is None or addr is None:
            return 'returns amount of money received by given address (not balance, sends are not subtracted)\n' \
                '/chain/CHAIN/q/getreceivedbyaddress/ADDRESS\n'

        if ADDRESS_RE.match(addr):
          version, hash = decode_address(addr)
          sql = """
            SELECT
              CONVERT(COALESCE(SUM(txout.txout_value),0), UNSIGNED) from pubkey
            JOIN txout on txout.pubkey_id=pubkey.pubkey_id
            JOIN block_tx on block_tx.tx_id=txout.tx_id
            JOIN block b on b.block_id=block_tx.block_id
            JOIN chain_candidate cc on cc.block_id=b.block_id
            WHERE
              pubkey_hash=? AND
              cc.chain_id=? AND
              cc.in_longest=1
            ;"""
          row = abe.store.selectrow(sql, (binascii.hexlify(hash), chain['id']))
          ret = format_satoshis(row[0], chain);
        else:
          ret = 'ERROR: address invalid'

        return ret
        
    def q_getsentbyaddress(abe, page, chain):
        """getsentbyaddress"""
        addr = wsgiref.util.shift_path_info(page['env'])
        if chain is None or addr is None:
            return 'returns amount of money sent from given address\n' \
                '/chain/CHAIN/q/getsentbyaddress/ADDRESS\n'

        if ADDRESS_RE.match(addr):
          version, hash = decode_address(addr)
          sql = """
            SELECT
              CONVERT(COALESCE(SUM(txout.txout_value),0), UNSIGNED) from pubkey
            JOIN txout txout on txout.pubkey_id=pubkey.pubkey_id
            JOIN txin on txin.txout_id=txout.txout_id
            JOIN block_tx on block_tx.tx_id=txout.tx_id
            JOIN block b on b.block_id=block_tx.block_id
            JOIN chain_candidate cc on cc.block_id=b.block_id
            WHERE
              pubkey_hash=? AND
              cc.chain_id=? AND
              cc.in_longest=1
            ;"""
          row = abe.store.selectrow(sql, (binascii.hexlify(hash), chain['id']))
          ret = format_satoshis(row[0], chain);
        else:
          ret = 'ERROR: address invalid'

        return ret

Anything else?

EDIT: I could put the sql string directly into the call to selectrow(...). The sql variable was only used for debugging output, which doesn't make too much sense any more anyways since the values are to filled in any more (% -> ?)
11719  Bitcoin / Project Development / Re: [ANNOUNCE] Abe 0.5: Open Source Block Explorer Knockoff on: August 26, 2011, 02:46:35 PM
John,

have you implemented q/getreceivedbyaddress and q/getsentbyaddress yet?

I have:

    import decimal.Decimal

    def q_getreceivedbyaddress(abe, page, chain):
        """getreceivedbyaddress"""
        if chain is None:
            return 'returns amount of money received by given address (not balance, sends are not subtracted)\n' \
                '/chain/CHAIN/q/getreceivedbyaddress/ADDRESS*\n'
        addr = wsgiref.util.shift_path_info(page['env'])

        if ADDRESS_RE.match(addr):
          version, hash = decode_address(addr)
          sql = """
            select
              ifnull(sum(txout.txout_value),0) from pubkey
            join txout on txout.pubkey_id=pubkey.pubkey_id
            join block_tx on block_tx.tx_id=txout.tx_id
            join block b on b.block_id=block_tx.block_id
            join chain_candidate cc on cc.block_id=b.block_id
            where
              pubkey_hash='%s' and
              cc.chain_id=%s and
              cc.in_longest=1
            ;""" % (binascii.hexlify(hash), chain['id'])
          #ret = NETHASH_HEADER + '\n' + sql + '\n\n' # debugging
          rows = abe.store.selectall(sql)
          ret = (rows[0][0] / decimal.Decimal('1E8')).to_eng_string()
        else:
          ret = 'address invalid'

        return ret
       
    def q_getsentbyaddress(abe, page, chain):
        """getsentbyaddress"""
        if chain is None:
            return 'returns amount of money sent from given address\n' \
                '/chain/CHAIN/q/getsentbyaddress/ADDRESS\n'
        addr = wsgiref.util.shift_path_info(page['env'])

        if ADDRESS_RE.match(addr):
          version, hash = decode_address(addr)
          sql = """
            select
              ifnull(sum(txout.txout_value),0) from pubkey
            join txout txout on txout.pubkey_id=pubkey.pubkey_id
            join txin on txin.txout_id=txout.txout_id
            join block_tx on block_tx.tx_id=txout.tx_id
            join block b on b.block_id=block_tx.block_id
            join chain_candidate cc on cc.block_id=b.block_id
            where
              pubkey_hash='%s' and
              cc.chain_id=%s and
              cc.in_longest=1
            ;""" % (binascii.hexlify(hash), chain['id'])
          #ret = NETHASH_HEADER + '\n' + sql + '\n\n' # debugging
          rows = abe.store.selectall(sql)
          ret = (rows[0][0] / decimal.Decimal('1E8')).to_eng_string()
        else:
          ret = 'address invalid'

        return ret



If you want to use it, please take a look at the following things especially:

  • SQL Query correct? (longest chain only, correct joining of txout in getsentbyaddress?)
  • Handling of decimal values correct? Is it "your way"? Probably not since I needed to "import decimal"

I didn't implement the "confirmations" filter yet.


11720  Economy / Service Discussion / Re: VPS hosting evalutation thread on: August 26, 2011, 09:51:42 AM
  • Can I cancel service at any time (monthly)?

Yes, service is provided month to month

  • Can I upgrade at any time (increase storage / cpu) without having to re-setup?


Yes, with a few notes: 1) The upgrade can only be performed with the system offline, 2) It may require moving the system to another node, 3) while you can add additional storage space, the geometry of the initial disk cannot change without doing another setup. In other words, if the upgrade includes additional disk space and you wish to claim it, we can add it as a second disk to your system.

  • Is first publicly accessible IPv4 address included?

No. Many of our customers don't utilize or require a static address. If you want an external/static IP address, it is an additional cost.


Thanks a lot for you answers. Maybe you could make this more clear on the webpage. Such information not being easily accessible can really stop people from making a purchase in my mind.

Especiall the "month to month" provision of service really makes it a lot easier to buy because it reduces risk and tends to increase service quality, thanks for that, I might buy from you but will do more looking at the others first.
Pages: « 1 ... 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 [586] 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!