Bitcoin Forum
April 26, 2024, 03:16:38 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 ... 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 [268] 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 ... 843 »
  Print  
Author Topic: OFFICIAL CGMINER mining software thread for linux/win/osx/mips/arm/r-pi 4.11.1  (Read 5805212 times)
This is a self-moderated topic. If you do not want to be moderated by the person who started this topic, create a new topic. (3 posts by 1+ user deleted.)
zefir
Donator
Hero Member
*
Offline Offline

Activity: 919
Merit: 1000



View Profile
May 04, 2012, 11:59:22 AM
 #5341

Well, we already ask for work from backup pools when the primary pool can't keep up. But there's a difference between asking for extra work cause you can't keep your queue full, and running out entirely. As I said, the distinction needs to be made or you can't flag the primary pool as "officially fucked".
I see. But in the log I posted above there was obviously no attempt to get work from the secondary pool for 40s, even it was evident that main pool is inactive.

Anyhow, as you said, it's a pool issue and not up to cgminer to handle it. Thanks.

1714101398
Hero Member
*
Offline Offline

Posts: 1714101398

View Profile Personal Message (Offline)

Ignore
1714101398
Reply with quote  #2

1714101398
Report to moderator
Bitcoin addresses contain a checksum, so it is very unlikely that mistyping an address will cause you to lose money.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714101398
Hero Member
*
Offline Offline

Posts: 1714101398

View Profile Personal Message (Offline)

Ignore
1714101398
Reply with quote  #2

1714101398
Report to moderator
1714101398
Hero Member
*
Offline Offline

Posts: 1714101398

View Profile Personal Message (Offline)

Ignore
1714101398
Reply with quote  #2

1714101398
Report to moderator
antirack
Hero Member
*****
Offline Offline

Activity: 489
Merit: 500

Immersionist


View Profile
May 04, 2012, 12:06:12 PM
 #5342

I have a test branch with cgminer support for ZTEX 1.15y quad boards. Anyone willing to give it a try please grab the source at https://github.com/nelisky/cgminer/tree/ztex-120417

If you are unable to compile it yourself I might be able to provide binaries on some platforms.

I have compiled cgminer with ztex support and created the 'bitstreams' folder in the cgminer directory.

Do I have to specify the USB ports somehow? I get this:

Code:
[2012-05-04 20:04:25] Started cgminer 2.4.0
[2012-05-04 20:04:25] Ztex check device: Failed to open handle with error -12
[2012-05-04 20:04:25] prepare device: -12
[2012-05-04 20:04:25] Ztex check device: Failed to open handle with error -12
[2012-05-04 20:04:25] prepare device: -12
[2012-05-04 20:04:25] Ztex check device: Failed to open handle with error -12
[2012-05-04 20:04:25] prepare device: -12
[2012-05-04 20:04:25] Ztex check device: Failed to open handle with error -12
[2012-05-04 20:04:25] prepare device: -12
[2012-05-04 20:04:25] Ztex check device: Failed to open handle with error -12
[2012-05-04 20:04:25] prepare device: -12
[2012-05-04 20:04:25] Found 0 ztex board(s)
roomservice
Full Member
***
Offline Offline

Activity: 199
Merit: 100



View Profile
May 04, 2012, 12:38:53 PM
 #5343

I have a test branch with cgminer support for ZTEX 1.15y quad boards. Anyone willing to give it a try please grab the source at https://github.com/nelisky/cgminer/tree/ztex-120417

If you are unable to compile it yourself I might be able to provide binaries on some platforms.

when i try to
ztex-120417 branch doesn't ./configure --enable-ztex

i got
WARNING: unrecognized options: --enable-ztex

Sad

"Tonight's the night. And it's going to happen again, and again. It has to happen. Nice night."
BR0KK
Hero Member
*****
Offline Offline

Activity: 784
Merit: 500



View Profile
May 04, 2012, 12:57:16 PM
 #5344

I had that error too and i think it has sonething to do with the Driver u use for BTC miner.

Nelski installed a program called zdiaq (dont have the right name for that programm in my mind)
That changes the lib usb- to the win usb driver.

He can propably explaon better Wink

kano
Legendary
*
Offline Offline

Activity: 4466
Merit: 1800


Linux since 1997 RedHat 4


View Profile
May 04, 2012, 01:20:11 PM
 #5345

...
Is there some event that all USB initializations have been processed in Linux to check before cgminer is started? Other than grep-ing dmesg for ttyUSBx ?
That actually sounds like a good idea Tongue
Save the time, keep checking dmesg, then delay a few seconds and run cgminer
If it takes longer that some limit then you know it's failed and can do some manual interference

