Pages:
Author

Topic: CGminer v3.8.5 on Broadcom based DD-WRT / OpenWRT - page 8. (Read 77138 times)

hero member
Activity: 784
Merit: 500
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?
legendary
Activity: 1795
Merit: 1208
This is not OK.
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
hero member
Activity: 784
Merit: 500
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.....
legendary
Activity: 2576
Merit: 1186
Note BFGMiner (with fewer bugs and better support) has official OpenWrt packages.
legendary
Activity: 1795
Merit: 1208
This is not OK.
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.
hero member
Activity: 784
Merit: 500
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!
legendary
Activity: 1795
Merit: 1208
This is not OK.
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.
hero member
Activity: 784
Merit: 500
Any news on the new CGminer release?
legendary
Activity: 1795
Merit: 1208
This is not OK.
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!
sr. member
Activity: 473
Merit: 250
Sodium hypochlorite, acetone, ethanol
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)
legendary
Activity: 1795
Merit: 1208
This is not OK.
if it's any consolation, I've just hosed my optware too!
Though I was trying something different
legendary
Activity: 1795
Merit: 1208
This is not OK.
"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.
sr. member
Activity: 473
Merit: 250
Sodium hypochlorite, acetone, ethanol
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
legendary
Activity: 1795
Merit: 1208
This is not OK.
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?)
sr. member
Activity: 473
Merit: 250
Sodium hypochlorite, acetone, ethanol
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
legendary
Activity: 1795
Merit: 1208
This is not OK.
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.
sr. member
Activity: 473
Merit: 250
Sodium hypochlorite, acetone, ethanol
tested it but not sure if it is working, screen -r shows a blank screen... so I guess it is not working
legendary
Activity: 1795
Merit: 1208
This is not OK.
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.
legendary
Activity: 1795
Merit: 1208
This is not OK.
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.
hero member
Activity: 1330
Merit: 502
Vave.com - Crypto Casino
mmmm i wondering if we cant just extroot debian mips intro the router, that definetely will make it easier.
Pages:
Jump to: