Bitcoin Forum
September 24, 2024, 12:09:45 AM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Mining software (miners) / Re: BFGMiner 5.4.1: GBT+Stratum, RPC, Mac/Linux/Win64, Antminer S1-S5, Block v4 solo on: December 20, 2015, 04:57:55 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

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
2  Bitcoin / Hardware / Re: Avalon ASIC users thread on: December 02, 2015, 03:16:15 PM
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?
3  Bitcoin / Hardware / Re: Avalon ASIC users thread on: November 30, 2015, 03:52:57 PM
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
4  Bitcoin / Mining software (miners) / Re: BFGMiner 5.4.1: GBT+Stratum, RPC, Mac/Linux/Win64, Antminer S1-S5, Block v4 solo on: November 25, 2015, 05:23:28 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

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?
5  Bitcoin / Mining software (miners) / Re: BFGMiner 5.4.1: GBT+Stratum, RPC, Mac/Linux/Win64, Antminer S1-S5, Block v4 solo on: November 23, 2015, 05:44:33 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

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
6  Bitcoin / Mining support / Re: bfgminer: Inappropriate ioctl for device 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.
7  Bitcoin / Mining support / Re: bfgminer: Inappropriate ioctl for device 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?
8  Bitcoin / Mining support / bfgminer: Inappropriate ioctl for device 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
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!