Author

Topic: OFFICIAL CGMINER mining software thread for linux/win/osx/mips/arm/r-pi 4.11.0 - page 109. (Read 5805527 times)

full member
Activity: 140
Merit: 100
Hi, Since sushi nor bitmain are of no help was wondering if you guys can help me out with one of my s1 that wont hash (usb 1-1: device descriptor read/64, error -71) at all. The system log:
...
That log shows normal as far as I can tell.

Maybe "dmesg" would help you more?

Without knowing too much about it, it (-71) sounds like a hardware problem, since it shouldn't be getting that error.

I assume that the control board is faulty. Done switching wires, tried diff. PSU's and all firmwares available Sad
Sorry for my noob question but what is dmesg?
legendary
Activity: 4592
Merit: 1851
Linux since 1997 RedHat 4
Hi, Since sushi nor bitmain are of no help was wondering if you guys can help me out with one of my s1 that wont hash (usb 1-1: device descriptor read/64, error -71) at all. The system log:
...
That log shows normal as far as I can tell.

Maybe "dmesg" would help you more?

Without knowing too much about it, it (-71) sounds like a hardware problem, since it shouldn't be getting that error.
legendary
Activity: 4592
Merit: 1851
Linux since 1997 RedHat 4

Kano, awesome work again from you for the community. From reading your README, you can restart cgminer on the ant by doing:
/etc/init.d/cgminer stop
/etc/init.d/cgminer start

You can theoretically do it with /etc/init.d/cgminer restart but that sometimes doesn't start the miner, so I found it easier to manually stop and start it. Anyway it saves going into the web interface if you don't want to. Smiley

Code:
Syntax: /etc/init.d/cgminer [command]

Available commands:
        start   Start the service
        stop    Stop the service
        restart Restart the service
        reload  Reload configuration files (or restart if that fails)
        enable  Enable service autostart
        disable Disable service autostart

Bitmain was unable to write the /etc/init.d/cgminer properly so it doesn't always work

I've edited my /etc/init.d/cgminer to fix the problem, but if you look in yours you will find it starts cgminer twice:

1) $APP --lowmem --bitmain-options 115200:32:8:$_T0:$_cf:$_regv -q >/dev/null 2>&1

and again lower down correctly after the first one exits:

2) start-stop-daemon -S -x $APP -p $PID_FILE -m -b -- $PARAMS -q
full member
Activity: 140
Merit: 100
Hi, Since sushi nor bitmain are of no help was wondering if you guys can help me out with one of my s1 that wont hash (usb 1-1: device descriptor read/64, error -71) at all. The system log:
Code:
Thu Jan  1 01:00:11 1970 kern.notice kernel: [    0.700000] 0x000000000000-0x000000020000 : "u-boot"
Thu Jan  1 01:00:11 1970 kern.notice kernel: [    0.700000] 0x000000020000-0x000000117d84 : "kernel"
Thu Jan  1 01:00:11 1970 kern.warn kernel: [    0.710000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
Thu Jan  1 01:00:11 1970 kern.notice kernel: [    0.720000] 0x000000117d84-0x0000007f0000 : "rootfs"
Thu Jan  1 01:00:11 1970 kern.warn kernel: [    0.730000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
Thu Jan  1 01:00:11 1970 kern.notice kernel: [    0.740000] mtd: partition "rootfs" set to be root filesystem
Thu Jan  1 01:00:11 1970 kern.info kernel: [    0.740000] mtd: partition "rootfs_data" created automatically, ofs=0x370000, len=0x480000
Thu Jan  1 01:00:11 1970 kern.notice kernel: [    0.750000] 0x000000370000-0x0000007f0000 : "rootfs_data"
Thu Jan  1 01:00:11 1970 kern.notice kernel: [    0.760000] 0x000000020000-0x0000007f0000 : "firmware"
Thu Jan  1 01:00:11 1970 kern.notice kernel: [    0.770000] 0x0000007f0000-0x000000800000 : "art"
Thu Jan  1 01:00:11 1970 kern.info kernel: [    0.790000] libphy: ag71xx_mdio: probed
Thu Jan  1 01:00:11 1970 kern.info kernel: [    0.790000] eth0: Atheros AG71xx at 0xba000000, irq 5, mode:GMII
Thu Jan  1 01:00:11 1970 kern.info kernel: [    1.340000] eth0: Found an AR7240/AR9330 built-in switch
Thu Jan  1 01:00:11 1970 kern.info kernel: [    2.380000] eth1: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
Thu Jan  1 01:00:11 1970 kern.info kernel: [    2.930000] ag71xx ag71xx.0 eth1: connected to PHY at ag71xx-mdio.1:04 [uid=004dd041, driver=Generic PHY]
Thu Jan  1 01:00:11 1970 kern.info kernel: [    2.940000] TCP: cubic registered
Thu Jan  1 01:00:11 1970 kern.info kernel: [    2.940000] NET: Registered protocol family 17
Thu Jan  1 01:00:11 1970 kern.info kernel: [    2.950000] 8021q: 802.1Q VLAN Support v1.8
Thu Jan  1 01:00:11 1970 kern.info kernel: [    2.960000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
Thu Jan  1 01:00:11 1970 kern.info kernel: [    2.970000] Freeing unused kernel memory: 232K (80316000 - 80350000)
Thu Jan  1 01:00:11 1970 kern.info kernel: [    5.800000] usbcore: registered new interface driver usbfs
Thu Jan  1 01:00:11 1970 kern.info kernel: [    5.800000] usbcore: registered new interface driver hub
Thu Jan  1 01:00:11 1970 kern.info kernel: [    5.810000] usbcore: registered new device driver usb
Thu Jan  1 01:00:11 1970 kern.info kernel: [    5.810000] usbcore: registered new interface driver bitmain
Thu Jan  1 01:00:11 1970 kern.warn kernel: [    5.820000] hash ok
Thu Jan  1 01:00:11 1970 kern.warn kernel: [    5.820000] hashtest OK
Thu Jan  1 01:00:11 1970 kern.err kernel: [    5.820000] bitmain-asic: success to register device
Thu Jan  1 01:00:11 1970 kern.info kernel: [    5.830000] usbcore: registered new interface driver bitmainbl
Thu Jan  1 01:00:11 1970 kern.info kernel: [    5.840000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
Thu Jan  1 01:00:11 1970 kern.info kernel: [    5.850000] ehci-platform: EHCI generic platform driver
Thu Jan  1 01:00:11 1970 kern.info kernel: [    5.850000] ehci-platform ehci-platform: EHCI Host Controller
Thu Jan  1 01:00:11 1970 kern.info kernel: [    5.860000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
Thu Jan  1 01:00:11 1970 kern.info kernel: [    5.860000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
Thu Jan  1 01:00:11 1970 kern.info kernel: [    5.890000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
Thu Jan  1 01:00:11 1970 kern.info kernel: [    5.890000] hub 1-0:1.0: USB hub found
Thu Jan  1 01:00:11 1970 kern.info kernel: [    5.890000] hub 1-0:1.0: 1 port detected
Thu Jan  1 01:00:11 1970 kern.info kernel: [    6.230000] usb 1-1: new full-speed USB device number 2 using ehci-platform
Thu Jan  1 01:00:11 1970 kern.err kernel: [    6.450000] usb 1-1: device descriptor read/64, error -71
Thu Jan  1 01:00:11 1970 kern.err kernel: [    6.770000] usb 1-1: device descriptor read/64, error -71
Thu Jan  1 01:00:11 1970 kern.info kernel: [    7.000000] usb 1-1: new full-speed USB device number 3 using ehci-platform
Thu Jan  1 01:00:11 1970 kern.err kernel: [    7.220000] usb 1-1: device descriptor read/64, error -71
Thu Jan  1 01:00:11 1970 kern.err kernel: [    7.540000] usb 1-1: device descriptor read/64, error -71
Thu Jan  1 01:00:11 1970 kern.info kernel: [    7.770000] usb 1-1: new full-speed USB device number 4 using ehci-platform
Thu Jan  1 01:00:11 1970 kern.err kernel: [    8.250000] usb 1-1: device not accepting address 4, error -71
Thu Jan  1 01:00:11 1970 kern.info kernel: [    8.370000] usb 1-1: new full-speed USB device number 5 using ehci-platform
Thu Jan  1 01:00:11 1970 kern.err kernel: [    8.850000] usb 1-1: device not accepting address 5, error -71
Thu Jan  1 01:00:11 1970 kern.err kernel: [    8.850000] hub 1-0:1.0: unable to enumerate USB device on port 1
Thu Jan  1 01:00:11 1970 kern.notice kernel: [   10.560000] jffs2: notice: (321) jffs2_build_xattr_subsystem: complete building xattr subsystem, 25 of xdatum (1 unchecked, 24 orphan) and 39 of xref (0 dead, 25 orphan) found.
Tue Mar 25 11:36:00 2014 daemon.info sysinit: Tue Mar 25 10:36:00 UTC 2014
Tue Mar 25 11:36:00 2014 user.emerg syslog: kmodloader: loading kernel modules from /etc/modules.d/**
Tue Mar 25 11:36:00 2014 kern.info kernel: [   12.790000] hidraw: raw HID events driver (C) Jiri Kosina
Tue Mar 25 11:36:00 2014 kern.info kernel: [   12.790000] Loading modules backported from Linux version master-2013-06-27-0-gdcfa6d5
Tue Mar 25 11:36:00 2014 kern.info kernel: [   12.800000] Backport generated by backports.git backports-20130617-4-ge3220f5
Tue Mar 25 11:36:00 2014 kern.info kernel: [   12.810000] nf_conntrack version 0.5.0 (962 buckets, 3848 max)
Tue Mar 25 11:36:00 2014 kern.info kernel: [   12.840000] usbcore: registered new interface driver usbhid
Tue Mar 25 11:36:00 2014 kern.info kernel: [   12.840000] usbhid: USB HID core driver
Tue Mar 25 11:36:00 2014 kern.info kernel: [   12.850000] usbcore: registered new interface driver usbserial
Tue Mar 25 11:36:00 2014 kern.info kernel: [   12.860000] usbcore: registered new interface driver usbserial_generic
Tue Mar 25 11:36:00 2014 kern.info kernel: [   12.860000] usbserial: USB Serial support registered for generic
Tue Mar 25 11:36:00 2014 kern.info kernel: [   12.890000] xt_time: kernel timezone is -0000
Tue Mar 25 11:36:00 2014 kern.info kernel: [   12.930000] cfg80211: Calling CRDA to update world regulatory domain
Tue Mar 25 11:36:00 2014 kern.info kernel: [   12.930000] cfg80211: World regulatory domain updated:
Tue Mar 25 11:36:00 2014 kern.info kernel: [   12.940000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Tue Mar 25 11:36:00 2014 kern.info kernel: [   12.950000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Tue Mar 25 11:36:00 2014 kern.info kernel: [   12.950000] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
Tue Mar 25 11:36:00 2014 kern.info kernel: [   12.960000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
Tue Mar 25 11:36:00 2014 kern.info kernel: [   12.970000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Tue Mar 25 11:36:00 2014 kern.info kernel: [   12.980000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Tue Mar 25 11:36:00 2014 kern.info kernel: [   12.990000] ip_tables: (C) 2000-2006 Netfilter Core Team
Tue Mar 25 11:36:00 2014 kern.debug kernel: [   13.110000] ath: EEPROM regdomain: 0x0
Tue Mar 25 11:36:00 2014 kern.debug kernel: [   13.110000] ath: EEPROM indicates default country code should be used
Tue Mar 25 11:36:00 2014 kern.debug kernel: [   13.110000] ath: doing EEPROM country->regdmn map search
Tue Mar 25 11:36:00 2014 kern.debug kernel: [   13.110000] ath: country maps to regdmn code: 0x3a
Tue Mar 25 11:36:00 2014 kern.debug kernel: [   13.110000] ath: Country alpha2 being used: US
Tue Mar 25 11:36:00 2014 kern.debug kernel: [   13.110000] ath: Regpair used: 0x3a
Tue Mar 25 11:36:00 2014 kern.debug kernel: [   13.130000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
Tue Mar 25 11:36:00 2014 kern.info kernel: [   13.130000] cfg80211: Calling CRDA for country: US
Tue Mar 25 11:36:00 2014 user.info syslog: ran 16 iterations
Tue Mar 25 11:36:00 2014 kern.info kernel: [   13.140000] ieee80211 phy0: Atheros AR9330 Rev:1 mem=0xb8100000, irq=2
Tue Mar 25 11:36:00 2014 kern.info kernel: [   13.150000] cfg80211: Regulatory domain changed to country: US
Tue Mar 25 11:36:00 2014 kern.info kernel: [   13.160000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Tue Mar 25 11:36:00 2014 kern.info kernel: [   13.160000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
Tue Mar 25 11:36:00 2014 kern.info kernel: [   13.170000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
Tue Mar 25 11:36:00 2014 kern.info kernel: [   13.180000] cfg80211:   (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Tue Mar 25 11:36:00 2014 kern.info kernel: [   13.190000] cfg80211:   (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Tue Mar 25 11:36:00 2014 kern.info kernel: [   13.200000] cfg80211:   (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Tue Mar 25 11:36:00 2014 kern.info kernel: [   13.200000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
Tue Mar 25 11:36:00 2014 daemon.info sysinit: kmod: ran 16 iterations
Tue Mar 25 11:36:04 2014 cron.info crond[564]: crond: crond (busybox 1.19.4) started, log level 8
Tue Mar 25 11:36:05 2014 daemon.notice netifd: Interface 'loopback' is now up
Tue Mar 25 11:36:05 2014 kern.info kernel: [   17.970000] device eth0 entered promiscuous mode
Tue Mar 25 11:36:05 2014 authpriv.info dropbear[575]: Not backgrounding
Tue Mar 25 11:36:05 2014 daemon.notice netifd: Interface 'wan' is now up
Tue Mar 25 11:36:06 2014 daemon.notice netifd: lan (612): udhcpc (v1.19.4) started
Tue Mar 25 11:36:06 2014 daemon.notice netifd: lan (612): Sending discover...
Tue Mar 25 11:36:06 2014 user.notice firewall: Reloading firewall due to ifup of wan (eth1)
Tue Mar 25 11:36:07 2014 kern.info kernel: [   20.140000] eth1: link up (100Mbps/Full duplex)
Tue Mar 25 11:36:08 2014 user.notice dnsmasq: DNS rebinding protection is active, will discard upstream RFC1918 responses!
Tue Mar 25 11:36:08 2014 user.notice dnsmasq: Allowing 127.0.0.0/8 responses
Tue Mar 25 11:36:08 2014 daemon.info sysinit: /etc/config/miner_pic.hex
Tue Mar 25 11:36:08 2014 daemon.info dnsmasq[683]: started, version 2.66 cachesize 150
Tue Mar 25 11:36:08 2014 daemon.info dnsmasq[683]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth
Tue Mar 25 11:36:08 2014 daemon.info dnsmasq[683]: using local addresses only for domain lan
Tue Mar 25 11:36:08 2014 daemon.info dnsmasq[683]: reading /tmp/resolv.conf.auto
Tue Mar 25 11:36:08 2014 daemon.info dnsmasq[683]: using nameserver 8.8.8.8#53
Tue Mar 25 11:36:08 2014 daemon.info dnsmasq[683]: using local addresses only for domain lan
Tue Mar 25 11:36:08 2014 daemon.info dnsmasq[683]: read /etc/hosts - 1 addresses
Tue Mar 25 11:36:08 2014 daemon.info sysinit: Unable to open /dev/bitmainbl0: No such file or directory
Tue Mar 25 11:36:08 2014 daemon.info sysinit: pic update
Tue Mar 25 11:36:08 2014 daemon.info sysinit: setting up led WAN
Tue Mar 25 11:36:08 2014 daemon.info sysinit: setting up led WANL
Tue Mar 25 11:36:08 2014 daemon.info sysinit: setting up led LAN1
Tue Mar 25 11:36:08 2014 daemon.info sysinit: setting up led LAN2
Tue Mar 25 11:36:08 2014 daemon.info sysinit: setting up led LAN3
Tue Mar 25 11:36:08 2014 daemon.info sysinit: setting up led LAN4
Tue Mar 25 11:36:08 2014 daemon.info sysinit: setting up led WLAN
Tue Mar 25 11:36:09 2014 daemon.notice netifd: lan (612): Sending discover...
Tue Mar 25 11:36:12 2014 daemon.info sysinit: ntpd: resolved peer 3.openwrt.pool.ntp.org to 87.237.200.242
Tue Mar 25 11:36:12 2014 daemon.info sysinit: ntpd: sent query to 87.237.200.242
Tue Mar 25 11:36:12 2014 daemon.notice netifd: lan (612): Sending discover...
Tue Mar 25 11:36:12 2014 daemon.info sysinit: ntpd: resolved peer 2.openwrt.pool.ntp.org to 217.24.24.144
Tue Mar 25 11:36:12 2014 daemon.info sysinit: ntpd: sent query to 217.24.24.144
Tue Mar 25 11:36:12 2014 daemon.info sysinit: ntpd: resolved peer 1.openwrt.pool.ntp.org to 97.107.128.58
Tue Mar 25 11:36:12 2014 daemon.info sysinit: ntpd: sent query to 97.107.128.58
Tue Mar 25 11:36:12 2014 daemon.info sysinit: ntpd: resolved peer 0.openwrt.pool.ntp.org to 193.243.171.130
Tue Mar 25 11:36:12 2014 daemon.info sysinit: ntpd: sent query to 193.243.171.130
Tue Mar 25 11:36:12 2014 daemon.info sysinit: ntpd: reply from 87.237.200.242: reach 0x01 offset 38.838805 delay 0.388920 status 0x24 strat 4 refid 0x55d6d697 rootdelay 0.021424
Tue Mar 25 11:36:12 2014 daemon.info sysinit: ntpd: reply from 217.24.24.144: reach 0x01 offset 38.906873 delay 0.256149 status 0x24 strat 4 refid 0x3e70c338 rootdelay 0.019516
Tue Mar 25 11:36:12 2014 daemon.info sysinit: ntpd: reply from 97.107.128.58: reach 0x01 offset 39.015995 delay 0.150724 status 0x24 strat 2 refid 0xd133a1ee rootdelay 0.001419
Tue Mar 25 11:36:12 2014 daemon.info sysinit: ntpd: reply from 193.243.171.130: reach 0x01 offset 39.022949 delay 0.033117 status 0x24 strat 2 refid 0xc1ab17a3 rootdelay 0.017762
Tue Mar 25 11:36:13 2014 daemon.info sysinit: ntpd: sent query to 87.237.200.242
Tue Mar 25 11:36:13 2014 daemon.info sysinit: ntpd: sent query to 97.107.128.58
Tue Mar 25 11:36:13 2014 daemon.info sysinit: ntpd: sent query to 193.243.171.130
Tue Mar 25 11:36:13 2014 daemon.info sysinit: ntpd: reply from 193.243.171.130: reach 0x03 offset 39.018669 delay 0.023381 status 0x24 strat 2 refid 0xc1ab17a3 rootdelay 0.017762
Tue Mar 25 11:36:13 2014 daemon.info sysinit: ntpd: reply from 87.237.200.242: reach 0x03 offset 39.018608 delay 0.029348 status 0x24 strat 4 refid 0x55d6d697 rootdelay 0.021424
Tue Mar 25 11:36:13 2014 daemon.info sysinit: ntpd: reply from 97.107.128.58: reach 0x03 offset 39.015600 delay 0.148017 status 0x24 strat 2 refid 0xd133a1ee rootdelay 0.001419
Tue Mar 25 11:36:14 2014 daemon.info sysinit: ntpd: sent query to 87.237.200.242
Tue Mar 25 11:36:14 2014 daemon.info sysinit: ntpd: sent query to 217.24.24.144
Tue Mar 25 11:36:14 2014 daemon.info sysinit: ntpd: sent query to 97.107.128.58
Tue Mar 25 11:36:14 2014 daemon.info sysinit: ntpd: sent query to 193.243.171.130
Tue Mar 25 11:36:14 2014 daemon.info sysinit: ntpd: reply from 193.243.171.130: reach 0x07 offset 39.032441 delay 0.051831 status 0x24 strat 2 refid 0xc1ab17a3 rootdelay 0.017762
Tue Mar 25 11:36:14 2014 daemon.info sysinit: ntpd: reply from 217.24.24.144: reach 0x03 offset 39.033468 delay 0.053010 status 0x24 strat 4 refid 0x3e70c338 rootdelay 0.019516
Tue Mar 25 11:36:14 2014 daemon.info sysinit: ntpd: reply from 87.237.200.242: reach 0x07 offset 39.032897 delay 0.057734 status 0x24 strat 4 refid 0x55d6d697 rootdelay 0.021424
Tue Mar 25 11:36:15 2014 daemon.info sysinit: ntpd: reply from 97.107.128.58: reach 0x07 offset 39.029740 delay 0.177015 status 0x24 strat 2 refid 0xd133a1ee rootdelay 0.001419
Tue Mar 25 11:36:16 2014 daemon.info sysinit: ntpd: sent query to 87.237.200.242
Tue Mar 25 11:36:16 2014 daemon.info sysinit: ntpd: reply from 87.237.200.242: reach 0x0f offset 39.025957 delay 0.043324 status 0x24 strat 4 refid 0x55d6d697 rootdelay 0.021424
Tue Mar 25 11:36:17 2014 daemon.info sysinit: ntpd: sent query to 87.237.200.242
Tue Mar 25 11:36:17 2014 daemon.info sysinit: ntpd: sent query to 217.24.24.144
Tue Mar 25 11:36:17 2014 daemon.info sysinit: ntpd: sent query to 97.107.128.58
Tue Mar 25 11:36:17 2014 daemon.info sysinit: ntpd: sent query to 193.243.171.130
Tue Mar 25 11:36:17 2014 daemon.info sysinit: ntpd: reply from 193.243.171.130: reach 0x0f offset 39.019741 delay 0.026479 status 0x24 strat 2 refid 0xc1ab17a3 rootdelay 0.017762
Tue Mar 25 11:36:17 2014 daemon.info sysinit: ntpd: reply from 217.24.24.144: reach 0x07 offset 39.020825 delay 0.028014 status 0x24 strat 4 refid 0x3e70c338 rootdelay 0.019516
Tue Mar 25 11:36:17 2014 daemon.info sysinit: ntpd: reply from 87.237.200.242: reach 0x1f offset 39.020250 delay 0.032000 status 0x24 strat 4 refid 0x55d6d697 rootdelay 0.021424
Tue Mar 25 11:36:17 2014 daemon.info sysinit: ntpd: reply from 97.107.128.58: reach 0x0f offset 39.017030 delay 0.151643 status 0x24 strat 2 refid 0xd133a1ee rootdelay 0.001419
Tue Mar 25 11:36:18 2014 daemon.info sysinit: ntpd: sent query to 87.237.200.242
Tue Mar 25 11:36:18 2014 daemon.info sysinit: ntpd: sent query to 217.24.24.144
Tue Mar 25 11:36:18 2014 daemon.info sysinit: ntpd: reply from 217.24.24.144: reach 0x0f offset 39.021930 delay 0.029886 status 0x24 strat 4 refid 0x3e70c338 rootdelay 0.019516
Tue Mar 25 11:36:18 2014 daemon.info sysinit: ntpd: reply from 87.237.200.242: reach 0x3f offset 39.021374 delay 0.034576 status 0x24 strat 4 refid 0x55d6d697 rootdelay 0.021424
Tue Mar 25 11:36:19 2014 daemon.info sysinit: ntpd: sent query to 97.107.128.58
Tue Mar 25 11:36:19 2014 daemon.info sysinit: ntpd: sent query to 193.243.171.130
Tue Mar 25 11:36:58 2014 daemon.info sysinit: ntpd: reply from 193.243.171.130: reach 0x1f offset 39.021412 delay 0.028603 status 0x24 strat 2 refid 0xc1ab17a3 rootdelay 0.017762
Tue Mar 25 11:36:58 2014 daemon.info sysinit: ntpd: setting clock to Tue Mar 25 11:36:58 CET 2014 (offset 39.010082s)
Tue Mar 25 11:36:58 2014 daemon.info sysinit: --bitmain-options 115200:32:8:40:350:4d81 -o http://us-vip-stratum.btcguild.com:3333 -O zuqka_5:123 -o http://stratum.mining.eligius.st:3334 -O 19U...:123 -o http://stratum.bitcoin.cz:3333 -O ... --api-listen --api-network
Tue Mar 25 11:36:58 2014 daemon.info sysinit: - init complete -
Tue Mar 25 11:39:01 2014 cron.info crond[564]: crond: USER root pid 1037 cmd /usr/bin/cgminer-monitor
Tue Mar 25 11:39:10 2014 authpriv.info dropbear[1084]: Child connection from 192.168.0.18:63291
Tue Mar 25 11:39:17 2014 authpriv.notice dropbear[1084]: Password auth succeeded for 'root' from 192.168.0.18:63291
Tue Mar 25 11:42:01 2014 cron.info crond[564]: crond: USER root pid 1462 cmd /usr/bin/cgminer-monitor
MODERATOR EDIT: Put log into code tags
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
I've tried the following:
--hfa-options "NS1:600,NS2:550"   -   No devices found
This would be the correct set of options (as per the readme example I gave you). However it has no bearing on whether cgminer finds devices or not, it just tells cgminer what to set NS1 and NS2 clockspeeds to. If you're not finding devices, you are having other problems.
newbie
Activity: 45
Merit: 0
I think I have named them all individually but no matter what string I use for --hfa-options I can't get it to load. Can you write me an example?

Thanks

Shall I quote the docs again?

Quote
--hfa-options Set hashfast options name:clock (comma separated)

This command allows you to set options for each discrete hashfast device by
its name (if the firmware has naming support, i.e. version 0.3+). Currently
this takes only one option, the clock speed, although future options may be
added.
e.g.:
--hfa-options "rabbit:650,turtle:550"

Fair enough mate I know it's failure on my part to understand and I do hugely appreciate your work and effort to support it.

I've tried the following:

--hfa-options "NS1:600,NS2:550"   -   No devices found
--hfa-options NS1:600,NS2:550   -   No devices found
--hfa-options clock "NS1:600,NS2:550"   -   No devices found
--hfa-options clock NS1:600,NS2:550   -   No devices found

I guess this either means I have not named the devices correctly or none of the strings I am entering are correct.

legendary
Activity: 3220
Merit: 1220
Here's another new AntS1 binary.

An endian issue was found in the solo code for the ant (no issue for desktop computers), so this update includes the fix for that.
I've removed both old AntS1 binaries

This uses the same patch as before for the luci display.
My source for this version is here:
https://github.com/kanoi/cgminer/tree/ants1-4.2.0-00567a4

The binary and README are in my cgminer-binaries git here:
https://github.com/kanoi/cgminer-binaries/tree/master/AntS1  <-- Follow this link to get the new binary

Read the README on the screen there for how to replace the /usr/bin/cgminer binary in your AntS1 with the new one.

This binary includes all cgminer changes up to 4.2.0 and forward after that up to:
https://github.com/ckolivas/cgminer/commit/cec48cee5f1759e5996de5339537fab4aeff416c

The previous report of having trouble with running the binary turned out to be caused by incorrectly specifying cgminer options.

Kano, awesome work again from you for the community. From reading your README, you can restart cgminer on the ant by doing:
/etc/init.d/cgminer stop
/etc/init.d/cgminer start

You can theoretically do it with /etc/init.d/cgminer restart but that sometimes doesn't start the miner, so I found it easier to manually stop and start it. Anyway it saves going into the web interface if you don't want to. Smiley

Code:
Syntax: /etc/init.d/cgminer [command]

Available commands:
        start   Start the service
        stop    Stop the service
        restart Restart the service
        reload  Reload configuration files (or restart if that fails)
        enable  Enable service autostart
        disable Disable service autostart

-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
I think I have named them all individually but no matter what string I use for --hfa-options I can't get it to load. Can you write me an example?

Thanks

Shall I quote the docs again?

Quote
--hfa-options Set hashfast options name:clock (comma separated)

This command allows you to set options for each discrete hashfast device by
its name (if the firmware has naming support, i.e. version 0.3+). Currently
this takes only one option, the clock speed, although future options may be
added.
e.g.:
--hfa-options "rabbit:650,turtle:550"
newbie
Activity: 45
Merit: 0
I think I have named them all individually but no matter what string I use for --hfa-options I can't get it to load. Can you write me an example?

Thanks
newbie
Activity: 45
Merit: 0
Thanks man... sorry for being the reading retard!

Cheers
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
Hi Con,

Firstly thanks for all the updates aimed at Hashfast devices, 4.2 has helped a lot.

As all Sierra's are not born equal I need to run them at different clock speeds. I successfully used the '--hfa-name Slug --usb 4:42' to rename one device to later allow me to use '--hfa-options "rabbit:650,turtle:550"'
If I add more renaming to the string it simply doesn't find any device. Can you tell me what I have wrong with the below?

--hfa-name NS1 --usb 1:7 --hfa-name NS2 --usb 2:7 --hfa-name NS3 --usb 2:4

Thanks

--hfa-name     Set a unique name for a single hashfast device specified with --usb or the first device found

Name one at a time. You only need to name them once; the names should keep for ever more even with firmware updates.
newbie
Activity: 45
Merit: 0
Hi Con,

Firstly thanks for all the updates aimed at Hashfast devices, 4.2 has helped a lot.

As all Sierra's are not born equal I need to run them at different clock speeds. I successfully used the '--hfa-name Slug --usb 4:42' to rename one device to later allow me to use '--hfa-options "rabbit:650,turtle:550"'
If I add more renaming to the string it simply doesn't find any device. Can you tell me what I have wrong with the below?

--hfa-name NS1 --usb 1:7 --hfa-name NS2 --usb 2:7 --hfa-name NS3 --usb 2:4

Thanks
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
For those of you on windows who have devices that don't show up on USB3 slots, you can try the following binary (it is otherwise identical to the 4.2.1 release):

http://ck.kolivas.org/apps/cgminer/temp/cgminer.exe

If it turns out to fix the problems, I might just re-package 4.2.1 for windows.
newbie
Activity: 5
Merit: 0
Yeah, would be a mess if you would do so.
I already installed the WinUSB Driver which is provided by Technobit. I'll ask their support.
Thanks ckolivas Smiley

Edit: Do you think the Compile-Error has something to do about the detection-error? I also can't find a *.cl File in my directory.

Edit II: Your WinUSB Devicepicker (http[Suspicious link removed]) worked. Thanks!
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
After patching the cgminer 4.0.0 patch (HEX16 by Technobit) I tried to "make" my cgminer-4.0.0 with MinGW/MSYS-Shell for the HEX16B. But it failed!

Would be awesome if anyone could help me! Smiley
We do not support external patches on the cgminer code. Seek help from whoever provided those patches. Though it looks like you just need to do what it says: install a winusb driver.
newbie
Activity: 5
Merit: 0
After patching the cgminer 4.0.0 patch (HEX16 by Technobit) I tried to "make" my cgminer-4.0.0 with MinGW/MSYS-Shell for the HEX16B. But it failed!

Code:
Sinturvy@SINNETWORK ~/cgminer-3.8.5
$ make
make  all-recursive
make[1]: Entering directory `/home/Sinturvy/cgminer-3.8.5'
Making all in lib
make[2]: Entering directory `/home/Sinturvy/cgminer-3.8.5/lib'
  GEN    arg-nonnull.h
  GEN    c++defs.h
  GEN    warn-on-use.h
  GEN    signal.h
  GEN    string.h
make  all-recursive
make[3]: Entering directory `/home/Sinturvy/cgminer-3.8.5/lib'
make[4]: Entering directory `/home/Sinturvy/cgminer-3.8.5/lib'
  CC     dummy.o
  CC     memmem.o
  CC     sigaction.o
  CC     sigprocmask.o
  AR     libgnu.a
make[4]: Leaving directory `/home/Sinturvy/cgminer-3.8.5/lib'
make[3]: Leaving directory `/home/Sinturvy/cgminer-3.8.5/lib'
make[2]: Leaving directory `/home/Sinturvy/cgminer-3.8.5/lib'
Making all in compat
make[2]: Entering directory `/home/Sinturvy/cgminer-3.8.5/compat'
Making all in jansson-2.5
make[3]: Entering directory `/home/Sinturvy/cgminer-3.8.5/compat/jansson-2.5'
make  all-recursive
make[4]: Entering directory `/home/Sinturvy/cgminer-3.8.5/compat/jansson-2.5'
Making all in src
make[5]: Entering directory `/home/Sinturvy/cgminer-3.8.5/compat/jansson-2.5/src
'
  CC     dump.lo
  CC     error.lo
  CC     hashtable.lo
  CC     load.lo
  CC     memory.lo
  CC     pack_unpack.lo
  CC     strbuffer.lo
  CC     strconv.lo
  CC     utf.lo
  CC     value.lo
  CCLD   libjansson.la
Creating library file: .libs/libjansson.dll.a
make[5]: Leaving directory `/home/Sinturvy/cgminer-3.8.5/compat/jansson-2.5/src'

make[5]: Entering directory `/home/Sinturvy/cgminer-3.8.5/compat/jansson-2.5'
make[5]: Leaving directory `/home/Sinturvy/cgminer-3.8.5/compat/jansson-2.5'
make[4]: Leaving directory `/home/Sinturvy/cgminer-3.8.5/compat/jansson-2.5'
make[3]: Leaving directory `/home/Sinturvy/cgminer-3.8.5/compat/jansson-2.5'
Making all in libusb-1.0
make[3]: Entering directory `/home/Sinturvy/cgminer-3.8.5/compat/libusb-1.0'
make  all-recursive
make[4]: Entering directory `/home/Sinturvy/cgminer-3.8.5/compat/libusb-1.0'
Making all in libusb
make[5]: Entering directory `/home/Sinturvy/cgminer-3.8.5/compat/libusb-1.0/libu
sb'
  CC     libusb_1_0_la-core.lo
  CC     libusb_1_0_la-descriptor.lo
  CC     libusb_1_0_la-io.lo
  CC     libusb_1_0_la-sync.lo
  CC     os/libusb_1_0_la-poll_windows.lo
  CC     os/libusb_1_0_la-windows_usb.lo
  GEN    libusb-1.0.lo
  CC     libusb_1_0_la-hotplug.lo
  CC     os/libusb_1_0_la-threads_windows.lo
  CCLD   libusb-1.0.la
Creating library file: .libs/libusb-1.0.dll.a
make[5]: Leaving directory `/home/Sinturvy/cgminer-3.8.5/compat/libusb-1.0/libus
b'
make[5]: Entering directory `/home/Sinturvy/cgminer-3.8.5/compat/libusb-1.0'
make[5]: Leaving directory `/home/Sinturvy/cgminer-3.8.5/compat/libusb-1.0'
make[4]: Leaving directory `/home/Sinturvy/cgminer-3.8.5/compat/libusb-1.0'
make[3]: Leaving directory `/home/Sinturvy/cgminer-3.8.5/compat/libusb-1.0'
make[3]: Entering directory `/home/Sinturvy/cgminer-3.8.5/compat'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/Sinturvy/cgminer-3.8.5/compat'
make[2]: Leaving directory `/home/Sinturvy/cgminer-3.8.5/compat'
Making all in ccan
make[2]: Entering directory `/home/Sinturvy/cgminer-3.8.5/ccan'
  CC     opt/libccan_a-helpers.o
  CC     opt/libccan_a-opt.o
  CC     opt/libccan_a-parse.o
  CC     opt/libccan_a-usage.o
  AR     libccan.a
make[2]: Leaving directory `/home/Sinturvy/cgminer-3.8.5/ccan'
make[2]: Entering directory `/home/Sinturvy/cgminer-3.8.5'
  CC     cgminer-cgminer.o
  CC     cgminer-util.o
  CC     cgminer-sha2.o
  CC     cgminer-api.o
  CC     cgminer-logging.o
  CC     cgminer-usbutils.o
usbutils.c: In Funktion »_usb_init«:
usbutils.c:1760:5: Warnung: Unverträgliche implizite Deklaration der eingebauten
 Funktion »bzero« [standardmäßig aktiviert]
  CC     cgminer-driver-hexminera.o
driver-hexminera.c: In Funktion »hexminera_get_results«:
driver-hexminera.c:278:5: Warnung: Unverträgliche implizite Deklaration der eing
ebauten Funktion »bzero« [standardmäßig aktiviert]
  CC     cgminer-driver-hexminerb.o
driver-hexminerb.c: In Funktion »hexminerb_get_results«:
driver-hexminerb.c:290:3: Warnung: Unverträgliche implizite Deklaration der eing
ebauten Funktion »bzero« [standardmäßig aktiviert]
  CC     cgminer-driver-hexminerc.o
driver-hexminerc.c: In Funktion »hexminerc_get_results«:
driver-hexminerc.c:276:5: Warnung: Unverträgliche implizite Deklaration der eing
ebauten Funktion »bzero« [standardmäßig aktiviert]
  CCLD   cgminer.exe
make[2]: Leaving directory `/home/Sinturvy/cgminer-3.8.5'
make[1]: Leaving directory `/home/Sinturvy/cgminer-3.8.5'

Sinturvy@SINNETWORK ~/cgminer-3.8.5
$

CGminer.exe is compiled but I'm getting the following error:

Code:
USB init, open device failed, err -12, you need to install a WinUSB driver for - HEXb device 3:2
See README.txt file included for help
hexminerb detect (3:2) failed to initialise (incorrect device?)
No devices detected!
Waiting for USB hotplug devices or press q to quit

Would be awesome if anyone could help me! Smiley
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
Hashfast per die clock rate setting:

I have noticed that in driver-hashfast.c, there seems to be adaptive clock rate setting per die:

Code:
applog(LOG_INFO, "%s %d: Die temp below range %.1f, increasing die %d clock to %d",
hashfast->drv->name, hashfast->device_id, info->die_data[die].temp, die, hdd->hash_clock);
hfa_send_frame(hashfast, HF_USB_CMD(OP_WORK_RESTART), hdata, (uint8_t *)&diebit, 4);

Is there a way to set per die clock from command line or conf file? Reason I'm asking is one of my dies seems to work fine up to 150MHz then it completely stops working and I would like to clock dies 0-2 with normal clock and underclock die 3.

Edit: By the looks of your comments and the code it seems that per die clock setting will be possible for FW 0.5 and up. Do you already got FW 0.5 from hashfast by any chance?
Older firmware 0.3+ can do per die clockspeeds as well but when there is a large difference in the clocks it causes huge dips and peaks in the metering out of work which can present temperature and other issues. It is not possible to set clock speed per die on the command line yet but it is possible to add that feature.
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
PS:

Guy's
What about
   cg_wlock(&control_lock);
   .....local_work++;
   .....total_work++;
   cg_wunlock(&control_lock);
I think there is a need to lock them everywhere or ?

Thanks
Mostly harmless, but probably wouldn't hurt to protect them with the write lock for when mining at multiple different types of pools at once (eg GBT + stratum), yes, thanks.
member
Activity: 84
Merit: 10
Hashfast per die clock rate setting:

I have noticed that in driver-hashfast.c, there seems to be adaptive clock rate setting per die:

Code:
applog(LOG_INFO, "%s %d: Die temp below range %.1f, increasing die %d clock to %d",
hashfast->drv->name, hashfast->device_id, info->die_data[die].temp, die, hdd->hash_clock);
hfa_send_frame(hashfast, HF_USB_CMD(OP_WORK_RESTART), hdata, (uint8_t *)&diebit, 4);

Is there a way to set per die clock from command line or conf file? Reason I'm asking is one of my dies seems to work fine up to 150MHz then it completely stops working and I would like to clock dies 0-2 with normal clock and underclock die 3.

Edit: By the looks of your comments and the code it seems that per die clock setting will be possible for FW 0.5 and up. Do you already got FW 0.5 from hashfast by any chance?
legendary
Activity: 1610
Merit: 1000
...
I have played with #define LOCK_TRACKING 1 - GREAT WORK THANK YOU!
...
You're welcome Smiley

Yes Con designed all of the cglock code and wrote almost all of it.
I've had a few deadlocks I've coded in the past, so I wrote the lock tracking to be able to find them easily when I cause them.
Nice hack for lockstats to make them usable or at least for me api.c

#if LOCK_TRACKING

FILE * pFile;

#define LOCK_FMT_FFL " - called from %s %s():%d"

#define LOCKMSG(fmt, ...)   fprintf(pFile, "APILOCK: " fmt "\n", ##__VA_ARGS__)
#define LOCKMSGMORE(fmt, ...)   fprintf(pFile, "          " fmt "\n", ##__VA_ARGS__)
#define LOCKMSGFFL(fmt, ...) fprintf(pFile, "APILOCK: " fmt LOCK_FMT_FFL "\n", ##__VA_ARGS__, file, func, linenum)
#define LOCKMSGFLUSH() fflush(pFile)

then

void show_locks()
{
   pFile = fopen ("/tmp/cglocks","w");
..........


   fclose (pFile);

}

So no need to stare over console and catch the lines moving Wink

PS:

Guy's
What about
   cg_wlock(&control_lock);
   .....local_work++;
   .....total_work++;
   cg_wunlock(&control_lock);
I think there is a need to lock them everywhere or ?

Thanks
Jump to: