Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

hardware.sg2k.usb

Declared in BadgeOS/modules/sg2k/usb-gadget.nix, BadgeOS/modules/sg2k/usb-role.nix.

hardware.sg2k.usb.gadget.enable

Enable the USB CDC-NCM gadget (badge-as-network-device over USB).

Type: boolean

Default:

true

Declared by:

hardware.sg2k.usb.gadget.manufacturer

USB iManufacturer string descriptor.

Type: string

Default:

"Dagian Industries"

Declared by:

hardware.sg2k.usb.gadget.product

USB iProduct string descriptor. May carry a store path or build id (up to 126 UTF-16 units).

Type: string

Default:

"SG200x board (NCM)"

Declared by:

hardware.sg2k.usb.gadget.serialFromEfuse

When serialNumber is empty, get the serial from the eFuses.

Type: boolean

Default:

true

Declared by:

hardware.sg2k.usb.gadget.serialNumber

USB iSerialNumber. Empty means derive it at runtime.

Type: string

Default:

""

Declared by:

hardware.sg2k.usb.role

The USB-C port’s role. As a device the badge is a USB network adapter (the gadget); as a host it powers the port and a keyboard, mouse or hub enumerates. The desktop profile is a host.

As a host the badge is not reachable over usb0; deploy over Ethernet or WiFi.

Type: one of “host”, “device”

Default:

"device"

Declared by: