The RZ/A1 BSP ships with some documentation that shows how to use the mini USB port 0 on the Dev Kit as an "Ethernet over USB" gadget. Those instructions can be found here:
https://github.com/renesas-rz/rskrza1_bsp/blob/master/doc/testing/usb-function.txt
We have 2 Dev Kits and have tried using the stock BSP and these instructions to work on both of them. Neither board shows a "usb0" network device and there are no kernel messages for the "g_ether: gadget". We must be doing something wrong but we have followed the instructions very carefully.
$ grep -i usb_eth .config
CONFIG_USB_ETH=y
CONFIG_USB_ETH_RNDIS=y
# CONFIG_USB_ETH_EEM is not set
$ lsusb
Bus 001 Device 001: ID 1d6b:0002
The kernel is being booted with the "usbgs=0" parameter:
$ cat /proc/cmdline
console=ttySC2,115200 console=tty0 ignore_loglevel usbgs=0 root=/dev/null rootflags=physaddr=0x18800000
When I plug in a mini usb, nothing happens. Here is a picture of one set. What could I be doing wrong? Thank you.