Bitcoin Forum
November 06, 2024, 12:38:08 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Mining software (miners) / Re: cgminer build help on: August 31, 2014, 11:32:28 PM
Yes. I can build an executable but I get the USB errors. I've put the libusb dll in the folder I run cgminer but that did help.
2  Bitcoin / Mining software (miners) / Re: OFFICIAL CGMINER mining software thread for linux/win/osx/mips/arm/r-pi 4.5.0 on: August 30, 2014, 12:02:54 AM
That is help and I appreciate the advice. Does mingw just not work on windows or does it require better knowledge of how to build on windows?
3  Bitcoin / Mining software (miners) / Re: OFFICIAL CGMINER mining software thread for linux/win/osx/mips/arm/r-pi 4.5.0 on: August 29, 2014, 11:20:35 PM
There's no libusb dll in the 4.5.0 binary for windows. I can unzip the binary deployment in a directory and it runs fine. Here's the commands I just tried for a build using mingw...
autoreconf -fvi
CFLAGS="-O2" ./configure --enable-avalon --enable-avalon2 --enable-bflsc --enable-bitfury --enable-cointerra --enable-drillbit --enable-hashfast --enable-hashratio --enable-icarus --enable-klondike
make

Still get usb errors. How do you build your windows binaries?
4  Bitcoin / Mining software (miners) / Re: OFFICIAL CGMINER mining software thread for linux/win/osx/mips/arm/r-pi 4.5.0 on: August 29, 2014, 08:14:44 PM
If you compiled with your own libusb installed instead of the included one that comes with cgminer, don't do that. There's a reason we include our own custom version of libusb in the code, and that's because every other version out there is buggy.

I did a build using the libusb included, but still get the LIBUSB errors. These are the commands I used...
autoreconf -fvi
CFLAGS="-O2 -msse2" ./configure --enable-bflsc --enable-icarus --enable-bitforce --enable-bitfury --enable-usbutils  --disable-opencl  --disable-adl
make

There were no errors, that I'm aware of anyway. a cgminer.exe was created. There's not a libusb dll I need to deploy is there?
5  Bitcoin / Mining software (miners) / Re: OFFICIAL CGMINER mining software thread for linux/win/osx/mips/arm/r-pi 4.5.0 on: August 29, 2014, 03:26:14 PM
So I started with a fresh mingw install to make sure I didn't have an incorrect libusb anywhere. The downloaded 4.5.0 cgminer binary runs fine, but still get the usb errors with the version I build. Here are commands I used to build...

autoreconf -fvi
CFLAGS="-O2 -msse2" ./configure --enable-bflsc --enable-icarus --enable-bitforce --enable-bitfury --enable-usbutils  --disable-opencl  --disable-adl
make


Do I go through the libusb install process described in windows-build.txt below, but use the libusb folder included with cgminer instead of downloading libusb? Or will it automatically use it when going through the cgminer build process?

**************************************************************************************
* Optional - Install libusb if you need auto USB device detection; required for Ztex *
**************************************************************************************
Go to this url ==> http://git.libusb.org/?p=libusb.git;a=snapshot;h=master;sf=zip
save the file to your local storage. Open the file and copy the libusb* folder to
\MinGW\msys\1.0\home\(your user directory/folder).
Or if you do not want to download the file directly and would like to use git then
Type the following from the MSYS shell in your home folder.
git clone git://git.libusb.org/libusb.git

Run the MinGW MSYS shell
(Start Icon/keyboard key ==> All Programs ==> MinGW ==> MinGW Shell).
Change the working directory to your libusb project folder.
Example: cd libusb-something [Enter Key] if you are unsure then type "ls -la"
Another way is to type "cd libusb" and then press the tab key; It will auto fill.
Type the lines below one at a time. Look for problems after each one before going on
to the next.

./autogen.sh --disable-debug-log --prefix=/MinGW
make
make install

You may now exit the MSYS shell.
Ctrl-D or typing "logout" and pressing the enter key should get you out of the
window.

You will have to copy "libusb-1.0.dll" to your working cgminer binary directory.
You will find "libusb-1.0.dll" in the \MinGW\bin directory/folder.
6  Bitcoin / Mining software (miners) / Re: OFFICIAL CGMINER mining software thread for linux/win/osx/mips/arm/r-pi 4.5.0 on: August 29, 2014, 02:12:57 PM
You can read the long story below if you want, but short story I want make some changes and build my own version. I can get a cgminer.exe built but when I run it, I get these errors...

 [2014-08-29 09:17:21] Started cgminer 4.5.0                   
 [2014-08-29 09:17:22] BAS 0 RequestIdentify usb write err:(-7) LIBUSB_ERROR_TIMEOUT                   
 [2014-08-29 09:17:22] BAS 0 attempted reset got err:(0) LIBUSB_SUCCESS                   
 [2014-08-29 09:17:22] BAS 0 RequestIdentify usb write err:(-7) LIBUSB_ERROR_TIMEOUT                   
 [2014-08-29 09:17:22] BAS 0 attempted reset got err:(0) LIBUSB_SUCCESS                   
 [2014-08-29 09:17:22] BAS 0 RequestIdentify usb write err:(-7) LIBUSB_ERROR_TIMEOUT                   

Obviously related to USB , but not sure what I need to do to resolve. Any help would be appreciated.

Long story...
I'm running cgminer for a crowd source funding project call Bitcoin Utopia. It allows participants to mine and donate to several non-profit projects. First, pardon my lack knowledge and terminology. Very new to running this. Anyway, it runs cgminer a little different than intended, I think. It doesn't run cgminer continuously. There are different size "work units" that request a certain amount of work based on the size of your mining rig. Once it completes that chunk of mining, cgminer shuts down, a new work unit is initialized and cgminer is started again. An issue many of us are having, especially with r-boxes, is they periodically lock up or freeze. We call it "the-blue-light-stopped-blinking" problem. We're also trying to get it working with Gridseed miners too. We've downloaded a version of cgminer that will works with Gridseed, but after it completes the first work unit, stops and starts another job, the Gridseed miner is locked and must be powered off and on to start working. I've looked at the cgminer source and I'm not sure I see where it releases the USB resources when it shuts down. Thought that might be the issue. Not a C programmer, but can follow it a little. May not the issue, want to try to make it work. That's why I want to be able build my own cgminer. Again, any help would be appreciated. I don't mind reading, but there's so much info, not sure what to read.

Thanks,

Steve
7  Bitcoin / Mining software (miners) / Re: OFFICIAL CGMINER mining software thread for linux/win/osx/mips/arm/r-pi 4.5.0 on: August 29, 2014, 10:15:41 AM
I'm tried to follow the instructions in windows-build.txt for using mingw to build a native windows cgminer, but I get USB errors. It's not a hardware problem. The pre-built binary cgminer.exe runs fine. I saw this in the http://ck.kolivas.org/apps/cgminer/README...
Native WIN32 build instructions: see windows-build.txt but these instructions
are now hopelessly out of date

Are there updated instructions for doing a native windows build with mingw?
8  Bitcoin / Mining software (miners) / Re: cgminer build help on: August 28, 2014, 10:17:04 PM
Ok, so I just found this in the http://ck.kolivas.org/apps/cgminer/README

Native WIN32 build instructions: see windows-build.txt but these instructions
are now hopelessly out of date.

Guess I need to setup a virtual linux system and follow these instructions...

It is actually easiest to build a windows binary using cross compilation tools
provided by "mxe" available at http://mxe.cc/ (use the 32 bit one!)
Once you have followed the instructions for building mxe:
   export PATH=(path/to/mxe)/usr/bin/:$PATH
   CFLAGS="-O2 -Wall -W -march=i686" ./configure --host=i686-pc-mingw32 <options>
   make

Is that the right direction?
9  Bitcoin / Mining software (miners) / cgminer build help on: August 28, 2014, 05:52:26 PM
Sorry, I'm a newbie. Don't beat me down too bad...

I've downloaded ckolivas's cgminer 4.5.0 binaries and they run fine. I've also downloaded the source and tried to do my own build. I think I followed the instructions in windows-build.txt file correctly, but when I run that version of cgminer.exe instead of the downloaded binary, I get these errors...
 [2014-08-28 13:32:35] Started cgminer 4.5.0                    
 [2014-08-28 13:32:36] BAS 0 RequestDetails usb write err:(-7) LIBUSB_ERROR_TIMEOUT                    
 [2014-08-28 13:32:36] BAS 0 attempted reset got err:(0) LIBUSB_SUCCESS                    
 [2014-08-28 13:32:36] Probing for an alive pool                    
 [2014-08-28 13:32:37] BAS 0 RequestResults usb write err:(-7) LIBUSB_ERROR_TIMEOUT                    
 [2014-08-28 13:32:37] BAS 0 attempted reset got err:(0) LIBUSB_SUCCESS                    
 [2014-08-28 13:32:37] BAS 0 RequestResults usb write err:(-7) LIBUSB_ERROR_TIMEOUT                    
 [2014-08-28 13:32:37] BAS0: RequestResults failed (err=-7 amt=0)                    

Have double checked the instructions, but can't get it. Is there an easy answer?

Thanks,

Steve

Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!