Bitcoin Forum

Bitcoin => Mining support => Topic started by: BagBits on November 21, 2015, 01:37:14 PM



Title: bfgminer: Inappropriate ioctl for device
Post by: BagBits on November 21, 2015, 01:37:14 PM
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


Title: Re: bfgminer: Inappropriate ioctl for device
Post by: BagBits on November 22, 2015, 12:11:59 PM
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?


Title: Re: bfgminer: Inappropriate ioctl for device
Post by: BagBits on November 22, 2015, 12:20:42 PM
 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.


Title: Re: bfgminer: Inappropriate ioctl for device
Post by: -ck on November 22, 2015, 09:57:45 PM
Use the official support thread:
https://bitcointalk.org/index.php?topic=877081.0

/locked