Author

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

legendary
Activity: 2912
Merit: 1060
Well you do need xp at least

well it may be funny, but i have a terribly old pc wich i'm thinking of turning into miner's helper and run cgminer on it. That's why...
full member
Activity: 188
Merit: 100
well it may be funny, but i have a terribly old pc wich i'm thinking of turning into miner's helper and run cgminer on it. That's why...
legendary
Activity: 2912
Merit: 1060
True maybe he was asking for a reason other than the obvious of trying to download it.

I'm still sad there's no windows x64 version. I know there's no benefit but it's just cool!
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
LOL

can i run cgminer on a 32bit pc?  Thanks.
I don't think it works on the Amiga ... or the PS3 ... but which 32 bit PC were you referring to?
Smiley
Yes it was a joke - however there is a relevant question in there too Smiley
For windows, ther binary of course is already 32bit so works on both 32bit and 64bit
For RPi, my binaries git has a 32 bit binary (only) but I've not put 3.2.0 in there yet - only 3.1.1
For Linux, there is no 32 bit binary so he'd have to build it himself (and this begs the question why anyone would use a 32bit linux on any normal desktop, if that's what he is doing ... but he may not be)
legendary
Activity: 2912
Merit: 1060
LOL

can i run cgminer on a 32bit pc?  Thanks.
I don't think it works on the Amiga ... or the PS3 ... but which 32 bit PC were you referring to?
legendary
Activity: 2912
Merit: 1060
Absolutely, there isnt even a x64 version

can i run cgminer on a 32bit pc?  Thanks.
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
can i run cgminer on a 32bit pc?  Thanks.
I don't think it works on the Amiga ... or the PS3 ... but which 32 bit PC were you referring to?
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
Latest code from git:
Code:
# cgminer -T
 [2013-06-02 21:42:15] Started cgminer 3.2.0
 [2013-06-02 21:42:15] Loaded configuration file /root/.cgminer/cgminer.conf
 [2013-06-02 21:42:15] USB init, set config 1 in use - CMR device 5:75
 [2013-06-02 21:42:15] Icarus detect (5:75) failed to initialise (incorrect device?)
 [2013-06-02 21:42:15] USB init, set config 1 in use - CMR device 5:74
 [2013-06-02 21:42:15] Icarus detect (5:74) failed to initialise (incorrect device?)
 [2013-06-02 21:42:15] No devices detected!
 [2013-06-02 21:42:15] Waiting for USB hotplug devices or press q to quit
 [2013-06-02 21:42:15] Probing for an alive pool
Code:
# cgminer --ndevs
 [2013-06-02 21:43:47] USB all: found 17 devices - listing known devices
.USB dev 0: Bus 5 Device 75 ID: 0403:8350
  Manufacturer: 'FTDI'
  Product: 'Cairnsmore1'
.USB dev 1: Bus 5 Device 74 ID: 0403:8350
  Manufacturer: 'FTDI'
  Product: 'Cairnsmore1'
 [2013-06-02 21:43:47] 2 known USB devices
FPGA Cairnsmore1 are no longer working with cgminer. I reverted cgminer to 102e907a475723ceff0de915227296190e2f3beb (3.1.0).
Any solutions? Smiley
Yep I'll look into that.
I've not had anyone look at 3.2.0 with a Cairnsmore1 yet ... my USB config settings are just a guess.
A full debug (pastebin) of the initialisation would be helpful also if you can.
However, the current code "I think?" will only find at most one FPGA (since with the 0403:8350 chip it will need to have an enhanced driver to handle multiple end points - that chip has 8 end points - 4 pairs - and will take some effort to actually get it to work)
The older board was apparently using the 0403:6014 so has the same initialisation as the BFL devices - that one might just work if anyone with one wants to try Smiley
full member
Activity: 188
Merit: 100
can i run cgminer on a 32bit pc?  Thanks.
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
Got it working!

I went back to cgminer 3.1.1 and used the -S option to tell it where to look.

I'll play with the other settings now and see if I can get it running without root, etc.
...
As per the ASIC-README for 3.2.0

LINUX:

On linux, the direct USB support requires no drivers at all. However due to
permissions issues, you may not be able to mine directly on the devices as a
regular user without giving the user access to the device or by mining as
root (administrator). In order to give your regular user access, you can make
him a member of the plugdev group with the following commands:
...

Read the rest Smiley

Edit: there's a bit about "sudo cp 01-cgminer.rules /etc/udev/rules.d/" further down to complete the solution to solve permission problems
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
can the new version auto detect for gpu's as well?  thread concurrences etc?
GPUs don't lend themselves to this sort of optimisation in a meaningful way. Using the wrong settings just crashes the driver and then the application as a result.
newbie
Activity: 70
Merit: 0
I tried following the README instructions to get 3.2 working and still no luck.

---

I made a udev rule.

/dev/bus/usb/002/012 is group plugdev.

I am running as myself and I'm in group plugdev.

/dev/ttyUSB0 is in group dialout.

I am in the dialout group.

---

I started cgminer with --usb-dump 0

It does not detect a device and syslog shows ttyUSB0 being disconnected when I start cgminer.

The new messages from cgminer are:

USB all: found 6 devices - listing known devices
.USB dev 0: Bus 2 Device 12 ID 10c4:ea60
 Manufacturer: 'Silicon Labs'
 Product: 'CP2102 USB to UART Bridge Controller'
1 known USB devices
No devices detected!
Waiting for USB hotplug...

---

Again, cgminer 3.1.1 works fine with -S.

3.1.1 works fine with the same udev rule ( MODE 0666 and GROUP plugdev ) as suggested by 3.2
hero member
Activity: 924
Merit: 1000
Watch out for the "Neg-Rep-Dogie-Police".....
Downgrade to BFGMiner.
It is almost reasonable for you to post in other threads suggesting BFGMiner as a solution.

Posting IN the CGMiner thread is not cool.

I'm using cgminer exactly because of BS posts like this from you Luke.  Stop acting like a 13 year old FFS

+10. Bravo.
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
Do I have to do something special to give permission?

Run it as root or fix it the right way and give your user the proper permissions (described in many places)
Thanks.

I did some reading and found that USB devices have ultra restrictive permissions by default.  I'll get it figured out elsewhere as it is probably standard Linux stuff that's the problem.

I'll post a quick follow up here for others that have the same problem.

From cgminer FAQ

Code:
Q: On linux I can see the /dev/ttyUSB* devices for my Icarus FPGAs, but
cgminer can't mine on them
A: Make sure you have the required priviledges to access the /dev/ttyUSB* devices:
 sudo ls -las /dev/ttyUSB*
will give output like:
 0 crw-rw---- 1 root dialout 188, 0 2012-09-11 13:49 /dev/ttyUSB0
This means your account must have the group 'dialout' or root priviledges
To permanently give your account the 'dialout' group:
 sudo usermod -G dialout -a `whoami`
Then logout and back in again
That's for the older version. The new one does not use -S or /dev/ttyUSB as the driver model has changed entirely. You need to copy the udev rules instead only as per the new readme.
newbie
Activity: 70
Merit: 0
i'm using Ubuntu 12.04 and there are no ttyUSB* device...
where do i find my USB devices?
lsusb

You can also
tail -f /var/log/syslog
and watch what happens when you plug it in.
newbie
Activity: 70
Merit: 0
Downgrade to BFGMiner.
It is almost reasonable for you to post in other threads suggesting BFGMiner as a solution.

Posting IN the CGMiner thread is not cool.

I'm using cgminer exactly because of BS posts like this from you Luke.  Stop acting like a 13 year old FFS
legendary
Activity: 1036
Merit: 1000
DARKNETMARKETS.COM
Code:
# cgminer -T
 [2013-06-02 21:42:15] Started cgminer 3.2.0
 [2013-06-02 21:42:15] Loaded configuration file /root/.cgminer/cgminer.conf
 [2013-06-02 21:42:15] USB init, set config 1 in use - CMR device 5:75
 [2013-06-02 21:42:15] Icarus detect (5:75) failed to initialise (incorrect device?)
 [2013-06-02 21:42:15] USB init, set config 1 in use - CMR device 5:74
 [2013-06-02 21:42:15] Icarus detect (5:74) failed to initialise (incorrect device?)
 [2013-06-02 21:42:15] No devices detected!
 [2013-06-02 21:42:15] Waiting for USB hotplug devices or press q to quit
 [2013-06-02 21:42:15] Probing for an alive pool
Code:
# cgminer --ndevs
 [2013-06-02 21:43:47] USB all: found 17 devices - listing known devices
.USB dev 0: Bus 5 Device 75 ID: 0403:8350
  Manufacturer: 'FTDI'
  Product: 'Cairnsmore1'
.USB dev 1: Bus 5 Device 74 ID: 0403:8350
  Manufacturer: 'FTDI'
  Product: 'Cairnsmore1'
 [2013-06-02 21:43:47] 2 known USB devices
