Raspberry Pi Zero W RNDIS to Windows 11
Pi Configuration Procedures (on Raspberry Pi Zero W):
- Modify /boot/config.txt, append the following as a separate line:
dtoverlay=dwc2
- Modify /boot/config.txt, comment out any lines containing
otg_mode
. - Modify /boot/cmdline.txt, add the following immediately after
rootwait
, surrounded by spaces:modules-load=dwc2,g_ether
- Create an empty file called
/boot/ssh
.
Driver Installation Procedures (on Microsoft Windows 11):
- Disable driver signature verification.
- Download linux.inf file.
- In Device Manager, under Ports, right-click on USB Serial Device (the one that appears when connecting the Pi to the computer’s USB port.
- Click on Update Driver > Browse my computer for drivers > Let me pick from a list of available drivers on my computer.
- Click on Have Disk… and browse to the folder with the downloaded linux.inf file. Click OK.
- With “Show compatible hardware” ticked, “Linux USB Ethernet/RNDIS Gadget” should be an option. Select this entry and click Next.
- Proceed with remainder of driver installation.
Connection Procedures (on Microsoft Windows 11)
- Using SSH program, connect to Pi’s hostname with “.local” appended to it. For example:
ssh myusername@myraspberrypi.local
References and Sources:
- linux.inf (local copy).
- Karonji, Wahome. How to Connect a Raspberry Pi to a PC or Laptop Using USB