P_Shep (OP)
Legendary
Offline
Activity: 1795
Merit: 1208
This is not OK.
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
April 14, 2012, 09:14:41 PM Last edit: December 10, 2013, 10:12:25 PM by P_Shep Merited by vapourminer (10) |
|
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.ipkTo 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 ![](https://ip.bitcointalk.org/?u=https%3A%2F%2Fi.imgur.com%2F08apVD1l.jpg&t=665&c=jg_mCe9YBoSZlA)
|
|
|
|
P_Shep (OP)
Legendary
Offline
Activity: 1795
Merit: 1208
This is not OK.
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
April 15, 2012, 01:10:42 AM |
|
I'm thinking it could well handle the max possible 100.
CGminer hardly uses any processor time. Really tiny.
|
|
|
|
P_Shep (OP)
Legendary
Offline
Activity: 1795
Merit: 1208
This is not OK.
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
April 15, 2012, 05:13:18 PM |
|
Near as I can tell, over 8 hours of mining, 20 seconds worth of processor time has been used.
|
|
|
|
nedbert9
Sr. Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif) ![*](https://bitcointalk.org/Themes/custom1/images/star.gif) ![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 252
Merit: 250
Inactive
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
April 15, 2012, 05:39:32 PM |
|
Thanks for this, P_Shep.
|
|
|
|
Raize
Donator
Legendary
Offline
Activity: 1419
Merit: 1015
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
April 15, 2012, 05:46:11 PM |
|
P_Shep, just a few spelling/grammar corrections for your README: Note: Installing CGminer on a router is a non-trivial task! 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
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
April 15, 2012, 05:48:10 PM |
|
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
Activity: 1795
Merit: 1208
This is not OK.
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
April 15, 2012, 05:57:09 PM |
|
P_Shep, just a few spelling/grammar corrections for your README: Note: Installing CGminer on a router is a non-trivial task! 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](https://bitcointalk.org/Smileys/default/smiley.gif) Let me know what changes or additional steps need to be added. Cheers.
|
|
|
|
Beaflag VonRathburg
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
April 16, 2012, 04:38:30 AM Last edit: April 18, 2012, 03:29:33 AM by Beaflag VonRathburg |
|
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
Activity: 1795
Merit: 1208
This is not OK.
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
April 18, 2012, 03:31:12 AM |
|
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
Activity: 1795
Merit: 1208
This is not OK.
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
April 18, 2012, 03:36:43 AM |
|
Maybe I could start it, so it's mining, then re-start it 2 mins later when the time is set *BIT* of a cludge though!
|
|
|
|
P_Shep (OP)
Legendary
Offline
Activity: 1795
Merit: 1208
This is not OK.
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
April 18, 2012, 04:24:12 PM |
|
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_ProtocolI 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
Activity: 1419
Merit: 1015
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
April 20, 2012, 12:56:38 AM |
|
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
Activity: 1795
Merit: 1208
This is not OK.
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
April 20, 2012, 01:38:44 AM Last edit: April 20, 2012, 02:06:48 AM by P_Shep |
|
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
Activity: 1795
Merit: 1208
This is not OK.
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
May 03, 2012, 09:58:04 AM |
|
4 units now happily working on this. Just plugged them in and reset.
|
|
|
|
nedbert9
Sr. Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif) ![*](https://bitcointalk.org/Themes/custom1/images/star.gif) ![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 252
Merit: 250
Inactive
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
May 03, 2012, 10:02:04 AM |
|
4 units now happily working on this. Just plugged them in and reset.
Sweet.
|
|
|
|
|
pazor
Legendary
Offline
Activity: 966
Merit: 1000
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
May 20, 2012, 06:29:37 PM |
|
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
Activity: 1795
Merit: 1208
This is not OK.
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
May 20, 2012, 06:51:17 PM Last edit: May 20, 2012, 07:04:48 PM by P_Shep |
|
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
Activity: 1795
Merit: 1208
This is not OK.
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
May 20, 2012, 07:11:48 PM |
|
After a quick google, I'm not seeing any cypress drivers for openwrt... maybe it's a no-go???
|
|
|
|
pazor
Legendary
Offline
Activity: 966
Merit: 1000
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
May 20, 2012, 07:26:09 PM |
|
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
|
|
|
|