-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update USB gadget script to reflect bus-powered device requiring up t…
…o 1A - Changed `bmAttributes` to `0x80` to indicate the device is bus-powered. - Updated `MaxPower` to `500` (units of 2 mA) to specify a power requirement of 1 amp. - Added comments to clarify power source and requirements. - Ensured script aligns with USB specifications for power negotiation. - Maintained dual interface setup for CDC ECM (usb0) and RNDIS (usb1).
- Loading branch information
Showing
4 changed files
with
121 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
etc/systemd/network/usb0.network etc/systemd/network/ | ||
etc/systemd/network/usb1.network etc/systemd/network/ | ||
etc/systemd/system/usb-gadget.service etc/systemd/system/ | ||
usr/bin/usb_otg_setup.sh usr/bin/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[Match] | ||
Name=usb1 | ||
|
||
[Address] | ||
Address=10.42.0.1/24 | ||
Scope=link | ||
|
||
[Network] | ||
DHCPServer=yes | ||
LinkLocalAddressing=yes | ||
IPv6AcceptRA=no | ||
|
||
[DHCPServer] | ||
EmitRouter=no | ||
EmitDNS=no | ||
PoolSize=50 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters