Bitcoin Forum

Bitcoin => Mining software (miners) => Topic started by: P_Shep on April 14, 2012, 09:14:41 PM



Title: CGminer v3.8.5 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on April 14, 2012, 09:14:41 PM
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

http://i.imgur.com/08apVD1l.jpg (http://imgur.com/08apVD1)


Title: Re: CGminer on DD-WRT
Post by: P_Shep on 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.


Title: Re: CGminer on DD-WRT
Post by: P_Shep on 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.


Title: Re: CGminer on DD-WRT
Post by: nedbert9 on April 15, 2012, 05:39:32 PM


Thanks for this, P_Shep.


Title: Re: CGminer on DD-WRT
Post by: Raize on April 15, 2012, 05:46:11 PM
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!


Title: Re: CGminer on DD-WRT
Post by: rastapool on April 15, 2012, 05:48:10 PM
wow, great work


Title: Re: CGminer on DD-WRT
Post by: P_Shep on April 15, 2012, 05:57:09 PM
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 :)

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

Cheers.


Title: Re: CGminer on DD-WRT
Post by: Beaflag VonRathburg on April 16, 2012, 04:38:30 AM
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.


Title: Re: CGminer on DD-WRT
Post by: P_Shep on 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.


Title: Re: CGminer on DD-WRT
Post by: P_Shep on 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!


Title: Re: CGminer on DD-WRT
Post by: P_Shep on 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_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.


Title: Re: CGminer on DD-WRT
Post by: Raize on 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.


Title: Re: CGminer on DD-WRT
Post by: P_Shep on April 20, 2012, 01:38:44 AM
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.


Title: Re: CGminer on DD-WRT
Post by: P_Shep on May 03, 2012, 09:58:04 AM
4 units now happily working on this. Just plugged them in and reset.


Title: Re: CGminer on DD-WRT
Post by: nedbert9 on May 03, 2012, 10:02:04 AM
4 units now happily working on this. Just plugged them in and reset.


Sweet.


Title: Re: CGminer on DD-WRT
Post by: P_Shep on May 10, 2012, 01:40:12 AM
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 :) That's all I can say. Available here to try:
https://github.com/downloads/pshep/cgminer/cgminer-2.4.1-mipsel-ztex.tar.gz


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: pazor on 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 ?


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: P_Shep on May 20, 2012, 06:51:17 PM
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.


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: P_Shep on 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???


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: pazor on 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


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: P_Shep on May 21, 2012, 05:57:52 PM
For ztex, look at this page:

http://wiki.ztex.de/doku.php?id=en:software:usb_ids

I think it may be possible by setting up the ztex usb device vendor/product ID there as a character device / modprobe.
Though I don't know how.


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: pazor on May 21, 2012, 06:04:15 PM
thank you p_shep... i will try it


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: streblo on May 21, 2012, 10:31:50 PM
Are you powering your USB hub and router from your PSU?  ;D


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: P_Shep on May 21, 2012, 10:36:51 PM
Are you powering your USB hub and router from your PSU?  ;D

Yep, everything. No inefficient, messy, bulky wall-wart PSUs here :)


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: aseldon on May 21, 2012, 10:55:46 PM
Are you powering your USB hub and router from your PSU?  ;D

Yep, everything. No inefficient, messy, bulky wall-wart PSUs here :)

Which adapters are you using to power from the PSU? Are they custom or can they be bought from somewhere?


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: P_Shep on May 21, 2012, 11:32:44 PM
I made them myself, but you can buy some from cablez:
https://bitcointalk.org/index.php?topic=74397.0


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: Lomax42 on May 24, 2012, 06:31:56 AM
Has anyone used BitForce SHA256 Single or any of their products? or is it all hype? http://www.butterflylabs.com/product-details/


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: rjk on May 24, 2012, 02:13:54 PM
Has anyone used BitForce SHA256 Single or any of their products? or is it all hype? http://www.butterflylabs.com/product-details/
They're real, I have one and others have many more than me. They do take a while to deliver. Search the forum, there are literally dozens of threads about their products.


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: smracer on May 24, 2012, 03:47:11 PM
What cables are you using to power the bitforce singles from a power suppply?  I am tired of all these power bricks.


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: P_Shep on May 24, 2012, 04:37:13 PM
What cables are you using to power the bitforce singles from a power suppply?  I am tired of all these power bricks.


See 5 posts back :)


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: nelisky on May 24, 2012, 05:08:20 PM
Hey,

I'm mining on the 3220 (but developed originally on the 3420) with openwrt with great success. I did, however, build the OS from scratch so I could have all dependencies built in.

If you are using the plain vanilla openwrt you will need to install a few things, though I found I didn't have enough space for everything unless I either built one from scratch or used usb storage for the installed modules. I don't have a clear memory of what I needed but I'll be happy to share my kernel .config with you, send me your email on a PM. I can also send you the full firmware file, if you want. That one will most certainly run the cgminer binary compiled for that platform (which I can also share) but has a few odd customizations.

You don't need any specific Cypress drivers, just the normal usb-ohci driver.


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: pazor on May 24, 2012, 06:22:03 PM
yes please do it...

you can use my email adress in my profile

do you have a combination of mr3420/mr3220 + ztex module (1.15x or 1.15y) with cgminer ?

regards
pazor


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: streblo on May 25, 2012, 11:46:20 PM
I am going to try to install DD-WRT/OptWare/CGminer on a E3000 this weekend. How big of a USB key is necessary, I only have a 256MB and >8GB keys, which seem like under and overkill.

I'll definitely send a donation out if this works out!

PS. Speaking of power, how important is it to power the USB hub? I know powered USB hubs are generally built better, but is powering necessary for 12(+4 hubs) devices?


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: P_Shep on May 25, 2012, 11:53:41 PM
They recommend a partition of 512MB for Optware
http://www.dd-wrt.com/wiki/index.php/How_to_-_Format_and_Partition_External_Storage_Device

You can always make another partition for NAS :)

and you absolutely need a powered hub. Each of those devices may only use a small amount of power, but if they are all getting that power through the router then you're going to stress the router. At least have the hub attached to the router powered.


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: nedbert9 on May 26, 2012, 12:54:32 AM


Thanks for keeping this up to date.  Will send some btc later.


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: P_Shep on May 30, 2012, 07:55:12 PM
Updated version:
https://github.com/downloads/pshep/cgminer/cgminer-2.4.1-1-mipsel.tar.gz

Still the same binary, but a few tweaks to the scripts and an all-new serial driver.

I discovered there was a problem with the FTDI drivers. The existing one wasn't quite compatible with the FTDI chip used in the BFL (hence having to add product and vendor IDs when loading the driver). I found newer drivers which had the chip included (FT232H), but these drivers were for later versions of linux kernel than DD-WRT uses, so wouldn't compile.
In the end I had to hack together a driver from the old one as a base and adding in the bits of code needed to get the new chip working. Seems to be working for me so far, but it is quite experimental (read: a hack) so be aware.

The specific issue I found was that when more than 64 bytes were sent by the BFL, the 65th and 66th byte would be lost. This meant that when 6 or more valid nonces were returned by the BFL, the 6th would be corrupted, leading to the 7th and onward being read incorrectly. What was happening was the driver was expecting a packet of only 64 bytes and reading the next two bytes as controls. In fact the packet being sent was much larger and the driver was discarding valid data.

The driver fix does two things:
1. Adds native support for the FT232H (and that's the only device I added)
2. Scans the device for the max packet size, which previously was hard-set to 64 bytes.

At some point I'll put my ftdi_sio.ko code changes on github.


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: P_Shep on June 03, 2012, 05:16:25 AM
Updated for cgminer 2.4.2:

https://github.com/downloads/pshep/cgminer/cgminer-2.4.2-mipsel.tar.gz


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: BR0KK on June 03, 2012, 09:11:38 PM
Any updates on Ztex support?


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: nedbert9 on June 03, 2012, 10:42:51 PM
Updated for cgminer 2.4.2:

https://github.com/downloads/pshep/cgminer/cgminer-2.4.2-mipsel.tar.gz

Thanks, P_Shep.  Doughnation sent.


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: P_Shep on June 04, 2012, 01:39:43 AM
Any updates on Ztex support?

I can compile a version with it in, but I don't know that anyone has got it working. Look back through this thread and see if you can get any info from those who have attempted it.

And thanks Ned :)


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: nelisky on June 04, 2012, 09:12:16 AM
Any updates on Ztex support?

I can compile a version with it in, but I don't know that anyone has got it working. Look back through this thread and see if you can get any info from those who have attempted it.

And thanks Ned :)

I'm using ztex in OpenWRT, in fact I did much of the development with that as target (as it is the hardest to debug, might as well make it work there to start with). Can't speak of DD-WRT.


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: BR0KK on June 04, 2012, 05:24:32 PM
Does it work great, without stales etc. I heard something about offloading problems on Ztex Boards?


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: nelisky on June 04, 2012, 05:46:28 PM
It works just fine in my experience. I have the router dedicated to cgminer, mining to p2pool and it has no difference that I can perceive from the same setup with a full linux desktop.


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: BR0KK on June 04, 2012, 05:51:54 PM
Oh thats nice since i want to get rid of my mac mini, what router do u use ?


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: nelisky on June 04, 2012, 05:55:54 PM
TP-Link MR3220 (also tried the MR3420 which is basically the same thing only with better wifi range, so I'm using that one as originally designed :) )


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: BR0KK on June 04, 2012, 06:13:14 PM
thanks :)

try to get one from ebay now....

is it hard for a non linux noob like me to get cg miner running on that hardware (i know how to do the openwork DDwrt part :))


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: nelisky on June 05, 2012, 08:22:54 AM
thanks :)

try to get one from ebay now....

is it hard for a non linux noob like me to get cg miner running on that hardware (i know how to do the openwork DDwrt part :))

Well, I grabbed openwrt sources and compiled it with the needed kernel modules (so I didn't have to load them afterwards which could fail due to lack of space). I then cross compiled cgminer and presto.

Ok, I skipped the step of getting ztex worker going on the cross compiled environment, but that has already been done and does not need to be done again.


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: Chefnet on June 10, 2012, 10:06:23 AM
hi,

and what is with the ztex bitstream? My tp-link 703n says there is not enough space for it? Or can you give me your compiled cgminer and it do not need it?


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: rudrigorc2 on June 10, 2012, 10:45:05 AM
hi,

and what is with the ztex bitstream? My tp-link 703n says there is not enough space for it? Or can you give me your compiled cgminer and it do not need it?


have u seen this?

http://en.qi-hardware.com/wiki/Icarus#Using_TP-LINK_TL-WR703N_as_host

it uses cgminer 2.4.1 though, and theres a bug, right now you cant use privileged API.


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: Chefnet on June 10, 2012, 11:14:23 AM
yes I have, but I don't get my ztex working (libusb 1.0.18 is installed so I think the bitstream is missing)


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: nelisky on June 10, 2012, 11:52:35 AM
hi,

and what is with the ztex bitstream? My tp-link 703n says there is not enough space for it? Or can you give me your compiled cgminer and it do not need it?


Well, you should be able to fit the one bitstream you are actually using without problems, but if you want the full bitstream directory or you have multiple ztex boards with different versions running at the same time, you'll need to set up usb storage. That is what I do.


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: Chefnet on June 10, 2012, 12:09:03 PM
do you have a small tutorial for both usb storage and using it with cgminer and ztex?


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: nelisky on June 10, 2012, 12:47:12 PM
do you have a small tutorial for both usb storage and using it with cgminer and ztex?

No, I don't. I'm using my own build of OpenWRT so my steps are not directly useful if you are using anything else. Still, I can help anyone who is willing to write said tutorial, and get that into the cgminer distribution readmes.

All in all it should be very trivial to get that up and going once the correct libs and modules are in place. For usb storage I'm using a usb key with 2 partitions, one with ext4 and one with swap (just because, not really needed). Look at http://wiki.openwrt.org/doc/howto/usb.storage for guidelines and ask if you have any doubts.

As for cgminer, you'll need both the cgminer binary and the bitstreams directory, both living side by side in the same directory.


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: Chefnet on June 10, 2012, 12:48:56 PM
thank you.
I will give it a try but I'm so busy it will take a while.

can I place only the bitstream folder on the usb device or must it be the whole cgminer with the bitstream?


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: nelisky on June 10, 2012, 09:02:24 PM
thank you.
I will give it a try but I'm so busy it will take a while.

can I place only the bitstream folder on the usb device or must it be the whole cgminer with the bitstream?

You can place only the bitstream folder but you'll have to run cgminer with the current directory being the parent of bitstreams.

Once you do give it a try let me know if you have any issues. I might try it out with a plain vanilla OpenWRT one of these days too, but can't really promise I'll beat you to it.


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: BR0KK on June 11, 2012, 03:37:33 PM
Bought a mr3420 will try it as soon as I'm home.


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: P_Shep on June 11, 2012, 04:12:56 PM
When you guys sort out how to get the ztex working in vanilla OpenWRT/DD-WRT, post the guide here and I'll include in the readme :)


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: BR0KK on June 11, 2012, 06:32:40 PM
Openwrt is Running now i Need to find Out how the Rest will work ;)
€:

i have USB Working on that thing. Now need to do the part with storage access and later the part with ztex drivers

hmm I'm running into the mentioned space constrains (only 28KB left ....).... could anybody tell me how to make a low memory version of open wrt?  Or what of the installed software i do not need ....



Title: Re: CGminer on DD-WRT / OpenWRT
Post by: P_Shep on June 15, 2012, 05:51:29 PM
Updated for cgminer 2.4.3:
https://github.com/downloads/pshep/cgminer/cgminer-2.4.3-mipsel.tar.gz

Now including Ztex & ModMiner Quad
(though I don't know if they work)


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: Garr255 on June 16, 2012, 03:22:26 AM
I'm going to try loading this on a MR3020, although I won't have anything to test it with until Monday.


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: rudrigorc2 on June 17, 2012, 12:09:50 AM
what can you remove do to make it smaller?

I have a version 2.4.1 cgminer its only 130k


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: P_Shep on June 17, 2012, 12:55:23 AM
the archive is big because of the bitstreams for ztex and modminer. Unless you have one of those, you don't need them. The executable is actually quite a bit smaller.


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: rudrigorc2 on June 17, 2012, 01:07:56 AM
the archive is big because of the bitstreams for ztex and modminer. Unless you have one of those, you don't need them. The executable is actually quite a bit smaller.

I am using this: http://en.qi-hardware.com/wiki/Icarus#Using_TP-LINK_TL-WR703N_as_host

am running out of space. the cgminer 2.4.1 here is 130, yours 150, I cant make it +x, why? is this a dumb question?

I cant run the api with privileged access on this 2.4.1,think its a bug, thats reason I am trying a new version.


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: P_Shep on June 17, 2012, 01:26:10 AM
Ah. Will not work.

This is compiled for mipsEL (little endian) processor.
TP-LINK is mipsEB (big endian) processor.


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: rudrigorc2 on June 17, 2012, 01:35:17 AM
Ah. Will not work.

This is compiled for mipsEL (little endian) processor.
TP-LINK is mipsEB (big endian) processor.

err..thanks for the info. =)


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: streblo on June 21, 2012, 02:42:09 AM
I am having trouble getting DD-WRT to connect to my wireless network. I am trying to run the router in "Client mode". I made a post on the DD-WRT forums, which I've posted below.
Quote from: streblo
Router: Cisco e3000, DD-WRT 14929 std-usb
Goal: Have the router run in client or client bridged mode (I have followed this guide exactly (http://www.dd-wrt.com/wiki/index.php/Client_Mode))
Problem: The client router cannot ping (if given a static IP) or get a DHCP lease from the host router. The host router is encrypted with WEP (I am aware of security issues. I am not in control of the host router). I think the client router cannot properly connect wirelessly. Is there any way to check? In status->wireless, the host router DOES show up under "access point." The external WLAN light does come on solid. Signal quality is reported at ~60%.

Under wireless->"Basic Settings", for the 802.11x adaptor, wl0, should "network configuration" be bridged or unbridged? I have tried both, but I followed the guide exactly which doesn't mention it (bridged is the default setting).

Thank you very much in advance

There's 10BTC going to p_shep if I can actually get these singles running off of this e3000.

Any ideas?



Title: Re: CGminer on DD-WRT / OpenWRT
Post by: P_Shep on June 21, 2012, 05:14:50 AM
There was some talk of problems with client bridge with some versions. Last I checked build 15962 was the one recommended, which is the one I use.

My settings are client bridge, with bridged network configuration.


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: nedbert9 on June 21, 2012, 05:28:22 AM
There was some talk of problems with client bridge with some versions. Last I checked build 15962 was the one recommended, which is the one I use.

My settings are client bridge, with bridged network configuration.


Good stuff.  Needed to know this.


Yes, bridged is what you want if you aren't routing multiple networks.


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: Chefnet on June 21, 2012, 06:09:37 AM
can you compile for tp also?


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: streblo on June 21, 2012, 07:06:52 AM
There was some talk of problems with client bridge with some versions. Last I checked build 15962 was the one recommended, which is the one I use.

My settings are client bridge, with bridged network configuration.

I am now trying client bridge mode on 15962 -- with the same problems  :(

I'm just going to keep at it. Any other ideas?


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: P_Shep on June 21, 2012, 03:24:15 PM
Have you specified a wifi type? I put mine G-only. Also read that mixed can confuse things.
Keep reading DD-WRT forums, may find something to help. It certainly should work!

Also, you're matching up the IP's properly aren't you? What's the IP of the main router you're connecting to? What IP did you set the e3000 to? does the main router have a range set aside for static IPs?

Can I compile for TP? No. I tried, doesn't work with the compiler I have. People have though, so I don't know why they don't make it available...


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: streblo on June 22, 2012, 12:00:28 AM
I had not specified a wifi type. I tried B-only to no avail (the wifi router LED still turns on fully). Nice suggestion though =(

Host router: 192.168.11.1
client bridge router: 192.168.11.50
PC connected to client bridge via ethernet: 192.168.11.25

The host router is a POS and starts at 192.168.11.1 and I believe starts issuing DHCP leases at 192.168.11.2.

Sorry for derailing the cgminer thread, but, OTOH, thank you very much for the suggestions. I made an updated post on the DD-WRT forums here  (http://www.dd-wrt.com/phpBB2/viewtopic.php?p=694492#694492). I will try to get this sorted out in its proper place. Please reply to that thread or PM me if you have any other suggestions!!


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: GoldZuGeld on June 22, 2012, 12:11:47 PM
did someone have sucess with ztex quad and tplink routers?


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: pazor on June 22, 2012, 12:17:35 PM
not yet...

 :(


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: GoldZuGeld on June 22, 2012, 03:41:10 PM
can you explain what the problem is?
I want to buy a quad and one of the tplink routers in the next weeks :)


Title: Re: CGminer on DD-WRT / OpenWRT
Post by: BR0KK on June 22, 2012, 03:58:59 PM
I'm trying too but i have to start from scratch (linux is not my domain )


Title: Re: CGminer v2.4.3 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on June 22, 2012, 11:05:00 PM
To make things clear:

The binaries included here WILL NOT WORK with TP link devices. They are a different processor.

I did try to compile for this processor, but I couldn't get everything to compile. I could get libUSB (for ztex) and cgminer to compile, but not ftdi_sio.ko (serial driver for BFL).

Since I don't have a TP link device, I'm giving up. Nothing I produce I could test anyway.

Your best bet is to contact xiangfu and ask him nicely (read: ply him with bitcoins) to maintain it.


Title: Re: CGminer v2.4.3 on Broadcom based DD-WRT / OpenWRT
Post by: GoldZuGeld on June 23, 2012, 06:14:48 PM
which routers can you recommend for this project?

do you mean with cpu problem the difference between big and little endian?

edit: ok 2 possibilities here:
  - buy the cheapest broadcom modell: seems to be linksys e3000 oder e3200
  - hope to get a big endian version to use tplink routers.


Title: Re: CGminer v2.4.3 on Broadcom based DD-WRT / OpenWRT
Post by: streblo on June 23, 2012, 09:12:08 PM
GoldZuGeld: I believe p_shep uses an e3000 - I am using one as well and can recommend it (WEP encryption issues notwithstanding...)

In the README file, it says:
Code:
Copy all the scripts  to    /opt/etc/init.d             (S45serialmodules, cgminer.sh, S80cgminer)
I cannot find S80cgminer. Perhaps it is no longer included and the README needs updating? Please advise  ;D


Title: Re: CGminer v2.4.3 on Broadcom based DD-WRT / OpenWRT
Post by: GoldZuGeld on June 23, 2012, 09:54:08 PM
Asus RT-N10U is around 20€ cheaper. CPU is Broadcom BCM5357@300
   should work... maybe ^^


Title: Re: CGminer v2.4.3 on Broadcom based DD-WRT / OpenWRT
Post by: d3m0n1q_733rz on June 25, 2012, 12:24:58 AM
Hey, does this allow the actual Broadcom chip to be used for hashing as well?  Or does it only allow the router to be used to send out the work to the child devices as the parent?  And, if it does do hashing itself, what numbers are we seeing out of these?


Title: Re: CGminer v2.4.3 on Broadcom based DD-WRT / OpenWRT
Post by: streblo on June 25, 2012, 12:30:54 AM
No it doesn't, and if it did, I would imagine the speed would be ca. 0.1MH/s -- in other words, totally pointless.


Title: Re: CGminer v2.4.3 on Broadcom based DD-WRT / OpenWRT
Post by: d3m0n1q_733rz on June 25, 2012, 03:48:30 AM
No it doesn't, and if it did, I would imagine the speed would be ca. 0.1MH/s -- in other words, totally pointless.
I'm not so certain about that.  Routers handle some pretty heavy loads when it comes to encryption and decryption.  Remember, they handle WPA2 with AES in heavy numbers per second.  Keeping that in mind, it wouldn't be totally careless to think they could handle some SHA-256 as well at a decent rate.  If so, we could be looking at lower-cost hashing power.


Title: Re: CGminer v2.4.3 on Broadcom based DD-WRT / OpenWRT
Post by: streblo on June 25, 2012, 06:12:04 AM
No it doesn't, and if it did, I would imagine the speed would be ca. 0.1MH/s -- in other words, totally pointless.
I'm not so certain about that.  Routers handle some pretty heavy loads when it comes to encryption and decryption.  Remember, they handle WPA2 with AES in heavy numbers per second.  Keeping that in mind, it wouldn't be totally careless to think they could handle some SHA-256 as well at a decent rate.  If so, we could be looking at lower-cost hashing power.
I ran p_shep's cgminer on a e3000 without any hashing hardware connected and it errors out. So, AFAICT, mining on the broadcom 480MHz processor isn't possible at the moment.

It's certainly an interesting idea, if a dedicated router could SHA-256 hash quickly. I think it's negligible though because unless there's onboard dedicated hardware for SHA512 hashes (AFAIK, no routers have this -- and if they did the mining community would have found and bought them), it will be CPU mining with a 480MHz processor which just isn't that fast (esp. without difficult assembly optimizations).


Title: Re: CGminer v2.4.3 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on June 25, 2012, 06:19:27 AM
When I was first fiddling about with cgminer on a router I enabled CPU mining just to test it out. It didn't submit a single share in the hour or two I left it on. It took so long a long poll would come through and wipe out the work before it completed.
As to dedicated hardware to do the job... that feasible, but even if there was a hardware SHA256, I think the processor that does that (wireless) and the routing etc., is separate from the CPU, so I don't know how practice it might really be as far as getting the work done. Then you get into the whole Broadcom doesn't release their datasheets thing.


Title: Re: CGminer v2.4.3 on Broadcom based DD-WRT / OpenWRT
Post by: Chefnet on June 25, 2012, 05:59:40 PM
@p_shep what is with my pm? No anwser?


Title: Re: CGminer v2.4.3 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on June 25, 2012, 06:02:59 PM
@p_shep what is with my pm? No anwser?

Ah right, forgot about that!


Title: Re: CGminer v2.4.3 on Broadcom based DD-WRT / OpenWRT
Post by: Jaryu on June 27, 2012, 04:58:00 AM
ok got my e3000 with dd-wrt and even installed optware and it works fine, but now I am stuck... the instructions say to copy files to the storage device;
(Unpack the mipsel CGminer package. (Suggest you copy the .tar.gz to the router and untar it there)

but I have no idea how to do that over the telnet, I am also not a linux person so I have no idea what to do there either. Any help would be apreciated, thanks.


Title: Re: CGminer v2.4.3 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on June 27, 2012, 06:10:03 AM
Look at the samba tutorials on dd-wrt website.
You can also enable samba via the web interface.


Title: Re: CGminer v2.4.3 on Broadcom based DD-WRT / OpenWRT
Post by: nanook7 on June 27, 2012, 07:50:31 PM
I am hoping someone here can answer.

After a bit of research I still can't find out if the ASUS WL-520gU wireless router
uses the correct chipset to run CGminer from this thread?

Anyone have any ideas?

thanks


Title: Re: CGminer v2.4.3 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on June 27, 2012, 08:22:43 PM
Looks like it could. Processor and mem is a bit low, but I think should be just about sufficient.

dd-wrt wiki:
http://www.dd-wrt.com/wiki/index.php/Asus_WL-520GU


Title: Re: CGminer v2.4.3 on Broadcom based DD-WRT / OpenWRT
Post by: nanook7 on June 27, 2012, 10:00:51 PM
Looks like it could. Processor and mem is a bit low, but I think should be just about sufficient.

dd-wrt wiki:
http://www.dd-wrt.com/wiki/index.php/Asus_WL-520GU

Thanks, I found one at a garage sale for $5.  I'll give it a try later.


Title: Re: CGminer v2.4.3 on Broadcom based DD-WRT / OpenWRT
Post by: GoldZuGeld on June 30, 2012, 08:30:05 PM
4mb flash could be a bit too small for open-wrt + ztex files


Title: Re: CGminer v2.4.3 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on June 30, 2012, 09:11:40 PM
That's why u ll use a USB stick ;)


Just got my raspi pi today and I got it running there. When I find some time I'll try open wrt :)


Title: Re: CGminer v2.5.0 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on July 24, 2012, 08:00:45 PM
POOP!

I moved my Asus RT-N16 over to be my host as the e3000 was over heating in the hot weather.
The asus was also occasional resetting (though nowhere near as often) so decided to 'mod' it and ad a fan.
Well somewhere something went wrong and now it's bricked.
My guess is that in removing the existing heatsink I broke some of the BGAs or something.

Very annoying.


Title: Re: CGminer v2.5.0 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on July 25, 2012, 04:25:10 PM
AAaaaaand... it came back to life.

Weird.


Title: Re: CGminer v2.5.0 on Broadcom based DD-WRT / OpenWRT
Post by: streblo on July 26, 2012, 05:08:57 PM
A few things:

(1) I got cgminer working with my BFLs. P_shep, do you want your 10 BTC donation to your pan handling address?
(2) It seems if I disconnect a BFL single (usually on accident), it won't start mining until I do a "#service cgminer stop && service cgminer start". The log file says something about, IIRC, /dev/usb/tty/0 not being readable. Is there a way to make BFL singles hot-swappable?
(3) Every few days my e3000 will disconnect from the wireless and I have to reboot it. Anyone know of a cronjob to restart the wireless every day or so? (EDIT: I think this will work "wl radio off && wl radio on")

EDIT2: Here is a great fix-wifi-if-broken script: http://www.dd-wrt.com/wiki/index.php/Useful_Scripts#Reset_Wireless_Radio


Title: Re: CGminer v2.5.0 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on July 26, 2012, 06:02:42 PM
Great! well done :)

1) :D
2) Yep. When I get time I'll look into hotswap stuff. It really shouldn't be TOO difficult. As it is, when you unplug a device and plug it back in it enumerates to a different serial port. Since you start CGMiner with set ports, it'll only look at those, and so will miss the new port created when you plug the device back in.
3) I've had some over heating issues now the really hot weather has kicked in, but my router just reset. The only time I had trouble with the radio stopping was when I used the most recent firmware. Its a shame to used such a cludge like that script, but if it works...


Edit:
2) Thinking about it, scanning the serial ports is very system specific. I would have to cater for other devices too in cgminer.
An easier option may be just to edit the start up script cgminer.sh...
If you move the DEVS='...' line to inside the while loop, then all you need to do is quit cgminer via a api command (as opposed to service restart). Next time around the loop the new serial port will be picked up by the script and used in the cmd line. You can also reduce the sleep time so it comes back up quicker.


Title: Re: CGminer v2.5.0 on Broadcom based DD-WRT / OpenWRT
Post by: unclemantis on July 27, 2012, 05:03:58 PM
That is pretty neat. talk about a conversation piece. Kinda like a modern industrial art piece.


Title: Re: CGminer v2.5.0 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on July 27, 2012, 05:10:15 PM
Perhaps I should spray-paint it all bronze/brass/copper, hide the wires in copper pipes, and add random rivets.

Steam-punk mining.


Title: Re: CGminer v2.5.0 on Broadcom based DD-WRT / OpenWRT
Post by: farfie on July 31, 2012, 02:05:31 PM
Hey P_Shep, was wondering if you have a preference between ddwrt and openwrt? I'm highly considering this idea, and I figured I would start off on the "preferred" foot :)

Thanks.


Title: Re: CGminer v2.5.0 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on July 31, 2012, 03:31:05 PM
not used openwrt, so can't say.
If you have time and want to try it, go ahead. Otherwise go for dd-wrt, as I have the guide for that.


Title: Re: CGminer v2.6.5 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on August 15, 2012, 07:51:50 AM
v2.6.5 finally passed p_shep's certification.


Title: Re: CGminer v2.6.5 on Broadcom based DD-WRT / OpenWRT
Post by: purelithium on August 17, 2012, 01:51:18 AM
Has anyone tried a Modminer with this? Looks like an ideal low power solution.


Title: Re: CGminer v2.6.5 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on August 17, 2012, 05:25:26 PM
All I can tell is it's compiled in with the binary.
No idea if it'll work, or how to get it to work.


Title: Re: CGminer v2.6.5 on Broadcom based DD-WRT / OpenWRT
Post by: purelithium on August 17, 2012, 05:50:58 PM
I may give it a try when I get my MMQ.


Title: Re: CGminer v2.6.5 on Broadcom based DD-WRT / OpenWRT
Post by: GoldZuGeld on August 18, 2012, 09:34:17 PM
I got a e3200. What is easier and better, dd-wrt or openwrt?


Title: Re: CGminer v2.7.0 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on August 19, 2012, 06:06:23 PM
Don't know about openwrt... lots of people have asked, but no one has said they've done it.

Upped to 2.7.0


Title: Re: CGminer v2.7.0 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on August 19, 2012, 06:16:24 PM
I tried it, but I got tired of my failing to get it running propably .....
I'm just a noob to this (no clue what im dooing  or did do) ....:(

Tried switching to a raspberry pi but that think is a" little miss princess" when it comes to USB connections (hubs cables and devices...).

So I'm back to my power hungry Mac mini + windows 7 VM. That runs fine and is really no hassle to configure at all :)


Title: Re: CGminer v2.7.1 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on August 21, 2012, 06:03:30 PM
Upped to 2.7.1

https://github.com/downloads/pshep/cgminer/cgminer-2.7.1-mipsel.tar.gz


Title: Re: CGminer v2.7.1 on Broadcom based DD-WRT / OpenWRT
Post by: cablepair on August 21, 2012, 06:57:16 PM
Upped to 2.7.1

https://github.com/downloads/pshep/cgminer/cgminer-2.7.1-mipsel.tar.gz

Thank you for including the ModMiner Quad with this, I have a netgear 3400 running dd-wrt - will it work for this?

I believe it has a broadcom chipset


Title: Re: CGminer v2.7.1 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on August 21, 2012, 09:05:48 PM
Should run comfortably.
'Work', on the other hand...

I don't know if it'll work out of the box, think you'll have to mess around with it.
If you get it working, let me know how, and I'll put the instructions in the readme.


Title: Re: CGminer v2.7.1 on Broadcom based DD-WRT / OpenWRT
Post by: GoldZuGeld on August 23, 2012, 07:34:55 PM
i've just finished dd-wrt installation on e3200. But now i want to connect with putty via ssh to copy all files to the router. but putty says connection refused all the time. Any ideas? Is optware really needed?

EDIT: oh forget to activate ssh...  ::)

my /opt folder is empty. there is no init.d or anything in it???


Title: Re: CGminer v2.7.1 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on August 23, 2012, 08:45:02 PM
Need to install optware (OTRW)
Links to do that are in the readme.


Title: Re: CGminer v2.7.1 on Broadcom based DD-WRT / OpenWRT
Post by: Mobius on August 24, 2012, 01:40:05 AM
Need to install optware (OTRW)
Links to do that are in the readme.

You might want to add the updated optware (OTRW2) instructions http://www.dd-wrt.com/phpBB2/viewtopic.php?t=156013


Title: Re: CGminer on DD-WRT
Post by: xiangfu on August 24, 2012, 07:17:23 AM
I have tried connect 90 Icarus to one little 703n. the OpenWrt can recognize 70 of them. and the system became very very slow.

I can sure that connect 41 Icarus to one little 703n is works just fine. should be same as BFL. since they are all using usb-serial.

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

CGminer hardly uses any processor time. Really tiny.


Title: Re: CGminer v2.7.1 on Broadcom based DD-WRT / OpenWRT
Post by: GoldZuGeld on August 24, 2012, 11:54:55 AM
Need to install optware (OTRW)
Links to do that are in the readme.

uhh, did not finish the whole instruction.


http://wd.mirmana.com/prep_optware seems to be down :(
Is otrw2 an alternative?


Title: Re: CGminer v2.7.1 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on August 24, 2012, 04:25:28 PM
Need to install optware (OTRW)
Links to do that are in the readme.

uhh, did not finish the whole instruction.


http://wd.mirmana.com/prep_optware seems to be down :(
Is otrw2 an alternative?

otrw2 should work just fine.
I haven't done it, so I can't give instructions. Let me know how it goes.


Title: Re: CGminer v2.7.1 on Broadcom based DD-WRT / OpenWRT
Post by: GoldZuGeld on August 24, 2012, 05:35:35 PM
Need to install optware (OTRW)
Links to do that are in the readme.

uhh, did not finish the whole instruction.


http://wd.mirmana.com/prep_optware seems to be down :(
Is otrw2 an alternative?

otrw2 should work just fine.
I haven't done it, so I can't give instructions. Let me know how it goes.

i'll try.

what do you mean with
Quote
For ztex, copy libusb to    /opt/lib                      rename the original

what is the original file? there is only libusb-0.1.so.4 , libusb.so and libusb-0.1.so.4.4.4



Title: Re: CGminer v2.7.1 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on August 24, 2012, 05:39:38 PM
The original libusb-1.0 in /opt/lib (if there is one) that would be overwritten by the files you're copying (just in case you need to go back)


Title: Re: CGminer v2.7.1 on Broadcom based DD-WRT / OpenWRT
Post by: GoldZuGeld on August 24, 2012, 06:29:33 PM
ok thanks for this explanation.

now i have another problem:
serialmodules is started but there is no folder tts in /dev/usb

there are 2 usb sticks connected over a hub


Title: Re: CGminer v2.7.1 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on August 24, 2012, 06:34:29 PM
If you are ztex (which I assume from needing the libusb) you won't even need to run serialmodule; it doesn't use a serial port.

I don't have ztex so I can't tell you how to get it working.


Title: Re: CGminer v2.7.1 on Broadcom based DD-WRT / OpenWRT
Post by: GoldZuGeld on August 24, 2012, 08:35:12 PM
ok, my ztex quad isn't running after following your readme.
is it possible to check that the ztex board is recognized by dd-wrt?


Title: Re: CGminer v2.7.1 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on August 24, 2012, 08:44:01 PM
I really don't know much about the ztex.
As far as I know it just needs libusb v1.0, which I downloaded and compiled for dd-wrt.

As I said in the readme and OP, you're on your own...
I can't think of a reason why it shouldn't work, but I don't know how to do it.

Maybe you could get support form the ztex thread?


Title: Re: CGminer v2.7.1 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on August 24, 2012, 08:48:55 PM
it should list when you try out "lsusb".

mine did but i desperately need a low mem version of openwrt or ddwrt for a tplink mr3420 :(


Title: Re: CGminer v2.7.1 on Broadcom based DD-WRT / OpenWRT
Post by: GoldZuGeld on August 24, 2012, 08:56:09 PM
lsusb shows this
http://www.abload.de/thumb/router21akg4.png (http://www.abload.de/image.php?img=router21akg4.png)


Title: Re: CGminer v2.7.1 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on August 24, 2012, 09:01:27 PM
221a:0100 is the ztex device, so cgminer/libusb is not detecting it.

What log output does cgminer give?

should get something like this:

 [2012-07-02 23:39:57] Not a ZTEX device 8564:1000
 [2012-07-02 23:39:57] Not a ZTEX device 0409:005a
 [2012-07-02 23:39:57] Not a ZTEX device 0409:005a
 [2012-07-02 23:39:57] Not a ZTEX device 0000:0000
 [2012-07-02 23:39:57] Not a ZTEX device 0000:0000
 

but if you get
 [2012-07-02 23:39:57] Not a ZTEX device 221a:0100

then something weird is going on.


Title: Re: CGminer v2.7.1 on Broadcom based DD-WRT / OpenWRT
Post by: GoldZuGeld on August 24, 2012, 09:24:16 PM
221a:0100 is the ztex device, so cgminer/libusb is not detecting it.

What log output does cgminer give?

should get something like this:

 [2012-07-02 23:39:57] Not a ZTEX device 8564:1000
 [2012-07-02 23:39:57] Not a ZTEX device 0409:005a
 [2012-07-02 23:39:57] Not a ZTEX device 0409:005a
 [2012-07-02 23:39:57] Not a ZTEX device 0000:0000
 [2012-07-02 23:39:57] Not a ZTEX device 0000:0000
 

but if you get
 [2012-07-02 23:39:57] Not a ZTEX device 221a:0100

then something weird is going on.

maybe it's a bit late for me but i have only do this:
tail -f /opt/var/log/YYYYMMDD-HHMMSS.<PID>.log

replacing YYYYMMDD-HHMMSS and whats with the PID?


Title: Re: CGminer v2.7.1 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on August 24, 2012, 09:29:49 PM
PID is process ID

just look in /opt/var/log directory for the lastest log file.


Title: Re: CGminer v2.7.1 on Broadcom based DD-WRT / OpenWRT
Post by: GoldZuGeld on August 24, 2012, 09:55:40 PM
ok, not bad, i thnk...

Quote
[2012-08-24 13:07:36] LONGPOLL from pool 1 detected new block
 [2012-08-24 13:20:12] LONGPOLL from pool 1 detected new block
 [2012-08-24 13:25:12] LONGPOLL from pool 1 detected new block
 [2012-08-24 13:30:44] LONGPOLL from pool 1 detected new block
 [2012-08-24 13:30:47] LONGPOLL from pool 1 requested work restart
 [2012-08-24 13:31:03] LONGPOLL from pool 1 detected new block
 [2012-08-24 13:31:04] LONGPOLL from pool 1 requested work restart
 [2012-08-24 13:35:09] LONGPOLL from pool 1 detected new block
 [2012-08-24 13:35:11] LONGPOLL from pool 1 requested work restart
 [2012-08-24 13:35:13] LONGPOLL from pool 1 requested work restart
 [2012-08-24 13:45:30] LONGPOLL from pool 1 detected new block

but still doest't work. Must see the full log.


Title: Re: CGminer v2.7.1 on Broadcom based DD-WRT / OpenWRT
Post by: GoldZuGeld on August 24, 2012, 10:15:13 PM
Quote
/dev/usb/tts/: No such file or directory
 [2012-08-24 23:07:16] ZTEX 04A36DEC05-1: failed to read firmware 'ztex_ufm1_15y1.bit'
 [2012-08-24 23:07:16] ZTEX 04A36DEC05-1: failed to read firmware 'ztex_ufm1_15y1.bit'

thats what screen -r says

latest log
Quote
root@Linksys E3200:/opt/var/log# tail -f /opt/var/log/20120825-002047.3158.log
 [2012-08-25 00:20:48] Loaded configuration file /opt/etc/cgminer.conf
 [2012-08-25 00:20:48] Found 1 ztex board
 [2012-08-25 00:20:48] ZTEX 04A36DEC05-4: Found Ztex (fpga count = 4) , mark as 3
 [2012-08-25 00:20:48] Probing for an alive pool
 [2012-08-25 00:20:48] Pool 0 slow/down or URL or credentials invalid
 [2012-08-25 00:20:48] Unable to get work from pool 0 http://de.btcguild.com:8332
 [2012-08-25 00:20:48] ZTEX 04A36DEC05-1: failed to read firmware 'ztex_ufm1_15y1.bit'
 [2012-08-25 00:20:48] ZTEX 04A36DEC05-1: failed to read firmware 'ztex_ufm1_15y1.bit'
 [2012-08-25 00:20:48] Long-polling activated for http://pit.deepbit.net:8332/listenChannel
 [2012-08-25 00:22:48] LONGPOLL from pool 1 detected new block

ok something wrong in my credentials for the first pool. but second pool does'nt work, too.


Title: Re: CGminer v2.7.1 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on August 24, 2012, 10:38:23 PM
Looks like there's something wrong with the bitstream. You copied it over? It's in the right place? Is it readable (chmod +r)
I think it should be in /opt/bin/bitstreams, but maybe it should be somewhere else.


Title: Re: CGminer v2.7.1 on Broadcom based DD-WRT / OpenWRT
Post by: GoldZuGeld on August 24, 2012, 10:50:03 PM
whoops. Linux newbie fail  ::)

seems that i've renamed the bitstream file to bitstreams instead to copy it into a bitstreams folder.

I think this is a mistake or something is missing in your readme:

Copy the bitstreams to      /opt/bin/bitstreams

you have to create the bitstreams folder first an then there is a / after bitstreams missing, i think.

EDIT: OMG! It works! Thank you so much! In the next few days, I try to add some information for ztex boards for your readme.


Title: Re: CGminer v2.7.1 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on August 24, 2012, 10:59:38 PM
whoops. Linux newbie fail  ::)

seems that i've renamed the bitstream file to bitstreams instead to copy it into a bitstreams folder.

I think this is a mistake or something is missing in your readme:

Copy the bitstreams to      /opt/bin/bitstreams

you have to create the bitstreams folder first an then there is a / after bitstreams missing, i think.

EDIT: OMG! It works! Thank you so much! In the next few days, I try to add some information for ztex boards for your readme.

Excellent, well done!
You're the first known ztex on dd-wrt :)

So I'll add an instruction to mkdir first

(but yes, the intention was top copy the files to the directory ;) )


Title: Re: CGminer v2.7.1 on Broadcom based DD-WRT / OpenWRT
Post by: paraipan on August 24, 2012, 11:45:06 PM
whoops. Linux newbie fail  ::)

seems that i've renamed the bitstream file to bitstreams instead to copy it into a bitstreams folder.

I think this is a mistake or something is missing in your readme:

Copy the bitstreams to      /opt/bin/bitstreams

you have to create the bitstreams folder first an then there is a / after bitstreams missing, i think.

EDIT: OMG! It works! Thank you so much! In the next few days, I try to add some information for ztex boards for your readme.

Excellent, well done!
You're the first known ztex on dd-wrt :)

So I'll add an instruction to mkdir first

(but yes, the intention was top copy the files to the directory ;) )

Wow, impressive, I really like this set-up for mining


Title: Re: CGminer v2.7.1 on Broadcom based DD-WRT / OpenWRT
Post by: GoldZuGeld on August 25, 2012, 10:39:18 PM
seems to work nicely.
E3200 + Usb Hub + Ztex Quad + Coolermaster GX 450
runs perfect :)

but hash rate is a bit lower than on my pc. only ~ 740mh/s instead of nearly 900.
Any Ideas?


Title: Re: CGminer v2.7.1 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on August 25, 2012, 10:41:49 PM
it takes time to go up to full speed :)

I have the same problem with the Rpi.

How stable is the setup?


Title: Re: CGminer v2.7.1 on Broadcom based DD-WRT / OpenWRT
Post by: GoldZuGeld on August 25, 2012, 10:51:06 PM
it takes time to go up to full speed :)

I have the same problem with the Rpi.

How stable is the setup?

it runs the whole day today, without problems :) but as i said hash rate a bit lower than on my desktop pc.
I have to build a case for the configuration, then it could run 24/7. Until that it only runs ~12 hours a day.


I'm using a noname usb stick with 1GB storage. are there many reading operations to the stick?
Or maybe the usb hub sucks, because it's a cheap hub.


Title: Re: CGminer v2.7.1 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on August 26, 2012, 09:10:38 AM
why? i run my setup 24/7 for 7 month now; Without casing :D Nothing happened so far :P


Title: Re: CGminer v2.7.1 on Broadcom based DD-WRT / OpenWRT
Post by: GoldZuGeld on August 26, 2012, 10:58:45 AM
just need to find a good place, where the noise is not annoying :D


Title: Re: CGminer v2.7.1 on Broadcom based DD-WRT / OpenWRT
Post by: Zillions on August 27, 2012, 11:17:47 PM
Excuse me while I subscribe to this thread ... I have a feeling once I get my hardware in I'm going to want quick acess to this thread.


Title: Re: CGminer v2.7.1 on Broadcom based DD-WRT / OpenWRT
Post by: GoldZuGeld on August 28, 2012, 04:34:16 PM
otrw2 should work just fine.
I haven't done it, so I can't give instructions. Let me know how it goes.

yeah otrw2 works. I've used this instructions http://www.dd-wrt.com/phpBB2/viewtopic.php?t=156013


Title: Re: CGminer v2.7.1 on Broadcom based DD-WRT / OpenWRT
Post by: Mobius on September 05, 2012, 01:17:24 AM
P_shep,

Will you be releasing an updated version with cgminer 2.7.5?


Title: Re: CGminer v2.7.1 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on September 05, 2012, 04:39:24 PM
Here you go:

https://github.com/downloads/pshep/cgminer/cgminer-2.7.5-mipsel.tar.gz


Title: Re: CGminer v2.7.5 on Broadcom based DD-WRT / OpenWRT
Post by: Mobius on September 05, 2012, 10:20:00 PM
Here you go:

https://github.com/downloads/pshep/cgminer/cgminer-2.7.5-mipsel.tar.gz

Thank you.


Title: Re: CGminer v2.7.5 on Broadcom based DD-WRT / OpenWRT
Post by: rampone on September 09, 2012, 02:01:21 AM
So I had it running today on a 3200. darn, it does no openwrt.
But what I immediately noticed, that the idle time between work was easy noticable (bflsingles led going out for about 100ms to 300 ms. That is a lot actually, as with my athlon x2 250 cpu on ubuntu it is barely the idle time is barely noticable.

I am not into cgminer, but maybe work delivery could be tuned, as it seems like sth is calculated, just the delivery of data should not take much longer on that router. (tuning in meaning: send new already prepared work before checking the result of the work before).

Maybe i have to fire up the 500 mhz celeron laptop, and check the "idle times" there.

I did not let it run for a long time, to see if hashrate is still the same, as i guess it wont be, what idles, (even though not long), does not hash. My guesstimate of hash loss is sth like 5 to 10 %?

Damn, i wanted this to be my solution, love router hacking/openwrt/mesh nets/those little computers ;)

Maybe ask the cgminer guys, what they think of that effect, and if it could be tuned. (asking in irc right now)



Title: Re: CGminer v2.7.5 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on September 09, 2012, 02:53:23 AM
Quote
(bflsingles led going out for about 100ms to 300 ms.)

I certainly don't see that. just a flicker for me. 300ms would be VERY noticeable. In my version of cgminer I run (home_brew in my git) I have timers around all the comms routines. Avg time is around 0.015s, max time 0.024s over the past 2 days with many, MANY throttles (been HOT here).

The best way to check is to compare hash rates between systems over a day or so. Should be consistent.


Title: Re: CGminer v2.7.5 on Broadcom based DD-WRT / OpenWRT
Post by: rampone on September 09, 2012, 02:58:07 AM
so I  got told, that you can check the timings of the bfl via the api, the minimum time is only 0.00003 @e3200 vs 0.00001 @x2 cpu.

that value still does not explain that idle time.

I noticed, that the serial ports are hooked in differently under dd-wrt then under a normal distro (not /dev/ttyUSB -> /dev/usb/tty/0), is that the cause?


Title: Re: CGminer v2.7.5 on Broadcom based DD-WRT / OpenWRT
Post by: rampone on September 09, 2012, 03:05:04 AM
I really am not able to time it, 300 ms could be too much, but it is definitely more noticable than with the "pc".
The api readings also give me faith, that it is caused by sth else.
As the e3200 had to actually have another use, which it can't handle (pptpinternet connection fails), i will probably send it back monday, and try with a tp-link and openwrt again, oh that endian...

But to not be so negative: p-sheps work is really slick with integrated service etc.
http://youtu.be/xxxNnIS2cuQ (http://youtu.be/xxxNnIS2cuQ)

http://youtu.be/PaH2CWPVVZ8 (http://youtu.be/PaH2CWPVVZ8)

maybe my guesstimate with more than 5% idle is a bit high, but you can see the difference.

P_shep is your "blinking" less?




Title: Re: CGminer v2.7.5 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on September 09, 2012, 03:37:31 AM
Definitely an observable difference there. Mine blink slower then your unbuntu there, probably as slow as your e3200. I can say that's less then 100ms though, 100 would be quite clear. Guess this is simply the processing time of the router... not much you can do about that.


Title: Re: CGminer v2.7.5 on Broadcom based DD-WRT / OpenWRT
Post by: rampone on September 09, 2012, 03:49:35 AM
the funny thing is the min time for idling reported by cgminer via the api is way less. thats why i think, it could be sth else. maybe i test it with my celeron 500 usb 1.1 notebook setup sometime, see, if its blinking the same like with a fast cpu, or does the blinking like with the router. but not today.


For anyone with just a few bfls and already owning a linksys/dd-wrt compatible mipsel router and no server running 24/7 this is definitely still the way to go.





Title: Re: CGminer v2.7.5 on Broadcom based DD-WRT / OpenWRT
Post by: Mobius on September 09, 2012, 04:31:18 AM
Quote
(bflsingles led going out for about 100ms to 300 ms.)

I certainly don't see that. just a flicker for me. 300ms would be VERY noticeable. In my version of cgminer I run (home_brew in my git) I have timers around all the comms routines. Avg time is around 0.015s, max time 0.024s over the past 2 days with many, MANY throttles (been HOT here).

The best way to check is to compare hash rates between systems over a day or so. Should be consistent.

Can you point me to a link to be able to setup my workstation to compile the cgminer git code for dd-wrt


Title: Re: CGminer v2.7.5 on Broadcom based DD-WRT / OpenWRT
Post by: rampone on September 09, 2012, 05:11:33 AM
I also got told, that bfgminer has more fpga optimized code than cgminer right now? maybe run a compile of that one, should "behave" the same with api, config etc.? At least worth a try, im going to sleep now though.


Title: Re: CGminer v2.7.5 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on September 09, 2012, 06:43:01 PM

Can you point me to a link to be able to setup my workstation to compile the cgminer git code for dd-wrt

At the bottom of the readme is a link to the compiler, and the option I built with. There's no guide on how to do it... there's not enough time in the world to write one! It took me a few weeks to get it all working and this is part what I do for a living.


Title: Re: CGminer v2.7.5 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on September 09, 2012, 06:44:57 PM
I also got told, that bfgminer has more fpga optimized code than cgminer right now? maybe run a compile of that one, should "behave" the same with api, config etc.? At least worth a try, im going to sleep now though.

I've compiled bfgminer and will run that for a couple of days. see what the results are. so far after 15hrs, my U is about 0.5 lower than cgminer, but still early to say.


Title: Re: CGminer v2.7.5 on Broadcom based DD-WRT / OpenWRT
Post by: efiniti on September 12, 2012, 10:25:52 PM
can someone explain what the setup is?  i don't understand why you'd want to run cgminer on a router.  you're not trying to mine with the router's proc right?..


Title: Re: CGminer v2.7.5 on Broadcom based DD-WRT / OpenWRT
Post by: irritant on September 12, 2012, 10:43:14 PM
can someone explain what the setup is?  i don't understand why you'd want to run cgminer on a router.  you're not trying to mine with the router's proc right?..

no, you mine on the FPGA attached to the router via USB, attached to the router instead of a pc because a router uses very little electricity


Title: Re: CGminer v2.7.5 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on September 13, 2012, 03:38:12 PM
Over 2 days:

CGminer:
Code:
[2012-09-08 20:47:05] Started at [2012-09-06 13:11:23]
 [2012-09-08 20:47:05] Runtime: 55 hrs : 35 mins : 41 secs
 [2012-09-08 20:47:05] Average hashrate: 4961.5 Megahash/s
 [2012-09-08 20:47:05] Solved blocks: 0
 [2012-09-08 20:47:05] Queued work requests: 25805
 [2012-09-08 20:47:05] Share submissions: 231002
 [2012-09-08 20:47:05] Accepted shares: 230735
 [2012-09-08 20:47:05] Rejected shares: 267
 [2012-09-08 20:47:05] Reject ratio: 0.1%
 [2012-09-08 20:47:05] Hardware errors: 0
 [2012-09-08 20:47:05] Efficiency (accepted / queued): 894%
 [2012-09-08 20:47:05] Utility (accepted shares / min): 69.17/min
 [2012-09-08 20:47:05] Work Utility (diff1 shares solved / min): 69.25/min
 [2012-09-08 20:47:05] Discarded work due to new blocks: 1187
 [2012-09-08 20:47:05] Stale submissions discarded due to new blocks: 7
 [2012-09-08 20:47:05] Unable to get work from server occasions: 379
 [2012-09-08 20:47:05] Work items generated locally: 231185
 [2012-09-08 20:47:05] Submitting work remotely delay occasions: 13
 [2012-09-08 20:47:05] New blocks detected on network: 521

BFGminer:
Code:
[2012-09-13 08:31:11] Started at [2012-09-10 20:36:08]
 [2012-09-13 08:31:11] Runtime: 59 hrs : 55 mins : 3 secs
 [2012-09-13 08:31:11] Average hashrate: 4917.5 Megahash/s
 [2012-09-13 08:31:11] Solved blocks: 0
 [2012-09-13 08:31:11] Queued work requests: 54000
 [2012-09-13 08:31:11] Share submissions: 247619
 [2012-09-13 08:31:11] Accepted shares: 247177
 [2012-09-13 08:31:11] Rejected shares: 442
 [2012-09-13 08:31:11] Reject ratio: 0.2%
 [2012-09-13 08:31:11] Hardware errors: 0
 [2012-09-13 08:31:11] Efficiency (accepted / queued): 458%
 [2012-09-13 08:31:11] Utility (accepted shares / min): 68.76/min
 [2012-09-13 08:31:11] Discarded work due to new blocks: 29545
 [2012-09-13 08:31:11] Stale submissions discarded due to new blocks: 16
 [2012-09-13 08:31:11] Unable to get work from server occasions: 359
 [2012-09-13 08:31:11] Work items generated locally: 252177
 [2012-09-13 08:31:11] Submitting work remotely delay occasions: 25
 [2012-09-13 08:31:11] New blocks detected on network: 523

CGminer has it by a whisker.


Title: Re: CGminer v2.7.5 on Broadcom based DD-WRT / OpenWRT
Post by: Luke-Jr on September 13, 2012, 06:16:22 PM
CGminer has it by a whisker.
2 days is nowhere near long enough for that amount of precision.


Title: Re: CGminer v2.7.5 on Broadcom based DD-WRT / OpenWRT
Post by: -ck on September 25, 2012, 12:41:39 PM
Looks good to me. Clearly any claim that jesusminer is better is pure fud.


Title: Re: CGminer v2.7.5 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on September 25, 2012, 05:40:25 PM
Upped to 2.7.6:

https://github.com/downloads/pshep/cgminer/cgminer-2.7.6-mipsel.tar.gz


Title: Re: CGminer v2.7.6 on Broadcom based DD-WRT / OpenWRT
Post by: TCPC on September 26, 2012, 04:09:26 AM
This is a great idea.  Thanks for working on this!


Title: Re: CGminer v2.8.1 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on October 08, 2012, 05:28:39 PM
Upped to 2.8.1

https://github.com/downloads/pshep/cgminer/cgminer-2.8.1-mipsel.tar.gz


Title: Re: CGminer v2.8.1 on Broadcom based DD-WRT / OpenWRT
Post by: Mobius on October 08, 2012, 05:29:37 PM
coolness and a little something something


Title: Re: CGminer v2.8.1 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on October 08, 2012, 06:43:07 PM
Why thank you very much indeed :) 8)


Title: Re: CGminer v2.8.1 on Broadcom based DD-WRT / OpenWRT
Post by: dlasher on October 09, 2012, 12:08:28 AM

P_Shep, thanks for doing this!

What are you doing for a compile env? are you actually compiling on your openWRT box, or did you build an Env on a i386/x64 machine? If the later, any links/guidance to doing the same?


Title: Re: CGminer v2.8.1 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on October 09, 2012, 02:02:21 AM

P_Shep, thanks for doing this!

What are you doing for a compile env? are you actually compiling on your openWRT box, or did you build an Env on a i386/x64 machine? If the later, any links/guidance to doing the same?


Cross-compiling. Links to dev env is at the bottom of the readme.


Title: Re: CGminer v2.8.1 on Broadcom based DD-WRT / OpenWRT
Post by: dlasher on October 09, 2012, 02:30:01 AM

Thanks, will read up.. Managed to brick a wrt610n trying to get openWRT running.. time for jtag.


Title: Re: CGminer v2.8.3 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on October 12, 2012, 06:49:58 PM
Upped to 2.8.3

https://github.com/downloads/pshep/cgminer/cgminer-2.8.3-mipsel.tar.gz


Title: Re: CGminer v2.8.3 on Broadcom based DD-WRT / OpenWRT
Post by: Valle on October 13, 2012, 05:13:05 AM
I see strange hashrate on pools after update to this version. I have 2 BFL single, so usually I have ~1650 mh/s, but with this update btc guild says my average speed is only ~1200 mh/s, so I switched to slush's pool. Here I still have adequate payout (about 0.5 btc/day) but reported average hashrate is only 1066 mh/s. I suspect it's because of some side effect of stratum protocol. Do you know why it is so?

(cgminer reports normal hashrate for slush, but reduced hashrate for btc guild :-/ That's odd.)

Upped to 2.8.3

https://github.com/downloads/pshep/cgminer/cgminer-2.8.3-mipsel.tar.gz


Title: Re: CGminer v2.8.3 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on October 13, 2012, 01:28:02 PM
Tried it on a regular PC? Maybe you'll see the same thing?


Title: Re: CGminer v2.7.5 on Broadcom based DD-WRT / OpenWRT
Post by: cypherdoc on October 13, 2012, 07:56:10 PM
can someone explain what the setup is?  i don't understand why you'd want to run cgminer on a router.  you're not trying to mine with the router's proc right?..

no, you mine on the FPGA attached to the router via USB, attached to the router instead of a pc because a router uses very little electricity

i'm new to this concept so forgive me. 

but you use the pc to monitor the routers results right?  how much more electricity does the pc use over the router? 


Title: Re: CGminer v2.8.3 on Broadcom based DD-WRT / OpenWRT
Post by: Mobius on October 13, 2012, 07:59:07 PM
can someone explain what the setup is?  i don't understand why you'd want to run cgminer on a router.  you're not trying to mine with the router's proc right?..

no, you mine on the FPGA attached to the router via USB, attached to the router instead of a pc because a router uses very little electricity

i'm new to this concept so forgive me. 

but you use the pc to monitor the routers results right?  how much more electricity does the pc use over the router? 

You can when you want to.
ASUS RT-16 uses a max of 8watts vs a pc starting at 200 watts


Title: Re: CGminer v2.8.3 on Broadcom based DD-WRT / OpenWRT
Post by: Valle on October 14, 2012, 12:59:28 AM
Tried it on a regular PC? Maybe you'll see the same thing?

Now it shows usual average speed at slush. I don't know what is was, I guess a temporary glitch.


Title: Re: CGminer v2.7.5 on Broadcom based DD-WRT / OpenWRT
Post by: Valle on October 14, 2012, 01:07:28 AM
can someone explain what the setup is?  i don't understand why you'd want to run cgminer on a router.  you're not trying to mine with the router's proc right?..

no, you mine on the FPGA attached to the router via USB, attached to the router instead of a pc because a router uses very little electricity

i'm new to this concept so forgive me. 

but you use the pc to monitor the routers results right?  how much more electricity does the pc use over the router? 

I see results on mine pool :-) sometimes I monitor it using cgminer api. So router acts as an usual pc and it runs cgminer. I put this router and 2 bfls to an usual middletower so it looks nice and almost wireless (it's only powercord outside) :-)

I'm not sure how much power it takes, probably ~10 Wt for the router and 160 for bfls all these powered by bronse-rated psu.


Title: Re: CGminer v2.8.3 on Broadcom based DD-WRT / OpenWRT
Post by: btharper on October 14, 2012, 04:38:36 AM
Can anyone recommend hardware for a similar setup for this? I don't necessarily need something with wifi or anything fancy. Just ethernet in one end and USB on the other that reboots quickly after power outage, doesn't require much maintenance after being setup, and preferably something nice enough to run a small webserver on it.


Title: Re: CGminer v2.8.3 on Broadcom based DD-WRT / OpenWRT
Post by: Valle on October 15, 2012, 05:25:14 AM
Can anyone recommend hardware for a similar setup for this? I don't necessarily need something with wifi or anything fancy. Just ethernet in one end and USB on the other that reboots quickly after power outage, doesn't require much maintenance after being setup, and preferably something nice enough to run a small webserver on it.

I use e3000 - it is fancy but it's the recommended way. However it may break on power loss - I experienced optware's system file partition crash on force switch off.


Title: Re: CGminer v2.8.3 on Broadcom based DD-WRT / OpenWRT
Post by: btharper on October 15, 2012, 11:49:44 AM
Can anyone recommend hardware for a similar setup for this? I don't necessarily need something with wifi or anything fancy. Just ethernet in one end and USB on the other that reboots quickly after power outage, doesn't require much maintenance after being setup, and preferably something nice enough to run a small webserver on it.

I use e3000 - it is fancy but it's the recommended way. However it may break on power loss - I experienced optware's system file partition crash on force switch off.
The shell at least looks nice, and for an $80 router I'd hope. I've actually started looking more into raspberry pi, they're cheap ($35 for the relevant version with networking) and can hold two devices without even worrying about a hub. And just a decent looking small linux base. Does anyone have any good or bad experience trying to use a raspberry pi for mining controller?


Title: Re: CGminer v2.8.3 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on October 15, 2012, 04:46:10 PM
The shell at least looks nice, and for an $80 router I'd hope. I've actually started looking more into raspberry pi, they're cheap ($35 for the relevant version with networking) and can hold two devices without even worrying about a hub. And just a decent looking small linux base. Does anyone have any good or bad experience trying to use a raspberry pi for mining controller?

There are dd-wrt compatible routers which don't have wi-fi, which you could use.
R-pi can also be used, some have, but that's another thread...

You can also pick up a refurbished e3000 for $50 ish from Newegg.


Title: Re: CGminer v2.8.3 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on October 15, 2012, 09:59:04 PM
tried the pi but somehow thats not a sufficient miner base .....

keeps on failing


Title: Re: CGminer v2.8.4 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on October 18, 2012, 10:36:17 PM
Upped to 2.8.4


Title: Re: CGminer v2.8.4 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on October 18, 2012, 10:40:28 PM
So which router should I take for my ztex boards?

I have a tplink mr3420 but I'm unable to get it running (comiling etc)


Is there someone that has a running setup for a router to connect ztex boards to it?


Title: Re: CGminer v2.8.4 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on October 18, 2012, 10:59:20 PM
Someone has got a DD-WRT router working with Ztex.


As for the tplink... will not work with this here binary.


Title: Re: CGminer v2.8.4 on Broadcom based DD-WRT / OpenWRT
Post by: hashalfahalve on October 25, 2012, 02:13:02 AM
Works beautifully, thanks so much for doing this!


Title: Re: CGminer v2.8.4 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on October 28, 2012, 11:25:20 AM
i did everything that you described in your tutorial .... is there an easy way to check if everything is ok with cgminer?

How do i know if cgminer is working right ?  

does someone know or have windows version of the program called anubis ..... or at least a tut how to install it on windows?


Title: Re: CGminer v2.8.4 on Broadcom based DD-WRT / OpenWRT
Post by: Mobius on October 28, 2012, 11:29:13 AM
i did everything that you described in your tutorial .... is there an easy way to check if everything is ok with cgminer?

How do i know if cgminer is working right ?  

does someone know or have windows version of the program called anubis ..... or at least a tut how to install it on windows?
enter
Code:
screen -r
at the prompt on the router and/or check to see if the pool is showing shares

and when your finished watching
enter
Code:
CTRL-a
d
to detach


Title: Re: CGminer v2.8.4 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on October 28, 2012, 11:49:46 AM
Code:
root@DD-WRT-FPGA:/# screen -r
There are several suitable screens on:
17077.miner (Detached)
13962.miner (Detached)
12940.miner (Detached)
Type "screen [-d] -r [pid.]tty.host" to resume one of them.
root@DD-WRT-FPGA:/#

that gives me this ?


Title: Re: CGminer v2.8.4 on Broadcom based DD-WRT / OpenWRT
Post by: irritant on October 28, 2012, 11:58:32 AM
try

screen -r 17077
screen -r 13962
screen -r 12940

or something


Title: Re: CGminer v2.8.4 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on October 28, 2012, 12:18:44 PM
Quote
root@DD-WRT-FPGA:/# screen -r 17077

/dev/usb/tts/: No such file or directory
/dev/usb/tts/: No such file or directory
/dev/usb/tts/: No such file or directory
/dev/usb/tts/: No such file or directory
/dev/usb/tts/: No such file or directory
/dev/usb/tts/: No such file or directory
/dev/usb/tts/: No such file or directory
/dev/usb/tts/: No such file or directory
/dev/usb/tts/: No such file or directory
/dev/usb/tts/: No such file or directory
/dev/usb/tts/: No such file or directory
/dev/usb/tts/: No such file or directory
/dev/usb/tts/: No such file or directory
/dev/usb/tts/: No such file or directory
/dev/usb/tts/: No such file or directory
/dev/usb/tts/: No such file or directory
/dev/usb/tts/: No such file or directory
/dev/usb/tts/: No such file or directory
/dev/usb/tts/: No such file or directory
/dev/usb/tts/: No such file or directory
/dev/usb/tts/: No such file or directory
/dev/usb/tts/: No such file or directory
/dev/usb/tts/: No such file or directory
/dev/usb/tts/: No such file or directory
/dev/usb/tts/: No such file or directory
/dev/usb/tts/: No such file or directory
/dev/usb/tts/: No such file or directory
/dev/usb/tts/: No such file or directory
/dev/usb/tts/: No such file or directory
/dev/usb/tts/: No such file or directory
/dev/usb/tts/: No such file or directory
/dev/usb/tts/: No such file or directory
/dev/usb/tts/: No such file or directory
/dev/usb/tts/: No such file or directory
/dev/usb/tts/: No such file or directory
/dev/usb/tts/: No such file or directory
cc/dev/usb/tts/: No such file or directory

that gives me this output ...


So i have to install anubis to see if its working?


Title: Re: CGminer v2.8.4 on Broadcom based DD-WRT / OpenWRT
Post by: Mobius on October 28, 2012, 01:11:20 PM
reboot it first, you should only have one instant of screen running


Title: Re: CGminer v2.8.4 on Broadcom based DD-WRT / OpenWRT
Post by: irritant on October 28, 2012, 02:14:59 PM
try

screen -r 17077
screen -r 13962
screen -r 12940

or something

screen -r 17077.miner
screen -r 13962.miner
screen -r 12940.miner


Title: Re: CGminer v2.8.4 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on October 28, 2012, 06:27:52 PM
after the reboot when i type screen -r

Code:
dev/usb/tts/: No such file or directory

it stays there dooing nothing untill i ctrl +c it ?

Service shows cgminer running (green)


Title: Re: CGminer v2.8.4 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on October 28, 2012, 06:49:02 PM
Sounds like the serial drivers aren't working/installed. Basically It can't find the devices for whatever reason.


Title: Re: CGminer v2.8.4 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on October 28, 2012, 06:57:00 PM
im a ztex user, do i need them ?

it's the seriealsmodules part ?


Title: Re: CGminer v2.8.4 on Broadcom based DD-WRT / OpenWRT
Post by: Mobius on October 28, 2012, 06:59:24 PM
i did everything that you described in your tutorial .... is there an easy way to check if everything is ok with cgminer?


Remember the bitstreams portion also.


Title: Re: CGminer v2.8.4 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on October 28, 2012, 07:12:22 PM
they are installed and running. service shows them green:

http://www.abload.de/thumb/bildschirmfoto2012-10mrqu8.png (http://www.abload.de/image.php?img=bildschirmfoto2012-10mrqu8.png)

What did go wrong?


Title: Re: CGminer v2.8.4 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on October 28, 2012, 07:17:32 PM
Ah, ztex doesn't need the serial modules, so you can stop that service.

You can comment out the bit in cgminer.sh which does the search:


Code:
#!/bin/sh

unset LD_LIBRARY_PATH
unset LD_PRELOAD

prefix=/opt
CONFDIR=${prefix}/etc
CONF=${CONFDIR}/cgminer.conf
LOGDIR=${prefix}/var/log
TTYNAME=*
TTYDIR=/dev/usb/tts/

while true ; do
 # DEVS=`find ${TTYDIR} -type c -name "${TTYNAME}"  | sed 's/^/-S/' |  sed ':a;N;$!ba;s/\n/ /g'`
  NOW="`date +%Y%m%d-%H%M%S`"
  LOGFILE=${LOGDIR}/${NOW}.$$.log
  ${prefix}/bin/cgminer -c ${CONF} --api-listen ${DEVS} -T -q 2>${LOGFILE}
  sleep 30
done


Title: Re: CGminer v2.8.4 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on October 28, 2012, 08:39:00 PM
Code:
root@DD-WRT-FPGA:~# service
Service:                 named (/opt/etc/init.d/S09named) disabled
Service:                xinetd (/opt/etc/init.d/S10xinetd)
Service:             automount (/opt/etc/init.d/S35automount)
Service:          reloc_syslog (/opt/etc/init.d/S40relocate_syslog) disabled
Service:             pixelserv (/opt/etc/init.d/S45pixelserv) disabled
Service:         serialmodules (/opt/etc/init.d/S45serialmodules) disabled
Service:          soundmodules (/opt/etc/init.d/S45soundmodules)
Service:               portmap (/opt/etc/init.d/S55portmap)
Service:                 unfsd (/opt/etc/init.d/S56unfsd)
Service:                zabbix (/opt/etc/init.d/S70zabbix) disabled
Service:              lighttpd (/opt/etc/init.d/S80lighttpd) disabled
Service:                 pound (/opt/etc/init.d/S80pound) disabled
Service:                 samba (/opt/etc/init.d/S80samba)
Service:             vlighttpd (/opt/etc/init.d/S80vlighttpd) disabled
Service:                  kaid (/opt/etc/init.d/S85kaid)
Service:              asterisk (/opt/etc/init.d/S90asterisk) disabled
Service:                nzbget (/opt/etc/init.d/S90nzbget) disabled
Service:          transmission (/opt/etc/init.d/S90transmission) disabled
Service:             fixtables (/opt/etc/init.d/S94fixtables)
Service:            stophammer (/opt/etc/init.d/S94stophammer)
Service:             asiablock (/opt/etc/init.d/S95asiablock) disabled
Service:            birmablock (/opt/etc/init.d/S95birmablock) disabled
Service:                twonky (/opt/etc/init.d/S95twonky) disabled
Service:          watchprinter (/opt/etc/init.d/S95watchprinter)
Service:            worldblock (/opt/etc/init.d/S95worldblock) disabled
Service:               siproxd (/opt/etc/init.d/S98siproxd) disabled
Service:              stophack (/opt/etc/init.d/S98stophack)
Service:               cgminer (/opt/etc/init.d/S99cgminer) disabled
root@DD-WRT-FPGA:~# service cgminer on
Enable service "cgminer" (/opt/etc/init.d/S99cgminer)
service: Enabled service: "cgminer" (/opt/etc/init.d/S99cgminer)
root@DD-WRT-FPGA:~# service
Service:                 named (/opt/etc/init.d/S09named) disabled
Service:                xinetd (/opt/etc/init.d/S10xinetd)
Service:             automount (/opt/etc/init.d/S35automount)
Service:          reloc_syslog (/opt/etc/init.d/S40relocate_syslog) disabled
Service:             pixelserv (/opt/etc/init.d/S45pixelserv) disabled
Service:         serialmodules (/opt/etc/init.d/S45serialmodules) disabled
Service:          soundmodules (/opt/etc/init.d/S45soundmodules)
Service:               portmap (/opt/etc/init.d/S55portmap)
Service:                 unfsd (/opt/etc/init.d/S56unfsd)
Service:                zabbix (/opt/etc/init.d/S70zabbix) disabled
Service:              lighttpd (/opt/etc/init.d/S80lighttpd) disabled
Service:                 pound (/opt/etc/init.d/S80pound) disabled
Service:                 samba (/opt/etc/init.d/S80samba)
Service:             vlighttpd (/opt/etc/init.d/S80vlighttpd) disabled
Service:                  kaid (/opt/etc/init.d/S85kaid)
Service:              asterisk (/opt/etc/init.d/S90asterisk) disabled
Service:                nzbget (/opt/etc/init.d/S90nzbget) disabled
Service:          transmission (/opt/etc/init.d/S90transmission) disabled
Service:             fixtables (/opt/etc/init.d/S94fixtables)
Service:            stophammer (/opt/etc/init.d/S94stophammer)
Service:             asiablock (/opt/etc/init.d/S95asiablock) disabled
Service:            birmablock (/opt/etc/init.d/S95birmablock) disabled
Service:                twonky (/opt/etc/init.d/S95twonky) disabled
Service:          watchprinter (/opt/etc/init.d/S95watchprinter)
Service:            worldblock (/opt/etc/init.d/S95worldblock) disabled
Service:               siproxd (/opt/etc/init.d/S98siproxd) disabled
Service:              stophack (/opt/etc/init.d/S98stophack)
Service:               cgminer (/opt/etc/init.d/S99cgminer)
root@DD-WRT-FPGA:~# service cgminer start
Start service "cgminer" (/opt/etc/init.d/S99cgminer)
service: Start service: "cgminer" (/opt/etc/init.d/S99cgminer)
S99cgminer: Starting cgminer:
root@DD-WRT-FPGA:~# screen -r                                                                                                                                             
There are several suitable screens on:
10586.miner (Detached)
6640.miner (Detached)
4001.pts-0.DD-WRT-FPGA (Detached)
3993.miner (Attached)
Type "screen [-d] -r [pid.]tty.host" to resume one of them.
root@DD-WRT-FPGA:~#


did exactly twice bit im always getting this


Title: Re: CGminer v2.8.4 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on October 29, 2012, 03:04:21 AM
I have no idea why you have three instances running.
Can you try connecting to each of them in turn with screen.

And work out how to disable two instances...

This is why I have the big warning at the top of the readme... it's not trival!


Title: Re: CGminer v2.8.6 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on October 29, 2012, 04:26:28 AM
Upped to 2.8.6


Title: Re: CGminer v2.9.1 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on November 08, 2012, 02:51:08 AM
Upped to 2.9.1

https://github.com/downloads/pshep/cgminer/cgminer-2.9.1-mipsel.tar.gz


Title: Re: CGminer v2.9.1 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on December 03, 2012, 04:35:46 PM
2.9.6


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on December 13, 2012, 10:00:10 PM
Github have been gits and stopped the file hosting, so I've signed up for drop box and put the file here:

https://www.dropbox.com/s/ux31ggupvd4u9y8/cgminer-2.10.0-mipsel.tar.gz

(hopefully it's shared)


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: irritant on December 14, 2012, 12:19:30 PM
I don't know if this is the right place to ask this, but has anyone tried to compile the stratum proxy for dd-wrt?

As ckolivas said, there's no compilation involved. Please follow instructions from https://github.com/slush0/stratum-mining-proxy , it should work even on dd-wrt (it requires only python 2.6/2.7).

Sorry for OT.


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: irritant on January 10, 2013, 05:33:58 AM
will this work with BFL Jalapenos?   (with new version of cgminer compiled for wrt?)


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on January 10, 2013, 12:06:54 PM
So you have one already?

Seriously .. Who knows what will work with those unicorn blood powered magical thingies when (if) they are released?

Btt:

I'll try the new version. Do I need to do al the Ddwrt stuff over again?


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on February 17, 2013, 10:34:20 AM
Just tried it again and I'm still unable to do it.

Code:
root@DD-WRT-FPGA:~# service
Service:                 named (/opt/etc/init.d/S09named) disabled
Service:                xinetd (/opt/etc/init.d/S10xinetd)
Service:             automount (/opt/etc/init.d/S35automount)
Service:          reloc_syslog (/opt/etc/init.d/S40relocate_syslog) disabled
Service:             pixelserv (/opt/etc/init.d/S45pixelserv) disabled
Service:         serialmodules (/opt/etc/init.d/S45serialmodules) disabled
Service:          soundmodules (/opt/etc/init.d/S45soundmodules)
Service:               portmap (/opt/etc/init.d/S55portmap)
Service:                 unfsd (/opt/etc/init.d/S56unfsd)
Service:                zabbix (/opt/etc/init.d/S70zabbix) disabled
Service:              lighttpd (/opt/etc/init.d/S80lighttpd) disabled
Service:                 pound (/opt/etc/init.d/S80pound) disabled
Service:                 samba (/opt/etc/init.d/S80samba)
Service:             vlighttpd (/opt/etc/init.d/S80vlighttpd) disabled
Service:                  kaid (/opt/etc/init.d/S85kaid)
Service:              asterisk (/opt/etc/init.d/S90asterisk) disabled
Service:                nzbget (/opt/etc/init.d/S90nzbget) disabled
Service:          transmission (/opt/etc/init.d/S90transmission) disabled
Service:             fixtables (/opt/etc/init.d/S94fixtables)
Service:            stophammer (/opt/etc/init.d/S94stophammer)
Service:             asiablock (/opt/etc/init.d/S95asiablock) disabled
Service:            birmablock (/opt/etc/init.d/S95birmablock) disabled
Service:                twonky (/opt/etc/init.d/S95twonky) disabled
Service:          watchprinter (/opt/etc/init.d/S95watchprinter)
Service:            worldblock (/opt/etc/init.d/S95worldblock) disabled
Service:               siproxd (/opt/etc/init.d/S98siproxd) disabled
Service:              stophack (/opt/etc/init.d/S98stophack)
Service:               cgminer (/opt/etc/init.d/S99cgminer) disabled
root@DD-WRT-FPGA:~# lsusb             
Bus 002 Device 001: ID 0000:0000 
[color=red]Bus 001 Device 006: ID 221a:0100[/color]  [color=red]Ztex Quad![/color]
Bus 001 Device 003: ID 0951:1603 Kingston Technology
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 001: ID 0000:0000 
root@DD-WRT-FPGA:~# service cgminer on
Enable service "cgminer" (/opt/etc/init.d/S99cgminer)
service: Enabled service: "cgminer" (/opt/etc/init.d/S99cgminer)
root@DD-WRT-FPGA:~# service cgminer start
Start service "cgminer" (/opt/etc/init.d/S99cgminer)
service: Start service: "cgminer" (/opt/etc/init.d/S99cgminer)
S99cgminer: Starting cgminer:
root@DD-WRT-FPGA:~# service             
Service:                 named (/opt/etc/init.d/S09named) disabled
Service:                xinetd (/opt/etc/init.d/S10xinetd)
Service:             automount (/opt/etc/init.d/S35automount)
Service:          reloc_syslog (/opt/etc/init.d/S40relocate_syslog) disabled
Service:             pixelserv (/opt/etc/init.d/S45pixelserv) disabled
Service:         serialmodules (/opt/etc/init.d/S45serialmodules) disabled
Service:          soundmodules (/opt/etc/init.d/S45soundmodules)
Service:               portmap (/opt/etc/init.d/S55portmap)
Service:                 unfsd (/opt/etc/init.d/S56unfsd)
Service:                zabbix (/opt/etc/init.d/S70zabbix) disabled
Service:              lighttpd (/opt/etc/init.d/S80lighttpd) disabled
Service:                 pound (/opt/etc/init.d/S80pound) disabled
Service:                 samba (/opt/etc/init.d/S80samba)
Service:             vlighttpd (/opt/etc/init.d/S80vlighttpd) disabled
Service:                  kaid (/opt/etc/init.d/S85kaid)
Service:              asterisk (/opt/etc/init.d/S90asterisk) disabled
Service:                nzbget (/opt/etc/init.d/S90nzbget) disabled
Service:          transmission (/opt/etc/init.d/S90transmission) disabled
Service:             fixtables (/opt/etc/init.d/S94fixtables)
Service:            stophammer (/opt/etc/init.d/S94stophammer)
Service:             asiablock (/opt/etc/init.d/S95asiablock) disabled
Service:            birmablock (/opt/etc/init.d/S95birmablock) disabled
Service:                twonky (/opt/etc/init.d/S95twonky) disabled
Service:          watchprinter (/opt/etc/init.d/S95watchprinter)
Service:            worldblock (/opt/etc/init.d/S95worldblock) disabled
Service:               siproxd (/opt/etc/init.d/S98siproxd) disabled
Service:              stophack (/opt/etc/init.d/S98stophack)
Service:               cgminer (/opt/etc/init.d/S99cgminer)
root@DD-WRT-FPGA:~# screen -r           

/...WHITESPACE....HERE.../

/dev/usb/tts/: No such file or directory
/dev/usb/tts/: No such file or directory


/...WHITESPACE....HERE.../


It won't do anything here ?


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: irritant on February 17, 2013, 11:04:20 AM
serialmodus is disabled


Quote
For BFL, Icarus and Mod Miner Quad:
Copy serial script to       /opt/etc/init.d              (S45serialmodules)
Copy ftdi_sio.ko to         /opt/lib/modules/2.6.24.111  Rename existing file

Enable the USB serial drivers, type:
> service serialmodules on
> service serialmodules start
> service unicornblood on
> service unicornblood start

The devices should now be recognised as a serial device. To check, type:
> ls -l /dev/usb/tts


This will list all the USB serial ports detected.

For Ztex and Mod Miner Quad:
Create the bitstreams dir and copy bitstream files to    /opt/bin/bitstreams


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on February 17, 2013, 05:52:28 PM
Is serialmodules necessary for Ztex boards?


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: Luke-Jr on February 17, 2013, 06:17:15 PM
No, ZTEX just requires libusb-1.0. BFGMiner has official OpenWrt packages now, if you want to try that.


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on February 17, 2013, 06:37:12 PM
Same install procedure?


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: Luke-Jr on February 17, 2013, 07:07:07 PM
Same install procedure?
No, BFGMiner uses opkg: http://luke.dashjr.org/programs/bitcoin/files/bfgminer/2.10.5/openwrt/12.09/README


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on February 20, 2013, 11:35:12 PM
Maybe i screwed the part with the libusb up?

Quote
For all:
Copy cgminer scripts to     /opt/etc/init.d              (cgminer.sh, S99cgminer)
Copy cgminer executable to  /opt/bin                     (cgminer)
Copy cgminer.conf to        /opt/etc                     Edit according to your setup. See CGminer documentation.
Copy libusb-1.0 files to    /opt/lib                     Rename the originals (if any)

The last step is (for me as a linux noob) hard to understand. I downloaded the cgminer package and transferred all libusb files via winscp to the appropriate folder.

These three files were transferred:
Code:
libusb-1.0.so
libusb-1.0.so.0
libusb-1.0.so.0.1.0
On my router under the /opt/lib folder i have now these files:
Code:

/...More other files that i don't know..../

libusb-0.1.so.4
libusb-0.1.so.4.4.4
libusb-0.1.so.0.1.0
libusb-0.1.so.0.lnk
libusb-0.1.so.lnk
libusb.so

/...More other files that i don't know..../

So i have to delete or rename the libusb files marked with a "4". Like this "libusb-0.1.so.4.4.4"?
What the hell is an ".ink"? That must be a windows leftover i think so i have to rename them to?


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on February 21, 2013, 10:21:35 AM
The .lnk is a windows leftover, it's how windows deals with symbolic links.
For linux you create the symbolic links with
ln -s <source> <dest>

so:
ln -s libusb-0.1.so.0.1.0 libusb-1.0.so
ln -s libusb-0.1.so.0.1.0 libusb-1.0.so.0

and delete the .lnk files


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on February 21, 2013, 02:14:44 PM
I deleted the ink files and made the symbolic links as you described, but i do have (again beginners) issues with lsusb.

if i call it i get this error message:
Code:
root@DD-WRT-FPGA:~# lsusb
lsusb: can't load library 'libusb-0.1.so.4'
root@DD-WRT-FPGA:~#

This is after renaming all the default libusb files and a restart of the router. Looks like this now:
Code:
libusb-0.1.so.4.4.4.txt           
libusb-0.1.so.4.txt
libusb-1.0.so
libusb-1.0.so.0
libusb-1.0.so.0.1.0
libusb.so.txt


How do i get lsusb to use the other libusb libraries? As i understand this lsusb uses the default files and i have to set a dependency somewhere? That dependency will be necessary for cgminer to use the "new" libusb files as well.

There is no easy way to do this?

Sry that i have to ask all these noob questions. If i get it working ill donate towards your effort.



Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: SAC on February 21, 2013, 07:56:56 PM
I deleted the ink files and made the symbolic links as you described, but i do have (again beginners) issues with lsusb.

if i call it i get this error message:
Code:
root@DD-WRT-FPGA:~# lsusb
lsusb: can't load library 'libusb-0.1.so.4'
root@DD-WRT-FPGA:~#

This is after renaming all the default libusb files and a restart of the router. Looks like this now:
Code:
libusb-0.1.so.4.4.4.txt            
libusb-0.1.so.4.txt
libusb-1.0.so
libusb-1.0.so.0
libusb-1.0.so.0.1.0
libusb.so.txt


How do i get lsusb to use the other libusb libraries? As i understand this lsusb uses the default files and i have to set a dependency somewhere? That dependency will be necessary for cgminer to use the "new" libusb files as well.

There is no easy way to do this?

Sry that i have to ask all these noob questions. If i get it working ill donate towards your effort.



Try as root ldconfig to have the cache for the libraries installed rebuilt and check in the /etc/ld.so.conf file to be sure the directory you copied into is present in that file so it will find them.

Edit: This page has couple of more commands you can try.

http://linux.101hacks.com/unix/ldconfig/


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on February 21, 2013, 09:01:02 PM
Thank you for this explanation and the link. Hm....

Seems that with my knowledge of linux (and shell) I'm unable to do this (this is part of what i hate with linux. No, to zero usability/compatibility for beginners :().. The written TuT reads like this is simple copy and paste?

Maybe there is someone out there that has a E3200 with Ztex boards that can provide a "clone" from his DD-WRT build, so that i can flash my router with this?

Or there is someone that can explain to me (for a noob: step by step) what exactly i have to do to get this working?

What do i need to do?

Quote
Try as root ldconfig to have the cache for the libraries installed
if i run "ldconfig" (without any options) i get this:

Code:
root@DD-WRT-FPGA:/# ldconfig
ldconfig: skipping /opt/lib/libusb.so.txt: No such file or directory
ldconfig: skipping /opt/lib/libusb-0.1.so.4.txt: No such file or directory
root@DD-WRT-FPGA:/#
Does this mean that the linux still tries to use the renamed old libusb files?

if i look at the  "/etc/ld.so.conf" file i see this:
Code:
/jffs/lib
/jffs/usr/lib
/jffs/usr/local/lib
/mmc/lib
/mmc/usr/lib
/mmc/usr/local/lib
/lib
/usr/lib

jffs?
mmc?

Sry, I'm turning this thread into a linux support thread but maybe this helps other Ztex DDwrt users :/



Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on February 21, 2013, 11:11:20 PM
OK ....Hm, thanks to irritant it works somehow.  I did everything again and now when i start cgminer i get this:

Quote
/dev/usb/tts/: No such file or directory
 [2013-02-21 23:59:33] Found ztex board 1.15d or 1.15x
 [2013-02-21 23:59:33] ZTEX 04A3468E00-1: capability missing: 0 7
 [2013-02-21 23:59:33] No servers were found that could be used to get work from.
 [2013-02-21 23:59:33] Please check the details from the list below of the servers you have input
 [2013-02-21 23:59:33] Most likely you have input the wrong URL, forgotten to add a port, or have not set up workers
/dev/usb/tts/: No such file or directory

Must be an error in the config?

and this:

Code:
[2013-02-22 00:10:31] Found ztex board 1.15d or 1.15x                   
 [2013-02-22 00:10:31] Found dummy firmware, trying to send mining firmware                   
 [2013-02-22 00:10:31] productString: USB-FPGA Module 1.15d (default)                   
 [2013-02-22 00:10:31] Mining firmware filename: ztex_ufm1_15d4.bin                   
 [2013-02-22 00:10:31] failed to open firmware file 'ztex_ufm1_15d4.bin'                   
 [2013-02-22 00:10:31] Ztex: Can not check device: 0     

Cant access Firmware but why?


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: Luke-Jr on February 21, 2013, 11:35:21 PM
The firmwares are separate packages to save space.
The one you want is bfgminer-bitstream-ztex-ufm1_15d4 (http://luke.dashjr.org/programs/bitcoin/files/bfgminer/testing/openwrt/12.09/ar71xx/bfgminer-bitstream-ztex-ufm1_15d4_2.10.5-1_all.ipk)


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on February 22, 2013, 12:40:36 AM
Thank you luke that was a good hint :)

It works.... but only with my quads?

Must have something to do with the dummy FW :/

Code:
/dev/usb/tts/: No such file or directory
 [2013-02-22 01:35:28] Found ztex board 1.15y
 [2013-02-22 01:35:28] Found ztex board 1.15y
 [2013-02-22 01:35:28] Found ztex board 1.15y
ZTX3 04A36E24F2-4 | 200.0MHz | (5s):0.000 (avg):0.000h/s | A:1 R:0 HW:0 U:9.9/m
ZTX8 04A34644C6-1 | 200.0MHz | (5s):62.50M (avg):195.1Mh/s | A:1 R:0 HW:0 U:5.4/m
ZTX10 04A34644C6-3 | 200.0MHz | (5s):71.08M (avg):195.1Mh/s | A:1 R:0 HW:0 U:5.4/m
ZTX0 04A36E24F2-1 | 200.0MHz | (5s):26.09M (avg):195.0Mh/s | A:1 R:0 HW:0 U:5.4/m
ZTX0 04A36E24F2-1 | 200.0MHz | (5s):26.09M (avg):195.0Mh/s | A:2 R:0 HW:0 U:10.8/m
ZTX2 04A36E24F2-3 | 200.0MHz | (5s):37.52M (avg):195.0Mh/s | A:1 R:0 HW:0 U:5.4/m
ZTX0 04A36E24F2-1 | 200.0MHz | (5s):26.09M (avg):119.0Mh/s | A:3 R:0 HW:0 U:9.9/m
ZTX8 04A34644C6-1 | 200.0MHz | (5s):62.50M (avg):119.0Mh/s | A:2 R:0 HW:0 U:6.6/m
ZTX10 04A34644C6-3 | 200.0MHz | (5s):71.08M (avg):119.0Mh/s | A:2 R:0 HW:0 U:6.6/m
ZTX3 04A36E24F2-4 | 200.0MHz | (5s):115.4M (avg):238.0Mh/s | A:2 R:0 HW:0 U:6.6/m
ZTX9 04A34644C6-2 | 200.0MHz | (5s):128.9M (avg):238.0Mh/s | A:1 R:0 HW:0 U:3.3/m
ZTX2 04A36E24F2-3 | 200.0MHz | (5s):107.7M (avg):238.0Mh/s | A:2 R:0 HW:0 U:6.6/m
ZTX0 04A36E24F2-1 | 200.0MHz | (5s):99.27M (avg):178.6Mh/s | A:4 R:0 HW:0 U:9.9/m
ZTX7 04A3461185-4 | 200.0MHz | (5s):123.4M (avg):178.5Mh/s | A:1 R:0 HW:0 U:2.5/m
ZTX4 04A3461185-1 | 200.0MHz | (5s):117.1M (avg):178.6Mh/s | A:1 R:0 HW:0 U:2.5/m
ZTX7 04A3461185-4 | 200.0MHz | (5s):123.4M (avg):178.5Mh/s | A:2 R:0 HW:0 U:5.0/m
ZTX3 04A36E24F2-4 | 200.0MHz | (5s):115.4M (avg):178.6Mh/s | A:3 R:0 HW:0 U:7.4/m
ZTX4 04A3461185-1 | 200.0MHz | (5s):117.1M (avg):178.6Mh/s | A:2 R:0 HW:0 U:5.0/m
ZTX5 04A3461185-2 | 200.0MHz | (5s):119.0M (avg):178.6Mh/s | A:1 R:0 HW:0 U:2.5/m
ZTX11 04A34644C6-4 | 200.0MHz | (5s):136.3M (avg):178.5Mh/s | A:1 R:0 HW:0 U:2.5/m
(5s):879.4M (avg):1.697Gh/s | Q:1  A:20  R:0  HW:0  E:2000%  U:24.8/m


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on February 23, 2013, 12:54:48 AM
With my singles attached it won't work...  Getting errors a la "capability missing: 0 7" and "pin does not go high"


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on February 24, 2013, 04:39:11 PM
Got Anubis working but i'm asking myself how i should enable the features (api and stuff) in the running cgminer?

do i have to start cgminer with both features? how do i do this?

"service cgminer start .....--- arguments here" ?

or do i need to put this into the cgminer.conf file?



Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: shivansps on February 28, 2013, 04:43:14 AM
I wonder how you guys did it, i tryied to compile cgminer for the ar71xx of the tp-link routers and im getting to the last step where LD it complains of missing -lcurl


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on February 28, 2013, 09:26:13 AM
I just used his pagage. I use a e3200 linksys (Cisco) router. Works good so far but only with quad Ztex boards. Can't figure out why single Ztex board won't work.

I can't help you compiling this. Missing lcurl ... Did you install it correctly?


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on February 28, 2013, 03:13:54 PM
BROKK, do you have all the bitstream binaries?

For the -lcurl, you have to manually specify it in the configure command. And obviously have it compiled for the platform with the headers available.


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on March 01, 2013, 12:12:43 PM
I think i have the necesary files for singles in the bitstreams directory:

Code:
root@dd_wrt_fpga:/opt/bin/bitstreams# ls
COPYING_fpgaminer  fpgaminer_top_fixed7_197MHz.ncd  ztex_ufm1_15d1.bit  [b]ztex_ufm1_15d4.bin[/b]  ztex_ufm1_15y1.bin
COPYING_ztex       ztex_ufm1_15b1.bit               ztex_ufm1_15d3.bit  ztex_ufm1_15d4.bit  ztex_ufm1_15y1.bit
root@dd_wrt_fpga:/opt/bin/bitstreams#

I chmod-ed them in case that this is needed.

When I'm at home ill try again with the singles to get a printout what error they produce. Note i preflashed them with the 15d4 firmware with btcminer!

Is the address below for donating? If not give me one and i'll trow something your way :)



Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: shivansps on March 02, 2013, 12:48:22 AM

For the -lcurl, you have to manually specify it in the configure command. And obviously have it compiled for the platform with the headers available.

I fixed the header using symlinks, the LD is the one complaining that means i need the compiled lib.so.X

I tryied to compile it but whiout of luck, BUT the lib is already avalible for openwrt soo ill try to download it on the router and them copy it where LD is looking for it.


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on March 03, 2013, 10:49:34 AM
The 1Fx address is the one, thanks BROKK :)

In other news I'm not using the router anymore, in fact I'm not even mining directly right now. My units are being hosted elsewhere...
Anyway, this means I can't test the compiled binaries, and since Kano has completely changed the way in which the FPGAs are communicated with (libUSB in place of serial drivers), I don't know if they will work. They SHOULD, but I can't test.
I think 2.10.0 is pretty stable and has most of the features needed anyway, so I might leave it at that, but I could try the latest. Will be a while before I can compile it though as I don't have the build environment set up where I am and I'll have to sort that out (no easy task).


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on March 04, 2013, 10:55:17 AM
I'll send a coin as soon as i get home :)
Somehow singles work too now... I dont know why.... The "cpability missing 0 7" issue is still there but they happily start mining!
Must be one of my crappy Power-supplies that prevents them being flashed properly

Thanks for the comiling !

If you'll try again i can test it for you with my Ztex boards.


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on March 05, 2013, 11:30:41 PM
Code:
Status: 0/unbestätigt, über 7 Knoten übertragen
Datum: 06.03.13 00:30
An: p_shep tip 1Fxpijq1NN52LzSzD2WtGbT3ZTWq366ejj
Belastung: -1.00 BTC
Transaktionsgebühr: -0.01 BTC
Nettobetrag: -1.01 BTC
Transaktions-ID: 8221655f300dada9920ea33dc519212e0ad0ce55137d6464d8efa5a341ac3fc2

donation sent :)


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on March 06, 2013, 10:30:49 AM
VERY generous of you! Thank you! :)


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on March 06, 2013, 05:07:58 PM
Good work should be paid :)


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: shivansps on March 10, 2013, 02:06:27 AM
mmmm i wondering if we cant just extroot debian mips intro the router, that definetely will make it easier.


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on March 10, 2013, 10:58:48 AM
The main issue routers have (or some) is the routing chips' driver is closed souce (particularly for broadcom) is only available for certain kernels. Just throwing on any version, unfortunately, won't work.


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on April 18, 2013, 11:07:04 AM
OK, no idea if this will work, but I finally update to 2.11.4:

https://www.dropbox.com/s/34n528nk2j18qdd/cgminer-2.11.4-mipsel.tar.gz

Since the mechanism to detect FPGA devices has change from specifying serial ports, to auto detect with libusb, I've just commented out the line in the start-up script (cgminer.sh) which adds finds them and adds them to the command line.

Someone who knows their way around linux can give this a try, see if it works.

As I've said, I no longer have any units to test with, so I'm just compiling this blind.


Title: Re: CGminer v2.11.4 on Broadcom based DD-WRT / OpenWRT
Post by: irritant on April 18, 2013, 12:08:07 PM
tested it but not sure if it is working, screen -r shows a blank screen... so I guess it is not working


Title: Re: CGminer v2.11.4 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on April 18, 2013, 12:31:36 PM
top or htop should show the processes. There's also the log file to look at.
Also running the binary straight from command line... but you'll have to type in:
 unset LD_LIBRARY_PATH
unset LD_PRELOAD

first.


Title: Re: CGminer v2.11.4 on Broadcom based DD-WRT / OpenWRT
Post by: irritant on April 18, 2013, 02:05:48 PM
hmm...

it says
Quote
cgminer: can't load library 'libcurl.so.4'

edit:  ive now bricked it :/  getting only "Illegal instruction"  with commands like chmod


Title: Re: CGminer v2.11.4 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on April 18, 2013, 03:09:49 PM
I'm trying it on my router now.
Unfortunately the libcurl with optware is too old for cgminer, so I compiled the latest and that's not working.

ipkg install libcurl -force-reinstall

will get the optware verison back.

(have you tried resetting the router?)


Title: Re: CGminer v2.11.4 on Broadcom based DD-WRT / OpenWRT
Post by: irritant on April 18, 2013, 03:18:25 PM
I've tried rebooting, but not resetting to factory defaults, would this solve the "Illegal instruction"  message when I try to do anything (like wget, or ipkg) ?  

trying it anyway


Title: Re: CGminer v2.11.4 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on April 18, 2013, 03:24:40 PM
"Illegal instruction" is an odd one. I'm not getting that.
Fall back is unplug the USB stick, reboot, then plug is back in and mount it, so that optware scripts aren't loaded. Maybe then you can run ipkg etc.


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on April 18, 2013, 03:53:18 PM
if it's any consolation, I've just hosed my optware too!
Though I was trying something different


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: irritant on April 18, 2013, 04:01:54 PM
some bad luck in the air lately, don't give it up , we will get lucky someday :/

(I lost access to my router after I reset to factory defaults, unplugged it and put the router in a bag, taking a break from it now, and taking it to a place where I can try it out again from scratch... with a clear mind, in a couple hours)


edit: back to 2.10.0 and everything is working again (after reinstalled optoware)


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on April 18, 2013, 04:05:53 PM
Factory reset probably wasn't necessary! It's just optware, the stuff on the USB stick that needed fixing, not the router itself.
Anyway, it'll have gone back to the default 192.168.1.1 and you'll have to plug a computer directly into it via a cable. Just got the hassle of setting it all up again!


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on April 25, 2013, 08:16:18 PM
Any news on the new CGminer release?


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on April 26, 2013, 02:20:41 PM
I think it might be a no-go.

Cgminer is now using some code which is too new for the old compiler used with Optware.
Specifically, the new USB handling uses 'semtimedop' which is a semaphore timed operation. It's first appearance is in uclibc v 0.9.30. Optware uses 0.9.28.

The reason It all messed up last time was becuase I was using a newer compiler, one used with entware (https://code.google.com/p/wl500g-repo/) which is supposed to be an updated version of optware, but the two are incompatible with each other.

I'm trying now to build uclibc 0.9.30 into the toolchain, but at the very best it'll require copying over the dd-wrt version of uclibc, at worst... mess optware up.


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on April 26, 2013, 03:38:16 PM
I think it might be a no-go.

Cgminer is now using some code which is too new for the old compiler used with Optware.
Specifically, the new USB handling uses 'semtimedop' which is a semaphore timed operation. It's first appearance is in uclibc v 0.9.30. Optware uses 0.9.28.

The reason It all messed up last time was becuase I was using a newer compiler, one used with entware (https://code.google.com/p/wl500g-repo/) which is supposed to be an updated version of optware, but the two are incompatible with each other.

I'm trying now to build uclibc 0.9.30 into the toolchain, but at the very best it'll require copying over the dd-wrt version of uclibc, at worst... mess optware up.

Damn they make it hard :)

Thx that your still trying or thinking about this!


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on April 26, 2013, 03:43:08 PM
using uclibc v0.9.30 won't compile cgminer either. Entware did compile it no problem.
Although Entware is supposed to be a modern optware replacement, no-one has written nice automatic scripts to install the usually require packages.

I'm thinking of using OTRW2 script and hacking it to use entware instead.

The other issue is that anyone wanting to use cgminer on their router, will have to wipe their USB sticks and reinstall everything.


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: Luke-Jr on April 26, 2013, 06:15:11 PM
Note BFGMiner (with fewer bugs and better support) has official OpenWrt packages.


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on April 26, 2013, 07:42:25 PM
Problem is that we're on dd wrt and it uses ipkg not opkg to install stuff.
There is no easy way to switch this as far as I know.....

Depends on the router you choose wich one is better supported (Ddwrt or open wrt).
I first went with qpenwrt on a tp-link mr3420 only to find out that there weren't drivers for Ztex boards (my error.... Should have searched better!)
Now the linksys e3200 works with dd wrt.....


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on April 29, 2013, 11:44:46 AM
I've done away with the libraries and I've linked cgminer statically, so all the necessary libraries are built into the binary.
So no more copying libusb or libcurl, but Does means the cgminer binary has quadrupled in size...

https://www.dropbox.com/s/g16wkzv9kndxymd/cgminer-3.1.0-mipsel.tar.gz


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on April 29, 2013, 11:49:01 AM
I've done away with the libraries and I've linked cgminer statically, so all the necessary libraries are built into the binary.
So no more copying libusb or libcurl, but Does means the cgminer binary has quadrupled in size...

https://www.dropbox.com/s/g16wkzv9kndxymd/cgminer-3.1.0-mipsel.tar.gz


I might give it a try within this week (if i find time) :)

Upgrade path? Or complete reinstallation?


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on April 29, 2013, 12:26:06 PM
You should just need to copy cgminer binary and cgminer.sh script.
That should do it.


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on April 29, 2013, 12:46:57 PM
You should just need to copy cgminer binary and cgminer.sh script.
That should do it.

Delete the old Libusb files ?


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on April 29, 2013, 01:24:40 PM
You can leave them. Should have no affect.


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on April 29, 2013, 01:46:54 PM
Just a general FYI:

From Kano's post here: https://forums.butterflylabs.com/announcements/913-bitforce-sc-communication-protocol-draft-revision-2-a-7.html#post27722
He says the Rpi uses 3% CPU running a single Jalapenos.

The Rpi has a 700MHz ARM processor. The N routers are ~ 480MHz MIPS processors.

Just a ball-park figure, i'd say the Jalapenos will use 4-5% CPU on the MIPS, so you won't be able to run too many on the routers. Say 10  for ~50% CPU usage (don't think you'd want to maintain much over that).

I wonder what usage the singles would use... since the difficulty should just scale, I'm thinking the singles would also use ~5% CPU each.


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on May 03, 2013, 04:36:21 PM
It works :)

http://abload.de/img/bildschirmfoto2013-05drdtz.png

THX great work that you did there!


Title: Re: CGminer v2.10.0 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on May 03, 2013, 06:38:24 PM
Great!


Title: Re: CGminer v3.1.0 on Broadcom based DD-WRT / OpenWRT
Post by: ZPK on May 08, 2013, 05:48:31 PM
anybody try on dlink dir320?) or zyxel keenetic v1 ?


Title: Re: CGminer v3.1.0 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on May 08, 2013, 07:59:15 PM
anybody try on dlink dir320?) or zyxel keenetic v1 ?

Nope ... Tried it on a MR3420 but there are no drivers for my Ztex boards!


@All

Has anyone got an E3200 like me?

After about 3 month that thing started to give me electro shocks over the USB port.....?! There is somehow current on the shielding of my USB cables (if you touch it, it hurts :()..... Cant figure out why. Checked everything twice but it seems to be the router having a malfunction:/

Anyone noticed this behavior on their machines?


Title: Re: CGminer v3.1.0 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on May 08, 2013, 08:03:01 PM
That can happen to wall-wart PSUs.
The voltage 'floats' anywhere it likes, so if you have two, the grounds can be at different potentials.
Maybe you can try another 12V supply?


Title: Re: CGminer v3.1.0 on Broadcom based DD-WRT / OpenWRT
Post by: mr.n00blar on May 09, 2013, 11:27:34 PM
I have a few routers using DD-WRT. What kind of hash rates is everyone getting?


Title: Re: CGminer v3.1.0 on Broadcom based DD-WRT / OpenWRT
Post by: mr.n00blar on May 10, 2013, 12:18:48 AM
Looks cool. I'm not sure how to set this up though, the OP doesn't really explain what to do. I don't have much experience with using DD-wrt on my routerother than adjusting wireless radio settings for best performance. Any guides?


EDIT: Also, I see there is a guide for dd-wrt somewhere, where is it? I feel like I'm missingsomething  ??? lol.. :D


EDIT#2: Derp, so it says I NEED usb storage, is there any way around that?


Title: Re: CGminer v3.1.0 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on May 13, 2013, 06:23:44 PM
That can happen to wall-wart PSUs.
The voltage 'floats' anywhere it likes, so if you have two, the grounds can be at different potentials.
Maybe you can try another 12V supply?

Tried a bunch of Wall wart's now ... Have to send it back behause i don't want to get zapped of have the Chance of starting a fire ;)

Thx for help.

Is there a list on wich routers this cgminer will work?

Looks cool. I'm not sure how to set this up though, the OP doesn't really explain what to do. I don't have much experience with using DD-wrt on my routerother than adjusting wireless radio settings for best performance. Any guides?


EDIT: Also, I see there is a guide for dd-wrt somewhere, where is it? I feel like I'm missingsomething  ??? lol.. :D


EDIT#2: Derp, so it says I NEED usb storage, is there any way around that?

No you need a tiny thumb drive for opt ware, bitstreams and so forth.


As for installation of Ddwrt I'll help you with what I can :)



Title: Re: CGminer v3.1.0 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on May 28, 2013, 05:04:55 PM
Upped to 3.1.1.

Tested the executable runs on my router (starts, that is), but can't test any mining, as I have no FPGA's anymore.

https://www.dropbox.com/s/z5g0o4b3gzepy8x/cgminer-3.1.1-mipsel.tar.gz (https://www.dropbox.com/s/z5g0o4b3gzepy8x/cgminer-3.1.1-mipsel.tar.gz)


Title: Re: CGminer v3.1.1 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on May 28, 2013, 08:48:41 PM
Seems to work with my Ztex on my old e3200:)

http://abload.de/img/bildschirmfoto2013-05iku9m.png


Question:
I need to change my router because its dead.... Is there a way to reuse the USB stick with all the installed things on it with a new router?
I bought a replacement router (Asus RT-N16) and don't want to do all of it again :)



Title: Re: CGminer v3.1.1 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on May 29, 2013, 12:33:12 PM
Yeah, what you do is unplug the USB stick.... then plug it in the other one :)

You don't have to do much else them make sure it mounts in the right place on start up.


Title: Re: CGminer v3.2.0 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on May 31, 2013, 11:25:30 AM
Upped to 3.2.0

https://www.dropbox.com/s/yeookho1ebp04ti/cgminer-3.2.0-mipsel.tar.gz?v=0rc-


Title: Re: CGminer v3.2.0 on Broadcom based DD-WRT / OpenWRT
Post by: -ck on May 31, 2013, 11:26:34 AM
Upped to 3.2.0

https://www.dropbox.com/s/yeookho1ebp04ti/cgminer-3.2.0-mipsel.tar.gz?v=0rc-
Nice work P_Shep.

Unlike previously, I have to compile cgminer for mips these days since that's what runs directly on avalon so hopefully things run more smoothly for you now.


Title: Re: CGminer v3.2.0 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on May 31, 2013, 11:38:49 AM
There's just one change I have to do actually... that roundl() macro. It needs including for MIPSEB and MIPSEL.


Title: Re: CGminer v3.2.0 on Broadcom based DD-WRT / OpenWRT
Post by: rudrigorc2 on May 31, 2013, 11:45:29 AM
Upped to 3.2.0

https://www.dropbox.com/s/yeookho1ebp04ti/cgminer-3.2.0-mipsel.tar.gz?v=0rc-
Nice work P_Shep.

Unlike previously, I have to compile cgminer for mips these days since that's what runs directly on avalon so hopefully things run more smoothly for you now.

You guys removed FPGA support on avalons cgminer?


Title: Re: CGminer v3.2.0 on Broadcom based DD-WRT / OpenWRT
Post by: -ck on May 31, 2013, 11:55:18 AM
Upped to 3.2.0

https://www.dropbox.com/s/yeookho1ebp04ti/cgminer-3.2.0-mipsel.tar.gz?v=0rc-
Nice work P_Shep.

Unlike previously, I have to compile cgminer for mips these days since that's what runs directly on avalon so hopefully things run more smoothly for you now.

You guys removed FPGA support on avalons cgminer?
Excuse me?


Title: Re: CGminer v3.2.0 on Broadcom based DD-WRT / OpenWRT
Post by: rudrigorc2 on June 01, 2013, 08:03:50 AM
Upped to 3.2.0

https://www.dropbox.com/s/yeookho1ebp04ti/cgminer-3.2.0-mipsel.tar.gz?v=0rc-
Nice work P_Shep.

Unlike previously, I have to compile cgminer for mips these days since that's what runs directly on avalon so hopefully things run more smoothly for you now.

You guys removed FPGA support on avalons cgminer?
Excuse me?

I flashed one of my 703n with avalon firmware, but I couldnt make cgminer recognize my fpgas.
Can you help me compile last version for 703n and make my own image?


Title: Re: CGminer v3.2.0 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on June 03, 2013, 03:14:34 PM
Upped to 3.2.0

https://www.dropbox.com/s/yeookho1ebp04ti/cgminer-3.2.0-mipsel.tar.gz?v=0rc-

Gives me errors on the Quads:

Quote
[2013-06-03 17:14:06] Found ztex board 1.15y
 [2013-06-03 17:14:40] ZTEX 04A36E24F2-4: resetting 26.0 errors                    
 [2013-06-03 17:14:40] ZTEX 04A36E24F2-1: resetting 26.0 errors                    
 [2013-06-03 17:14:40] ZTEX 04A36E24F2-3: resetting 26.0 errors                    
 [2013-06-03 17:14:40] ZTEX 04A36E24F2-2: resetting 26.0 errors                    
(5s):1.417G (avg):691.2Mh/s | A:0  R:0  HW:13  U:0.0/m  WU:16.0/m        

And the Singles:
Quote
[2013-06-03 17:19:53] Found ztex board 1.15d or 1.15x                   
 [2013-06-03 17:19:53] ZTEX 04A346E12C-1: capability missing: 0 7                   
 [2013-06-03 17:20:05] ZTEX 04A346E12C-1: HS FPGA configuration failed: DONE pin does not go high                   
 [2013-06-03 17:20:34] ZTEX 04A346E12C-1: resetting 26.0 errors                   
(5s):93.48M (avg):179.7Mh/s | A:0  R:0  HW:3  U:0.0/m  WU:1.5/m   


Title: Re: CGminer v3.2.0 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on June 03, 2013, 05:25:47 PM
Hmmm, there was supposed to be big changes with regards to the USB stuff, and was the ZTEX code changed to LibUSB-1.0?

Probably best stick with 3.1.1 then.


Title: Re: CGminer v3.2.0 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on June 03, 2013, 05:54:25 PM
Hmmm, there was supposed to be big changes with regards to the USB stuff, and was the ZTEX code changed to LibUSB-1.0?

Probably best stick with 3.1.1 then.

I'll revert back to 3.1.1 later.


For the changes in cgminer I have no clue ;)



Title: Re: CGminer v3.2.1 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on June 07, 2013, 02:40:19 PM
Upped to 3.2.1

https://www.dropbox.com/s/ii7oluf3zoxf2dp/cgminer-3.2.1-mipsel.tar.bz2?v=0rc-


Title: Re: CGminer v3.2.1 on Broadcom based DD-WRT / OpenWRT
Post by: broken_pixel on June 08, 2013, 12:48:44 AM
Nice set up!


Title: Re: CGminer v3.2.1 on Broadcom based DD-WRT / OpenWRT
Post by: mike298342 on June 13, 2013, 08:52:47 AM
Thanks P_Shep!

I just got it working on an Asus RT-N16 running TomatoUSB firmware with a blackarrow Lancelot FPGA.  I'll try getting Anubis to monitor it next.  Would you recommend running Anubis on the router or on another PC on the same LAN?



Title: Re: CGminer v3.2.1 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on June 13, 2013, 10:58:29 AM
Thanks P_Shep!

I just got it working on an Asus RT-N16 running TomatoUSB firmware with a blackarrow Lancelot FPGA.  I'll try getting Anubis to monitor it next.  Would you recommend running Anubis on the router or on another PC on the same LAN?



I have anubis on my raspberry pi. I could not find a good TuT to get it working on my router :/ Do you have one?


Title: Re: CGminer v3.2.1 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on June 13, 2013, 11:16:22 AM
I had it all running on my router. The web pages only use a little CPU time on page loads. Since you'll only serving pages to yourself and you're not hitting refresh every second, it's fine.
Optware has lighttpd we server. No single tutorial to set it up, but with some know-how and Googling you can get it up and running.


Title: Re: CGminer v3.3.1 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on June 25, 2013, 05:24:29 PM
upped to 3.3.1

https://www.dropbox.com/s/op3k7zc8grh751h/cgminer-3.3.1-mipsel.tar.gz


Title: Re: CGminer v3.3.1 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on June 26, 2013, 07:07:58 PM
Do the Blockeruptor USB run with this?

I can not get them to work with 3.1.1


Title: Re: CGminer v3.3.1 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on June 26, 2013, 08:15:10 PM
Absolutely no idea. Is it supposed to?
Have to ask Con or Kano about that.


Title: Re: CGminer v3.3.1 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on June 27, 2013, 04:25:49 PM
Absolutely no idea. Is it supposed to?
Have to ask Con or Kano about that.

It uses the icarus protocol for mining so i should run?

CGminer must be able to use this because icarus was supported.


Title: Re: CGminer v3.3.1 on Broadcom based DD-WRT / OpenWRT
Post by: rmyadsk on July 09, 2013, 02:06:10 AM
Has anyone got this to work with an Asicminer Erupter USB? I have a Netgear WNR3500U flashed with the latest TomatoUSB (http://tomato.groov.pl/) sitting idle and ready to start playing as soon as my Erupters arrive.


Title: Re: CGminer v3.3.1 on Broadcom based DD-WRT / OpenWRT
Post by: OtaconEmmerich on July 20, 2013, 05:37:06 AM
Well I got as far as installing Optware on my RT-N16, Now I'm utterly confused on how to progress on Windows 7(copying files to Ext2 and such..) I wish the readme was formatted to be easier to understand for newbies to linux.


Title: Re: CGminer v3.3.1 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on July 20, 2013, 08:11:17 AM
Well I got as far as installing Optware on my RT-N16, Now I'm utterly confused on how to progress on Windows 7(copying files to Ext2 and such..) I wish the readme was formatted to be easier to understand for newbies to linux.

Use winscp to ssh into the router. Then go to the folders that the files need to go and copy them there.
The next step is to ssh into the router an use chmod to make those files executable.


Title: Re: CGminer v3.3.1 on Broadcom based DD-WRT / OpenWRT
Post by: OtaconEmmerich on July 20, 2013, 08:39:32 AM
I already got that far, via telnet. I'm just not sure what to edit in the scripts to get Icarus working properly. When it means to uncomment the DEVS line does that mean I remove the # in the code? Where can i find the serial script file it says to copy? Trying to get this semi-ready as my BE shows up later today. I wish the instructions we're a bit more clearer.


Title: Re: CGminer v3.3.1 on Broadcom based DD-WRT / OpenWRT
Post by: OtaconEmmerich on July 20, 2013, 08:48:06 PM
Yeah, S45serialmodules and ftdi_sio.ko is missing from the 3.3.1 file. Just grabbed it from the 3.2.0 file just now. Let's see if this will work. Might wanna fix that.


Title: Re: CGminer v3.3.1 on Broadcom based DD-WRT / OpenWRT
Post by: OtaconEmmerich on July 20, 2013, 09:37:19 PM
Nope, nogo. Also would using Optware for Tomato be a problem?


Title: Re: CGminer v3.3.1 on Broadcom based DD-WRT / OpenWRT
Post by: OtaconEmmerich on July 26, 2013, 06:40:47 PM
Well I got DD-WRT and I'm pretty sure mostly EVERYTHING is running smooth with 3.1.1(rolled back for compatibility sake) problem is my router (RT-16) does not show that any serial device is plugged in when I plug in the BE. Nothing shows up in /dev/usb/tts. This one last hurdle and I'll be happily mining away I think.

This is what shows up when I check dmesg too.
Code:
hub 1-2:1.0: USB hub found
hub 1-2:1.0: 4 ports detected
usb 1-2.1: new full speed USB device using ehci_hcd and address 6
usb 1-2.1: configuration #1 chosen from 1 choice


Title: Re: CGminer v3.3.1 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on July 27, 2013, 12:13:03 AM
Most of the FPGA and ASIC miners no longer use a serial driver. Kano changed the code to use USBlib directly, so the ftdi_sio.ko (which is the kernel serial driver) is no longer needed.
From the look of your dmesg, NO USB device is detected at all... as in, not that the driver isn't present, but that the hardware isn't even plugged in.


Title: Re: CGminer v3.3.1 on Broadcom based DD-WRT / OpenWRT
Post by: jago25_98 on August 05, 2013, 11:51:14 AM
 I don't want to use a powered USB hub if possible since I only have one miner. However, I think the problem is that I need to put the cgminer executable somewhere and that therefore needs extra USB storage right - and therefore a USB hub.

Unless I mount a network share...?


Title: Re: CGminer v3.3.1 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on August 05, 2013, 12:23:46 PM
a NFS share on start-up could well work. I think you could do that with a start-up script in the admin panel. Mount it top /opt and you should be golden

Though that does mean you'll need another computer on all the time... so why not hook the miner up to that???


Title: Re: CGminer v3.3.1 on Broadcom based DD-WRT / OpenWRT
Post by: jago25_98 on August 05, 2013, 01:18:25 PM
a NFS share on start-up could well work. I think you could do that with a start-up script in the admin panel. Mount it top /opt and you should be golden

Though that does mean you'll need another computer on all the time... so why not hook the miner up to that???

because then I'd need a USB hub and mine's taking ages to arrive from china.

Just tried running cgminer-3.3.1-mipsel on dd-wrt v24-sp2 (build 14929) ((old - will try upgrading...):
Code:
root@router:~# ./cgminer -n
Illegal instruction


Title: Re: CGminer v3.3.1 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on August 05, 2013, 02:14:46 PM
a NFS share on start-up could well work. I think you could do that with a start-up script in the admin panel. Mount it top /opt and you should be golden

Though that does mean you'll need another computer on all the time... so why not hook the miner up to that???

because then I'd need a USB hub and mine's taking ages to arrive from china.

Just tried running cgminer-3.3.1-mipsel on dd-wrt v24-sp2 (build 14929) ((old - will try upgrading...):
Code:
root@router:~# ./cgminer -n
Illegal instruction

its integrated as a service

so you start it like this sudo service cgminer start/stop


Title: Re: CGminer v3.3.1 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on August 05, 2013, 02:16:49 PM
What's the router?


Title: Re: CGminer v3.3.1 on Broadcom based DD-WRT / OpenWRT
Post by: jago25_98 on August 05, 2013, 04:10:58 PM
What's the router?

WL500G-Deluxe so that's a BCM4702/4710. One has a very old Oleg firmware, the other has what appears to be the latest DD-WRT from 2010. I've only tried the DD-WRT one andthat's the one that gave illegal instruction


Title: Re: CGminer v3.3.1 on Broadcom based DD-WRT / OpenWRT
Post by: jago25_98 on August 05, 2013, 04:20:32 PM
its integrated as a service

so you start it like this sudo service cgminer start/stop

I see what you're saying but I wanted to check the binary does actually run before installing as a service... it should run. I would expect if I installed the whole thing it would still fail


Title: Re: CGminer v3.3.1 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on August 05, 2013, 09:11:49 PM
WL-500g Deluxe (WL-500gx)   BCM5365P/BCM5364P 200MHz   SoC   802.11g (BCM4306 + BCM2050)   32MB SDR 32bit   4MB   2 x 2.0 (VT6212L)

I'm not sure that'll have the resources to run cgminer :/
But It should at least start. The compiler optimization maybe set for later processors.


Title: Re: CGminer v3.3.1 on Broadcom based DD-WRT / OpenWRT
Post by: jago25_98 on August 06, 2013, 12:39:33 AM
WL-500g Deluxe (WL-500gx)   BCM5365P/BCM5364P 200MHz   SoC   802.11g (BCM4306 + BCM2050)   32MB SDR 32bit   4MB   2 x 2.0 (VT6212L)

I'm not sure that'll have the resources to run cgminer :/
But It should at least start. The compiler optimization maybe set for later processors.

Yeah that's probably it... though I would have expected something more verbose to help me figure that out. I guess if so I'd have to figure out how to cross compile... easier to change to openwrt and use the supplied distro copy.

Meanwhile, the beaglebone (angstrom) doesn't recognise the Eruptor with lsusb.. perhaps not enough power even though the Eruptor lights up and all looks ok...

...and USB ports on the Raspberry Pi are producing errors now. So all 3 platforms each have their own problems...


Title: Re: CGminer v3.3.1 on Broadcom based DD-WRT / OpenWRT
Post by: nitrox on September 26, 2013, 08:50:54 AM
do you build new release ?


Title: Re: CGminer v3.3.1 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on September 27, 2013, 06:15:59 PM
Having issues with libudev :/


Title: Re: CGminer v3.3.1 on Broadcom based DD-WRT / OpenWRT
Post by: taxik on September 28, 2013, 08:23:56 AM
Hello, will it work with Atheros router (TL-WR1043ND) ?. I think it has MIPS architecture, so i don´t know :(

Thanks

P.S. I am using DD-WRT


Title: Re: CGminer v3.3.1 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on October 09, 2013, 09:58:25 AM
I've upped to the latest that will still work, which is 3.3.4.

https://www.dropbox.com/s/950r36j86mx69d6/cgminer_3.3.4_mipsel.ipk

I've now nicely packaged it in an IPK.

To install:
Copy to your router /opt dir and cd there
type:
>ipkg install cgminer_3.3.4_mipsel.ipk

It'll copy all the files to the correct places and install any other missing packages automagically.

If you already have cgminer.conf, it'll ask if you want to overwrite... of course not, so press 'N'
Otherwise, edit the /opt/etc/cgminer.conf file to your needs.

Then type:
>service cgminer start


Title: Re: CGminer v3.3.4 on Broadcom based DD-WRT / OpenWRT
Post by: OtaconEmmerich on October 09, 2013, 03:36:21 PM
going to take a guess and say that ipk only works on DD-WRT?


Title: Re: CGminer v3.3.4 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on October 09, 2013, 04:11:56 PM
It's an optware IPK. It'll work with dd-wrt, Kong mod and asuswrt-Merlin, and probably asuswrt too.

Also for taxik, if you can install optware (http://www.dd-wrt.com/phpBB2/viewtopic.php?t=156013), you can run this.


Title: Re: CGminer v3.3.4 on Broadcom based DD-WRT / OpenWRT
Post by: OtaconEmmerich on October 10, 2013, 12:52:08 AM
It's an optware IPK. It'll work with dd-wrt, Kong mod and asuswrt-Merlin, and probably asuswrt too.

Also for taxik, if you can install optware (http://www.dd-wrt.com/phpBB2/viewtopic.php?t=156013), you can run this.
Good to know that asuswrt-Merlin is supported. Too bad you can't install both Entware and Optware at the sametime, Thanks for the IPK.


Title: Re: CGminer v3.3.4 on Broadcom based DD-WRT / OpenWRT
Post by: OtaconEmmerich on October 10, 2013, 01:59:11 AM
Code:
admin@RT-N16:/tmp/mnt/OPTWARE/asusware# ipkg install cgminer_3.3.4_mipsel.ipk
Installing cgminer (3.3.4) to /opt/...
ipkg: invalid compressed data--format violated
sh: /opt/ipkg-zWCaj2/cgminer-7gGXKd/preinst: not found
preinst script returned status 127
An error ocurred, return value: 1.
Collected errors:
Aborting installation of cgminer
admin@RT-N16:/tmp/mnt/OPTWARE/asusware#
Hmmm, is this because I coped it to a FAT32 flash drive? I can't wget it because it's behind https and the ipkg repo has a old version of wget it seems..Can you upload to a ftp or someplace that doesn't use https?


Title: Re: CGminer v3.3.4 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on October 10, 2013, 09:15:46 AM
Code:
admin@RT-N16:/tmp/mnt/OPTWARE/asusware# ipkg install cgminer_3.3.4_mipsel.ipk
Installing cgminer (3.3.4) to /opt/...
ipkg: invalid compressed data--format violated
sh: /opt/ipkg-zWCaj2/cgminer-7gGXKd/preinst: not found
preinst script returned status 127
An error ocurred, return value: 1.
Collected errors:
Aborting installation of cgminer
admin@RT-N16:/tmp/mnt/OPTWARE/asusware#
Hmmm, is this because I coped it to a FAT32 flash drive? I can't wget it because it's behind https and the ipkg repo has a old version of wget it seems..Can you upload to a ftp or someplace that doesn't use https?

How did you install optware in Fat32!? Fat32 doesn't have the ability to do symbolic links, which will cause all sorts of problems.
But it's saying that the compression formats is wrong, which is odd. I installed it OK on a totally fresh Optware. Maybe try:
ipkg update
ipkg upgrade

To update everything first.

Though on my asuswrt-Merlin I had to adapt the ipk. for some reason some of the installation scripts didn't work (I have no idea why - said they were missing) So I made a new IPK without them. Scripts didn't do too much, just stop and restart the service.

Also, you can install wget-ssl for https transfers, just have to remove wget first:
ipkg remove wget
ipkg install wget-ssl


Title: Re: CGminer v3.3.4 on Broadcom based DD-WRT / OpenWRT
Post by: OtaconEmmerich on October 10, 2013, 10:56:17 AM
I was using a separate flash drive that was FAT32 formatted to transfer the IPK as wget wouldn't work. I think it's messing up because I had Entware installed and it may be a bit confused. I tried installing wget-ssl but it doesn't seem to be working at all too.
I'll probably just install the newest merlin firmware and try again, It's been a few months and there was a decent firmware update to it so might as well.

Edit:Well one quick update and Optware reinstall later..It's having the same issue...I think the default ASUS-Merlin optware isn't quite the same as DD-WRT's..

What's the command to get wget working with SSL? I've got wget-ssl installed and I'm using
Code:
wget https://www.dropbox.com/s/950r36j86mx69d6/cgminer_3.3.4_mipsel.ipk

It worked fine when I had Entware installed..but I'm sure Entware has wget 1.14-1


Title: Re: CGminer v3.3.4 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on October 10, 2013, 11:49:29 AM
wget will use ssl when it needs to if you install wget-ssl

I've tried using entware, but doesn't really work for me. Seems to have the same failings at optware, with the added bonus of not having all the support and nice scripts.

Using the flash drive to transfer the file is fine, ipkg will copy it to a temp dir, the 'ipkg-zWCaj2/cgminer-7gGXKd'

I'll up-load the non-script version, because for some reason it doesn't work with asuswrt, and I have absolutely no idea why... neither does google. Just means you should manually shut down and start up the cgminer service when updating.

https://www.dropbox.com/s/dwj0tmj89v4c27d/cgminer_3.3.4-1_mipsel.ipk


Title: Re: CGminer v3.3.4 on Broadcom based DD-WRT / OpenWRT
Post by: OtaconEmmerich on October 10, 2013, 12:05:15 PM
SUCCESS! That file copied perfectly to the OPT folder and installed without errors!

...Now the question is how do i set this up properly now..


Title: Re: CGminer v3.3.4 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on October 10, 2013, 12:19:37 PM
edit /opt/et/cgminer.conf

type:
service cgminer on
service cgminer start


Title: Re: CGminer v3.3.4 on Broadcom based DD-WRT / OpenWRT
Post by: OtaconEmmerich on October 10, 2013, 12:26:20 PM
"service cgminer on" nor "service cgminer start" doesn't work, I edited the cgminer.conf beforehand. I can't even get the services command to list anything. I think that's the DD-WRT only feature. I have no clue how it's handled in the ASUSWRT-Merlin firmware.

Edit:Got CGminer running at least, GETRESULTS TIME OUT ERRORS. FFFFFFF- I GIVE UP.

I guess I'll just have to live with 5-7$ higher power bills for another month at least.


Title: Re: CGminer v3.3.4 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on October 10, 2013, 01:31:09 PM
"service cgminer on" nor "service cgminer start" doesn't work, I edited the cgminer.conf beforehand. I can't even get the services command to list anything. I think that's the DD-WRT only feature. I have no clue how it's handled in the ASUSWRT-Merlin firmware.

Edit:Got CGminer running at least, GETRESULTS TIME OUT ERRORS. FFFFFFF- I GIVE UP.

I guess I'll just have to live with 5-7$ higher power bills for another month at least.

Ah yeah, service is a optware the right way thing.

Probably best give up. Not a lot I can do about that error.


Title: Re: CGminer v3.3.4 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on October 10, 2013, 02:11:09 PM
Out of curiosity, what mining hardware do you use?


Title: Re: CGminer v3.3.4 on Broadcom based DD-WRT / OpenWRT
Post by: OtaconEmmerich on October 11, 2013, 03:00:16 AM
Out of curiosity, what mining hardware do you use?
6 Block Eruptors on a Rosewill HUB.


Title: Re: CGminer v3.5.1 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on October 11, 2013, 04:27:53 PM
Got the bastard to compile and run... maybe even work? Dunno, have no hardware to test with.

https://www.dropbox.com/s/pf1e1zmbrsndsnn/cgminer_3.5.1_mipsel.ipk


Title: Re: CGminer v3.6.1 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on October 14, 2013, 10:24:36 PM
upped to 3.6.1

https://www.dropbox.com/s/jpbd37zj6kswkri/cgminer_3.6.1_mipsel.ipk


Title: Re: CGminer v3.6.1 on Broadcom based DD-WRT / OpenWRT
Post by: OtaconEmmerich on October 15, 2013, 06:27:41 AM
Updated my cgminer, Got it on a different hub with just one BE right now. It's running smooth so far, I'll check it in 30 minutes and add another BE. This version of CGminer may have fixed the timeout issues I had before. I may try this on my tablet later on and see if that fixes I had on that too. Very promising.

Update: Added another BE, Spat out LIBUSB errors after a while. Fun.


Title: Re: CGminer v3.6.1 on Broadcom based DD-WRT / OpenWRT
Post by: -ck on October 15, 2013, 08:00:42 AM
Updated my cgminer, Got it on a different hub with just one BE right now. It's running smooth so far, I'll check it in 30 minutes and add another BE. This version of CGminer may have fixed the timeout issues I had before. I may try this on my tablet later on and see if that fixes I had on that too. Very promising.

Update: Added another BE, Spat out LIBUSB errors after a while. Fun.
Which libusb errors?


Title: Re: CGminer v3.6.1 on Broadcom based DD-WRT / OpenWRT
Post by: OtaconEmmerich on October 15, 2013, 11:00:01 AM
I tried again, Running fine now on all 6 BE's. I think Hotplugging or User error(I had a bunch of instances of screen running because I'm stupid) caused the error. Gunna let it run all night now. Good work on the new code ckolivas.


Title: Re: CGminer v3.6.1 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on October 15, 2013, 02:12:47 PM
Yeah, I should add the caveat... no hot-plugging! the OS/kernel just doesn't support it.


Title: Re: CGminer v3.6.1 on Broadcom based DD-WRT / OpenWRT
Post by: OtaconEmmerich on October 16, 2013, 05:05:46 AM
Hmm, tempted to get get this going on my ASUS WL-520gU now. The million dollar question is, is 16MB of RAM enough? my N16 is using 43MB right now.


Title: Re: CGminer v3.6.1 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on October 16, 2013, 12:54:20 PM
With a swap drive it might, but you'd be pushing it some.


Title: Re: CGminer v3.6.3 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on October 17, 2013, 04:15:11 PM
Upped to 3.6.3

https://www.dropbox.com/s/h3hsknaf1fdw2rk/cgminer_3.6.3_mipsel.ipk

All working with my 6 BFL SC singles :)
CPU usage on the RT-N16 is around 10% for everything (cgminer + OS + whatever else is running).
Total power consumption of that lot is about 1560W

(Remember: Hot-plugging does not work. Have to restart cgminer to find new units.)

http://i.imgur.com/08apVD1l.jpg (http://imgur.com/08apVD1)


Title: Re: CGminer v3.6.3 on Broadcom based DD-WRT / OpenWRT
Post by: nitrox on October 19, 2013, 12:09:52 PM
help.
when start cgminer show this message

/opt/etc/init.d/S99cgminer: /opt/etc/init.d/S99cgminer: 50: optlog: not found

and cgminer stop working , i use cgminer_3.6.3_mipsel.ipk

later I'll try older version


Title: Re: CGminer v3.6.3 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on October 19, 2013, 12:39:03 PM
hmm, wonder why you're missing that.
Anyway, I think you can just change all instances of optlog to 'echo'.


Title: Re: CGminer v3.6.3 on Broadcom based DD-WRT / OpenWRT
Post by: OtaconEmmerich on October 19, 2013, 01:44:42 PM
Ick, Just got a(-7) LIBUSB_ERROR_TIMEOUT loop for the second time in a row tonight. Which means I have to restart the router to get it all going again. I updated to 3.6.3 not long ago, but why are errors showing up a day or so later? I wonder if that Seg fault I got a day ago mattered..


Title: Re: CGminer v3.6.3 on Broadcom based DD-WRT / OpenWRT
Post by: nitrox on October 20, 2013, 01:51:03 AM
i get cgminer_3.6.3_mipsel.ipk working normal.
i changed openwrt with dd-wrt.

now can't start API.
i add to my cgminer.conf
Code:
"api-listen" : true,
"api-port" : "4028",
"api-allow" : "W:192.168.1.0/24"

but i get only this on miner.php:
Code:
Error getting device list: ERR: socket connect(0) failed

any ideas to fix it


Title: Re: CGminer v3.6.3 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on October 20, 2013, 01:32:09 PM
You could try starting cgminer manually, and having a look at the messages during start up to see if it's enabling the API.
Can't say what's going on there. Looks like it should work. Firewall issue?


Title: Re: CGminer v3.6.3 on Broadcom based DD-WRT / OpenWRT
Post by: nitrox on October 20, 2013, 05:39:27 PM
logfile
Code:
Illegal instruction

add: how to start manually cgminer ?
i think first
Code:
service cgminer stop
then what ?


Title: Re: CGminer v3.6.3 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on October 21, 2013, 12:09:44 PM
then manually:

cgminer -c /opt/etc/cgminer.conf


Title: Re: CGminer v3.6.3 on Broadcom based DD-WRT / OpenWRT
Post by: nitrox on October 21, 2013, 06:02:00 PM
i get this :
Code:
root@MINER:~# cgminer -c /opt/etc/cgminer.conf
Illegal instruction
root@MINER:~#

ADD:
i think some lib is missing , i get "screen" just in case but no result even after restart


Title: Re: CGminer v3.6.3 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on October 21, 2013, 07:28:43 PM
type:
unset LD_LIBRARY_PATH
unset LD_PRELOAD

first, then cgminer ...


Title: Re: CGminer v3.6.3 on Broadcom based DD-WRT / OpenWRT
Post by: nitrox on October 21, 2013, 07:41:56 PM
got :
Code:
root@MINER:~# unset LD_LIBRARY_PATH
root@MINER:~# unset LD_PRELOAD
root@MINER:~# cgminer -c /opt/etc/cgminer.conf
Illegal instruction
root@MINER:~#
and always get "Illegal instruction"  :-\  :(  ???

ADD:
this
Code:
unset LD_LIBRARY_PATH
unset LD_PRELOAD
is included in cgminer.sh


Title: Re: CGminer v3.6.3 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on October 21, 2013, 09:41:31 PM
That is odd.
It starts with cgminer.sh, but not manually? I don't get it. That's weird.


Title: Re: CGminer v3.6.3 on Broadcom based DD-WRT / OpenWRT
Post by: nitrox on October 21, 2013, 10:16:40 PM
i use that manual to get OPT on my Asus WL520gU
http://www.dd-wrt.com/wiki/index.php/Optware%2C_the_Right_Way (http://www.dd-wrt.com/wiki/index.php/Optware%2C_the_Right_Way)

and use 2GB flash drive (256MB - swap , other left for OPT approximately 1.7GB )
every thing is normal but cgminer not


Title: Re: CGminer v3.6.3 on Broadcom based DD-WRT / OpenWRT
Post by: OtaconEmmerich on October 22, 2013, 11:20:05 AM
ARGH! This is the 5th time or so I've gotten a Seg fault or LibUSB I/O error.  :'( It seems to happen almost every 24-30 hours or so. I wonder if this is an issue in 3.6.1? I hope updating to 3.6.3 fixes it, I was waiting for another update but..Maybe I can make a scheduled script to restart it every 20 hours if it still shows up..What would be the best way to do that?


Title: Re: CGminer v3.6.3 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on October 22, 2013, 09:13:28 PM
Cron can do that, you'll have to google it though.

Try 3.6.3, may work better. I'm not going to release 3.6.4, the changes I don't think will much affect this build.


Title: Re: CGminer v3.6.3 on Broadcom based DD-WRT / OpenWRT
Post by: 3KyNoX on October 23, 2013, 04:23:31 PM
Is there a way to get cgminer working on Atheros based router (TPLINK WR1043ND) that cannot use 'service' command.

Got DD-WRT installed with Optware (Optware trick for Atheros comes from http://www.dd-wrt.com/phpBB2/viewtopic.php?t=86912&postdays=0&postorder=asc&start=0 that permit to use 'opkg' instead of 'service' command).

Tried with 'opkg' :

Code:
root@BNT /tmp $ opkg install cgminer_3.6.3_mipsel.ipk
Unknown package 'cgminer'.
Collected errors:
 * pkg_hash_fetch_best_installation_candidate: Packages for cgminer found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package cgminer.

ipkg returns nothing :

Code:
root@BNT /tmp $ ipkg install cgminer_3.6.3_mipsel.ipk
ERROR: File not found: //usr/local/lib/ipkg/lists/whiterussian
       You probably want to run `ipkg update'
ERROR: File not found: //usr/local/lib/ipkg/lists/non-free
       You probably want to run `ipkg update'
ERROR: File not found: //usr/local/lib/ipkg/lists/backports
       You probably want to run `ipkg update'
/bin/ipkg: line 1184: sort: not found
root@BNT /tmp $

The error returned with ipkg comes from the optware atheros trick and doesn't matter.

Thanks for help.


Title: Re: CGminer v3.6.3 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on October 23, 2013, 04:53:11 PM
Is there a way to get cgminer working on Atheros based router (TPLINK WR1043ND) that cannot use 'service' command.

Got DD-WRT installed with Optware (Optware trick for Atheros comes from http://www.dd-wrt.com/phpBB2/viewtopic.php?t=86912&postdays=0&postorder=asc&start=0 that permit to use 'opkg' instead of 'service' command).

Tried with 'opkg' :

root@BNT /tmp $ opkg install cgminer_3.6.3_mipsel.ipk
Unknown package 'cgminer'.
Collected errors:
 * pkg_hash_fetch_best_installation_candidate: Packages for cgminer found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package cgminer.


There's your problem.

If I put a lot of effort in, I probably could get it to compile for atheros... but then I couldn't test it in any way.


Title: Re: CGminer v3.6.3 on Broadcom based DD-WRT / OpenWRT
Post by: 3KyNoX on October 23, 2013, 06:48:51 PM
Thanks for your reply.

I could test it, and help you in any ways. I'm compiling things since a long time using gcc on linux, but can't find your method for cgminer.

Anyway it could add support for Atheros peoples. I'm ready for testing purpose.


Title: Re: CGminer v3.6.3 on Broadcom based DD-WRT / OpenWRT
Post by: OtaconEmmerich on October 23, 2013, 08:14:51 PM
Yet another Seg fault  >:(
How can I check to see what's causing these? At least this time around I didn't have to reboot the router.


Title: Re: CGminer v3.6.3 on Broadcom based DD-WRT / OpenWRT
Post by: -ck on October 23, 2013, 08:41:47 PM
I've tried to make the current git master compile against the system libusb optionally now with the --with-system-libusb option.


Title: Re: CGminer v3.6.3 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on October 23, 2013, 08:42:16 PM
Mine's been up for over 6 days now with no issue.

I could compile a debug version for you, which you'll have to run with gdb, to try can catch the error.

There's a 'low memory' flag you could try adding to cgminer.sh '--lowmem' might help?


Title: Re: CGminer v3.6.3 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on October 23, 2013, 08:42:56 PM
I've tried to make the current git master compile against the system libusb optionally now with the --with-system-libusb option.

Nice, that's very useful, thanks.


Title: Re: CGminer v3.6.3 on Broadcom based DD-WRT / OpenWRT
Post by: OtaconEmmerich on October 24, 2013, 01:01:01 AM
I've tried to make the current git master compile against the system libusb optionally now with the --with-system-libusb option.
That does sound very useful.
Mine's been up for over 6 days now with no issue.

I could compile a debug version for you, which you'll have to run with gdb, to try can catch the error.

There's a 'low memory' flag you could try adding to cgminer.sh '--lowmem' might help?
I'll try running with that flag next time, I can't get cgminer running as a service FYI. Every time It crashes I have to kill the screen instance if it doesn't default back to a prompt and retype the whole damned line. I wouldn't mind running a debug verison if it will help figure out what is causing this bug.


Title: Re: CGminer v3.6.3 on Broadcom based DD-WRT / OpenWRT
Post by: nitrox on October 26, 2013, 07:11:47 PM
how to add patch for HEX16A in cgminer for openwrt from this post
The patch for cgminer is available for download from the technobit's web page link (http://technobit.eu/index.php?controller=attachment&id_attachment=5)


Title: Re: CGminer v3.6.3 on Broadcom based DD-WRT / OpenWRT
Post by: nitrox on October 27, 2013, 07:29:38 PM
come on anyone ?


Title: Re: CGminer v3.6.3 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on October 27, 2013, 08:49:38 PM
come on anyone ?

Ask Con. This isn't the place for that.


Title: Re: CGminer v3.7.2 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on November 05, 2013, 07:06:40 PM
Upped to 3.7.2

https://www.dropbox.com/s/upwnn8hy2acssm9/cgminer_3.7.2_mipsel.ipk


Title: Re: CGminer v3.7.2 on Broadcom based DD-WRT / OpenWRT
Post by: OtaconEmmerich on November 07, 2013, 08:15:45 AM
Had an error installing the new update.
Code:
Upgrading cgminer on /opt/ from 3.6.3 to 3.7.2...
sh: /opt/ipkg-rIrXPj/cgminer-d2hl3D/preinst: not found
preinst script returned status 127
An error ocurred, return value: 1.
Collected errors:
Aborting installation of cgminer


Title: Re: CGminer v3.8.1 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on November 15, 2013, 06:25:07 PM
Upped to 3.8.1

https://www.dropbox.com/s/i8eze451k2obtgc/cgminer_3.8.1_mipsel.ipk

I've left off the pre/post inst scripts so it works on asuswrt.


Title: Re: CGminer v3.8.1 on Broadcom based DD-WRT / OpenWRT
Post by: OtaconEmmerich on November 18, 2013, 07:10:47 AM
Spits out a bunch of errors out for me.
Code:
[2013-11-17 23:00:38] AMU 0 SendWork usb write err:(-12) LIBUSB_ERROR_NOT_SUPPORTED
along with this after it finishes spitting out the errors.
Code:
[2013-11-17 22:51:49] Started cgminer 3.8.1
modprobe: module i2c-dev not found in modules.dep
 [2013-11-17 22:51:51] BlackArrowBitFuryGPIO failed to modprobe i2c-dev (256) - you need to be root?
 [2013-11-17 22:51:51] No devices detected!
 [2013-11-17 22:51:51] Waiting for USB hotplug devices or press q to quit       
 [2013-11-17 22:51:51] Probing for an alive pool
 [2013-11-17 22:51:52] Pool 0 difficulty changed to 2
 [2013-11-17 22:51:53] Network diff set to 609M
(5s):0.000 (avg):0.000h/s | A:0  R:0  HW:0  WU:0.0/m


Title: Re: CGminer v3.8.3 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on November 23, 2013, 07:27:24 PM
Upped to 3.8.3:

https://www.dropbox.com/s/j5zxk6bwovp7t50/cgminer_3.8.3_mipsel.ipk

Another 'Rpi only' device was added in the last version which I shouldn't have enabled. Removed that now. Can't say if there's be no AMU errors though.


Title: Re: CGminer v3.8.3 on Broadcom based DD-WRT / OpenWRT
Post by: OtaconEmmerich on December 09, 2013, 06:04:13 PM
Boo  >:(
Same error as last time. LIBUSB_ERROR_NOT_SUPPORTED  >:(
Back to 3.6.1 again.


Title: Re: CGminer v3.8.3 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on December 09, 2013, 06:45:35 PM
Yeah, seems 3.6.3 is the last one which works. It's the one I've left running since I haven't had any problems and needed to upgrade.


Title: Re: CGminer v3.8.3 on Broadcom based DD-WRT / OpenWRT
Post by: -ck on December 09, 2013, 07:45:15 PM
Same error as last time. LIBUSB_ERROR_NOT_SUPPORTED  >:(
I know what this is likely to be. Fixed in git, version 3.8.5 cgminer, when it's out, should have it fixed.


Title: Re: CGminer v3.8.3 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on December 09, 2013, 08:00:59 PM
Oh great, Thanks Con. :)


Title: Re: CGminer v3.8.3 on Broadcom based DD-WRT / OpenWRT
Post by: daurwid on December 10, 2013, 04:55:36 PM
Boo  >:(
Same error as last time. LIBUSB_ERROR_NOT_SUPPORTED  >:(
Back to 3.6.1 again.

I rolled back to 3.6.3 per P_Shep's suggestion.  I have had no problems since.  Hopefully ckolivas can figure out what's going on with the newer versions.  I tested 3.7.x & 3.8.x versions but could not get them to detect my BFL MiniRig SC.


Title: Re: CGminer v3.8.3 on Broadcom based DD-WRT / OpenWRT
Post by: OtaconEmmerich on December 10, 2013, 05:20:32 PM
Thanks for all the effort you do Con, and Thanks for compiling these Shep. Whenever you get to 3.8.5 I'll give it a go again.

Also I ment 3.6.3  in the last post, Which has been stable sense I upgraded my firmware and reinstalled Optware fresh and will stay that way I hope.


Title: Re: CGminer v3.8.5 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on December 10, 2013, 10:10:58 PM
OK, here it is:

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

Working for me right now.


Title: Re: CGminer v3.8.5 on Broadcom based DD-WRT / OpenWRT
Post by: OtaconEmmerich on December 10, 2013, 11:56:44 PM
Oh boy, Guess what?   :-\
Code:
[2013-12-10 15:47:55] Started cgminer 3.8.5
 [2013-12-10 15:47:57] Probing for an alive pool
 [2013-12-10 15:47:58] Pool 0 difficulty changed to 2
 [2013-12-10 15:47:59] Network diff set to 908M
 [2013-12-10 15:49:18] AMU 5 SendWork usb write err:(-7) LIBUSB_ERROR_TIMEOUT   
 [2013-12-10 15:49:18] AMU 2 SendWork usb write err:(-7) LIBUSB_ERROR_TIMEOUT   
 [2013-12-10 15:49:18] AMU 4 SendWork usb write err:(-7) LIBUSB_ERROR_TIMEOUT   
 [2013-12-10 15:49:18] AMU 3 SendWork usb write err:(-7) LIBUSB_ERROR_TIMEOUT   
 [2013-12-10 15:50:45] AMU 5 attempted reset got err:(-5) LIBUSB_ERROR_NOT_FOUND
 [2013-12-10 15:50:45] AMU5: Comms error (werr=-5 amt=0)
 [2013-12-10 15:50:45] AMU 5 failure, disabling!
(5s):883.3M (avg):1.253Gh/s | A:0  R:0  HW:0  WU:0.0/m
It tries to mine, but 1 second after Network Diff shows up it all goes green(as in all the LED's on my BE's turn green)
It seems like at least it's TRYING to work but something hitches, Back to 3.6.3 and restarting every ~24 hours.


Title: Re: CGminer v3.8.5 on Broadcom based DD-WRT / OpenWRT
Post by: daurwid on December 11, 2013, 09:31:37 PM
OK, here it is:

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

Working for me right now.

Installed and seems to be running.  I'll report on it after 24 hours have passed.


Title: Re: CGminer v3.8.5 on Broadcom based DD-WRT / OpenWRT
Post by: miniminemo on December 12, 2013, 12:40:59 PM
I have an Asus RT N16 with ddwrt and a 5GH/s BFL miner.

I'm following the instructions posted at
http://pastebin.com/hwgm3kEe and
https://109.201.133.195/index.php?topic=76685.msg3911947

When starting cgminer I get:
  root@DD-WRT:/opt# cgminer
 [2013-12-12 05:41:53] Started cgminer 3.8.5                   
 [2013-12-12 05:41:53] Failed to sem_wait errno=89 cgsem=0x0x5061c8 in usbutils.c usb_resource_thread():3651

Not sure if I set up the usb libs properly, here is what I have
root@DD-WRT:/opt/lib# ls | grep libusb
libusb-0.1.so.4
libusb-0.1.so.4.4.4
libusb-1.0.so
libusb-1.0.so.0
libusb-1.0.so.0.1.0
libusb.so

root@DD-WRT:/opt/lib# ls -lR . | grep ^l
lrwxrwxrwx 1 root root      19 Dec 12 05:55 libusb-0.1.so.4 -> libusb-0.1.so.4.4.4
lrwxrwxrwx 1 root root      19 Dec 12 05:24 libusb-1.0.so -> libusb-1.0.so.0.1.0
lrwxrwxrwx 1 root root      19 Dec 12 04:31 libusb-1.0.so.0 -> libusb-1.0.so.0.1.0

Any ideas what could be the problem?
   


Title: Re: CGminer v3.8.5 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on December 12, 2013, 01:12:08 PM
I have an Asus RT N16 with ddwrt and a 5GH/s BFL miner.

I'm following the instructions posted at
http://pastebin.com/hwgm3kEe and
https://109.201.133.195/index.php?topic=76685.msg3911947

When starting cgminer I get:
  root@DD-WRT:/opt# cgminer
 [2013-12-12 05:41:53] Started cgminer 3.8.5                   
 [2013-12-12 05:41:53] Failed to sem_wait errno=89 cgsem=0x0x5061c8 in usbutils.c usb_resource_thread():3651

Not sure if I set up the usb libs properly, here is what I have
root@DD-WRT:/opt/lib# ls | grep libusb
libusb-0.1.so.4
libusb-0.1.so.4.4.4
libusb-1.0.so
libusb-1.0.so.0
libusb-1.0.so.0.1.0
libusb.so

root@DD-WRT:/opt/lib# ls -lR . | grep ^l
lrwxrwxrwx 1 root root      19 Dec 12 05:55 libusb-0.1.so.4 -> libusb-0.1.so.4.4.4
lrwxrwxrwx 1 root root      19 Dec 12 05:24 libusb-1.0.so -> libusb-1.0.so.0.1.0
lrwxrwxrwx 1 root root      19 Dec 12 04:31 libusb-1.0.so.0 -> libusb-1.0.so.0.1.0

Any ideas what could be the problem?
   

Well that should work OK. You don't need to worry about libusb though, cgminer is statically compiled.
To run straight from the cmd line, you may need to reset the library path:
unset LD_LIBRARY_PATH
unset LD_PRELOAD


Title: Re: CGminer v3.8.5 on Broadcom based DD-WRT / OpenWRT
Post by: daurwid on December 12, 2013, 03:15:37 PM
uptime on router 8 hrs, still running and uses very little resources. 3.8.5.


Title: Re: CGminer v3.8.5 on Broadcom based DD-WRT / OpenWRT
Post by: miniminemo on December 13, 2013, 02:15:18 AM
I have an Asus RT N16 with ddwrt and a 5GH/s BFL miner.

I'm following the instructions posted at
http://pastebin.com/hwgm3kEe and
https://109.201.133.195/index.php?topic=76685.msg3911947

When starting cgminer I get:
  root@DD-WRT:/opt# cgminer
 [2013-12-12 05:41:53] Started cgminer 3.8.5                   
 [2013-12-12 05:41:53] Failed to sem_wait errno=89 cgsem=0x0x5061c8 in usbutils.c usb_resource_thread():3651

Not sure if I set up the usb libs properly, here is what I have
root@DD-WRT:/opt/lib# ls | grep libusb
libusb-0.1.so.4
libusb-0.1.so.4.4.4
libusb-1.0.so
libusb-1.0.so.0
libusb-1.0.so.0.1.0
libusb.so

root@DD-WRT:/opt/lib# ls -lR . | grep ^l
lrwxrwxrwx 1 root root      19 Dec 12 05:55 libusb-0.1.so.4 -> libusb-0.1.so.4.4.4
lrwxrwxrwx 1 root root      19 Dec 12 05:24 libusb-1.0.so -> libusb-1.0.so.0.1.0
lrwxrwxrwx 1 root root      19 Dec 12 04:31 libusb-1.0.so.0 -> libusb-1.0.so.0.1.0

Any ideas what could be the problem?
   

Well that should work OK. You don't need to worry about libusb though, cgminer is statically compiled.
To run straight from the cmd line, you may need to reset the library path:
unset LD_LIBRARY_PATH
unset LD_PRELOAD

I tried unsetting the path and after running cgminer it prints out the semwait error then exits.
No difference when I run: service cgminer start.
This is what I get when listing the usb devices:

root@DD-WRT:~# ls -l /dev/usb/tts/
total 0
crw------- 1 root root 188, 0 Jan  1  1970 0

Any ideas about what's wrong?


 


Title: Re: CGminer v3.8.5 on Broadcom based DD-WRT / OpenWRT
Post by: OtaconEmmerich on December 13, 2013, 12:12:28 PM
uptime on router 8 hrs, still running and uses very little resources. 3.8.5.
What router model and what firmware if you wouldn't mind sharing.


Title: Re: CGminer v3.8.5 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on December 13, 2013, 03:18:33 PM

I tried unsetting the path and after running cgminer it prints out the semwait error then exits.
No difference when I run: service cgminer start.
This is what I get when listing the usb devices:

root@DD-WRT:~# ls -l /dev/usb/tts/
total 0
crw------- 1 root root 188, 0 Jan  1  1970 0

Any ideas about what's wrong?


 

No idea at all. That's the set up I have. My RT-N16 is running Kong mod build 21395M and OTRW2.

And tty won't list anything, the drivers aren't installed or used anymore. cgminer communicates directly with the device via libusb.


Title: Re: CGminer v3.8.5 on Broadcom based DD-WRT / OpenWRT
Post by: daurwid on December 13, 2013, 08:25:57 PM
uptime on router 8 hrs, still running and uses very little resources. 3.8.5.

Update.  Stability problems.  Log file shows this as error:

Quote
[2013-12-13 13:06:08] BAS0: GetResults failed no data returned  (err=0 amt=0)
 [2013-12-13 13:06:08] BAS0: RequestQueJobStatus failed no data returned  (err=0 amt=0)
 [2013-12-13 13:06:09] BAS 0 RequestResults usb write err:(-7) LIBUSB_ERROR_TIMEOUT
 [2013-12-13 13:06:09] BAS 0 attempted reset got err:(0) LIBUSB_SUCCESS / LIBUSB_TRANSFER_COMPLETED
 [2013-12-13 13:06:09] BAS0: RequestResults failed no data returned  (err=0 amt=0)
 [2013-12-13 13:06:09] BAS0: GetResults failed no data returned  (err=0 amt=0)
 [2013-12-13 13:06:10] BAS0: GetResults failed (err=-7 amt=0)
 [2013-12-13 13:06:10] BAS 0 RequestQueJob usb write err:(-7) LIBUSB_ERROR_TIMEOUT
 [2013-12-13 13:06:10] BAS 0 attempted reset got err:(0) LIBUSB_SUCCESS / LIBUSB_TRANSFER_COMPLETED
 [2013-12-13 13:06:10] BAS0: RequestQueJob failed no data returned  (err=0 amt=0)
 [2013-12-13 13:06:11] BAS0: GetResults failed no data returned  (err=0 amt=0)
 [2013-12-13 13:06:11] BAS0: GetResults failed (err=-7 amt=0)
 

Over time this would cause the router to reboot or force the service to restart.  Lots issues with router as well (attempting to use VPN was becoming a problem).

Rolled back to 3.6.3.

I'm running Kongmod 22200M + OTRW2.


Title: Re: CGminer v3.8.5 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on December 15, 2013, 09:27:22 PM
Running for just shy of 5 days now for me.

Getting a few 'BAS0: empty result...', but not too many.


Title: Re: CGminer v3.8.5 on Broadcom based DD-WRT / OpenWRT
Post by: daurwid on December 16, 2013, 04:19:33 PM
uptime on router 8 hrs, still running and uses very little resources. 3.8.5.
What router model and what firmware if you wouldn't mind sharing.

E3000 (WRT610Nv2 converted to E3000)+ KONGMOD 22200M + OTRW2

I also noticed that this optware was loading transmission_daemon which i had to disable the service as well as edit the /opt/etc/init.d/K90transmission and comment out line #129 which would run a gunzip process at 100% cpu at start.


Title: Re: CGminer v3.8.5 on Broadcom based DD-WRT / OpenWRT
Post by: Jaslynn on December 17, 2013, 12:38:51 PM
cgminer_3.8.5 running without a problem! Loving it


Title: Re: CGminer v3.8.5 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on December 19, 2013, 02:23:07 PM
Hmm, after 8 days or so without problem, suddenly bad things are happening.

Might have to go back to 3.6.3 also.


Title: Re: CGminer v3.8.5 on Broadcom based DD-WRT / OpenWRT
Post by: crazyates on December 22, 2013, 04:23:22 PM
Hmm, after 8 days or so without problem, suddenly bad things are happening.

Might have to go back to 3.6.3 also.

I picked up a WNDR3700v4 for $30 a few days ago, but didn't realize it's an Atheros mipseb SoC, not a Broadcom MIPSEL chip.

So then I got a WNR3500Lv2, which will be here in a few days. It's about the only broadcom MIPSEL I could find with 128MB RAM, 128MB Flash, and still only $30 on fleabay.

Maybe things will go smoother this time. ;) Should I start with your suggested 3.6.3, or go with the newest 3.8.5? It'll only be controlling SC Singles.


Title: Re: CGminer v3.8.5 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on December 22, 2013, 04:52:58 PM
Maybe stick with 3.6.3. Not sure there's much advantage with 3.8.5


Title: Re: CGminer v3.8.5 on Broadcom based DD-WRT / OpenWRT
Post by: crazyates on December 22, 2013, 06:02:50 PM
Maybe stick with 3.6.3. Not sure there's much advantage with 3.8.5
I think there were a few changes in temp cuttoffs with 3.8.5, but not a major deal. You have a link for 3.6.3? Please and Thank You. :)


Title: Re: CGminer v3.8.5 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on December 24, 2013, 11:16:49 AM
https://www.dropbox.com/s/h3hsknaf1fdw2rk/cgminer_3.6.3_mipsel.ipk


Title: Re: CGminer v3.8.5 on Broadcom based DD-WRT / OpenWRT
Post by: daurwid on February 03, 2014, 05:23:05 PM
P_Shep,

Can you compile a newer version with the -scrypt option?  It is not available in the builds I've tested.

Thanks


Title: Re: CGminer v3.8.5 on Broadcom based DD-WRT / OpenWRT
Post by: P_Shep on February 04, 2014, 11:51:28 AM
P_Shep,

Can you compile a newer version with the -scrypt option?  It is not available in the builds I've tested.

Thanks

Errr.. Scrypt requires a GPU. You've seen many routers with a GPU?

Also, The newer version don't even have that anymore, CK removed quite some versions ago.


Title: Re: CGminer v3.8.5 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on February 17, 2014, 09:09:56 PM
P_Shep,

Can you compile a newer version with the -scrypt option?  It is not available in the builds I've tested.

Thanks

Errr.. Scrypt requires a GPU. You've seen many routers with a GPU?

Also, The newer version don't even have that anymore, CK removed quite some versions ago.
There is a bitsream for the Ztex quads that mines litecoin. User kramble made one that mines 60ks/s per quad.

Cgminer should be able to load that onto the boards? 


Title: Re: CGminer v3.8.5 on Broadcom based DD-WRT / OpenWRT
Post by: -ck on February 18, 2014, 05:43:59 AM
No, I removed all scrypt code.


Title: Re: CGminer v3.8.5 on Broadcom based DD-WRT / OpenWRT
Post by: ninjarobot on March 26, 2014, 05:54:26 AM
Just discovered this thread. cgminer on dd-wrt routers sounds awesome!

I picked up a 2nd hand Netgear D6300 and installed dd-wrt on it today. I believe it has a Broadcom chipset. Will it support this cgminer distribution?

Another thing I'd love to do with my router is to run a full node. (I can connect a USB drive so space is not an issue). But hey, cgminer is a good start!


Title: Re: CGminer v3.8.5 on Broadcom based DD-WRT / OpenWRT
Post by: BR0KK on March 30, 2014, 12:20:40 AM
Just discovered this thread. cgminer on dd-wrt routers sounds awesome!

I picked up a 2nd hand Netgear D6300 and installed dd-wrt on it today. I believe it has a Broadcom chipset. Will it support this cgminer distribution?

Another thing I'd love to do with my router is to run a full node. (I can connect a USB drive so space is not an issue). But hey, cgminer is a good start!

I don't think the cpu of the router has the power to run a full bitcoin node. Maybe P2Pool but i can't tell you how ;)


Title: Re: CGminer v3.8.5 on Broadcom based DD-WRT / OpenWRT
Post by: traal on June 07, 2014, 07:28:19 PM
Is there any chance of getting a version with support for Bitmain Antminers?

BTW, the 3.8.5 binary runs on my Asus RT-N16 (Broadcom BCM4718) but not my Linksys WRT-SL54GS (BCM4704).


Title: Re: CGminer v3.8.5 on Broadcom based DD-WRT / OpenWRT
Post by: dlasher on July 25, 2014, 05:47:22 PM
Is there any chance of getting a version with support for Bitmain Antminers?

BTW, the 3.8.5 binary runs on my Asus RT-N16 (Broadcom BCM4718) but not my Linksys WRT-SL54GS (BCM4704).

+1

The Bitmain S3 is running OpenWRT -- BARRIER BREAKER (Bleeding Edge, r38031) - Atheros AR9330

Quote
[    0.000000] Linux version 3.10.12 (xxl@ubuntu) (gcc version 4.6.4 (OpenWrt/Linaro GCC 4.6-2013.05 r38031) ) #134 Fri Jul 11 10:42:43 CST 2014



Title: Re: CGminer v3.8.5 on Broadcom based DD-WRT / OpenWRT
Post by: VoodooServ on March 04, 2015, 09:05:53 AM
Can anyone make this firmware 0.4b-4.0.0 (http://bitcoinbg.eu/tools/technobit/mr3020-0.4b-4.0.0.zip) to work with Technobit Asic & USB Erupters (AntMiners) ?