I have a Raspberry Pi 4B which I am trying to install OpenWRT on. I was able to use the OpenWRT image for Raspberry Pi 4B, however I am not able to get the Ethernet over USB-C to work, and I cannot get the device to recognise the USB-C port as a network interface.
Could someone advise how to set up the router to use ethernet over USB?
This is surprising, but the Pi's USB-C port actually does take data. I've literally been using one as a device attached to my iPad for a different project running Ubuntu.
The problem seems to be that the g_ether module doesn't seem to be loading on startup. I am able to manually load it and then connect via the usb0 interface, but the interface gets disabled on reboot.
I connected a USB-C data cable to my computer. The Pi drew power from the USB-C, and when the Ethernet-over-USB worked I was able to ssh into it as well.
This is certainly new to me.... I didn't realize that the Pi4 supported data over the USB port. That said, the linked article describes using this interface in gadget mode.
I've never used gadget mode, so I can't give any specific advice. But, there is an article about this:
and that seems to suggest that you need to install kmod-usb-gadget-eth (Kernel support for USB Ethernet Gadget)
The schematic shows that the port is USB-C (USB2 only). It shows that only Dp1/Dp2./Dn1/Dn2 are connected so it only runs with USB-2 and you will be limited to 480Mbps. Perhaps your dongle is connected over the SuperSpeed wires and thus only work with USB-4 or perhaps USB3x.