Pages:
Author

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

hero member
Activity: 784
Merit: 500
Good work should be paid Smiley
legendary
Activity: 1795
Merit: 1208
This is not OK.
VERY generous of you! Thank you! Smiley
hero member
Activity: 784
Merit: 500
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
hero member
Activity: 784
Merit: 500
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.
legendary
Activity: 1795
Merit: 1208
This is not OK.
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).
hero member
Activity: 1330
Merit: 502
Vave.com - Crypto Casino

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.
hero member
Activity: 784
Merit: 500
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

legendary
Activity: 1795
Merit: 1208
This is not OK.
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.
hero member
Activity: 784
Merit: 500
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?
hero member
Activity: 1330
Merit: 502
Vave.com - Crypto Casino
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
hero member
Activity: 784
Merit: 500
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?

hero member
Activity: 784
Merit: 500
With my singles attached it won't work...  Getting errors a la "capability missing: 0 7" and "pin does not go high"
hero member
Activity: 784
Merit: 500
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
legendary
Activity: 2576
Merit: 1186
The firmwares are separate packages to save space.
The one you want is bfgminer-bitstream-ztex-ufm1_15d4
hero member
Activity: 784
Merit: 500
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?
hero member
Activity: 784
Merit: 500
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 :/

SAC
sr. member
Activity: 322
Merit: 250
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/
hero member
Activity: 784
Merit: 500
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.

legendary
Activity: 1795
Merit: 1208
This is not OK.
The .lnk is a windows leftover, it's how windows deals with symbolic links.
For linux you create the symbolic links with
ln -s

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
hero member
Activity: 784
Merit: 500
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?
Pages:
Jump to: