Author

Topic: OFFICIAL CGMINER mining software thread for linux/win/osx/mips/arm/r-pi 4.11.0 - page 608. (Read 5805746 times)

full member
Activity: 195
Merit: 100
I've downgraded to the 8.921 driver for my 7970 on linux. 12.2 would crash the 7970 at lower engine clocks than normal and 12.3 would introduce rare but occasional hardware errors on the 7970 and would spontaneously crash a 6970, taking the device with it and I'd need to cold boot the machine for the 6970 to reappear. 8.921 was the version that needed a manually edited xorg.conf and specific card order to work with 7970 and 6970 was mixed.

What is the specific changes needed in the xorg.conf file? Is there a link or resource somewhere?

TIA
legendary
Activity: 1666
Merit: 1000
I've downgraded to the 8.921 driver for my 7970 on linux. 12.2 would crash the 7970 at lower engine clocks than normal and 12.3 would introduce rare but occasional hardware errors on the 7970 and would spontaneously crash a 6970, taking the device with it and I'd need to cold boot the machine for the 6970 to reappear. 8.921 was the version that needed a manually edited xorg.conf and specific card order to work with 7970 and 6970 was mixed.

Way to go AMD..

Here is a link to the driver - kinda hard to find...

http://www2.ati.com/DRIVERS/hotfix/radeon_7900_series/amd-driver-installer-8.921-x86.x86_64.run
ZPK
legendary
Activity: 1302
Merit: 1021
why in title contained osx ...? please delete or give answer how did it)))
The software should compile with osx. But since no one who uses osx is willing to compile it regularly and help me debug minor issues as they arise with osx, I can't tell you if it compiles or not. The software IS cross platform, but with no users what is there to say? The number of people building on osx is basically zero now. Mining on osx is expensive an inefficient; the hashrate is never as good as win/linux.

thx
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
...
re: 2 COM ports
Device manager sees ONE COM5.  My command line is cgminer -c cgminer.conf
My cgminer.conf is in my previous post.


This has been discussed before ...

cgminer will load the default cgminer.conf (if it finds it) no matter what you specify on the command line ... then it also does what you say on the command line.
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
why in title contained osx ...? please delete or give answer how did it)))
The software should compile with osx. But since no one who uses osx is willing to compile it regularly and help me debug minor issues as they arise with osx, I can't tell you if it compiles or not. The software IS cross platform, but with no users what is there to say? The number of people building on osx is basically zero now. Mining on osx is expensive an inefficient; the hashrate is never as good as win/linux.
ZPK
legendary
Activity: 1302
Merit: 1021
why in title contained osx ...? please delete or give answer how did it)))
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
Well, the windows side seems to have a collection of issues it would seem caused by windows and the windows USB driver.
I've not tried windows with my git code (as I mentioned above)

However, I'd again suspect it is the USB driver that is causing the problems (but as usual I could be wrong)
The reason is that the basic USB code is the same for BFL and Icarus.
The difference between them is the USB driver.

The cgminer code differences between BLF and Icarus are of course how you process work on each (and my changes I've done for Icarus)
But the basic I/O is the same.

If the code is seeing 2 COM ports then you need to look at the USB device list in device manager and see if that is OK or not.
Is anyone else using Icarus on Windows?
On seconds thoughts ... I should point out the obvious before assuming the complex ...
My guess is you are asking for COM5 twice.
Probably: once on the command line and again in cgminer.conf ...
(or twice in one or other of those?)

Edit: As for clearing the buffer, I might try that with the new golden_ob - however, the issue with doing anything is how long it takes.
If it takes a few seconds then that is no good.
Even 1/10 of a second can be painful if there is other initialisation related to it:
e.g. Xiangfu has a setup with 41 Icarus and then suddenly it becomes minutes to start cgminer if each device is a couple of seconds to setup, and that of course is no good.
A hack/workaround to resolve something that is caused outside cgminer's control that can also be resolved by the cause, is a last resort, not an early consideration.
hero member
Activity: 807
Merit: 500
Not sure who pushes data to icarus port during boot, maybe it is windows...
I think you can add something like /noserialmice to boot.ini in WindowsXP to prevent that.  I don't remember if that is the right switch, but if you have XP, find the switches and you may solve the problem (not that flushing / clearing the buffer would be a bad thing to do in case something other than a Windows boot-up caused such a condition).  However, I wonder if doing this in cgminer could cause two mining applications to fight over the device.
legendary
Activity: 922
Merit: 1003
On a related note, how does cgminer react when an FPGA device (Icarus, Single, etc.) unexpectedly 'goes away' (due to USB cable coming loose, for example)? Does it wait for the device to re-appear and starts mining again? Does it quit? Does it do something else?

I ask because I've read elsewhere that the Ufasoft miner supports 'hot plugging' (at least for FPGAs; not sure about GPUs). That is you can attach, disconnect, and re-attach devices and Ufasoft will automatically add them to the mining chain as they come available (and removing them when they detach). It does this automatically without any user intervention. Seems like a very elegant (and useful) feature.

Just wondering if cgminer has similar behavior. I don't have an FPGA yet to test with. Does anyone have any experience with this?
hero member
Activity: 868
Merit: 1000
Upgrade your Windows.  GetLogicalProcessorInformation isn't available until Windows XP SP3. 

That's embarrassing lol

Thanks
hero member
Activity: 737
Merit: 500
Question: I only hooked up one card.  I'm getting ICA 0 and ICA 1 devices.
ICA 0 is getting 325-355 Mh/s average, ICA 1 is not getting any work. cgminer detects two ICA devices for each icarus card, right?

No, each card shows up as only one ICA device.  If you are seeing two and only actually have one, I think something is wrong with the auto-detection. 
hero member
Activity: 737
Merit: 500
I have been using CGMiner for almost 9  months now, no problems whatsoever.

Moved 2 miners to a different Windows XP-32 bit pc and all of a sudden it won't work anymore....

It's a 5830 and a 6770

I get the following windows-error when I run CGMiner or CGMiner -n:

"The procedure entry point GetLogicalProcessorInformation could not be located in the dynamic link library KERNEL32.dll"

Any advice ? Have un-re-installed both drivers and OpenCL/SDK

Brat

Upgrade your Windows.  GetLogicalProcessorInformation isn't available until Windows XP SP3. 
hero member
Activity: 868
Merit: 1000
I have been using CGMiner for almost 9  months now, no problems whatsoever.

Moved 2 miners to a different Windows XP-32 bit pc and all of a sudden it won't work anymore....

It's a 5830 and a 6770

I get the following windows-error when I run CGMiner or CGMiner -n:

"The procedure entry point GetLogicalProcessorInformation could not be located in the dynamic link library KERNEL32.dll"

Any advice ? Have un-re-installed both drivers and OpenCL/SDK

Brat
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
Thanks Kano.  I'll try your version tomorrow.
The diff between your version and Con's is that the read timeout is set to 100 msecs in your version, and it tries 80 times for total of 8 seconds.
Con's version has read timeout of 1 second, and 8 tries.  Same thing.
Careful, you might just actually miss the important change ... ... Tongue
(and Xiangfu re-wrote it based on an early version of bitforce.c - I just helped with a few bugs - Con didn't write that code)

My git aborts the job if it detects an LP
The reason for setting the timeout to 0.1 seconds is coz that's the minimum value with the current code.
That means it will waste at most 0.1 seconds of processing, not 1 second, before aborting due to an LP.

Look at all the changes when you do a diff and post about it please.

Edit: the line is
Code:
if (thr_id >= 0 && work_restart[thr_id].restart) {

Quote
I see two leds (out of three) to go off after write of "golden_ob" but nothing comes back in 8 seconds.
Should I increase the timeout to 10 seconds?
No, changing it to 10 seconds wont help.

That most likely means that the data sent wasn't correct, thus got messed up in the transfer somehow (driver? settings?)

Also, I've found a 'golden_ob' that takes less than 1ms that I'm going to change it to soon
(once I successfully determine the golden_ob value correctly Tongue)
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
I compiled Windows binaries from 2.3.2 sources, with --enable-icarus, now I'm getting

[2012-04-03 00:21:01] Started cgminer 2.3.2
[2012-04-03 00:21:09] Icarus Read: No data in 8 seconds
[2012-04-03 00:21:10] Icarus Detect: Test failed at com3: get 00000000, should: 063c5e0

I've tried all 5 cards, one at the time.  I get the above error for all 5 cards.


Most likely the windows USB driver for Prolific is the cause.
However, I don't have windows.
There was discussion about this in the Icarus thread about windows prolific driver versions but that's all I know about it.

Edit: the code opens the USB serial as: 115,200baud ...
But I've yet to hear anyone mention the port settings, unless you've changed them from default?

Aside: however Smiley
If anyone with an Icarus on windows and can compile cgminer ...
The version at the top of my git has some extra changes to icarus.c to improve LP handing.
(It's not in 2.3.2 coz I didn't manage to test on windows before the release)

The only change required is just icarus.c so you can grab it from my git and do a diff if you are unsure
My git is https://github.com/kanoi/cgminer and the top commit is "icarus.c reduce stales by aborting work on LP "
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
I've downgraded to the 8.921 driver for my 7970 on linux. 12.2 would crash the 7970 at lower engine clocks than normal and 12.3 would introduce rare but occasional hardware errors on the 7970 and would spontaneously crash a 6970, taking the device with it and I'd need to cold boot the machine for the 6970 to reappear. 8.921 was the version that needed a manually edited xorg.conf and specific card order to work with 7970 and 6970 was mixed.

Way to go AMD..
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
Small heads up. If you notice a hashrate drop in dynamic mode, you can tune  it with the

--gpu-dyninterval Set the refresh interval in ms for GPUs using dynamic intensity (default: 7)

parameter. The same exponential counter that adjusts hashrate display also affects detected dynamic speed changes and may affect your hashrate in dynamic mode on going to version 2.3.2.
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
Icarus works fine now on Windows so my 5 BTC bounty goes to ckolivas. I do feel that kano and xiangfu should also get a part of this but con was the man that made it available to me !
Nope, your bounty was for a working windows binary and ckolivas was the one who actually supplied it.
He should of course get it all.
legendary
Activity: 1666
Merit: 1000
All - I am sure each of you could spare some BTC for the work conman and kanoi do.  My life is so much less hectic with CGminer!  It is truly set it and forget it software -- It just runs and runs...

148KkS2vgVi4VzUi4JcKzM2PMaMVPi3nnq is the donation address

I'll follow Turbor's lead and just sent 5.00001337  Wink





legendary
Activity: 1022
Merit: 1000
BitMinter
Icarus works fine now on Windows so my 5 BTC bounty goes to ckolivas. I do feel that kano and xiangfu should also get a part of this but con was the man that made it available to me !
Much appreciate the donation. Enjoy.

Thank you for the hard work !
Jump to: