2

I'm looking for the OS USB device mount point established when a HackRF is connected to a Macbook using USB-C. Specifically I need the the path to the device. On Ubuntu this would be /dev/bus/usb.

The device is recognized by the OS. It shows up under System Information --> Hardware --> USB. diskutil list does not list the device. dmesg does not have anything useful. And lsusb does not work on this OS.

What is the equivalent on Mac OS Ventura 13.3?

2
  • Unless this is a storage device, diskutil won’t be applicable. Nothing will be created in the /dev/ folder if there isn’t a driver for it. Does this device indicate macOS compatibility?
    – Allan
    Commented Apr 19, 2023 at 20:39
  • @IconDaemon I have already installed hackrf using macports. Did you paste the wrong link? Commented Apr 19, 2023 at 20:43

1 Answer 1

1

There is no direct equivalent. /dev/bus/usb is a Linux-specific creation that does not exist on other systems.

You can install hackrf from HomeBrew to interact with your device. The tool uses libusb to automatically find your device on the available USB-busses based on the vendor and product IDs that they advertise when plugged in.

Your question seems to be an XY-problem - meaning that you are actually trying to solve some practical problem, which you are not telling us about, and in the process think that you need to solve this other problem. You would get better answers if you asked the main problem instead.

4
  • I want to mount the hackrf to a docker container so the container can interact with the device. Is this possible? Commented Apr 20, 2023 at 10:11
  • No, not at the moment. The terminology of "mounting" in this context is Linux-specific - it is not the way that works on other operating systems. Docker for Mac has not yet implemented a USB pass-through feature, so as of right now, you would have to implement that yourself. You could try running the container in privileged mode, but that would probably defeat the entire point of running it in a container anyways.
    – jksoegaard
    Commented Apr 20, 2023 at 10:51
  • Here's a link you can follow on the progress of getting USB pass-through for macOS supported in Docker: github.com/moby/hyperkit/issues/149 (basically it's 5 years of "will come later").
    – jksoegaard
    Commented Apr 20, 2023 at 10:52
  • That's a shame. Thanks for the help and info. Commented Apr 20, 2023 at 11:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .