Bitcoin Forum
May 24, 2018, 08:23:49 PM *
News: Latest stable version of Bitcoin Core: 0.16.0  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: bfgminer: Inappropriate ioctl for device  (Read 602 times)
BagBits
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
November 21, 2015, 01:37:14 PM
 #1

I have a brand new Avalon Nano 3 usb mining stick.
I've ser up p2pool (I don't think there's a problem with that)
I'm trying to start bfgminer with

bfgminer  -S ICA:/dev/bus/usb/005/012 -o stratum+tcp://127.0.0.1:9332 -O userxxx:passxxx --set-device ICA:baud=115200 --set-device ICA:reopen=timeout --set-device ICA:work_division=1 --set-device ICA:fpga_count=1 --set-device ICA:probe_timeout=100 --set-device ICA:timing=0.22 --api-listen

Obviously bfminer finds /dev/bus/usb/005/012 (iv'e set group to lp, same result anyhow if i run bfgminer as root)
bfminer somehow does not connect properly to the miner and reports:

[2015-11-21 15:29:26] /dev/bus/usb/005/012: tcflush failed: Inappropriate ioctl for device
1527193429
Hero Member
*
Offline Offline

Posts: 1527193429

View Profile Personal Message (Offline)

Ignore
1527193429
Reply with quote  #2

1527193429
Report to moderator
1527193429
Hero Member
*
Offline Offline

Posts: 1527193429

View Profile Personal Message (Offline)

Ignore
1527193429
Reply with quote  #2

1527193429
Report to moderator
1527193429
Hero Member
*
Offline Offline

Posts: 1527193429

View Profile Personal Message (Offline)

Ignore
1527193429
Reply with quote  #2

1527193429
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1527193429
Hero Member
*
Offline Offline

Posts: 1527193429

View Profile Personal Message (Offline)

Ignore
1527193429
Reply with quote  #2

1527193429
Report to moderator
1527193429
Hero Member
*
Offline Offline

Posts: 1527193429

View Profile Personal Message (Offline)

Ignore
1527193429
Reply with quote  #2

1527193429
Report to moderator
1527193429
Hero Member
*
Offline Offline

Posts: 1527193429

View Profile Personal Message (Offline)

Ignore
1527193429
Reply with quote  #2

1527193429
Report to moderator
BagBits
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
November 22, 2015, 12:11:59 PM
 #2

tcflush sounds like a connection problem to me.
Is there a difference between the icarus parameters needed for older and newer avalon nano?

I have the Avalon3 Nano, rev. 2.0

Anyone else having this problem?
BagBits
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
November 22, 2015, 12:20:42 PM
 #3

 if I leave out the timeout parameter (ICA:probe_timeout=100) the error output becomes:

 [2015-11-22 14:17:14] /dev/bus/usb/005/013: tcgetattr failed: Inappropriate ioctl for device
 [2015-11-22 14:17:14] /dev/bus/usb/005/013: tcflush failed: Inappropriate ioctl for device
 [2015-11-22 14:17:14] /dev/bus/usb/005/013: tcgetattr failed: Inappropriate ioctl for device
 [2015-11-22 14:17:14] /dev/bus/usb/005/013: tcflush failed: Inappropriate ioctl for device
 [2015-11-22 14:17:15] /dev/bus/usb/005/013: tcgetattr failed: Inappropriate ioctl for device
 [2015-11-22 14:17:15] /dev/bus/usb/005/013: tcflush failed: Inappropriate ioctl for device
 [2015-11-22 14:17:16] /dev/bus/usb/005/013: tcgetattr failed: Inappropriate ioctl for device
 [2015-11-22 14:17:16] /dev/bus/usb/005/013: tcflush failed: Inappropriate ioctl for device
 [2015-11-22 14:17:17] /dev/bus/usb/005/013: tcgetattr failed: Inappropriate ioctl for device
 [2015-11-22 14:17:17] /dev/bus/usb/005/013: tcflush failed: Inappropriate ioctl for device
 [2015-11-22 14:17:17] /dev/bus/usb/005/013: tcgetattr failed: Inappropriate ioctl for device

This indicates an error in asynchronous serial communication. i.e. In the usb connection.
-ck
Moderator
Legendary
*
Offline Offline

Activity: 2534
Merit: 1072


Ruu \o/


View Profile WWW
November 22, 2015, 09:57:45 PM
 #4

Use the official support thread:
https://bitcointalk.org/index.php?topic=877081.0

/locked

Primary developer/maintainer for cgminer and ckpool/ckproxy.
ZERO FEE Pooled mining at ckpool.org 1% Fee Solo mining at solo.ckpool.org
-ck
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!