-
Notifications
You must be signed in to change notification settings - Fork 318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iio_attr -a mode fails on PlutoSDR #925
Comments
It shouldn't need any. Could you try to see where the -EIO error is returned from? |
Ok. Let me get my cross-compiling setup going |
Pluto doesn't ship with avahi client on it. This failure is expected. I don't think -a (which does a scan, and attaches to the first device) tries local. That's a feature enhancement. -Robin |
@rgetz In that case I would expect it to fail, but not with a -EIO code. |
I was wrong - it should try local...
a scan returns the same.
so - scans fail on local for some reason. from a host:
I can try on a ARM target later (using Kuiper). -Robin |
Works on ARM (Kuiper), and provides local context.
so this is likely a uClibc issue... |
Ok - not a uClibc issue, just a couple stacked libiio issues... two issues:
So, libUSB is installed, the USB backend is turned on, usb scanning is turned on, but usb scans fail when in device mode. I'm not sure on the "fix":
-Robin |
libiio scans via libusb when the usb backend is built in. For many embedded linux targets that support On The Go (OTG) the USB port can be configured as device or host. Sometimes, end users may want to scan for local devices when the OTG is configured as a device (and there aren't any USB hosts). The issue with this is libusb returns an error when there are not any hosts. So - on linux - catch that, and override the error handling. New functionality is when Linux's OTG USB is in device mode, usb scans can still take place. This fixes issue analogdevicesinc#925 (iio_attr -a fails on plutoSDR). Signed-off-by: Robin Getz <[email protected]>
The PR does the 2nd (don't return an error code), and leaves the backends alone for now. @tfcollins - I don't know if you want to verify on your side?, but it fails for me before, and works now:
|
libiio scans via libusb when the usb backend is built in. For many embedded linux targets that support On The Go (OTG) the USB port can be configured as device or host. Sometimes, end users may want to scan for local devices when the OTG is configured as a device (and there aren't any USB hosts). The issue with this is libusb returns an error when there are not any hosts. So - on linux - catch that, and override the error handling. New functionality is when Linux's OTG USB is in device mode, usb scans can still take place. This fixes issue analogdevicesinc#925 (iio_attr -a fails on plutoSDR). Signed-off-by: Robin Getz <[email protected]>
libiio scans via libusb when the usb backend is built in. For many embedded linux targets that support On The Go (OTG) the USB port can be configured as device or host. Sometimes, end users may want to scan for local devices when the OTG is configured as a device (and there aren't any USB hosts). The issue with this is libusb returns an error when there are not any hosts. So - on linux - catch that, and override the error handling. New functionality is when Linux's OTG USB is in device mode, usb scans can still take place. This fixes issue #925 (iio_attr -a fails on plutoSDR). Signed-off-by: Robin Getz <[email protected]>
I think this can be closed now. |
Fixed by #939 I assume? |
I guess its missing some discovery/scanning packages?
The text was updated successfully, but these errors were encountered: