Skip to content

Commit 9300b0f

Browse files
committed
README: add note on CDC gadget and network setup
Signed-off-by: Daniel Maslowski <[email protected]>
1 parent 4a1625e commit 9300b0f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,12 @@ there](https://linuxlink.timesys.com/docs/wiki/engineering/HOWTO_Use_USB_Gadget_
188188
* `CONFIG_INET`
189189
- add the MAC addresses for your gadget device and the machine you connect to in
190190
the kernel `CMDLINE`, e.g., `g_ether.dev_addr=12:34:56:78:9a:bc g_ether.host_addr=12:34:56:78:9a:bd`
191+
* fixed MAC addresses allow your laptop to recognize the gadget again
192+
* when using a CDC gadget (e.g. CDC ethernet+serial), use `g_cdc.dev_addr`/`g_cdc.host_addr`
193+
194+
You will also need to configure the network. You can either go with DHCP or
195+
fixed addresses. Since `cpud` spawns a shell, if your shell allows for it, you
196+
can use a shell rc file.
191197

192198
## cpu will be familiar to ssh users
193199

0 commit comments

Comments
 (0)