Bitcoin Forum
May 01, 2024, 12:00:40 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Help needed / CGminer issue.  (Read 141 times)
TheRealBluRPie (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 3


View Profile
June 26, 2020, 02:57:05 PM
 #1

Hello all,

Years ago i was mining altcoins using an antminer.

I recently found my old antminer, and was wondering if it was still working. But i cant get it to work anymore.

The issue is not the miner itself, i cant get cgminer to start. Here is wat i did so far:

- i downloaded Zadig and installed driver CP2102 USB to UART Bridge Controller
- i downloaded CPminer 4.11.1
- i created a .bat file

When i try to run it, cmd prompt shows and disappears in a blink of an eye.

i have no idea what i did wrong. Can someone help me out a bit?


oh, i am running windows 10
1714521640
Hero Member
*
Offline Offline

Posts: 1714521640

View Profile Personal Message (Offline)

Ignore
1714521640
Reply with quote  #2

1714521640
Report to moderator
1714521640
Hero Member
*
Offline Offline

Posts: 1714521640

View Profile Personal Message (Offline)

Ignore
1714521640
Reply with quote  #2

1714521640
Report to moderator
Transactions must be included in a block to be properly completed. When you send a transaction, it is broadcast to miners. Miners can then optionally include it in their next blocks. Miners will be more inclined to include your transaction if it has a higher transaction fee.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714521640
Hero Member
*
Offline Offline

Posts: 1714521640

View Profile Personal Message (Offline)

Ignore
1714521640
Reply with quote  #2

1714521640
Report to moderator
1714521640
Hero Member
*
Offline Offline

Posts: 1714521640

View Profile Personal Message (Offline)

Ignore
1714521640
Reply with quote  #2

1714521640
Report to moderator
NotFuzzyWarm
Legendary
*
Offline Offline

Activity: 3612
Merit: 2509


Evil beware: We have waffles!


View Profile
June 26, 2020, 03:11:49 PM
 #2

For a start - which Antminer? There is a plethora of them though only 3 that would use USB & cgminer. Nonetheless they are all different...

To see what's up, open a command window first and launch the bat file in there. The bat may still fail but at least the window remains open so you can see the error message(s)

- For bitcoin to succeed the community must police itself -    My info useful? Donations welcome! 1FuzzyWc2J8TMqeUQZ8yjE43Rwr7K3cxs9
 -Sole remaining active developer of cgminer, Kano's repo is here
-Support Sidehacks miner development. Donations to:   1BURGERAXHH6Yi6LRybRJK7ybEm5m5HwTr
TheRealBluRPie (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 3


View Profile
June 26, 2020, 03:14:30 PM
Last edit: June 27, 2020, 02:35:46 AM by frodocooper
 #3

Right,

Its an Antminer U3, i used this setup:

Antminer U3s can be run on any CGMiner based device. A Windows based PC is recommended although a similar process can be applied on a Raspberry Pi.

1. Plug in the USB cable from the U3 to your computer.

2. Plug in the power supply into the mains.

3. Plug in power supply into the U3.

4. Download the latest version of the mining software (CGMiner) here: download/cgminer-run.rar

5. Download the windows driver installer (Zadig) here: http://ck.kolivas.org/apps/cgminer/zadig/

6. Run Zadig. Use the drop-down to find the "CP 2120 USB to UART Bridge Controller" entry.  If it doesn't show, select "Options->List All Devices"

7. Set the new driver to be WinUSB and click Install (or Re-Install) driver.

8.   If it is successful you will see this message:

9.  Extract cgminer to your chosen location.

10. Create a new file in notepad and enter pool information as below. Save it as a .bat in the same folder as CGMiner:

Code:
cgminer.exe --bmsc-options 115200:0.65 -o XXX -u XXX -p XXX --bmsc-voltage 0800 --bmsc-freq 1306

-o = mining pool address : mining pool port number
-u = workername from your mining pool
-p = password for your worker

11. Run the bat file to start mining (remember to replace "-o XXX -u XXX -p XXX" with your own information).



Ok,  i launched the bat file in command window:

Code:
C:\Users\bergm>cgminer -o stratum+tcp://eu-01.miningrigrentals.com:3333 -u BluRPie.162247 -p x
'cgminer' is not recognized as an internal or external command, operable program or batch file.
NotFuzzyWarm
Legendary
*
Offline Offline

Activity: 3612
Merit: 2509


Evil beware: We have waffles!


View Profile
June 26, 2020, 03:34:11 PM
 #4

For a start, you need to provide the full path to where cgminer is located for it to run...

- For bitcoin to succeed the community must police itself -    My info useful? Donations welcome! 1FuzzyWc2J8TMqeUQZ8yjE43Rwr7K3cxs9
 -Sole remaining active developer of cgminer, Kano's repo is here
-Support Sidehacks miner development. Donations to:   1BURGERAXHH6Yi6LRybRJK7ybEm5m5HwTr
TheRealBluRPie (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 3


View Profile
June 26, 2020, 03:37:08 PM
 #5

For a start, you need to provide the full path to where cgminer is located for it to run...

the .bat file is placed in the cgminer folder. I dont see a cgminer.exe file in that folder.
NotFuzzyWarm
Legendary
*
Offline Offline

Activity: 3612
Merit: 2509


Evil beware: We have waffles!


View Profile
June 26, 2020, 05:37:07 PM
 #6

Then that is your problem - either cgminer got deleted or is residing somewhere else.
The folder should have cgminer.exe, several readme's as well as a couple test .bat files in it.

- For bitcoin to succeed the community must police itself -    My info useful? Donations welcome! 1FuzzyWc2J8TMqeUQZ8yjE43Rwr7K3cxs9
 -Sole remaining active developer of cgminer, Kano's repo is here
-Support Sidehacks miner development. Donations to:   1BURGERAXHH6Yi6LRybRJK7ybEm5m5HwTr
TheRealBluRPie (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 3


View Profile
June 26, 2020, 05:40:48 PM
 #7

Then that is your problem - either cgminer got deleted or is residing somewhere else.
The folder should have cgminer.exe, several readme's as well as a couple test .bat files in it.

Ok, but isn't that weird, after I just downloaded the files ?
Before I unpack it, there isn't an .exe file in the downloaded folder.
NotFuzzyWarm
Legendary
*
Offline Offline

Activity: 3612
Merit: 2509


Evil beware: We have waffles!


View Profile
June 26, 2020, 05:45:15 PM
 #8

Got an antivirus program running? It is common for several of them to wrongly tag cgminer.exe as malware because some malware uses it to try stealth mining in the background. If the AV tags it then it probably also quarantined/deleted it.

- For bitcoin to succeed the community must police itself -    My info useful? Donations welcome! 1FuzzyWc2J8TMqeUQZ8yjE43Rwr7K3cxs9
 -Sole remaining active developer of cgminer, Kano's repo is here
-Support Sidehacks miner development. Donations to:   1BURGERAXHH6Yi6LRybRJK7ybEm5m5HwTr
TheRealBluRPie (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 3


View Profile
June 26, 2020, 06:18:23 PM
Last edit: June 27, 2020, 02:37:08 AM by frodocooper
Merited by frodocooper (2), NotFuzzyWarm (1)
 #9

Yes, i got my AV to delete the .exe file, but when i turned it off, and redownloading it, there isnt any .exe file.. seems weird to me.



i got a 4.10 version, that included an .exe file.. thanks for your point in the right direction.

Its working now.
NotFuzzyWarm
Legendary
*
Offline Offline

Activity: 3612
Merit: 2509


Evil beware: We have waffles!


View Profile
June 26, 2020, 06:34:18 PM
Last edit: June 26, 2020, 06:49:50 PM by NotFuzzyWarm
 #10

Cool. Merit given for letting us know the problem was resolved.
Last thing you should now do is lock this topic so it doesn't get spammed. Look at bottom-left of the page and you should see "Lock Topic".

I recall something about -ck removing the Win executable from the last release because of that malware issue to force hackers (and legit users) to re-compile it if they're going to use it under Windoze. Oh, for reference the (locked) thread for cgminer is here in the Software area.

- For bitcoin to succeed the community must police itself -    My info useful? Donations welcome! 1FuzzyWc2J8TMqeUQZ8yjE43Rwr7K3cxs9
 -Sole remaining active developer of cgminer, Kano's repo is here
-Support Sidehacks miner development. Donations to:   1BURGERAXHH6Yi6LRybRJK7ybEm5m5HwTr
Pages: [1]
  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!