Bitcoin Forum
May 05, 2024, 05:53:12 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bfgminer: Inappropriate ioctl for device  (Read 689 times)
BagBits (OP)
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
1714931592
Hero Member
*
Offline Offline

Posts: 1714931592

View Profile Personal Message (Offline)

Ignore
1714931592
Reply with quote  #2

1714931592
Report to moderator
1714931592
Hero Member
*
Offline Offline

Posts: 1714931592

View Profile Personal Message (Offline)

Ignore
1714931592
Reply with quote  #2

1714931592
Report to moderator
1714931592
Hero Member
*
Offline Offline

Posts: 1714931592

View Profile Personal Message (Offline)

Ignore
1714931592
Reply with quote  #2

1714931592
Report to moderator
TalkImg was created especially for hosting images on bitcointalk.org: try it next time you want to post an image
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714931592
Hero Member
*
Offline Offline

Posts: 1714931592

View Profile Personal Message (Offline)

Ignore
1714931592
Reply with quote  #2

1714931592
Report to moderator
1714931592
Hero Member
*
Offline Offline

Posts: 1714931592

View Profile Personal Message (Offline)

Ignore
1714931592
Reply with quote  #2

1714931592
Report to moderator
BagBits (OP)
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 (OP)
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
Legendary
*
Offline Offline

Activity: 4102
Merit: 1632


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

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!