Bitcoin Forum
April 26, 2024, 10:45:37 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 »  All
  Print  
Author Topic: CGminer v3.8.5 on Broadcom based DD-WRT / OpenWRT  (Read 76977 times)
P_Shep (OP)
Legendary
*
Offline Offline

Activity: 1795
Merit: 1198


This is not OK.


View Profile
April 14, 2012, 09:14:41 PM
Last edit: December 10, 2013, 10:12:25 PM by P_Shep
 #1

I've created a little how-to for getting CGminer to run on a broadcom (mipsel processor) DD-WRT / OpenWRT enabled router.
The following file contains a readme, some scripts and the cgminer-3.8.5 binary compiled with BFL, Icarus, and ModMiner Quad FPGAs and BFL, bitfury,  klondike, Hashfast, Icarus and Avalon ASICs for the mipsel architecture. This will work on Asus RT-N66U, Asus RT-N16 (which I use) and Linksys e3000, along with many other routers.

https://www.dropbox.com/s/4oik0ecfezclq9u/cgminer_3.8.5_mipsel.ipk

To install on Optware (OTRW / OTRW2):

1). Copy the file to your router USB drive, then navigate to that directory in telnet/ssh.

2). If cgminer is already running, issue:
> service cgminer stop

3). Type:
> ipkg install cgminer_x.x.x_mipsel.ipk

If you already had it running, it'll ask about the overwriting the config file. Press enter to keep your one.

4). Type
> service cgminer start

Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714171537
Hero Member
*
Offline Offline

Posts: 1714171537

View Profile Personal Message (Offline)

Ignore
1714171537
Reply with quote  #2

1714171537
Report to moderator
P_Shep (OP)
Legendary
*
Offline Offline

Activity: 1795
Merit: 1198


This is not OK.


View Profile
April 15, 2012, 01:10:42 AM
 #2

I'm thinking it could well handle the max possible 100.

CGminer hardly uses any processor time. Really tiny.
P_Shep (OP)
Legendary
*
Offline Offline

Activity: 1795
Merit: 1198


This is not OK.


View Profile
April 15, 2012, 05:13:18 PM
 #3

Near as I can tell, over 8 hours of mining, 20 seconds worth of processor time has been used.
nedbert9
Sr. Member
****
Offline Offline

Activity: 252
Merit: 250

Inactive


View Profile
April 15, 2012, 05:39:32 PM
 #4



Thanks for this, P_Shep.
Raize
Donator
Legendary
*
Offline Offline

Activity: 1419
Merit: 1015


View Profile
April 15, 2012, 05:46:11 PM
 #5

P_Shep, just a few spelling/grammar corrections for your README:

Quote
Note: Installing CGminer on a router is a non-trivial task!
Quote
Some of the scripts may need tweaking to your specific system.

Thanks for this! I'm going to try to get it running now!
rastapool
Sr. Member
****
Offline Offline

Activity: 423
Merit: 250



View Profile
April 15, 2012, 05:48:10 PM
 #6

wow, great work

The parasite hates three things: free markets, free will, and free men.
Napster is down - this is the END of illegal file sharing!
P_Shep (OP)
Legendary
*
Offline Offline

Activity: 1795
Merit: 1198


This is not OK.


View Profile
April 15, 2012, 05:57:09 PM
 #7

P_Shep, just a few spelling/grammar corrections for your README:

Quote
Note: Installing CGminer on a router is a non-trivial task!
Quote
Some of the scripts may need tweaking to your specific system.

Thanks for this! I'm going to try to get it running now!

Thanks, spelling's not my strong suit Smiley

Let me know what changes or additional steps need to be added.

Cheers.
Beaflag VonRathburg
Sr. Member
****
Offline Offline

Activity: 472
Merit: 250



View Profile
April 16, 2012, 04:38:30 AM
Last edit: April 18, 2012, 03:29:33 AM by Beaflag VonRathburg
 #8

This is very nice. I was planning on using one computer that I have laying around to run this, but I may end up canabalizing it for parts instead and getting a refurbished E3000 through newegg for relatively cheap.

4/17/2012 EDIT: I ordered a refurbished E3000 the yesterday for $54. It should be getting here in a couple days. I look forward to twiddling with it.

P_Shep (OP)
Legendary
*
Offline Offline

Activity: 1795
Merit: 1198


This is not OK.


View Profile
April 18, 2012, 03:31:12 AM
 #9

There's a bug I'm not sure how to get around.
When the router starts the time is unset, then gets set by NTP after a short time. Problem is CGminer starts before it's set, so when the time then gets set, the utility and overall MH/s show incorrect results. Without waiting a minute or 2, I'm not sure what to do about this.
P_Shep (OP)
Legendary
*
Offline Offline

Activity: 1795
Merit: 1198


This is not OK.


View Profile
April 18, 2012, 03:36:43 AM
 #10

Maybe I could start it, so it's mining, then re-start it 2 mins later when the time is set Smiley
*BIT* of a cludge though!
P_Shep (OP)
Legendary
*
Offline Offline

Activity: 1795
Merit: 1198


This is not OK.


View Profile
April 18, 2012, 04:24:12 PM
 #11

Something odd is going on. DD-WRT has in-built NTP client, which is supposed to check the time on start up, then after 120 seconds.
http://www.dd-wrt.com/wiki/index.php/Network_Time_Protocol

I wrote a script to force it to update, but I can't tell if it works, or does anything, as right now it seems to be behaving itself without the script.

Hate intermittent problems.
Raize
Donator
Legendary
*
Offline Offline

Activity: 1419
Merit: 1015


View Profile
April 20, 2012, 12:56:38 AM
 #12

I seem to have a somewhat-related problem.

Through some trial-and-error I got opkg on, but I'm not sure if I have optware or not. I *do* seem to have opkg working correctly, but when I type "service serialmodules on" it can't find "service". Did I miss a step somewhere? I'm using an Atheros based device and not only that, but I'm using a TPLink TL-WR1043ND, so the installation process for opkg was a huge ordeal none of the DD-WRT guides worked, I had to come up with some of my own tweaks.

Is there a way to confirm if I have optware or if opkg works does that already mean optware is on there? I have a feeling I'm missing something obvious.

I know I could use xiangfu's custom .bin for Open-WRT, but I'd prefer to stick with DD-WRT since I'm more experienced with that.
P_Shep (OP)
Legendary
*
Offline Offline

Activity: 1795
Merit: 1198


This is not OK.


View Profile
April 20, 2012, 01:38:44 AM
Last edit: April 20, 2012, 02:06:48 AM by P_Shep
 #13

service is an executable, maybe there is a pkg with it you can install?

As far as I can tell though, it doesn't do much... 'Service XXX on' just make the XXX script executable, so it runs. You can probably just as easily get the scripts working manually.
'service' just makes things neater, such as prints the list of running services, does the chmods to enable/disable scripts etc.
P_Shep (OP)
Legendary
*
Offline Offline

Activity: 1795
Merit: 1198


This is not OK.


View Profile
May 03, 2012, 09:58:04 AM
 #14

4 units now happily working on this. Just plugged them in and reset.
nedbert9
Sr. Member
****
Offline Offline

Activity: 252
Merit: 250

Inactive


View Profile
May 03, 2012, 10:02:04 AM
 #15

4 units now happily working on this. Just plugged them in and reset.


Sweet.
P_Shep (OP)
Legendary
*
Offline Offline

Activity: 1795
Merit: 1198


This is not OK.


View Profile
May 10, 2012, 01:40:12 AM
Last edit: May 10, 2012, 06:21:32 PM by P_Shep
 #16

Upped to CGminer 4.3.1:
https://github.com/downloads/pshep/cgminer/cgminer-2.4.1-mipsel.tar.gz

No Ztex though, optware doesn't have libusb 1.0+ so can't compile cgminer with it enabled.

Edit:
I downloaded and compiled the latest libusb source... cross-compiled nice and easily, and cgminer compiled OK with that. No way to test it though. I can send what I have if anyone want to try it?

Edit 2:
CGminer compiled with ztex runs Smiley That's all I can say. Available here to try:
https://github.com/downloads/pshep/cgminer/cgminer-2.4.1-mipsel-ztex.tar.gz
pazor
Legendary
*
Offline Offline

Activity: 966
Merit: 1000



View Profile
May 20, 2012, 06:29:37 PM
 #17

my situation:

TP-Link MR3420 + ztex board single

steps:
1. open-wrt installed
2. ztex board connected on mr3420
3. the cypress usb-serial of the ztex board not recognized from open-wrt (no driver available)
no /dev/usb/tts found...

any idea ?

treuhand-Dienst gewünscht? - frag per PM an
BTC 174X17nR7vEQBQo4GXKRGMGaTmB49Gf1yT
P_Shep (OP)
Legendary
*
Offline Offline

Activity: 1795
Merit: 1198


This is not OK.


View Profile
May 20, 2012, 06:51:17 PM
Last edit: May 20, 2012, 07:04:48 PM by P_Shep
 #18

May need to load the kernel module for the serial driver, whatever that is for ztex.
So the first step is to get that working - make sure you can access or see the serial device in /devs (whatever the path may be).

See in S45serialmodule where the modules are loaded.
Then in cgminer.sh TTYNAME and TTYDIR select the path to the serial port.
P_Shep (OP)
Legendary
*
Offline Offline

Activity: 1795
Merit: 1198


This is not OK.


View Profile
May 20, 2012, 07:11:48 PM
 #19

After a quick google, I'm not seeing any cypress drivers for openwrt... maybe it's a no-go???
pazor
Legendary
*
Offline Offline

Activity: 966
Merit: 1000



View Profile
May 20, 2012, 07:26:09 PM
 #20

right...

there is no Cypress (CY7C68013 EZ-USB FX2 USB 2.0 Development Kit) driver for ztex available.
this is the reason and the end of my trying.

thank you

treuhand-Dienst gewünscht? - frag per PM an
BTC 174X17nR7vEQBQo4GXKRGMGaTmB49Gf1yT
Pages: [1] 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 »  All
  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!