Using RPi4 B as USB slave and master

I have tried updating the dtoverlays but it doesn’t show up as a serial port on Windows/Linux machine.

I had to follow steps in here do a manual run of

modprobe -a dwc2 g_serial --first-time

which seems like should be done with configuration options on Balena Cloud

Note: my dtoverlays look like

"vc4-kms-v3d","dwc2","dr_mode=peripheral"