Once booted, do the inital setup. The password, user accounts and so on.
Type in reboot and once booted again login as root with the password you've set.
Now, once logged in type in:
armbin-config
You'll get a configuration screen and a complaint about no internet. Just ignore it and you'll see the Configuration Utility screen.
Within this screen, you'll select System > Hardware and enable the following (by pressing Space):
usbhost0usbhost1usbhost2usbhost3
Once done, press Enter to apply changes. Use Escape to return back and exit out of the utility.
(We aren't done yet though)
With your favorite text editor open /boot/armbianEnv.txt
After the overlays line add:
extraargs=console=ttyGS0,115200 modules-load=dwc2,g_cdc (if you want a USB serial for debugging)
and
modules-load=dwc2,g_ether (without USB serial device)
Exit and save and reboot the board for these to apply.
If you choose to use either g_cdc or g_ether you might notice that on each reboot the MAC address changes and messes with your host systems' ability to properly save the connection settings for your Pi board. This can be fixed by just setting the MAC addresses yourself.
In the same extraargs in the /boot/armbianEnv.txt file you can add:
- For
g_cdc:g_cdc.host_addr=00:22:82:ff:ff:00 g_cdc.dev_addr=00:22:82:ff:ff:01 - For
g_ether:g_ether.host_addr=00:22:82:ff:ff:00 g_ether.dev_addr=00:22:82:ff:ff:01
In here host_addr referrs to the address seen on the computer which is the USB host (aka your PC) and dev_addr is the one seen from your Pi board.
Once you've set those kernel parameters and have rebooted, you must set up network otherwise that USB gadget device isn't being used.
We must do this both on the Pi and the host machine.