Pages:
Author

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

hero member
Activity: 784
Merit: 500
Same install procedure?
legendary
Activity: 2576
Merit: 1186
No, ZTEX just requires libusb-1.0. BFGMiner has official OpenWrt packages now, if you want to try that.
hero member
Activity: 784
Merit: 500
Is serialmodules necessary for Ztex boards?
sr. member
Activity: 473
Merit: 250
Sodium hypochlorite, acetone, ethanol
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
hero member
Activity: 784
Merit: 500
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 ?
hero member
Activity: 784
Merit: 500
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?
sr. member
Activity: 473
Merit: 250
Sodium hypochlorite, acetone, ethanol
will this work with BFL Jalapenos?   (with new version of cgminer compiled for wrt?)
sr. member
Activity: 473
Merit: 250
Sodium hypochlorite, acetone, ethanol
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.
legendary
Activity: 1795
Merit: 1198
This is not OK.
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)
legendary
Activity: 1795
Merit: 1198
This is not OK.
2.9.6
legendary
Activity: 1795
Merit: 1198
This is not OK.
legendary
Activity: 1795
Merit: 1198
This is not OK.
Upped to 2.8.6
legendary
Activity: 1795
Merit: 1198
This is not OK.
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!
hero member
Activity: 784
Merit: 500
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
legendary
Activity: 1795
Merit: 1198
This is not OK.
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
hero member
Activity: 784
Merit: 500
they are installed and running. service shows them green:



What did go wrong?
hero member
Activity: 988
Merit: 1000
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.
hero member
Activity: 784
Merit: 500
im a ztex user, do i need them ?

it's the seriealsmodules part ?
legendary
Activity: 1795
Merit: 1198
This is not OK.
Sounds like the serial drivers aren't working/installed. Basically It can't find the devices for whatever reason.
Pages:
Jump to: