ARM SBC can't see Mini 2

I just got an Orange Pi 5 and I was trying to see if I could make my code run on it.
I’m having a problem that the USB host can’t see the Mini, even though it must be alive because I get the heartbeat green LED.
It doesn’t show up in lsusb:
lsusb

Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

Bus 007 Device 004: ID 0bda:4b77 Realtek Semiconductor Corp. Light Audio

Bus 007 Device 006: ID 0486:573c ASUS Computers, Inc. Light

Bus 007 Device 005: ID 05a9:0680 OmniVision Technologies, Inc. USB Camera-OV580

Bus 007 Device 003: ID 04b4:6572 Cypress Semiconductor Corp. Unprogrammed CY7C65642 hub

Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 003 Device 002: ID 045e:07a5 Microsoft Corp. Wireless Receiver 1461C

Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Hi @VelekHacks,

how much current (Amps) can Orange Pi 5 supply trough its USB3.0 port and how much current you already using with other USB devices?
Probably LimeSDR-Mini v2 is not getting enough power and because of this you see various problems.

I don’t have exact numbers but I think LimeSDR-Mini v2 would require at least ~700mA from USB3.0 port.

I was having trouble with it rebooting and had to switch to a better power supply, so that could be an issue.
Are there any points on it I can put a multimeter on?

Have you looked at dmesg at all? When a USB device can’t get enough power, the error often shows up there.

-Dan Fay

Looking through dmesg output now. I hooked it up to the hub that I have been using so now it shows up in lsusb, but the program I was using for still doesn’t detect it:
Bus 006 Device 004: ID 0403:601f Future Technology Devices International, Ltd Myriad-RF LimeSDR-Mini

Bus 006 Device 003: ID 05e3:0617 Genesys Logic, Inc. USB3.0 Hub

Bus 006 Device 002: ID 05e3:0617 Genesys Logic, Inc. USB3.0 Hub

Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

Bus 007 Device 004: ID 0bda:4b77 Realtek Semiconductor Corp. Light Audio

Bus 007 Device 006: ID 0486:573c ASUS Computers, Inc. Light

Bus 007 Device 005: ID 05a9:0680 OmniVision Technologies, Inc. USB Camera-OV580

Bus 007 Device 003: ID 04b4:6572 Cypress Semiconductor Corp. Unprogrammed CY7C65642 hub

Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 002 Device 003: ID 05e3:0610 Genesys Logic, Inc. Hub

Bus 002 Device 002: ID 05e3:0610 Genesys Logic, Inc. Hub

Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 003 Device 002: ID 045e:07a5 Microsoft Corp. Wireless Receiver 1461C

Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

This is the only mention of it in dmesg:
[ 7.062232] usb 6-1.4.4: New USB device found, idVendor=0403, idProduct=601f, bcdDevice= 0.00
[ 7.062234] usb 6-1.4.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 7.062236] usb 6-1.4.4: Product: LimeSDR Mini
[ 7.062237] usb 6-1.4.4: Manufacturer: Lime Micro
[ 7.062239] usb 6-1.4.4: SerialNumber: 1D90EE13DEF75D

I am on the LimeSuite stable branch from github. Is that okay, or do I need to get the latest release tarball and build that?

I just checked out master and rebuilt but still nothing:
LimeQuickTest

[ TESTING STARTED ]

->Start time: Thu Jan 18 15:52:40 2024

->LimeSuite version: 23.11.0-ge353507d

Error: No Devices Connected

Failed to connect

If lsusb can see the device, and limesuite can’t, then it’s most likely permissions issue. Running with ‘sudo’ should work, or installing udev rules https://github.com/myriadrf/LimeSuite/blob/master/udev-rules/install.sh

I already tried both of those things, same result.

If you’re compiling from source check if you have libusb-1.0 development package installed, otherwise limesuite will be compiled without usb support.

I think libusb is likely the problem. I had it install it, but it still can’t find it:
The following additional packages will be installed:
libusb-0.1-4
The following NEW packages will be installed:
libusb-0.1-4 libusb-dev
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.

cmake still can’t find the deps;
– USB_INCLUDE_DIRS: LIBUSB_1_INCLUDE_DIR-NOTFOUND

– USB_LIBRARIES: LIBUSB_1_LIBRARY-NOTFOUND

– USB_INCLUDE_DIRS: LIBUSB_1_INCLUDE_DIR-NOTFOUND

– USB_LIBRARIES: LIBUSB_1_LIBRARY-NOTFOUND

Ok, I got it.
I was missing:
apt-get install libusb-1.0-0-dev

Yes, as a general rule you need the development files for a package installed, before you build something which needs these, otherwise the build will either fail or just omit support for something.

The details about what additional packages are needed were omitted from the instructions.

https://wiki.myriadrf.org/Lime_Suite#Get_the_dependencies