Hi Luke,
Hope the holiday session is going well.
I am struggling and need a hand with NFY devices on the Raspberry PI. I finally got one and managed to compile hidapi correctly (I think) and bfgminer
finds the devices correctly;-
bfgminer -D -T -d?
[2014-01-01 11:52:55] setrlimit: Soft fd limit not being changed from 1024 (FD_SETSIZE=1024; hard limit=4096)
[2014-01-01 11:52:55] Started bfgminer 3.9.0
[2014-01-01 11:52:55] hidapi_try_lib: Couldn't load libhidapi.so: libhidapi.so: cannot open shared object file: No such file or directory
[2014-01-01 11:52:55] hidapi_try_lib: Couldn't load libhidapi-0.so: libhidapi-0.so: cannot open shared object file: No such file or directory
[2014-01-01 11:52:55] hidapi_try_lib: Successfully loaded libhidapi-hidraw.so
[2014-01-01 11:52:55] hid_devinfo_scan: Found "NanoFury NF1 v0.6" serial "0000023445"
[2014-01-01 11:52:56] lowlevel_scan: Found usb device at usb:001:001 (path=(null), vid=1d6b, pid=0002, manuf=Linux 3.10.25-1-ARCH dwc_otg_hcd, prod=DWC
OTG Controller, serial=bcm2708_usb)
[2014-01-01 11:52:56] lowlevel_scan: Found usb device at usb:001:002 (path=(null), vid=0424, pid=9512, manuf=(null), prod=(null), serial=(null))
[2014-01-01 11:52:56] lowlevel_scan: Found usb device at usb:001:003 (path=(null), vid=0424, pid=ec00, manuf=(null), prod=(null), serial=(null))
[2014-01-01 11:52:56] lowlevel_scan: Found usb device at usb:001:004 (path=(null), vid=1a40, pid=0201, manuf=(null), prod=USB 2.0 Hub [MTT], serial=
(null))
[2014-01-01 11:52:56] lowlevel_scan: Found usb device at usb:001:006 (path=(null), vid=1a40, pid=0101, manuf=(null), prod=USB 2.0 Hub [MTT], serial=
(null))
[2014-01-01 11:52:56] lowlevel_scan: Found usb device at usb:001:005 (path=(null), vid=3322, pid=5544, manuf=(null), prod=USB 2.0 Hub [MTT], serial=
(null))
[2014-01-01 11:52:56] lowlevel_scan: Found usb device at usb:001:007 (path=(null), vid=1a40, pid=0101, manuf=(null), prod=USB 2.0 Hub [MTT], serial=
(null))
[2014-01-01 11:52:56] lowlevel_scan: Found usb device at usb:001:008 (path=(null), vid=04d8, pid=00de, manuf=Microchip Technology Inc., prod=NanoFury
NF1 v0.6, serial=0000023445)
[2014-01-01 11:52:56] lowlevel_scan: Found hid device at hid:/dev/hidraw0 (path=/dev/hidraw0, vid=04d8, pid=00de, manuf=Microchip Technology Inc.,
prod=NanoFury NF1 v0.6, serial=0000023445)
[2014-01-01 11:52:56] lowlevel_scan: Found mcp2210 device at hid:/dev/hidraw0 (path=/dev/hidraw0, vid=04d8, pid=00de, manuf=Microchip Technology Inc.,
prod=NanoFury NF1 v0.6, serial=0000023445)
[2014-01-01 11:52:56] Devices detected:
[2014-01-01 11:52:56] NanoFury NF1 v0.6 by Microchip Technology Inc. (driver=nanofury; procs=1; serial=0000023445; path=/dev/hidraw0)
[2014-01-01 11:52:56] Timers: Using clock_gettime(CLOCK_MONOTONIC_RAW)
Unfortunatly when I start bfgminer
./bfgminer -S NFY:/dev/hiddev0 -c /opt/minepeon/etc/miner.conf
It will seg fault and core dump;-
[2014-01-01 12:02:07] Loaded configuration file /opt/minepeon/etc/miner.conf
[2014-01-01 12:02:07] Probing for an alive pool
[2014-01-01 12:02:09] Network difficulty changed to 1.18G ( 8.45Ph/s)
[2014-01-01 12:02:09] Switching to pool 1 http://us1.eclipsemc.com:8337 - first alive pool
[2014-01-01 12:02:09] Long-polling activated for http://us1.eclipsemc.com:8337 (getblocktemplate)
[2014-01-01 12:02:10] API running in IP access mode on port 4028
[2014-01-01 12:02:10] mcp2210_set_cfg_gpio: Failed to set current GPIO config
[2014-01-01 12:02:10] NFY 0: checkport failed
[2014-01-01 12:02:10] NFY 0 failure, exiting
[2014-01-01 12:02:10] Pool 0 http://stratum.bitcoin.cz:3333 alive
[2014-01-01 12:02:10] Switching to pool 0 http://stratum.bitcoin.cz:3333Segmentation fault (core dumped)
I really don't do much with coding (being an OS guy) but I compiled -g and here is the backtrace;-
gdb /home/minepeon/bfgminer/bfgminer core.22907
GNU gdb (GDB) 7.6.2
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "armv6l-unknown-linux-gnueabihf".
For bug reporting instructions, please see:
...
Reading symbols from /home/minepeon/bfgminer/bfgminer...done.
[New LWP 22930]
[New LWP 22931]
[New LWP 22932]
[New LWP 22933]
[New LWP 22934]
[New LWP 22935]
[New LWP 22936]
[New LWP 22908]
[New LWP 22927]
[New LWP 22907]
[New LWP 22918]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `/home/minepeon/bfgminer/bfgminer -S NFY:/dev/hiddev0 -c /opt/minepeon/etc/miner'.
Program terminated with signal 11, Segmentation fault.
#0 0x000af24c in nanofury_shutdown (thr=0x1bb3f78) at driver-nanofury.c:369
369 struct mcp2210_device * const mcp = state->mcp;
(gdb) bt
#0 0x000af24c in nanofury_shutdown (thr=0x1bb3f78) at driver-nanofury.c:369
#1 0x000474fc in miner_thread (userdata=0x1bb3f78) at deviceapi.c:732
#2 0xb6eb8d2c in start_thread () from /usr/lib/libpthread.so.0
#3 0xb6cbbad8 in ?? () from /usr/lib/libc.so.6
#4 0xb6cbbad8 in ?? () from /usr/lib/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
I am running as root as you say in the README and have modprobed everything you required;-
leds_gpio 2091 0
led_class 3712 1 leds_gpio
spi_bcm2708 4755 0
i2c_dev 5573 0
i2c_bcm2708 3949 0
snd_bcm2835 16222 0
snd_pcm 81485 1 snd_bcm2835
snd_page_alloc 5188 1 snd_pcm
snd_timer 19925 1 snd_pcm
snd 58851 3 snd_bcm2835,snd_timer,snd_pcm
bcm2708_rng 1032 0
rng_core 4190 1 bcm2708_rng
ipv6 303991 0
Thanks for any help you can provide.
Neil