Create an image that can be used for a USB 2.0/USB 3.0 Ethernet gadget

  1. Enter the kernel configuration by running the following command in the top directory of project.
make kconfig
  1. Select submenus for USB 2.0 controller : Device Drivers > USB support > USB Gadget Support > USB Peripheral Controller. Select <*> for “Sunplus USB 2.0 Device Controller“.

  2. Select submenus for USB OTG Transceive driver : Device Drivers > USB support > USB Physical Layer drivers. Select <*> for “Sunplus USB OTG Transceive driver“ .

  3. Select submenus for USB 3.0 controller : Device Drivers > USB support. Select <*> for “DesignWare USB3 DRD Core Support“ and select “Dual Role mode“ for “Deware USB3 DRD Core Support“.

  4. Select submenus for USB Gadget configfs : Device Drivers > USB support > USB Gadget Support. Select for “USB Gadget functions configurable through configfs“ and [*] for “Network Control Model (CDC NCM)“, “Ethernet Control Model (ECM)“, “Ethernet Control Model (ECM) subset“, “RNDIS“ and “Ethernet Emulation Model (EEM)“.

  5. Execute the make command to build the Linux image.