Hello all, I set the gadget mode following the steps bellow:
before first boot in first_run.sh:in /boot/firmware/config.txt, in /boot/firmware/cmdline.txt(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, I can see the usb0 port being enabled.
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!
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
Code:
dtoverlay=dwc2
Code:
rootwait modules-load=dwc2,g_ether
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
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
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