Pool: https://kano.is - low 0.5% fee PPLNS 3 Days - Most reliable Solo with ONLY 0.5% fee   Bitcointalk thread: Forum
Discord support invite at https://kano.is/ Majority developer of the ckpool code - k for kano
The ONLY active original developer of cgminer. Original master git: https://github.com/kanoi/cgminer
Luke-Jr
Legendary
*
Offline Offline

Activity: 2576
Merit: 1186



View Profile
May 04, 2012, 01:34:55 PM
 #5346

Is there some event that all USB initializations have been processed in Linux to check before cgminer is started? Other than grep-ing dmesg for ttyUSBx ?
Code:
udevadm settle

nelisky
Legendary
*
Offline Offline

Activity: 1540
Merit: 1001


View Profile
May 04, 2012, 02:20:56 PM
 #5347

Quote
when i try to
ztex-120417 branch doesn't ./configure --enable-ztex

i got
WARNING: unrecognized options: --enable-ztex

Do you have the right branch checked out? Try 'git branch'.

Quote
I have compiled cgminer with ztex support and created the 'bitstreams' folder in the cgminer directory.

Do I have to specify the USB ports somehow? I get this:

BTCMiner uses libusb-0.1, cgminer uses libusb-1.0

I've written about it before, although I now see I did that in the BFGMiner thread:

Quote
Ok, so visit http://libusb.org/wiki/windows_backend and grab yourself the zadig utility (just fing zadig on that page).
Using Zadig, find the ztex device (it's either 221A:0100 or "ZTEX Module") on the drop down (You may need to use the "List All Devices" menu option) and install the WinUSB driver. That should be enough to make it work.

If you need to later upgrade firmware or use BTCMiner again you'll need to, using Zadig again, install the libusb-win32 driver on your device and you should be set.

If the device appears as 221A:0100 you must edit the name to "ZTEX Module".

Let me know how that goes.
eroxors
Legendary
*
Offline Offline

Activity: 924
Merit: 1000


Think. Positive. Thoughts.


View Profile WWW
May 04, 2012, 02:54:41 PM
 #5348

Is there a way to set one GPU thread to mine at one pool at a certain intensity and another GPU thread to mine at a different pool at a different intensity?

ancow
Full Member
***
Offline Offline

Activity: 373
Merit: 100


View Profile WWW
May 04, 2012, 04:47:42 PM
 #5349

Is there a way to set one GPU thread to mine at one pool at a certain intensity and another GPU thread to mine at a different pool at a different intensity?

Yes: run two instances of cgminer, each with only one thread and point them at different pools with different intensities.

BTC: 1GAHTMdBN4Yw3PU66sAmUBKSXy2qaq2SF4
roomservice
Full Member
***
Offline Offline

Activity: 199
Merit: 100



View Profile
May 04, 2012, 04:50:03 PM
 #5350

Thanks a lot @nelisky

Just learned the hard way, how to git clone a branch  Cry

It works really well!

"Tonight's the night. And it's going to happen again, and again. It has to happen. Nice night."
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1079


Gerald Davis


View Profile
May 04, 2012, 05:04:12 PM
 #5351

A request for a minor feature:

ability to enable/disable a pool and change pool priorities in config file

Example:
Code:
	{
"url" : "url",
"user" : "user",
"pass" : "pass",
                "priority" : "1",     <-default is as currently implemented (order of pools in config file)
                "enabled" : "false"    <- default is true
},
jamesg
VIP
Legendary
*
Offline Offline

Activity: 1358
Merit: 1000


AKA: gigavps


View Profile
May 04, 2012, 05:24:59 PM
 #5352

A request for a minor feature:

ability to enable/disable a pool and change pool priorities in config file

Example:
Code:
	{
"url" : "url",
"user" : "user",
"pass" : "pass",
                "priority" : "1",     <-default is as currently implemented (order of pools in config file)
                "enabled" : "false"    <- default is true
},

This is a nice request although I have done this with a bash script and the API.
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1079


Gerald Davis


View Profile
May 04, 2012, 05:28:14 PM
 #5353

This is a nice request although I have done this with a bash script and the API.

Yeah I got a workaround but it is clunky.  As I use the API more and more I am finding I want the ability to never need to remote into the rig.  Monitor from the API and have the config file control everything.
Aseras
Hero Member
*****
Offline Offline

Activity: 658
Merit: 500


View Profile
May 04, 2012, 06:29:01 PM
 #5354

What I'd love is to have a command to have cgminer reload the config file without restarting.

That way you could change or edit the files and just trigger a restart in the api.
Kuma
Member
**
Offline Offline

Activity: 107
Merit: 10



View Profile
May 04, 2012, 07:20:13 PM
 #5355

Hi,
I tried Nelisky's code and it works perfectly for my Ztex quad.
Two notices. I think there should be mentioned udev setting regarding access rights (from http://wiki.ztex.de/doku.php?id=en:software:usb_ids) in the README file. I also noticed, I must flash device to the cluster mode using BTCMiner for the first time to be able to use cgminer for Ztex after reboot.
Inaba
Legendary
*
Offline Offline

Activity: 1260
Merit: 1000



View Profile WWW
May 04, 2012, 07:21:18 PM
 #5356

CGminer keeps exiting with this error:
 [2012-05-04 19:12:37] Failed to tq_push work in submit_work_sync

I have to restart it manually at this point.

If you're searching these lines for a point, you've probably missed it.  There was never anything there in the first place.
zefir
Donator
Hero Member
*
Offline Offline

Activity: 919
Merit: 1000



View Profile
May 04, 2012, 07:49:20 PM
 #5357

Is there some event that all USB initializations have been processed in Linux to check before cgminer is started? Other than grep-ing dmesg for ttyUSBx ?
Code:
udevadm settle
Thanks. But after this didn't help I looked deeper and it was something completely different. In short, do:
Code:
sudo apt-get purge modemmanager
to get rid of that component that kicks in after boot and interferes with cgminer.

nelisky
Legendary
*
Offline Offline

Activity: 1540
Merit: 1001


View Profile
May 04, 2012, 07:55:59 PM
 #5358

Hi,
I tried Nelisky's code and it works perfectly for my Ztex quad.
Two notices. I think there should be mentioned udev setting regarding access rights (from http://wiki.ztex.de/doku.php?id=en:software:usb_ids) in the README file. I also noticed, I must flash device to the cluster mode using BTCMiner for the first time to be able to use cgminer for Ztex after reboot.

It's funny, I never had to deal with access rights. But I guess that's a byproduct of the distributions I've been using.

As for flashing to the cluster mode, you do have to upload the firmware first using BTCMiner, but there's no 'cluster mode' per se, that's just a mode of operation for the mining software. The firmware is the same in either standalone or cluster mode. I do plan to add the ability to flash the firmware eventually, but since that's a one off operation (well, sort of, once per version upgrade from ztex) it is not something I plan to tackle just yet.

My implementation is seriously lacking in documentation, that much is certainly true, but with my limited environment testing I hope someone that has to deal with the installation from scratch will step up and do that (hint, hint).
Kuma
Member
**
Offline Offline

Activity: 107
Merit: 10



View Profile
May 04, 2012, 08:51:10 PM
 #5359

I understood from Ztex documentation, than the firmware is flashed to the eeprom (indeed firmware is the same).

If I remember correctly I used

java -cp ZtexBTCMiner-120417.jar BTCMiner -m p -f ztex_ufm1_15y1.ihx

And after that I was able to use cgminer even after Quad and computer reboot. Before this step I had to run btcminer first, to be able to use quad under cgminer.
I hope I'm not mistaken as I tested this only briefly Smiley.

BTW the problem with the user rights was under Fedora, I had to run cgminer or btcminer as a root to be able to use quad for mining.
fred0
Sr. Member
****
Offline Offline

Activity: 349
Merit: 250


View Profile
May 04, 2012, 08:53:51 PM
 #5360

I recently made a change to cgminer's logging.c to eliminate the accepted/rejected share logging. Basically, I changed the LOG_NOTICE to LOG_WARNING on line 54 of logging.c.  It really cuts down on the noise level of the cgminer window.

What I think would be a useful change would be to specify the verbosity of the messages through the command line, rather than the --quiet which eliminates virtually all messages.

Example output follows:
Code:
 [2012-05-04 12:37:45] Pool 0 not providing work fast enough
 [2012-05-04 12:40:22] Pool 0 communication failure, caching submissions
 [2012-05-04 12:40:23] Pool 0 communication resumed, submitting work
 [2012-05-04 13:50:30] Pool 0 not providing work fast enough
 [2012-05-04 14:25:35] Pool 0 not providing work fast enough
 [2012-05-04 16:38:04] Pool 0 not providing work fast enough
Pages: « 1 ... 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 [268] 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 ... 843 »
  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!