USB host example

Hi, does anybody know where to look at USB host code?
I need to use the BBB to talk to a USB device.
I am using the Debian Buster IoT Image 2020-04-06
Please let me know

You talking about like what this post about changing usb0 from client to host talks about? I mean USB1 is already in host mode. I’ve jacked a memory stick into it and used the mount command to prove out file access.

And no, I haven’t finished nailing down getting USB0 to behave like a host yet. My digging on the software end has me looking at u-boot’s pre-kernel-start configuration process at the moment.

As for hardware, USB0 doesn’t have the power control implemented to do host mode. My project includes going battery powered, so that half of my implementation will be involving the Maxim Integrated’s MAX77840_EVkit. But that’s another story.

And here’s another blog post (off this site) where someone hacked an arduino USB shield to get a USB Host interfacee throught the SPI port.