Bitcoin Forum
May 24, 2024, 12:18:38 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 ... 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 88 89 90 91 [92] 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 ... 247 »
1821  Bitcoin / Mining software (miners) / Re: BFGMiner 3.1.3: modular ASIC/FPGA, GBT, Strtm, RPC, Lnx/OpnWrt/PPA/W64, BFLSC on: July 31, 2013, 12:13:33 AM
Results of working on getting BFGMiner to work with X6500.

Using libusb-win32_1.2.6.0
http://sourceforge.net/projects/libusb-win32/?source=dlp

http://pastebin.com/bn8tecQT

Luke can we got a known working version or a better suggestion please?
All current versions are known working - I wouldn't release them if they didn't work.
There is no sign of a X6500 on your USB bus in the pastebin, with or without the correct driver.
X6500 is 0403:6001


http://tinypic.com/r/26126g5/5

I'm kind of lost at this point.
Be sure you're using Zadig the way described in README.FPGA

Update: HUPed after 3 hours operation.
What do you mean by HUPed?
The HUP signal is sent when you close the terminal...

HUP happens because I use SSH to open a terminal. When I try to SSH back in, I can't. This is why I need to power it down and then back up again.
I recommend running BFGMiner inside GNU Screen.

I have exactly this same problem.  If i run 3.11 they are reconized and work properly, but if i run 3.13 i get the same error. (so i am running
OH! I do have a fix for a X6500 regression slated for 3.1.4. Just didn't realize it manifested this way >_<

Stay tuned, probably just a few more days...

If you'd like to help test now, the latest git is always available from WeBisect.
1822  Bitcoin / Mining software (miners) / Re: BFGMiner 3.1.3: modular ASIC/FPGA, GBT, Strtm, RPC, Lnx/OpnWrt/PPA/W64, BFLSC on: July 30, 2013, 09:54:26 PM
Update: HUPed after 3 hours operation.
What do you mean by HUPed?
The HUP signal is sent when you close the terminal...
1823  Bitcoin / Mining software (miners) / Re: BFGMiner 3.1.3: modular ASIC/FPGA, GBT, Strtm, RPC, Lnx/OpnWrt/PPA/W64, BFLSC on: July 30, 2013, 06:24:24 PM
Results of working on getting BFGMiner to work with X6500.

Using libusb-win32_1.2.6.0
http://sourceforge.net/projects/libusb-win32/?source=dlp

http://pastebin.com/bn8tecQT

Luke can we got a known working version or a better suggestion please?
All current versions are known working - I wouldn't release them if they didn't work.
There is no sign of a X6500 on your USB bus in the pastebin, with or without the correct driver.
X6500 is 0403:6001
1824  Bitcoin / Hardware / Re: [Announcement] Block Erupter USB on: July 30, 2013, 08:52:04 AM
anyone know the real power consumption?
0. tonal effects
1825  Bitcoin / Mining software (miners) / Re: BFGMiner 3.1.3: modular ASIC/FPGA, GBT, Strtm, RPC, Lnx/OpnWrt/PPA/W64, BFLSC on: July 29, 2013, 07:50:57 PM
but you still want to run it with sudo, with you normally must run with sudo, othewise you are not allowed to open the FPGA communication. I think you will loose too much time with something that in the end won't be useful (once you are in the gdb shell, then what you want to look there?) maybe it would be useful a core file, if one is being generated, or a traceback from the problem in a text file... if you aren't developer, a gdb shell won't help you.



Vpereira, FYI, If you read a couple of posts back, Luke asked for the backtrace which I am trying to deliver and since I am not involved in this project, there is no way I will be able to familiarise myself in time with the code so that I know what the problem is. If I asked you to look into an unfamiliar mature project with several KLOC, I suspect you would be in the same position as I am.


So here is an update
===============
I have been testing all night two separate hosts; one with the 7 BE running windows bfgminer 3.1.3 and the pi running 3.1.2 with the FPGA's (2 CM1 and the ZTEX 1.15x). No problems so far, I believe I can rule out the power issue.

PS: I am a Java and ANSI-C developer amongst many others Cheesy
Before you 'run' in gdb, do
Code:
handle SIGILL nostop noprint pass
1826  Bitcoin / Mining software (miners) / Re: BFGMiner 3.1.3: modular ASIC/FPGA, GBT, Strtm, RPC, Lnx/OpnWrt/PPA/W64, BFLSC on: July 28, 2013, 03:07:59 PM
Hello,

I have been running a pi (I have two pi's; R1 and R2) with a ZTEX 1.15x and 2 CM1 FPGA boards running BFGMiner 3.0.2. I recently upgraded to version 3.1.2 and acquired 7 USB Block Erupters plugged into a DLINK 7 port hub which maximum amperage is 3A.

The CM1 and ZTEX do not have significant problems in running but upon installing the new BE, it only takes about one hour until the pi crashes and needs to be restarted. I have tried both hardware revisions and I can confirm that it still crashes on both.

I reduced the load on the USB device from 7 to 5 (5 * 0.51 = 2.5amps) and it still makes the pi crash to the point of needing a hard restart. I am now testing with 4 USB BE plugged into the hub.

The arguments used when executing BFGMiner is "-S all".

I am not sure if this is a problem with power draw which I am trying to eliminate or a software problem that is causing the pi to crash.

Any help is greatly appreciated.
A backtrace may be useful.
Rebuild with
Code:
make clean && ./configure CFLAGS='-O0 -ggdb' && make
Note that -O0 is OH ZERO.

Then start bfgminer with
Code:
gdb --args ./bfgminer YOUR OPTIONS ETC -S all
When it crashes, run
Code:
thr app all bt
... and post the output from this (it will be many pages).
1827  Bitcoin / Project Development / Re: [ANN] MMORPG-Coin - a game Within the Block Chain - NMC Fork on: July 28, 2013, 06:12:44 AM
Anti-scammer idea: Reward miners with game items instead of currency. Then they have to play the game to sell them at all Cheesy

Credit to k9quaint for inspiring this idea.
Code:
<k9quaint> I solved a block in MMOCoin, got a Vorpal Sword out of it!
1828  Bitcoin / Hardware / Re: [Announcement] Block Erupter USB on: July 28, 2013, 02:13:29 AM
Eligius has them for 340 TBC (0.55 BTC) now.
And you can choose your color there.
Well, you can express a preference - I don't know how much of each colour Canary has stocked, though.
1829  Bitcoin / Hardware / Re: [Announcement] Block Erupter USB on: July 28, 2013, 01:28:13 AM
Eligius has them for 340 TBC (0.55 BTC) now.
1830  Bitcoin / Pools / Re: [13000 GH] Eligius: Decntrlzd, ASIC-rdy, 0Fee CPPSRB, 0reg, BTC, 877 # support on: July 27, 2013, 09:35:33 PM
Block Erupter price dropped to 340 TBC (0.55 BTC), FWIW.
1831  Bitcoin / Hardware / Re: Hacking BitForce SC firmware with only free software on: July 26, 2013, 04:09:06 AM
Sounds like it.
Wish I saw that one, would probably have got it instead (to support open hardware).
1832  Bitcoin / Project Development / Re: [ANN] MMOCoin - a game Within the Block Chain - NMC Fork on: July 26, 2013, 03:25:05 AM
Merge Mining with "this coin" as a secondary chain should work almost out of the box if we kept as sha256.. (i believe)
If you use Namecoin's merged mining, yes.
But since it was created (over a year ago now), various flaws have been found with it, and ideas for improvement.
For something new, it would make sense to learn from this and use a newer system based on this background - hence my suggestion to discuss with Freicoin (who are doing this).
1833  Bitcoin / Project Development / Re: [ANN] MMOCoin - a game Within the Block Chain - NMC Fork on: July 26, 2013, 01:57:27 AM
BTW, note that while SHA256d has been a great success for POW, none of the other contenders have worked out so far (scrypt is a complete failure as POW).
1834  Bitcoin / Project Development / Re: [ANN] MMOCoin - a game Within the Block Chain - NMC Fork on: July 26, 2013, 01:17:47 AM
thanks for comments

one of the points of the game is you can play the game at a low cost, but have the chance to get lots of coins (hopefully, who knows what will happen Smiley)

where would the other coins come from?
Other players? But I guess if you want the game mechanics to "print money", this would mean you need its own currency, yes.
1835  Bitcoin / Project Development / Re: [ANN] MMOCoin - a game Within the Block Chain - NMC Fork on: July 26, 2013, 12:32:45 AM
Would be neat if you could make the game use other cryptocurrencies as currency, instead of having its own (this will prevent the usual pump-and-dump scammers from ruining it)..
Should definitely make it support merged mining so pools can support it.

thanks...

this would be more difficult (your first part)...
It would, but I think it'd help your project a lot.

2nd part:
getting a pool to merge mine this coin from the start will be "hard work?", or do you know if it wouldn't Smiley (if we used sha256)..
I can't guarantee it, but I would definitely work to get Eligius mining it. Smiley
Be sure to check out what Freicoin's merged mining plans are.

also, we want to get the coins spread out as much as possible at release (a giveaway will have to be done instantly on launch also).. otherwise only certain players/miners will be in the game (the ones with all the coins), and they will then be able to monopoly even more coins from inside the game..
This is also solved (better) by using external cryptocurrencies.
1836  Bitcoin / Project Development / Re: [ANN] MMOCoin - a game Within the Block Chain - NMC Fork on: July 26, 2013, 12:06:44 AM
Would be neat if you could make the game use other cryptocurrencies as currency, instead of having its own (this will prevent the usual pump-and-dump scammers from ruining it)..
Should definitely make it support merged mining so pools can support it.

I wonder if there'd be any way to make this MOO-like?
eg, have the virtual world be user-programmable rather than hardcoding the game in the rules.
1837  Bitcoin / Hardware / Re: Hacking BitForce SC firmware with only free software on: July 25, 2013, 11:27:56 PM
Thanks Luke, great to know it can be done with DIY tools. Now to decide which JTAG gizmo to build, I wanted something dirt cheap and easy, like a parallel port one, but word is they take forever to flash a larger ROM, would you have any experience that would allow you to comment on how long this might take to go over a parallel port JTAG?
Dunno, most PCs don't even have parports anymore.
And IIRC the voltages they use vary - you don't want to use anything other than 3.3V for this!
1838  Bitcoin / Hardware / Hacking BitForce SC firmware with only free software on: July 25, 2013, 09:39:20 PM
Ok, starting a thread here to deal with hacking on BitForce SC firmware using only free software.
Non-free software is off-topic here. Note that closed-source software is always non-free, even if you don't have to pay for it.

Needless to say, if you damage your mining devices doing this, you're on your own.
Neither I nor BFL are likely to provide compensation or any warranty for hacking firmware.

Overview:
1. Toolchain (success, docs WIP)
2. Building (WIP)
3. Flashing (complete)
4. Debugging (nothing done)


Step 1: Toolchain

This is a pain. I'll document it later.
For now, you can play with my (Gentoo-oriented) notes:
Code:
crossdev -t avr32 -s1  # this will fail! but sets up stuff for us


# BEGIN binutils

mkdir -p /etc/portage/patches/cross-avr32/binutils/
cd /etc/portage/patches/cross-avr32/binutils/
PATCHES="
20-binutils.2.20.1-avr32-autoconf.patch
30-binutils-2.20.1-avr32-bfd.patch
31-binutils-2.20.1-avr32-binutils.patch
32-binutils-2.20.1-avr32-gas.patch
33-binutils-2.20.1-avr32-include.patch
34-binutils-2.20.1-avr32-ld.patch
35-binutils-2.20.1-avr32-opcodes.patch
40-binutils-2.20.1-avr32-fixes.patch
41-binutils-2.20.1-avr32-fpu.patch
42-binutils-2.20.1-avr32-bug-7435.patch
50-binutils-2.20.1-avr32-mxt768e.patch
51-binutils-2.20.1-avr32-uc3c.patch
52-binutils-2.20.1-avr32-uc3l0128.patch
53-binutils-2.20.1-avr32-uc3a4.patch
54-binutils-2.20.1-avr32-uc3d.patch
55-binutils-2.20.1-avr32-uc3l3l4.patch
"
for patch in $PATCHES; do
wget http://distribute.atmel.no/tools/opensource/avr32-gcc/binutils-2.20.1/$patch
done

# Possibly change make.conf to MAKEOPTS=-j1 - not sure if necessary


USE='-* multitarget' emerge =cross-avr32/binutils-2.20.1-r1

# interrupt build (Ctrl-Z) immediately after patches are applied
cd /var/tmp/portage/cross-avr32/binutils-2.20.1-r1/work/binutils-2.20.1
$EDITOR opcodes/Makefile.am  # find avr-dis.c and add under it: avr32-asm.c avr32-dis.c avr32-opc.c
for d in . gold intl libiberty gprof ld binutils etc gas opcodes bfd; do ( cd "$d"; autoreconf; ); done
fg

aclocal -I config
autoconf
automake
autoheader
for d in bfd opcodes binutils gas ld; do
pushd $d
autoconf
automake
autoheader
popd
done
fg

# interrupt build (Ctrl-Z) after bfd has configured
cd /var/tmp/portage/cross-avr32/binutils-2.20.1-r1/work/build/bfd
make headers
fg

# DONE binutils


# BEGIN gcc

mkdir -p /etc/portage/patches/cross-avr32/gcc/
cd /etc/portage/patches/cross-avr32/gcc/
PATCHES="
30-gcc-4.4.3-avr32.patch
31-gcc-4.4.3-avr32-rmw.patch
32-gcc-4.4.3-avr32-sleep-builtin.patch
33-gcc-4.4.3-avr32-ucr3fp.patch
34-gcc-4.4.3-avr32-fpu.patch
35-gcc-4.4.3.avr32-delay-cycles.patch
36-gcc-4.4.3.avr32-list-devices.patch
40-gcc-4.4.3-avr32-fpemul-fixes.patch
41-gcc-4.4.3-avr32-fix-const_int_addr.patch
42-gcc-4.4.3-avr32-fix-reorg_opt_bug11763.patch
43-gcc-4.4.3-avr32-4_4_3-upgrade.patch
44-gcc-4.4.3-avr32-bug-12671.patch
45-gcc-4.4.3-avr32-bug-7435.patch
46-gcc-4.4.3-avr32-bug-9675.patch
50-gcc-4.4.3-avr32-mxt768e.patch
51-gcc-4.4.3-avr32-uc3c.patch
52-gcc-4.4.3-avr32-uc3l0128.patch
53-gcc-4.4.3-avr32-uc3a4.patch
54-gcc-4.4.3-avr32-uc3d.patch
55-gcc-4.4.3-avr32-uc3l3l4u.patch
"
for patch in $PATCHES; do
wget http://distribute.atmel.no/tools/opensource/avr32-gcc/gcc-4.4.3/$patch
done

USE='-*' ACCEPT_KEYWORDS=** emerge =cross-avr32/gcc-4.4.3-r3

# DONE gcc


# BEGIN atmel-headers

layman -a luke-jr
ACCEPT_KEYWORDS=** emerge cross-avr32/atmel-headers

# DONE atmel-headers


# BEGIN newlib

mkdir -p /etc/portage/patches/cross-avr32/newlib/
cd /etc/portage/patches/cross-avr32/newlib/
# skip 10-newlib-1.16.0-avr32-atmel-version.patch
PATCHES="
30-newlib-1.16.0-avr32.patch
31-newlib-1.16.0-flashvault.patch
"
for patch in $PATCHES; do
wget http://distribute.atmel.no/tools/opensource/avr32-gcc/newlib-1.16.0/$patch
done

ln -s /usr/portage/sys-libs/newlib /usr/portage/local/crossdev/cross-avr32/
USE=-* ACCEPT_KEYWORDS=** emerge =cross-avr32/newlib-2.0.0

# interrupt build (Ctrl-Z) immediately after source unpacks
cd /var/tmp/portage/cross-avr32/newlib-2.0.0/work/newlib-2.0.0/
for patch in $PATCHES; do
patch -p0 <"/etc/portage/patches/cross-avr32/newlib/$patch"
done
cd newlib
autoreconf
fg

# interrupt build (Ctrl-Z) immediately after you see:
#    >>> Install newlib-2.0.0 into /var/tmp/portage/cross-avr32/newlib-2.0.0/image/ category cross-avr32
mkdir -p /var/tmp/portage/cross-avr32/newlib-2.0.0/image//usr/avr32/lib

# DONE newlib


ln -s /usr/lib/binutils/avr32/2.20.1/ldscripts/ /usr/avr32/lib/


Step 2: Building

TODO. I haven't done this 100% yet.
My BitForce_SC repository has a "make" branch that compiles to a .elf binary for now.


Step 3: Flashing

I decided to use the "TUMPA" JTAG interface (WARNING: this shop closed almost right after I ordered, until Aug 17).
There are many other options (including some nice open hardware you have to build yourself), but I don't have any experience with them (note that it must work at 3.3V!).
NOTE: I think Atmel's "Dragon" adapter will not work for this!

This board has a 20-pin JTAG connector, and the BFL boards have a 10-pin JTAG connector, each with different pinouts (ie, you can't just match half the 20-pin with the 5-pin!)
You want to connect these pins:
Name20-pin/TUMPA10-pin/BFL
VCC/VREF/VTAR14
nTRST38
TDI59
TMS75
TCK91
TDO133
GND20*10*
You can use any GND pin on both ends, only one needs to be connected.

Next, you'll need to install a special version of UrJTAG.
For some reason, they ignored AVR32 flash patches in 2009.
We need that. We also need a part definition for the AVR32 chip in BFL's devices.
I've put all this together in a git clone of UrJTAG for simplicity.
Build this from source and install it.

If you have an Intel HEX firmware (such as the 1.2.5 release binary - which is, by the way, probably compiled only for one particular model), you can convert it to the format needed for UrJTAG using this command:
Code:
srec_cat BitForce_SC-1.2.5.hex  -intel -offset -0x80000000 -byte-swap 4 -o BitForce_SC-1.2.5.bin -binary
Note that UrJTAG for some reason needs the firmware with all the words flipped backward (hence the -byte-swap 4 option).
This may be a bug in the aforementioned AVR32 flash patches, and if so, I may fix it at some point.

Now plug in the TUMPA (or equivalent) and start UrJTAG.
The first thing you need to do is configure your JTAG cable.
For TUMPA, this is:
Code:
cable ft2232 vid=0x0403 pid=0x8A98
Next, configure it for the AVR32:
Code:
detect
initbus avr32 HSBU

Before you flash, you must halt the CPU:
Code:
instruction HALT
shift ir
dr 1
shift dr
shift dr
If the chip is locked (BFL seems to ship at least some this way), you must unlock it (this erases the firmware on it too):
Code:
instruction CHIP_ERASE
shift ir
Now, flash the binary:
Code:
flashmem 0 BitForce_SC-1.2.5.bin
Once this completes, you can reenable the CPU:
Code:
instruction HALT
shift ir
dr 0
shift dr
shift dr


Step 4: Debugging

OpenOCD doesn't seem to have usable AVR32 support yet.
I probably won't give this any attention myself, but feel free to contribute.


See also:
1839  Bitcoin / Bitcoin Discussion / Re: Bitcoin-Qt next-test 2013-07-21 on: July 25, 2013, 08:26:46 PM
Note that this will cause older versions (including 0.8.3 and git master!) to think they need to reindex the block database!
This is due to unspent (and unspendable) outputs being pruned (which older code thinks is a problem because they don't understand it's unspendable).
p2pool uses these every block it finds.
1840  Bitcoin / Mining software (miners) / Re: BFGMiner 3.1.3: modular ASIC/FPGA, GBT, Strtm, RPC, Lnx/OpnWrt/PPA/W64, BFLSC on: July 25, 2013, 08:43:26 AM
Luke-Jr
I mean this:
 
will you improve it? Wink
BFGMiner is the improvement already. It is not difficulty 64, it is difficulty 0.001.
Pages: « 1 ... 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 88 89 90 91 [92] 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 ... 247 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!