Using USB Gadgets Serial, Ethernet, and Mass Storage

  1. Home
  2. Docs
  3. Using USB Gadgets Serial, Ethernet, and Mass Storage
  4. Using USB Gadget services

Using USB Gadget services

This section of the documentation covers how to enable and disable the USB Gadget services that are included with the Giant Board. The Giant Board comes with 3 different combinations of USB gadgets out of the box. Out of the box the Giant Board has USB serial gadget, USB ethernet gadget, and USB mass storge enabled.

If you want to enable a different serivce, please disable the default service first by entering the command below into the terminal of your Giant Board. After changing any of the services, its recommended to reboot to properly enable all services.

sudo systemctl disable usbgadget-serial-eth-ms

The first service will allow you to enable just the USB serial gadget alone if you don’t want USB mass storage or etherent. You can type the following command to enable the USB gadget serial serivce.

sudo systemctl enable usbgadget-serial

The second service allows you to enable a USB serial gadget as well as the USB ethernet gadget. If you want to share your computers internet with the Giant Board, you’ll need to enable network sharing on your computer. You can type the following command to enable the USB serial ethernet gadget service below.

sudo systemctl enable usbgadget-serial-eth

The third service that is enabled by default on all Giant Boards enables a USB serial gadget, etherent, and mass storage device. The mass storage mounts the Giant Board boot sector to easily modify the Giant Boards operating system. To use the Ethernet gadget over USB, you’ll need to be sure to enable network sharing on your computer. To enable this service, if not already, you can type the command below.

sudo systemctl enable usbgadget-serial-eth-ms