Hi, I only have 1 usb asic miner so im new to mining. Its been mining for almost a week and this morning it started showing this error. Im using cgminer 3.1.1 so i could you the -s COM# at the end which results in a few more hashes/s and its on Win XP THis is the code i use- cgminer-nogpu.exe -o eu-stratum.btcguild.com:3333 -u drinu16_1 -p 123 -S COM3 and this is the error I had installed this http://www.silabs.com/products/mcu/Pages/USBtoUARTBridgeVCPDrivers.aspx and its has been working with it since What am i doing wrong ?? Im using BTC Guild and also tried it on another pc and still the same. 1. We do not support old versions of cgminer 2. BTCguild is currently under an attack so it is actually dead intermittently.
|
|
|
Yes they're atmel chips which actually appear to be better.
|
|
|
Cgminer uses zadig for these?
Yes, cgminer uses the one WinUSB driver for everything USB (note zadig is a driver changing tool, it's not a driver itself).
|
|
|
Con, did you forget to create a tag? Running head fine though...
Thanks,
roy
Fixed. As per usual, I released it just before going to bed and forgot. Note to the (very) few people out there that actually have BF1 devices t mine on them with the new version, there is NO hardware error % count associated with them because there is currently no meaningful way to calculate it based on what's returned from the chips.
|
|
|
New official version of cgminer, 3.5.0, now contains support for mining with BF1 devices on both linux and windows.
|
|
|
New official version of cgminer, 3.5.0, now contains support for red/bluefury devices on linux and windows.
|
|
|
New release: Version 3.5.0, 29th September 2013
Minor version increment signalling new driver support. The rest is minor bugfixes only so should be a safe upgrade.
Human readable changelog:
- Support for mining on BPMC redfury/bluefury bitfury based devices on linux and windows. Like every other USB device on cgminer, they will use the same WinUSB driver and require the same setting up. Binaries have bitfury support compiled in and if you are building binaries for yourself, they need to be enabled with --enable-bitfury. - CMR fixes to get it mining half decently again. - Code fixes to support current and devices with multiple USB interfaces. - Code changes to make it a lot less work to add new drivers. - tty devices will be reattached on shutting down cgminer cleanly on linux now. - Bugfixes for use of some usb buffers may lead to less corruption/apparent hw errors. - Buffering of extra data no longer appears on regular logging, only verbose and above. - Fixes for possible extra delays/stale work across longpolls (depended on driver). - Fixes for quota usage in --load-balance. - A fix for a bug that would randomly show a high best share that never happened. - Added ability to compile for stratum mining only, completely removing dependency on libcurl (must be expressly enabled at compile with with --disable-libcurl) - Various other compilation warning clean ups and minor bugfixes.
Full changelog:
- Add magic init sequence required on BF1 devices to get them mining on windows. - usbinfo.devlock is only ever write locked so convert it to a mutex - Icarus remove unneeded opt_debug tests due to applog being a macro - Icarus - CMR shouldn't wait the full timeout due to handle sharing - We should only yield once in cg_wunlock - Provide a function to downgrade a cglock from a write lock to an intermediate variant. - Deuglify use of _PARSE_COMMANDS macro expansions. - Deuglify use of usb parse commands macro in usbutils. - Use the driver add commands macros in api.c to avoid individually listing them. - Separate out asic fpga and opencl drivers in the driver parse commands macro for use individually as needed. - Use macro expansion in usb_find_devices to avoid explicitly listing them all. - Use macro expansion to iterate over all the drivers without explicitly writing them out in usbutils.c - Iterate over the bitfury offsets in order of decreasing likelihood. - Reattach the kernel driver on linux on usb_uninit. - Attach the kernel driver on failure to usb init on linux. - libusb kernel driver operations are only available on linux. - There is no need to get the external prototypes for drivers in cgminer.c any more. - Remove unnecessary gpu_threads initialisation. - Put avalon last in the sequence of adding drivers to prevent it trying to claim similar chip devices on startup. - Use macro expansion to iterate over all device drivers without needing to explicitly code in support in all places. Pass a hotplug bool to the detect() function to prevent opencl trying to hogplug GPUs. - Forward declare all device drivers in miner.h avoiding the need to export them everywhere else. - Add a noop function for driver detect when it's missing. - Reuse the DRIVER_ macros to avoid having yet another definition for DRV_ - Use macro expansion to generate extern device_drv prototypes. - Create a macro list of drivers to enable easier addition of further drivers. - There is no point setting the BF1 preferred packet size to the maximum since it will do so automatically. - icarus ensure all cmr interfaces are initialised properly - usbutils - fix USBDEBUG warnings - Remove unnecessary steps in communicating with BF1 and just use USB interface 1. - usbutils - usb_bulk_transfer fix the buf/data fix - usb_bulk_transfer - use the allocated buffer - Set preferred packet sizes per interface on BF1. - usbutils allow PrefPacketSize per endpoint - Remove magic control sequences on open/close on BF1 and just flush the read buffers. - Check return codes in getinfo and reset and fail as needed in BF1. - Check return code for bitfury_open and release resources properly on failed initialisation. - Abstract out flushing of interrupt reads in BF1 devices. - Perform interrupt read after close message on BF1 as per serial close. - Perform interrupt read flush as per serial open on BF1 devices. - Add information for 2nd USB interface on BF1 devices and choose interface 1 for bulk transfers. - usbutils - bulk transfer copy test fix - usbutils - add USBDEBUG for usb_bulk_transfer - Add more read_ii variants to usbutils. - Name remainder of BFU usb commands used. - Use submit_tested_work in bitfury driver to avoid unnecessarily re-testing the work for validity. - Abstract out work submission once it's been tested, to be used by drivers that do their own internal validity testing. - Store the hash2 array in struct work for further reuse. - usbutils - which_intinfo not requried - Use the test_nonce function within submit_nonce and store the uint32 corresponding to hash2 37 for further use. - usbutils - interfaces must all be on one handle - ep implies the interface - avalon stats use exact type - Only set share diff if we've confirmed it's a share first. - Update ASIC-README for bitfury devices. - Use an array of offsets when checking nonces in bitfury_checkresults - Limit the duration we wait for reads in BF1 based on time already elapsed to account for other delays such as work restart messages or out of work. - Minimise size of serial string we copy in BF1 stats to avoid overflow. - Implement basic API stats for BF1 and increase array of results to check for the rare straggling result. - Space debug output for bf1 to separate from numerals. - Abstract out the bitfury open close and reset functions and use them on reinit. - Rename BF1 devices BF1 - Check for work restart, breaking out early after usb reads in BF1. - Do not lose the first sets of results from BF1. - There is no point checking for results from the next round of work on BF1. - Last result returned by BF1 is an end of results marker so ignore it. - restart_wait should return 0 if thr_restart is true. - Remove unused code by bitfury driver since current driver uses serialised scanhash. - Meter out return of estimated hashes in BF1 to smooth out visible hashrate. - Optimise inner scanhash loop for bf1. - Add yet another backup work for triple buffering of work in bf1 to account for extra late results returned and don't check nonce offsets which appear to never return. - Name the work request and result usb commands for BF1 - Define a mandatory upper limit to waiting for reset and data on BF1 based on full nonce duration. - Decrease usb buffering to verbose logging. - Add in first draft for a serialised work model sending/receiving data for BF1 devices. - Add complete close sequence to bf1 as it happens on serial. - Provide a bitfury identify function for bf1. - Reliably extract BF1 information at startup and reset the device. - Add commands for getting BF1 bitfury info - Add magic BF1 bitfury open and close control sequences. - Add BF1 detection code to bitfury driver. - Create basic placeholders for bitfury driver code. - Add bf1 device information to usbutils to enable device detection. - Add basic defines for building for bitfury devices. - Add redfury device to udev rules. - avalon: display the FPGA controller version on API - pool_active uninitialised_var rolltime - Use macro expansion to only need to define usb enums and commands in one place. - usbutils saving incorrect overflow buffer - ignore libusb.la and *.lo on linux - icarus support CMR with no extensions - usbtils - interfaces dont work yet in libusb windows so disable for that only - Provide a --disable-libcurl config option to build support for stratum mining only. - Fix the api-example.c compile under Linux - usbutils - only release the device once - for the first intinfo - usbutils set_interface is no longer valid - ubsutils interfaces much each have their own handle - usbutils kernel_detach should use the interface number - usbutils - allow the driver to change which_intinfo - Reset quotas on load balance for all pools at the same time to avoid running out during selection and unintentionally dropping to fallback. - Break out of select pool from a common point for appropriate debug messages and to avoid further tests. - usbutils correct/reverse CMR product numbers - usbutils specifically track handles and interfaces - change drivers to use usb_interface() - required for multi interface change - usbutils - allow a device to use multiple interfaces (and better var names) - Cast -1 to (char) to cope with different default char types on ARM.
|
|
|
I guess people didn't notice me emphasising bitcoin in my comment.
|
|
|
redfury branch is now available on git for linux users with BF1 redfury or bluefury USB bitfury devices. It works fine on linux, requiring the same sort of permissions set up (with udev rules) as other asic devices, but so far I've been unable to get it to work on windows. Get it here: https://github.com/ckolivas/cgminer/tree/redfury
|
|
|
Cklovias is close to a solution I think... he has his BitFury USB mining.
Working fine on linux. Windows hates me and refuses to behave
|
|
|
The sample software runs through and tests a number of nonce offsets for each return values (6). In my testing of the BF1 USB stick, only 3 of those offsets ever succeed to return values. So either the nonce offsets/nonce calculation used in the sample software are wrong, or half the cores don't work.
Would you please tell me which ones are those 3 ... i am just about to add some debugging code in that part and would like to put them first in the list These work: s |= rehash(op->midstate, op->m7, op->ntime, op->nbits, pn) ? pn : 0; s |= rehash(op->midstate, op->m7, op->ntime, op->nbits, pn-0x00400000) ? pn - 0x00400000 : 0; s |= rehash(op->midstate, op->m7, op->ntime, op->nbits, pn-0x00800000) ? pn - 0x00800000 : 0;
These never return anything: s |= rehash(op->midstate, op->m7, op->ntime, op->nbits, pn+0x02800000) ? pn + 0x02800000 : 0; s |= rehash(op->midstate, op->m7, op->ntime, op->nbits, pn+0x02C00000) ? pn + 0x02C00000 : 0; s |= rehash(op->midstate, op->m7, op->ntime, op->nbits, pn+0x00400000) ? pn + 0x00400000 : 0;
Thanks! The last one is the same as the second, so its expected that it won't be reached. It seems the chip can get bits 23 and/or 24 wrong ... and engineering chips probably 26 too I wonder is it an error from the core to the shift register or only when read from the register i.e. SPI communication problem Not quite pn - 0x00400000vs pn + 0x00400000But it's irrelevant since it doesn't work anyway.
|
|
|
The sample software runs through and tests a number of nonce offsets for each return values (6). In my testing of the BF1 USB stick, only 3 of those offsets ever succeed to return values. So either the nonce offsets/nonce calculation used in the sample software are wrong, or half the cores don't work.
Would you please tell me which ones are those 3 ... i am just about to add some debugging code in that part and would like to put them first in the list These work: s |= rehash(op->midstate, op->m7, op->ntime, op->nbits, pn) ? pn : 0; s |= rehash(op->midstate, op->m7, op->ntime, op->nbits, pn-0x00400000) ? pn - 0x00400000 : 0; s |= rehash(op->midstate, op->m7, op->ntime, op->nbits, pn-0x00800000) ? pn - 0x00800000 : 0;
These never return anything: s |= rehash(op->midstate, op->m7, op->ntime, op->nbits, pn+0x02800000) ? pn + 0x02800000 : 0; s |= rehash(op->midstate, op->m7, op->ntime, op->nbits, pn+0x02C00000) ? pn + 0x02C00000 : 0; s |= rehash(op->midstate, op->m7, op->ntime, op->nbits, pn+0x00400000) ? pn + 0x00400000 : 0;
|
|
|
The sample software runs through and tests a number of nonce offsets for each return values (6). In my testing of the BF1 USB stick, only 3 of those offsets ever succeed to return values. So either the nonce offsets/nonce calculation used in the sample software are wrong, or half the cores don't work.
|
|
|
It will perform ~15% better on mining overall. ASICS perform ~500% better than GPUs overall. GPUs have long since become irrelevant in the bitcoin mining world. Even if major manufacturers were to add a specific SHA256 function to GPUs, the fact that the only thing ASICS do is SHA256 means that GPUs will never be relevant in the bitcoin mining world again. GPUs are, afterall, basically designed for graphics...
|
|
|
Does anyone know if/when cgminer will support the new Blue Fury ASICs?
I'm working on it for BF1 devices (red and blue are the same) since I received one. Should be in next version.
|
|
|
I'm trying to run separate cgminer instances on my machine using "-d" and "--remove-disabled" in each batch file, but regardless, the second instance always say's "devices in use" and closes. (The devices are BFL Singles)
Is there a way to accomplish this?
Those commands are largely for managing GPUs. Use the --usb command (as per readme).
|
|
|
cgminer version 3.4.1 - Started: [2013-09-22 23:23:48] -------------------------------------------------------------------------------- (5s):1.553G (avg):1.336Gh/s | A:51456 R:0 HW:458 WU:18.6/m ST: 2 SS: 6 NB: 401 LW: 107892 GF: 3 RF: 0 Connected to mmpool.bitparking.com diff 1 with stratum as user Newtoke2 Block: 000f324fbb7093fc... Diff:113M Started: [21:34:17] Best share: 217M -------------------------------------------------------------------------------- [P]ool management Settings [D]isplay options [Q]uit AMU 0: | 334.2M/334.1Mh/s | A:12930 R:0 HW: 99 WU: 4.7/m AMU 1: | 334.5M/334.1Mh/s | A:12955 R:0 HW:109 WU: 4.7/m AMU 2: | 334.5M/334.2Mh/s | A:12849 R:0 HW:129 WU: 4.6/m AMU 3: | 334.6M/334.2Mh/s | A:12722 R:0 HW:121 WU: 4.6/m --------------------------------------------------------------------------------
Am I reading that correctly?!
God DAMN it, I knew I shoulda been solo mining!
Check in the Pool menu in pool info, you should be able to tell if you found a block (or use the API to do the same if you know how to).
|
|
|
Did not know that. O.k , I'd just be curious how far along they got before receiving this error. When I ran the file originally to try installing cgminer I got 6 or 7 not founds and it terminated.
I'm going to use my next wammy card and say make sure you've installed all the files and made the lib driver . The first time I installed cg Miner files I did it on wireless and it didn't hit that step. even the clone github needed lan or it times out on you.
I tried to show in my original post https://bitcointalk.org/index.php?topic=28402.msg3219580#msg3219580 how far I got before it broke. It looks to me like it's saying there's a syntax error in some file it was processing. The post I was trying to follow for the install is https://bitcointalk.org/index.php?topic=28402.msg1229746#msg1229746Since I don't know what the h' I'm doing I follow instructions verbatim. Actually I use copy and paste to avoid tedious typing and typos so I installed whatever files it said. I expect, because of the time difference, the files I downloaded were not the same as what he had at the time. Thank you for trying to help --with-libudev is not a valid command for cgminer configuration
|
|
|
|