Bitcoin Forum
November 20, 2017, 12:34:21 AM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 [All]
  Print  
Author Topic: CGminer v3.8.5 on Broadcom based DD-WRT / OpenWRT  (Read 76126 times)
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
April 14, 2012, 09:14:41 PM
 #1

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

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

To install on Optware (OTRW / OTRW2):

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

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

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

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

4). Type
> service cgminer start

Join ICO Now A blockchain platform for effective freelancing
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1511138061
Hero Member
*
Offline Offline

Posts: 1511138061

View Profile Personal Message (Offline)

Ignore
1511138061
Reply with quote  #2

1511138061
Report to moderator
P_Shep
Legendary
*
Offline Offline

Activity: 1106


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

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

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

Activity: 1106


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

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

Activity: 252

Inactive


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



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

Activity: 1409


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

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

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

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

OrganofCorti's Neighbourhood Pool Watch - The most informative website on blockchain health
rastapool
Sr. Member
****
Offline Offline

Activity: 396



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

wow, great work

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

Activity: 1106


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

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

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

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

Thanks, spelling's not my strong suit Smiley

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

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

Activity: 463



View Profile
April 16, 2012, 04:38:30 AM
 #8

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

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

P_Shep
Legendary
*
Offline Offline

Activity: 1106


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

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

Activity: 1106


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

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

Activity: 1106


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

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

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

Hate intermittent problems.
Raize
Donator
Legendary
*
Offline Offline

Activity: 1409


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

I seem to have a somewhat-related problem.

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

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

I know I could use xiangfu's custom .bin for Open-WRT, but I'd prefer to stick with DD-WRT since I'm more experienced with that.

OrganofCorti's Neighbourhood Pool Watch - The most informative website on blockchain health
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
April 20, 2012, 01:38:44 AM
 #13

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

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

Activity: 1106


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

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

Activity: 252

Inactive


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

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


Sweet.
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
May 10, 2012, 01:40:12 AM
 #16

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

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

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

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

Activity: 966



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

my situation:

TP-Link MR3420 + ztex board single

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

any idea ?

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

Activity: 1106


View Profile WWW
May 20, 2012, 06:51:17 PM
 #18

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

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

Activity: 1106


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

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

Activity: 966



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

right...

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

thank you

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

Activity: 1106


View Profile WWW
May 21, 2012, 05:57:52 PM
 #21

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.
pazor
Legendary
*
Offline Offline

Activity: 966



View Profile
May 21, 2012, 06:04:15 PM
 #22

thank you p_shep... i will try it

treuhand-Dienst gewünscht? - frag per PM an
BTC 174X17nR7vEQBQo4GXKRGMGaTmB49Gf1yT
streblo
Full Member
***
Offline Offline

Activity: 162


View Profile
May 21, 2012, 10:31:50 PM
 #23

Are you powering your USB hub and router from your PSU?  Grin
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
May 21, 2012, 10:36:51 PM
 #24

Are you powering your USB hub and router from your PSU?  Grin

Yep, everything. No inefficient, messy, bulky wall-wart PSUs here Smiley
aseldon
Member
**
Offline Offline

Activity: 64



View Profile
May 21, 2012, 10:55:46 PM
 #25

Are you powering your USB hub and router from your PSU?  Grin

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

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

Activity: 1106


View Profile WWW
May 21, 2012, 11:32:44 PM
 #26

I made them myself, but you can buy some from cablez:
https://bitcointalk.org/index.php?topic=74397.0
Lomax42
Jr. Member
*
Offline Offline

Activity: 30


View Profile
May 24, 2012, 06:31:56 AM
 #27

Has anyone used BitForce SHA256 Single or any of their products? or is it all hype? http://www.butterflylabs.com/product-details/
rjk
Sr. Member
****
Offline Offline

Activity: 434


1ngldh


View Profile
May 24, 2012, 02:13:54 PM
 #28

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.

Mining Rig Extraordinaire - the Trenton BPX6806 18-slot PCIe backplane [PICS] Dead project is dead, all hail the coming of the mighty ASIC!
smracer
Donator
Legendary
*
Offline Offline

Activity: 1045



View Profile
May 24, 2012, 03:47:11 PM
 #29

What cables are you using to power the bitforce singles from a power suppply?  I am tired of all these power bricks.

1smracer15yDLhJG27fd7GV3tegcNjtg2
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
May 24, 2012, 04:37:13 PM
 #30

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 Smiley
nelisky
Legendary
*
Offline Offline

Activity: 1554


View Profile
May 24, 2012, 05:08:20 PM
 #31

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.
pazor
Legendary
*
Offline Offline

Activity: 966



View Profile
May 24, 2012, 06:22:03 PM
 #32

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

treuhand-Dienst gewünscht? - frag per PM an
BTC 174X17nR7vEQBQo4GXKRGMGaTmB49Gf1yT
streblo
Full Member
***
Offline Offline

Activity: 162


View Profile
May 25, 2012, 11:46:20 PM
 #33

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?
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
May 25, 2012, 11:53:41 PM
 #34

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 Smiley

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.
nedbert9
Sr. Member
****
Offline Offline

Activity: 252

Inactive


View Profile
May 26, 2012, 12:54:32 AM
 #35



Thanks for keeping this up to date.  Will send some btc later.
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
May 30, 2012, 07:55:12 PM
 #36

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.
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
June 03, 2012, 05:16:25 AM
 #37

Updated for cgminer 2.4.2:

https://github.com/downloads/pshep/cgminer/cgminer-2.4.2-mipsel.tar.gz
BR0KK
Hero Member
*****
Offline Offline

Activity: 742



View Profile
June 03, 2012, 09:11:38 PM
 #38

Any updates on Ztex support?

nedbert9
Sr. Member
****
Offline Offline

Activity: 252

Inactive


View Profile
June 03, 2012, 10:42:51 PM
 #39


Thanks, P_Shep.  Doughnation sent.
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
June 04, 2012, 01:39:43 AM
 #40

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 Smiley
nelisky
Legendary
*
Offline Offline

Activity: 1554


View Profile
June 04, 2012, 09:12:16 AM
 #41

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 Smiley

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.
BR0KK
Hero Member
*****
Offline Offline

Activity: 742



View Profile
June 04, 2012, 05:24:32 PM
 #42

Does it work great, without stales etc. I heard something about offloading problems on Ztex Boards?

nelisky
Legendary
*
Offline Offline

Activity: 1554


View Profile
June 04, 2012, 05:46:28 PM
 #43

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.
BR0KK
Hero Member
*****
Offline Offline

Activity: 742



View Profile
June 04, 2012, 05:51:54 PM
 #44

Oh thats nice since i want to get rid of my mac mini, what router do u use ?

nelisky
Legendary
*
Offline Offline

Activity: 1554


View Profile
June 04, 2012, 05:55:54 PM
 #45

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 Smiley )
BR0KK
Hero Member
*****
Offline Offline

Activity: 742



View Profile
June 04, 2012, 06:13:14 PM
 #46

thanks Smiley

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 Smiley)

nelisky
Legendary
*
Offline Offline

Activity: 1554


View Profile
June 05, 2012, 08:22:54 AM
 #47

thanks Smiley

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 Smiley)

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.
Chefnet
Hero Member
*****
Offline Offline

Activity: 686


View Profile
June 10, 2012, 10:06:23 AM
 #48

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?

rudrigorc2
Legendary
*
Offline Offline

Activity: 1064



View Profile
June 10, 2012, 10:45:05 AM
 #49

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.
Chefnet
Hero Member
*****
Offline Offline

Activity: 686


View Profile
June 10, 2012, 11:14:23 AM
 #50

yes I have, but I don't get my ztex working (libusb 1.0.18 is installed so I think the bitstream is missing)

nelisky
Legendary
*
Offline Offline

Activity: 1554


View Profile
June 10, 2012, 11:52:35 AM
 #51

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.
Chefnet
Hero Member
*****
Offline Offline

Activity: 686


View Profile
June 10, 2012, 12:09:03 PM
 #52

do you have a small tutorial for both usb storage and using it with cgminer and ztex?

nelisky
Legendary
*
Offline Offline

Activity: 1554


View Profile
June 10, 2012, 12:47:12 PM
 #53

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.
Chefnet
Hero Member
*****
Offline Offline

Activity: 686


View Profile
June 10, 2012, 12:48:56 PM
 #54

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?

nelisky
Legendary
*
Offline Offline

Activity: 1554


View Profile
June 10, 2012, 09:02:24 PM
 #55

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.
BR0KK
Hero Member
*****
Offline Offline

Activity: 742



View Profile
June 11, 2012, 03:37:33 PM
 #56

Bought a mr3420 will try it as soon as I'm home.

P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
June 11, 2012, 04:12:56 PM
 #57

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 Smiley
BR0KK
Hero Member
*****
Offline Offline

Activity: 742



View Profile
June 11, 2012, 06:32:40 PM
 #58

Openwrt is Running now i Need to find Out how the Rest will work Wink
€:

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 ....


P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
June 15, 2012, 05:51:29 PM
 #59

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)
Garr255
Legendary
*
Offline Offline

Activity: 952


What's a GPU?


View Profile
June 16, 2012, 03:22:26 AM
 #60

I'm going to try loading this on a MR3020, although I won't have anything to test it with until Monday.

“First they ignore you, then they laugh at you, then they fight you, then you win.”  -- Mahatma Gandhi

Average time between signing on to bitcointalk: Two weeks. Please don't expect responses any faster than that!
rudrigorc2
Legendary
*
Offline Offline

Activity: 1064



View Profile
June 17, 2012, 12:09:50 AM
 #61

what can you remove do to make it smaller?

I have a version 2.4.1 cgminer its only 130k
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
June 17, 2012, 12:55:23 AM
 #62

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.
rudrigorc2
Legendary
*
Offline Offline

Activity: 1064



View Profile
June 17, 2012, 01:07:56 AM
 #63

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.
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
June 17, 2012, 01:26:10 AM
 #64

Ah. Will not work.

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

Activity: 1064



View Profile
June 17, 2012, 01:35:17 AM
 #65

Ah. Will not work.

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

err..thanks for the info. =)
streblo
Full Member
***
Offline Offline

Activity: 162


View Profile
June 21, 2012, 02:42:09 AM
 #66

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)
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?

P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
June 21, 2012, 05:14:50 AM
 #67

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.
nedbert9
Sr. Member
****
Offline Offline

Activity: 252

Inactive


View Profile
June 21, 2012, 05:28:22 AM
 #68

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.
Chefnet
Hero Member
*****
Offline Offline

Activity: 686


View Profile
June 21, 2012, 06:09:37 AM
 #69

can you compile for tp also?

streblo
Full Member
***
Offline Offline

Activity: 162


View Profile
June 21, 2012, 07:06:52 AM
 #70

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  Sad

I'm just going to keep at it. Any other ideas?
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
June 21, 2012, 03:24:15 PM
 #71

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...
streblo
Full Member
***
Offline Offline

Activity: 162


View Profile
June 22, 2012, 12:00:28 AM
 #72

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 . 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!!
GoldZuGeld
Jr. Member
*
Offline Offline

Activity: 57


View Profile
June 22, 2012, 12:11:47 PM
 #73

did someone have sucess with ztex quad and tplink routers?
pazor
Legendary
*
Offline Offline

Activity: 966



View Profile
June 22, 2012, 12:17:35 PM
 #74

not yet...

 Sad

treuhand-Dienst gewünscht? - frag per PM an
BTC 174X17nR7vEQBQo4GXKRGMGaTmB49Gf1yT
GoldZuGeld
Jr. Member
*
Offline Offline

Activity: 57


View Profile
June 22, 2012, 03:41:10 PM
 #75

can you explain what the problem is?
I want to buy a quad and one of the tplink routers in the next weeks Smiley
BR0KK
Hero Member
*****
Offline Offline

Activity: 742



View Profile
June 22, 2012, 03:58:59 PM
 #76

I'm trying too but i have to start from scratch (linux is not my domain )

P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
June 22, 2012, 11:05:00 PM
 #77

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.
GoldZuGeld
Jr. Member
*
Offline Offline

Activity: 57


View Profile
June 23, 2012, 06:14:48 PM
 #78

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.
streblo
Full Member
***
Offline Offline

Activity: 162


View Profile
June 23, 2012, 09:12:08 PM
 #79

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  Grin
GoldZuGeld
Jr. Member
*
Offline Offline

Activity: 57


View Profile
June 23, 2012, 09:54:08 PM
 #80

Asus RT-N10U is around 20€ cheaper. CPU is Broadcom BCM5357@300
   should work... maybe ^^
d3m0n1q_733rz
Sr. Member
****
Offline Offline

Activity: 349



View Profile WWW
June 25, 2012, 12:24:58 AM
 #81

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?

Funroll_Loops, the theoretically quicker breakfast cereal!
Check out http://www.facebook.com/JupiterICT for all of your computing needs.  If you need it, we can get it.  We have solutions for your computing conundrums.  BTC accepted!  12HWUSguWXRCQKfkPeJygVR1ex5wbg3hAq
streblo
Full Member
***
Offline Offline

Activity: 162


View Profile
June 25, 2012, 12:30:54 AM
 #82

No it doesn't, and if it did, I would imagine the speed would be ca. 0.1MH/s -- in other words, totally pointless.
d3m0n1q_733rz
Sr. Member
****
Offline Offline

Activity: 349



View Profile WWW
June 25, 2012, 03:48:30 AM
 #83

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.

Funroll_Loops, the theoretically quicker breakfast cereal!
Check out http://www.facebook.com/JupiterICT for all of your computing needs.  If you need it, we can get it.  We have solutions for your computing conundrums.  BTC accepted!  12HWUSguWXRCQKfkPeJygVR1ex5wbg3hAq
streblo
Full Member
***
Offline Offline

Activity: 162


View Profile
June 25, 2012, 06:12:04 AM
 #84

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).
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
June 25, 2012, 06:19:27 AM
 #85

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.
Chefnet
Hero Member
*****
Offline Offline

Activity: 686


View Profile
June 25, 2012, 05:59:40 PM
 #86

@p_shep what is with my pm? No anwser?

P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
June 25, 2012, 06:02:59 PM
 #87

@p_shep what is with my pm? No anwser?

Ah right, forgot about that!
Jaryu
Member
**
Offline Offline

Activity: 91


View Profile
June 27, 2012, 04:58:00 AM
 #88

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.
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
June 27, 2012, 06:10:03 AM
 #89

Look at the samba tutorials on dd-wrt website.
You can also enable samba via the web interface.
nanook7
Jr. Member
*
Offline Offline

Activity: 47


View Profile
June 27, 2012, 07:50:31 PM
 #90

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
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
June 27, 2012, 08:22:43 PM
 #91

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
nanook7
Jr. Member
*
Offline Offline

Activity: 47


View Profile
June 27, 2012, 10:00:51 PM
 #92

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.
GoldZuGeld
Jr. Member
*
Offline Offline

Activity: 57


View Profile
June 30, 2012, 08:30:05 PM
 #93

4mb flash could be a bit too small for open-wrt + ztex files
BR0KK
Hero Member
*****
Offline Offline

Activity: 742



View Profile
June 30, 2012, 09:11:40 PM
 #94

That's why u ll use a USB stick Wink


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

P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
July 24, 2012, 08:00:45 PM
 #95

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.
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
July 25, 2012, 04:25:10 PM
 #96

AAaaaaand... it came back to life.

Weird.
streblo
Full Member
***
Offline Offline

Activity: 162


View Profile
July 26, 2012, 05:08:57 PM
 #97

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
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
July 26, 2012, 06:02:42 PM
 #98

Great! well done Smiley

1) Cheesy
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.
unclemantis
Member
**
Offline Offline

Activity: 98


(:firstbits => "1mantis")


View Profile
July 27, 2012, 05:03:58 PM
 #99

That is pretty neat. talk about a conversation piece. Kinda like a modern industrial art piece.

PHP, Ruby, Rails, ASP, JavaScript, SQL
20+ years experience w/ Internet Technologies
Bitcoin OTC | GPG Public Key                                                                               thoughts?
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
July 27, 2012, 05:10:15 PM
 #100

Perhaps I should spray-paint it all bronze/brass/copper, hide the wires in copper pipes, and add random rivets.

Steam-punk mining.
farfie
Jr. Member
*
Offline Offline

Activity: 39



View Profile
July 31, 2012, 02:05:31 PM
 #101

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 Smiley

Thanks.
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
July 31, 2012, 03:31:05 PM
 #102

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.
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
August 15, 2012, 07:51:50 AM
 #103

v2.6.5 finally passed p_shep's certification.
purelithium
Hero Member
*****
Offline Offline

Activity: 504



View Profile
August 17, 2012, 01:51:18 AM
 #104

Has anyone tried a Modminer with this? Looks like an ideal low power solution.

Like my post? 1H7bfRYh7F89mfmFgsRCdn4awDaUHQmYqY
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
August 17, 2012, 05:25:26 PM
 #105

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.
purelithium
Hero Member
*****
Offline Offline

Activity: 504



View Profile
August 17, 2012, 05:50:58 PM
 #106

I may give it a try when I get my MMQ.

Like my post? 1H7bfRYh7F89mfmFgsRCdn4awDaUHQmYqY
GoldZuGeld
Jr. Member
*
Offline Offline

Activity: 57


View Profile
August 18, 2012, 09:34:17 PM
 #107

I got a e3200. What is easier and better, dd-wrt or openwrt?
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
August 19, 2012, 06:06:23 PM
 #108

Don't know about openwrt... lots of people have asked, but no one has said they've done it.

Upped to 2.7.0
BR0KK
Hero Member
*****
Offline Offline

Activity: 742



View Profile
August 19, 2012, 06:16:24 PM
 #109

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) ....Sad

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 Smiley

P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
August 21, 2012, 06:03:30 PM
 #110

Upped to 2.7.1

https://github.com/downloads/pshep/cgminer/cgminer-2.7.1-mipsel.tar.gz
cablepair
Hero Member
*****
Offline Offline

Activity: 854


https://btc-republic.com/index.php?ref=cablepair


View Profile WWW
August 21, 2012, 06:57:16 PM
 #111


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
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
August 21, 2012, 09:05:48 PM
 #112

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.
GoldZuGeld
Jr. Member
*
Offline Offline

Activity: 57


View Profile
August 23, 2012, 07:34:55 PM
 #113

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...  Roll Eyes

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

Activity: 1106


View Profile WWW
August 23, 2012, 08:45:02 PM
 #114

Need to install optware (OTRW)
Links to do that are in the readme.
Mobius
Hero Member
*****
Offline Offline

Activity: 946



View Profile
August 24, 2012, 01:40:05 AM
 #115

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
xiangfu
Full Member
***
Offline Offline

Activity: 120


View Profile
August 24, 2012, 07:17:23 AM
 #116

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.
GoldZuGeld
Jr. Member
*
Offline Offline

Activity: 57


View Profile
August 24, 2012, 11:54:55 AM
 #117

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 Sad
Is otrw2 an alternative?
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
August 24, 2012, 04:25:28 PM
 #118

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 Sad
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.
GoldZuGeld
Jr. Member
*
Offline Offline

Activity: 57


View Profile
August 24, 2012, 05:35:35 PM
 #119

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 Sad
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

P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
August 24, 2012, 05:39:38 PM
 #120

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)
GoldZuGeld
Jr. Member
*
Offline Offline

Activity: 57


View Profile
August 24, 2012, 06:29:33 PM
 #121

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
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
August 24, 2012, 06:34:29 PM
 #122

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.
GoldZuGeld
Jr. Member
*
Offline Offline

Activity: 57


View Profile
August 24, 2012, 08:35:12 PM
 #123

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?
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
August 24, 2012, 08:44:01 PM
 #124

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?
BR0KK
Hero Member
*****
Offline Offline

Activity: 742



View Profile
August 24, 2012, 08:48:55 PM
 #125

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 Sad

GoldZuGeld
Jr. Member
*
Offline Offline

Activity: 57


View Profile
August 24, 2012, 08:56:09 PM
 #126

lsusb shows this
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
August 24, 2012, 09:01:27 PM
 #127

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.
GoldZuGeld
Jr. Member
*
Offline Offline

Activity: 57


View Profile
August 24, 2012, 09:24:16 PM
 #128

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?
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
August 24, 2012, 09:29:49 PM
 #129

PID is process ID

just look in /opt/var/log directory for the lastest log file.
GoldZuGeld
Jr. Member
*
Offline Offline

Activity: 57


View Profile
August 24, 2012, 09:55:40 PM
 #130

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.
GoldZuGeld
Jr. Member
*
Offline Offline

Activity: 57


View Profile
August 24, 2012, 10:15:13 PM
 #131

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.
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
August 24, 2012, 10:38:23 PM
 #132

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.
GoldZuGeld
Jr. Member
*
Offline Offline

Activity: 57


View Profile
August 24, 2012, 10:50:03 PM
 #133

whoops. Linux newbie fail  Roll Eyes

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.
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
August 24, 2012, 10:59:38 PM
 #134

whoops. Linux newbie fail  Roll Eyes

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 Smiley

So I'll add an instruction to mkdir first

(but yes, the intention was top copy the files to the directory Wink )
paraipan
Legendary
*
Offline Offline

Activity: 924


Firstbits: 1pirata


View Profile WWW
August 24, 2012, 11:45:06 PM
 #135

whoops. Linux newbie fail  Roll Eyes

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 Smiley

So I'll add an instruction to mkdir first

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

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

BTCitcoin: An Idea Worth Saving - Q&A with bitcoins on rugatu.com - Check my rep
GoldZuGeld
Jr. Member
*
Offline Offline

Activity: 57


View Profile
August 25, 2012, 10:39:18 PM
 #136

seems to work nicely.
E3200 + Usb Hub + Ztex Quad + Coolermaster GX 450
runs perfect Smiley

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

Activity: 742



View Profile
August 25, 2012, 10:41:49 PM
 #137

it takes time to go up to full speed Smiley

I have the same problem with the Rpi.

How stable is the setup?

GoldZuGeld
Jr. Member
*
Offline Offline

Activity: 57


View Profile
August 25, 2012, 10:51:06 PM
 #138

it takes time to go up to full speed Smiley

I have the same problem with the Rpi.

How stable is the setup?

it runs the whole day today, without problems Smiley 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.
BR0KK
Hero Member
*****
Offline Offline

Activity: 742



View Profile
August 26, 2012, 09:10:38 AM
 #139

why? i run my setup 24/7 for 7 month now; Without casing Cheesy Nothing happened so far Tongue

GoldZuGeld
Jr. Member
*
Offline Offline

Activity: 57


View Profile
August 26, 2012, 10:58:45 AM
 #140

just need to find a good place, where the noise is not annoying Cheesy
Zillions
Full Member
***
Offline Offline

Activity: 155



View Profile WWW
August 27, 2012, 11:17:47 PM
 #141

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.

Feel like Donating/Tip some bit coins to me? 17bruSwSkzwCqgGFjZ78Srizyy24eCKZF5
Mining? Use P2P Pool Nastyfans.org:9332
Want some FREE bit coins? Landofbitcoin.com
Successful transactions with: rate5, daking, Canaryinthemine, vs3 Among others
GoldZuGeld
Jr. Member
*
Offline Offline

Activity: 57


View Profile
August 28, 2012, 04:34:16 PM
 #142

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
Mobius
Hero Member
*****
Offline Offline

Activity: 946



View Profile
September 05, 2012, 01:17:24 AM
 #143

P_shep,

Will you be releasing an updated version with cgminer 2.7.5?
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
September 05, 2012, 04:39:24 PM
 #144

Here you go:

https://github.com/downloads/pshep/cgminer/cgminer-2.7.5-mipsel.tar.gz
Mobius
Hero Member
*****
Offline Offline

Activity: 946



View Profile
September 05, 2012, 10:20:00 PM
 #145


Thank you.
rampone
Sr. Member
****
Offline Offline

Activity: 336


dafq is goin on


View Profile
September 09, 2012, 02:01:21 AM
 #146

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 Wink

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


http://virwox.com - Bitcoins via CCard, Skrill, paysafe, paypal & SEPA
Convert your bitcoin into spendable fiat money in less than 2 days. Poker Players use this method to avoid "unnecessary trouble" with the country they live in ... PM me for details. +1:naz86,b4nana,tinua,smart1986,fhh
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
September 09, 2012, 02:53:23 AM
 #147

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.
rampone
Sr. Member
****
Offline Offline

Activity: 336


dafq is goin on


View Profile
September 09, 2012, 02:58:07 AM
 #148

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?

http://virwox.com - Bitcoins via CCard, Skrill, paysafe, paypal & SEPA
Convert your bitcoin into spendable fiat money in less than 2 days. Poker Players use this method to avoid "unnecessary trouble" with the country they live in ... PM me for details. +1:naz86,b4nana,tinua,smart1986,fhh
rampone
Sr. Member
****
Offline Offline

Activity: 336


dafq is goin on


View Profile
September 09, 2012, 03:05:04 AM
 #149

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/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?



http://virwox.com - Bitcoins via CCard, Skrill, paysafe, paypal & SEPA
Convert your bitcoin into spendable fiat money in less than 2 days. Poker Players use this method to avoid "unnecessary trouble" with the country they live in ... PM me for details. +1:naz86,b4nana,tinua,smart1986,fhh
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
September 09, 2012, 03:37:31 AM
 #150

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.
rampone
Sr. Member
****
Offline Offline

Activity: 336


dafq is goin on


View Profile
September 09, 2012, 03:49:35 AM
 #151

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.




http://virwox.com - Bitcoins via CCard, Skrill, paysafe, paypal & SEPA
Convert your bitcoin into spendable fiat money in less than 2 days. Poker Players use this method to avoid "unnecessary trouble" with the country they live in ... PM me for details. +1:naz86,b4nana,tinua,smart1986,fhh
Mobius
Hero Member
*****
Offline Offline

Activity: 946



View Profile
September 09, 2012, 04:31:18 AM
 #152

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
rampone
Sr. Member
****
Offline Offline

Activity: 336


dafq is goin on


View Profile
September 09, 2012, 05:11:33 AM
 #153

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.

http://virwox.com - Bitcoins via CCard, Skrill, paysafe, paypal & SEPA
Convert your bitcoin into spendable fiat money in less than 2 days. Poker Players use this method to avoid "unnecessary trouble" with the country they live in ... PM me for details. +1:naz86,b4nana,tinua,smart1986,fhh
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
September 09, 2012, 06:43:01 PM
 #154


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.
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
September 09, 2012, 06:44:57 PM
 #155

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.
efiniti
Newbie
*
Offline Offline

Activity: 16


View Profile
September 12, 2012, 10:25:52 PM
 #156

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?..
irritant
Sr. Member
****
Offline Offline

Activity: 442


Sodium hypochlorite, acetone, ethanol


View Profile
September 12, 2012, 10:43:14 PM
 #157

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
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
September 13, 2012, 03:38:12 PM
 #158

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.
Luke-Jr
Legendary
*
Offline Offline

Activity: 2268



View Profile
September 13, 2012, 06:16:22 PM
 #159

CGminer has it by a whisker.
2 days is nowhere near long enough for that amount of precision.

-ck
Moderator
Legendary
*
Offline Offline

Activity: 2338


Ruu \o/


View Profile WWW
September 25, 2012, 12:41:39 PM
 #160

Looks good to me. Clearly any claim that jesusminer is better is pure fud.

Primary developer/maintainer for cgminer and ckpool/ckproxy.
ZERO FEE Pooled mining at ckpool.org 1% Fee Solo mining at solo.ckpool.org
-ck
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
September 25, 2012, 05:40:25 PM
 #161

Upped to 2.7.6:

https://github.com/downloads/pshep/cgminer/cgminer-2.7.6-mipsel.tar.gz
TCPC
Jr. Member
*
Offline Offline

Activity: 30


View Profile
September 26, 2012, 04:09:26 AM
 #162

This is a great idea.  Thanks for working on this!
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
October 08, 2012, 05:28:39 PM
 #163

Upped to 2.8.1

https://github.com/downloads/pshep/cgminer/cgminer-2.8.1-mipsel.tar.gz
Mobius
Hero Member
*****
Offline Offline

Activity: 946



View Profile
October 08, 2012, 05:29:37 PM
 #164

coolness and a little something something
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
October 08, 2012, 06:43:07 PM
 #165

Why thank you very much indeed Smiley Cool
dlasher
Sr. Member
****
Offline Offline

Activity: 417



View Profile WWW
October 09, 2012, 12:08:28 AM
 #166


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?
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
October 09, 2012, 02:02:21 AM
 #167


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.
dlasher
Sr. Member
****
Offline Offline

Activity: 417



View Profile WWW
October 09, 2012, 02:30:01 AM
 #168


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

Activity: 1106


View Profile WWW
October 12, 2012, 06:49:58 PM
 #169

Upped to 2.8.3

https://github.com/downloads/pshep/cgminer/cgminer-2.8.3-mipsel.tar.gz
Valle
Full Member
***
Offline Offline

Activity: 157


View Profile
October 13, 2012, 05:13:05 AM
 #170

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.)

P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
October 13, 2012, 01:28:02 PM
 #171

Tried it on a regular PC? Maybe you'll see the same thing?
cypherdoc
Legendary
*
Offline Offline

Activity: 1764



View Profile
October 13, 2012, 07:56:10 PM
 #172

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? 
Mobius
Hero Member
*****
Offline Offline

Activity: 946



View Profile
October 13, 2012, 07:59:07 PM
 #173

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
Valle
Full Member
***
Offline Offline

Activity: 157


View Profile
October 14, 2012, 12:59:28 AM
 #174

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.
Valle
Full Member
***
Offline Offline

Activity: 157


View Profile
October 14, 2012, 01:07:28 AM
 #175

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.
btharper
Sr. Member
****
Offline Offline

Activity: 389



View Profile
October 14, 2012, 04:38:36 AM
 #176

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.
Valle
Full Member
***
Offline Offline

Activity: 157


View Profile
October 15, 2012, 05:25:14 AM
 #177

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.
btharper
Sr. Member
****
Offline Offline

Activity: 389



View Profile
October 15, 2012, 11:49:44 AM
 #178

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?
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
October 15, 2012, 04:46:10 PM
 #179

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.
BR0KK
Hero Member
*****
Offline Offline

Activity: 742



View Profile
October 15, 2012, 09:59:04 PM
 #180

tried the pi but somehow thats not a sufficient miner base .....

keeps on failing

P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
October 18, 2012, 10:36:17 PM
 #181

Upped to 2.8.4
BR0KK
Hero Member
*****
Offline Offline

Activity: 742



View Profile
October 18, 2012, 10:40:28 PM
 #182

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?

P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
October 18, 2012, 10:59:20 PM
 #183

Someone has got a DD-WRT router working with Ztex.


As for the tplink... will not work with this here binary.
hashalfahalve
Member
**
Offline Offline

Activity: 99

Support the bitcoin economy, use BTC merchants


View Profile
October 25, 2012, 02:13:02 AM
 #184

Works beautifully, thanks so much for doing this!
BR0KK
Hero Member
*****
Offline Offline

Activity: 742



View Profile
October 28, 2012, 11:25:20 AM
 #185

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?

Mobius
Hero Member
*****
Offline Offline

Activity: 946



View Profile
October 28, 2012, 11:29:13 AM
 #186

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
BR0KK
Hero Member
*****
Offline Offline

Activity: 742



View Profile
October 28, 2012, 11:49:46 AM
 #187

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 ?

irritant
Sr. Member
****
Offline Offline

Activity: 442


Sodium hypochlorite, acetone, ethanol


View Profile
October 28, 2012, 11:58:32 AM
 #188

try

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

or something
BR0KK
Hero Member
*****
Offline Offline

Activity: 742



View Profile
October 28, 2012, 12:18:44 PM
 #189

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?

Mobius
Hero Member
*****
Offline Offline

Activity: 946



View Profile
October 28, 2012, 01:11:20 PM
 #190

reboot it first, you should only have one instant of screen running
irritant
Sr. Member
****
Offline Offline

Activity: 442


Sodium hypochlorite, acetone, ethanol


View Profile
October 28, 2012, 02:14:59 PM
 #191

try

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

or something

screen -r 17077.miner
screen -r 13962.miner
screen -r 12940.miner
BR0KK
Hero Member
*****
Offline Offline

Activity: 742



View Profile
October 28, 2012, 06:27:52 PM
 #192

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)

P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
October 28, 2012, 06:49:02 PM
 #193

Sounds like the serial drivers aren't working/installed. Basically It can't find the devices for whatever reason.
BR0KK
Hero Member
*****
Offline Offline

Activity: 742



View Profile
October 28, 2012, 06:57:00 PM
 #194

im a ztex user, do i need them ?

it's the seriealsmodules part ?

Mobius
Hero Member
*****
Offline Offline

Activity: 946



View Profile
October 28, 2012, 06:59:24 PM
 #195

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.
BR0KK
Hero Member
*****
Offline Offline

Activity: 742



View Profile
October 28, 2012, 07:12:22 PM
 #196

they are installed and running. service shows them green:



What did go wrong?

P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
October 28, 2012, 07:17:32 PM
 #197

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
BR0KK
Hero Member
*****
Offline Offline

Activity: 742



View Profile
October 28, 2012, 08:39:00 PM
 #198

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

P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
October 29, 2012, 03:04:21 AM
 #199

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!
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
October 29, 2012, 04:26:28 AM
 #200

Upped to 2.8.6
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
November 08, 2012, 02:51:08 AM
 #201

Upped to 2.9.1

https://github.com/downloads/pshep/cgminer/cgminer-2.9.1-mipsel.tar.gz
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
December 03, 2012, 04:35:46 PM
 #202

2.9.6
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
December 13, 2012, 10:00:10 PM
 #203

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)
irritant
Sr. Member
****
Offline Offline

Activity: 442


Sodium hypochlorite, acetone, ethanol


View Profile
December 14, 2012, 12:19:30 PM
 #204

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.
irritant
Sr. Member
****
Offline Offline

Activity: 442


Sodium hypochlorite, acetone, ethanol


View Profile
January 10, 2013, 05:33:58 AM
 #205

will this work with BFL Jalapenos?   (with new version of cgminer compiled for wrt?)
BR0KK
Hero Member
*****
Offline Offline

Activity: 742



View Profile
January 10, 2013, 12:06:54 PM
 #206

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?

BR0KK
Hero Member
*****
Offline Offline

Activity: 742



View Profile
February 17, 2013, 10:34:20 AM
 #207

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 ?

irritant
Sr. Member
****
Offline Offline

Activity: 442


Sodium hypochlorite, acetone, ethanol


View Profile
February 17, 2013, 11:04:20 AM
 #208

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
BR0KK
Hero Member
*****
Offline Offline

Activity: 742



View Profile
February 17, 2013, 05:52:28 PM
 #209

Is serialmodules necessary for Ztex boards?

Luke-Jr
Legendary
*
Offline Offline

Activity: 2268



View Profile
February 17, 2013, 06:17:15 PM
 #210

No, ZTEX just requires libusb-1.0. BFGMiner has official OpenWrt packages now, if you want to try that.

BR0KK
Hero Member
*****
Offline Offline

Activity: 742



View Profile
February 17, 2013, 06:37:12 PM
 #211

Same install procedure?

Luke-Jr
Legendary
*
Offline Offline

Activity: 2268



View Profile
February 17, 2013, 07:07:07 PM
 #212

Same install procedure?
No, BFGMiner uses opkg: http://luke.dashjr.org/programs/bitcoin/files/bfgminer/2.10.5/openwrt/12.09/README

BR0KK
Hero Member
*****
Offline Offline

Activity: 742



View Profile
February 20, 2013, 11:35:12 PM
 #213

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?

P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
February 21, 2013, 10:21:35 AM
 #214

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
BR0KK
Hero Member
*****
Offline Offline

Activity: 742



View Profile
February 21, 2013, 02:14:44 PM
 #215

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.


SAC
Sr. Member
****
Offline Offline

Activity: 322


View Profile
February 21, 2013, 07:56:56 PM
 #216

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/
BR0KK
Hero Member
*****
Offline Offline

Activity: 742



View Profile
February 21, 2013, 09:01:02 PM
 #217

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 Sad).. 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 :/


BR0KK
Hero Member
*****
Offline Offline

Activity: 742



View Profile
February 21, 2013, 11:11:20 PM
 #218

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?

Luke-Jr
Legendary
*
Offline Offline

Activity: 2268



View Profile
February 21, 2013, 11:35:21 PM
 #219

The firmwares are separate packages to save space.
The one you want is bfgminer-bitstream-ztex-ufm1_15d4

BR0KK
Hero Member
*****
Offline Offline

Activity: 742



View Profile
February 22, 2013, 12:40:36 AM
 #220

Thank you luke that was a good hint Smiley

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

BR0KK
Hero Member
*****
Offline Offline

Activity: 742



View Profile
February 23, 2013, 12:54:48 AM
 #221

With my singles attached it won't work...  Getting errors a la "capability missing: 0 7" and "pin does not go high"

BR0KK
Hero Member
*****
Offline Offline

Activity: 742



View Profile
February 24, 2013, 04:39:11 PM
 #222

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?


shivansps
Sr. Member
****
Offline Offline

Activity: 433


View Profile
February 28, 2013, 04:43:14 AM
 #223

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

Hearthy██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
|██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
BR0KK
Hero Member
*****
Offline Offline

Activity: 742



View Profile
February 28, 2013, 09:26:13 AM
 #224

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?

P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
February 28, 2013, 03:13:54 PM
 #225

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.
BR0KK
Hero Member
*****
Offline Offline

Activity: 742



View Profile
March 01, 2013, 12:12:43 PM
 #226

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 Smiley


shivansps
Sr. Member
****
Offline Offline

Activity: 433


View Profile
March 02, 2013, 12:48:22 AM
 #227


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.

Hearthy██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
|██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
March 03, 2013, 10:49:34 AM
 #228

The 1Fx address is the one, thanks BROKK Smiley

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).
BR0KK
Hero Member
*****
Offline Offline

Activity: 742



View Profile
March 04, 2013, 10:55:17 AM
 #229

I'll send a coin as soon as i get home Smiley
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.

BR0KK
Hero Member
*****
Offline Offline

Activity: 742



View Profile
March 05, 2013, 11:30:41 PM
 #230

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 Smiley

P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
March 06, 2013, 10:30:49 AM
 #231

VERY generous of you! Thank you! Smiley
BR0KK
Hero Member
*****
Offline Offline

Activity: 742



View Profile
March 06, 2013, 05:07:58 PM
 #232

Good work should be paid Smiley

shivansps
Sr. Member
****
Offline Offline

Activity: 433


View Profile
March 10, 2013, 02:06:27 AM
 #233

mmmm i wondering if we cant just extroot debian mips intro the router, that definetely will make it easier.

Hearthy██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
|██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
██  ██  █
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
March 10, 2013, 10:58:48 AM
 #234

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.
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
April 18, 2013, 11:07:04 AM
 #235

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.
irritant
Sr. Member
****
Offline Offline

Activity: 442


Sodium hypochlorite, acetone, ethanol


View Profile
April 18, 2013, 12:08:07 PM
 #236

tested it but not sure if it is working, screen -r shows a blank screen... so I guess it is not working
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
April 18, 2013, 12:31:36 PM
 #237

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.
irritant
Sr. Member
****
Offline Offline

Activity: 442


Sodium hypochlorite, acetone, ethanol


View Profile
April 18, 2013, 02:05:48 PM
 #238

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
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
April 18, 2013, 03:09:49 PM
 #239

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?)
irritant
Sr. Member
****
Offline Offline

Activity: 442


Sodium hypochlorite, acetone, ethanol


View Profile
April 18, 2013, 03:18:25 PM
 #240

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
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
April 18, 2013, 03:24:40 PM
 #241

"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.
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
April 18, 2013, 03:53:18 PM
 #242

if it's any consolation, I've just hosed my optware too!
Though I was trying something different
irritant
Sr. Member
****
Offline Offline

Activity: 442


Sodium hypochlorite, acetone, ethanol


View Profile
April 18, 2013, 04:01:54 PM
 #243

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)
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
April 18, 2013, 04:05:53 PM
 #244

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!
BR0KK
Hero Member
*****
Offline Offline

Activity: 742



View Profile
April 25, 2013, 08:16:18 PM
 #245

Any news on the new CGminer release?

P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
April 26, 2013, 02:20:41 PM
 #246

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.
BR0KK
Hero Member
*****
Offline Offline

Activity: 742



View Profile
April 26, 2013, 03:38:16 PM
 #247

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 Smiley

Thx that your still trying or thinking about this!

P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
April 26, 2013, 03:43:08 PM
 #248

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.
Luke-Jr
Legendary
*
Offline Offline

Activity: 2268



View Profile
April 26, 2013, 06:15:11 PM
 #249

Note BFGMiner (with fewer bugs and better support) has official OpenWrt packages.

BR0KK
Hero Member
*****
Offline Offline

Activity: 742



View Profile
April 26, 2013, 07:42:25 PM
 #250

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.....

P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
April 29, 2013, 11:44:46 AM
 #251

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
BR0KK
Hero Member
*****
Offline Offline

Activity: 742



View Profile
April 29, 2013, 11:49:01 AM
 #252

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) Smiley

Upgrade path? Or complete reinstallation?

P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
April 29, 2013, 12:26:06 PM
 #253

You should just need to copy cgminer binary and cgminer.sh script.
That should do it.
BR0KK
Hero Member
*****
Offline Offline

Activity: 742



View Profile
April 29, 2013, 12:46:57 PM
 #254

You should just need to copy cgminer binary and cgminer.sh script.
That should do it.

Delete the old Libusb files ?

P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
April 29, 2013, 01:24:40 PM
 #255

You can leave them. Should have no affect.
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
April 29, 2013, 01:46:54 PM
 #256

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.