FPGA Cairnsmore1 are no longer working with cgminer. Any solutions? Smiley
Upgrade to BFGMiner.

Fail...
I tried it, but It detects only 1 chip per board (out of 4) on my Cairnsmore1 and it does loads of rejects on p2pool. That's why I have to stay with cgminer. Latest bfgminer just compiled:
Code:
# bfgminer -T
 [2013-06-02 22:11:02] Started bfgminer 3.0.99
 [2013-06-02 22:11:02] Loaded configuration file /root/.bfgminer/bfgminer.conf
 [2013-06-02 22:11:02] Found ztex board 1.15d or 1.15x
 [2013-06-02 22:11:02] ZTEX 04A346E225-1: capability missing: 0 7
 [2013-06-02 22:11:02] Probing for an alive pool
 [2013-06-02 22:11:02] Network difficulty changed to 12.2M (87.00Th/s)
 [2013-06-02 22:11:02] Stratum from pool 0 detected new block
 [2013-06-02 22:11:02] Stratum from pool 0 requested work update
 [2013-06-02 22:11:02] Pool 1 stratum+tcp://mint.bitminter.com:3333 alive
 [2013-06-02 22:11:02] Switching to pool 1 stratum+tcp://mint.bitminter.com:3333
 [2013-06-02 22:11:02] Stratum from pool 1 requested work update
 [2013-06-02 22:11:03] ECM 0: Frequency set to 200 MHz (range: 50-210)
 [2013-06-02 22:11:03] ECM 1: Frequency set to 200 MHz (range: 50-210)
 [2013-06-02 22:11:06] ZTX 0: HS FPGA configuration failed: DONE pin does not go high
 [2013-06-02 22:11:08] Accepted 7f97b442 ECM 0  pool 1 Diff 2/1
2 FPGA Cairnsmore1 with HashVoodoo, but only 2xECM instead of 8.
hero member
Activity: 490
Merit: 501
Code:
# cgminer -T
 [2013-06-02 21:42:15] Started cgminer 3.2.0
 [2013-06-02 21:42:15] Loaded configuration file /root/.cgminer/cgminer.conf
 [2013-06-02 21:42:15] USB init, set config 1 in use - CMR device 5:75
 [2013-06-02 21:42:15] Icarus detect (5:75) failed to initialise (incorrect device?)
 [2013-06-02 21:42:15] USB init, set config 1 in use - CMR device 5:74
 [2013-06-02 21:42:15] Icarus detect (5:74) failed to initialise (incorrect device?)
 [2013-06-02 21:42:15] No devices detected!
 [2013-06-02 21:42:15] Waiting for USB hotplug devices or press q to quit
 [2013-06-02 21:42:15] Probing for an alive pool
Code:
# cgminer --ndevs
 [2013-06-02 21:43:47] USB all: found 17 devices - listing known devices
.USB dev 0: Bus 5 Device 75 ID: 0403:8350
  Manufacturer: 'FTDI'
  Product: 'Cairnsmore1'
.USB dev 1: Bus 5 Device 74 ID: 0403:8350
  Manufacturer: 'FTDI'
  Product: 'Cairnsmore1'
 [2013-06-02 21:43:47] 2 known USB devices
FPGA Cairnsmore1 are no longer working with cgminer. Any solutions? Smiley
Upgrade to BFGMiner.

I cannot understand why it would be so important to a person to see their software used that they have to try and hijack other people's users. EGOs....geesh.
full member
Activity: 236
Merit: 100
full member
Activity: 236
Merit: 100
i'm using Ubuntu 12.04 and there are no ttyUSB* device...
where do i find my USB devices?



Did you run the right modprobe command that corresponds with your devices?

Code:
Q: How do I get my BFL/Icarus/Lancelot/Cairnsmore device to auto-recognise?
A: On Linux, if the /dev/ttyUSB* devices don't automatically appear, the only
thing that needs to be done is to load the driver for them:
BFL: sudo modprobe ftdi_sio vendor=0x0403 product=0x6014
Icarus: sudo modprobe pl2303 vendor=0x067b product=0x230
Lancelot: sudo modprobe ftdi_sio vendor=0x0403 product=0x6001
Cairnsmore: sudo modprobe ftdi_sio product=0x8350 vendor=0x0403
On windows you must install the pl2303 or ftdi driver required for the device
pl2303: PL-2303H / 2303HX / 2303HXD Drivers | Prolific USA
ftdi: Virtual COM Port Drivers
Jump to: