-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Raspberry OS 12 Bookworm no longer allows SSH over USB-C (Ethernet gadget mode) #5737
Comments
Can you log in via SSH over another interface, e.g. WiFi or Ethernet? |
But Bookworm doesn't ship with
This may indicate that NM doesn't configure/ignores the USB device ( |
Hi. Yes, if I connect my Raspberry Pi to the same WiFi connection I can both ping it and SSH into it. |
I'll play around that to see if I can enable it. It's a shame usb0 is not enabled by default like in previous OS versions, though. Thanks for the hint :) |
I was able to make it work thanks to your hint. This is what I did to be able to use SSH over USB-C: /boot/config.txt# USB-C
dtoverlay=dwc2 /boot/cmdline.txtrootwait modules-load=dwc2,g_ether first_run.shBefore the
On Mac host, configure
|
Can you please let me know what this first_run.sh is ? and "Before the rm ... command, add this:" as well ? |
Hi. You'll find the And the |
Late to the game (here in Germany RPi 5 couldn't be bought by normal people up until few weeks ago). To restore the former behaviour (activating
[1]
Of course the |
@ThomasKaiser - thank you for writing that up - it REALLY makes it sound easy and simple and straightforward. …unfortunately I couldn’t get it to work. At all. Specifically the usb0 device never shows up and never is configured, despite following all of your steps. My use case is to have the pi5 (as I’ve ALWAYS done with my pi4) be powered and providing ethernet to/from my iPad Pro. So I’m SSHing into the pi5 from my iPad Pro and yeah, I never get a usb0 device, despite having installed avahi-autoipd and adding your usb0 script. Note that I’d already had the relevant bits in my config.txt / cmdline.txt from earlier efforts…’’ Any advice to get this to actually work would be GREATLY appreciated! THANK YOU! :) |
Well, my aim was to point @pelwell and colleagues into the right direction since it's really just installing |
I found a similar thread with a similar conclusion on the forums: https://forums.raspberrypi.com/viewtopic.php?t=357938 @XECDesign What is the preferred method for getting link local IP addresses, now that we're using Network Manager? The nmcli options Is it better to install dhcpcd instead? |
Well, I installed dhcpcd. It didn't work either. I followed all the steps that worked on Pi4 and they don't work (for me) on Pi5... |
I've to admit that I haven't thought about
Unfortunately
|
Since you seem to already suffer from no As a reference output from my box:
|
ThomasKaiser: Thanks for the insights. I seem to be getting entirely different DWC OTG info than you: [ 0.387987] dwc_otg: version 3.00a 10-AUG-2012 (platform bus) Here is the complete return of your grep command:
|
@verxion please let us stop here hijacking this issue with random support stuff that should go to the forum. I would try to remove the In case it works simply leave a 'thumbs up' here :) |
Thanks ThomasKaiser, but that didn’t help. Could you please provide a link to whichever forum you want me to post on?
|
https://forums.raspberrypi.com/viewforum.php?f=28 And if you watch closely your |
Sorry, I'm not sure about this one. I remember looking it up a while ago and seeing people say "yes, you can do this with those options" but no explanation how to get fallback working properly. I haven't tried to get it working myself, so I have no idea. We used to patch dhcpcd a bit to make it work properly. Now it's just the stock Debian version, so I can't vouch for it. |
Forget g_ether. Change these: modules-load=dwc2 You will need to do the configuration for libcomposite but you are already creating the network interface so should be simple. |
I wasn’t ever able to use what I found here to get things working. I did my own write up. It works with a USB-C to USB-C cable between iPad and pi5. I’ve tried the steps multiple times with fresh micro SD cards - works consistently every single time. Hopefully this will help some other people out there. https://github.com/verxion/RaspberryPi/blob/main/Pi5-ethernet-and-power-over-usbc.md -Verxion |
Forget USB-C, Raspberry OS 12 Bookworm renders the Raspberry Pi Zero completely unusable as that device does not have any other networking interface. |
I used the guide posted by verxion and got the USB-C device to show up with the correct IP address, I can ping it, however when I try to connect I get the error "Connection Refused" obviously check sshd file and it's set up to listen on all interfaces. Anybody else had this issue? EDIT: Found my problem I was using the wrong IP address (10.55.0.2 assigned to my machine) instead of the server (10.55.0.1 raspberry pi/router). |
Hi For all those struggling with online guides and the Pi Zero W, use the legacy 32 bit Bullseye based OS and then they work as described. I don't know how @dimitrovs comment could be better publicised? I failed to configure the wifi properly (thought I had) so I expected I could modify the boot files. Now - days later - I have access via the usb0 interface . |
Note for anyone searching this issue: these 2 steps worked perfectly to enable USB networking on my Pi Zero 2W running Bookworm Lite 32 bit. |
I use USB-C for diagnostics on my Pi Zero W with Bookworm and the two-step solution from ThomasKaiser also worked for me. Thanks a lot! |
Hello there! I manage to make it work with my laptop and both Pi Zero 2W and my Pi4, mostly following this guide: https://github.com/verxion/RaspberryPi/blob/main/Pi5-ethernet-and-power-over-usbc.md But what about if I do want to use the USB tethering from my phone? I have tested with two different phones and the USB shared connection remains unavailable. It do works if I use a USB-A to USB-C cable and power my Raspi 2W or 4 with an external power adapter. Cheers! |
Describe the bug
Raspberry OS 12 Bookworm no longer allows SSH over USB-C/Ethernet gadget mode.
Steps to reproduce the behaviour
Hi everyone!
Not sure if this was already reported or if this is the right place to bring this up. If that's not the case, please let me know and I'll close this issue :)
I have a Raspberry Pi 4B that I could connect to via SSH over USB-C with previous Raspberry OS versions by making the following configuration:
/boot/config.txt
/boot/cmdline.txt
/etc/dhcpcd.conf
But that is not working anymore in Raspberry OS Bookworm. Unfortunately my previous micro SD card stopped working so I noticed this when installing a new one.
It would be great if that configuration can work again on the new Raspberry OS version, as it's super confortable and easy to use a single USB-C cable for both power and network communication with the board.
I'll appreciate any help on this. Thanks in advance!
Device (s)
Raspberry Pi 4 Mod. B
System
cat /etc/rpi-issue
Raspberry Pi reference 2023-10-10 Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 962bf483c8f326405794827cce8c0313fd5880a8, stage4
vcgencmd version
Aug 10 2023 15:33:38 Copyright (c) 2021 Broadcom version 03dc77429335caee083e22ddc8eec09c07f12a7a (clean) (release) (start)
uname -a
Linux raspberrypi 6.1.0-rpi4-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.54-1+rpt2 (2023-10-05) aarch64 GNU/Linux
Logs
ifconfig partial output
eth0: ....
lo: ....
wlan0: ...
(no
usb0
there).dmesg | grep usb output
No mention at all of
usb0
(sorry for not pasting logs, I'm writing this on a different machine than my Raspberry board).Additional context
The configuration I shared worked fine with a previous Raspberry OS version but that's not the case anymore. I'll try and see if the Raspberry Pi Installer gives me the option to install a previous version to verify that my configuration is the right one and the issue is caused by the new Raspberry OS version.
The text was updated successfully, but these errors were encountered: