Search content
Sort by

Showing 8 of 8 results by BagBits
Post
Topic
Board Mining software (miners)
Re: BFGMiner 5.4.1: GBT+Stratum, RPC, Mac/Linux/Win64, Antminer S1-S5, Block v4 solo
by
BagBits
on 20/12/2015, 16:57:55 UTC
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

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

I seem to have solved this myself now. For anyone who needs to know. There seems to be a systemd-uvevd bug in Fedora. usb_modeswitch is not executed when the USB stick is inserted. Thus the USB is not treated as a serial device. To fix it i used the following workaround (executed as root)

usb_modeswitch -v29f1 -p33f3 -R
chgrp lp /dev/tty*
chmod g+r /dev/tty*


usb_mode_switch says:

Look for default devices ...
   product ID matched
 Found devices in default mode (1)
Access device 005 on bus 005
Current configuration number is 1
Use interface number 0

USB description data (for identification)
-------------------------
Manufacturer: CANAAN
     Product: Avalon nano
  Serial No.: 20150518
-------------------------
Warning: no switching method given. See documentation
Reset USB device .
 Device was reset
-> Run lsusb to note any changes. Bye!


Thus I start bfgminer (running with p2pool at stratum+tcp://127.0.0.1:9332) with tty0

bfgminer \
-S ICA:/dev/tty0 -o stratum+tcp://127.0.0.1:9332 \
-O user_xxx:passwd_xxx \
--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
Post
Topic
Board Hardware
Re: Avalon ASIC users thread
by
BagBits
on 02/12/2015, 15:16:15 UTC
I have an Avalon Nano 3 usb asic miner

The instructions for windows tell me to download a driver.
LPCXpresso Link2 USB driver package

But I have Fedora Linux
Do I need some driver or kernel module for the Avalon stick?
Isnt it supposed to show up as /dev/ttyUSB* ?
I can only see it in /dev/bus/usb/005/023

(i'm trying to use bfgminer)
bfgminer -S ICA:/dev/char/tty* -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
As I try to connect bfgminer i get:
 [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

Again: is it correct to try to connect to the usb asic from the /dev/bus/usb/* directory structure?
Post
Topic
Board Hardware
Re: Avalon ASIC users thread
by
BagBits
on 30/11/2015, 15:52:57 UTC
I have an Avalon Nano 3 usb asic miner

The instructions for windows tell me to download a driver.
LPCXpresso Link2 USB driver package

But I have Fedora Linux
Do I need some driver or kernel module for the Avalon stick?
Isnt it supposed to show up as /dev/ttyUSB* ?
I can only see it in /dev/bus/usb/005/023

(i'm trying to use bfgminer)
bfgminer -S ICA:/dev/char/tty* -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
Post
Topic
Board Mining software (miners)
Re: BFGMiner 5.4.1: GBT+Stratum, RPC, Mac/Linux/Win64, Antminer S1-S5, Block v4 solo
by
BagBits
on 25/11/2015, 17:23:28 UTC
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

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


The S3 was giving me the same thing Inappropriate some thing device then would shut down my miner or lock BFG or do what i said above so i know it saw it if it loaded for a berf second or two then gave some strange error then  either shut down the miner or locked up BFG to the point i had to close it out or do nothing at all .


i think i was getting this to

[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


but it said some thing different , can't say now no more S3 or S5 or S1 .
So how did you fix it?
Post
Topic
Board Mining software (miners)
Re: BFGMiner 5.4.1: GBT+Stratum, RPC, Mac/Linux/Win64, Antminer S1-S5, Block v4 solo
by
BagBits
on 23/11/2015, 17:44:33 UTC
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

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
Post
Topic
Board Mining support
Re: bfgminer: Inappropriate ioctl for device
by
BagBits
on 22/11/2015, 12:20:42 UTC
 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.
Post
Topic
Board Mining support
Re: bfgminer: Inappropriate ioctl for device
by
BagBits
on 22/11/2015, 12:11:59 UTC
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?
Post
Topic
Board Mining support
Topic OP
bfgminer: Inappropriate ioctl for device
by
BagBits
on 21/11/2015, 13:37:14 UTC
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