Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3929

Troubleshooting • RPi 4 gadget mode not being picked up by Windows PC

$
0
0
Hello all, I set the gadget mode following the steps bellow:

before first boot in first_run.sh:

Code:

cat << EOF > /etc/network/interfaces.d/usb0auto usb0allow-hotplug usb0iface usb0 inet static    address 192.168.2.2    netmask 255.255.255.0    gateway 192.168.2.1EOF
in /boot/firmware/config.txt,

Code:

dtoverlay=dwc2
in /boot/firmware/cmdline.txt

Code:

rootwait modules-load=dwc2,g_ether
(followed the guide in this link: https://github.com/raspberrypi/linux/issues/5737)
The steps worked for the OP, but not when I plugged the rpi4 to my windows PC. It is not picked up in the device manager at all, which doesn't even allow me to run the RNDIS driver.

With

Code:

ifconfig
, I can see the usb0 port being enabled.

Code:

usb0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500inet 192.168.2.2  netmask 255.255.255.0  broadcast 192.168.2.255ether 12:7f:36:50:c9:da  txqueuelen 1000  (Ethernet)RX packets 0  bytes 0 (0.0 B)RX errors 0  dropped 0  overruns 0  frame 0TX packets 0  bytes 0 (0.0 B)TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
Additionally:
The pi is running the latest 64 bit Raspbian OS Bookworm
Able to ssh into the pi through WiFi connection but not the USB

Any clue on this is much appreciated!

Statistics: Posted by RiverZzz — Mon Apr 08, 2024 7:33 pm



Viewing all articles
Browse latest Browse all 3929

Trending Articles