-
Notifications
You must be signed in to change notification settings - Fork 1
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
Pi 5 dwc2 overlay fails #77
Comments
Thanks - we're aware of this problem. The Pi 5 bootloader/firmware is missing a small amount of initialisation code required to enable the DWC OTG USB interface. |
noticed that there is a dwc2-pi5, for dtoverlay in config.txt should it be
|
dwc2 - the suffix is not required, although I don't think the firmware support is available yet |
Any movement on this issue? Really enjoyed the ipad pro direct USB over Ethernet VNC setup on the Pi 4. Don't see any workarounds to get that working for the 5 |
It's coming - we're not exactly resting on our laurels here. |
Ooh I see this commit yesterday, and a version bump here Does that mean that Pi 5 dwc2 is available if I do a Thanks |
No, as pelwell says, it's coming. |
My apologies for asking, but is there at least an approximate time horizon when you expect this regression to be fixed? Right now we're in the process of procuring new Raspberry Pis for our remote learning setups (which use this function), and we're currently wondering if we need to procure 4Bs instead of 5s, or if we should wait a few more days. Again, my apologies for asking, I know you're doing your very best, but I hope you can give us an estimate (or a "we can't tell at all" if that is the case) to help us decide which path to go. Thank you very much. |
I assume the dwc2 problem also applies to using the USB-C connector in Host mode? I have a USB-C audio dac I want to use but can't get it to show up. |
Correct. |
Cause found. raspberrypi/linux#5772 fixes the kernel side, but there's a bootloader update required too. |
Thank you. Is there an estimated timeline when this will be in the main
release?
Nathan Scherdin
…On Wed, Dec 6, 2023 at 9:06 AM 6by9 ***@***.***> wrote:
Cause found.
raspberrypi/linux#5772 <raspberrypi/linux#5772>
fixes the kernel side, but there's a bootloader update required too.
—
Reply to this email directly, view it on GitHub
<#77 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE3QXKJYNX4EZDWFL2I6L5TYICQYXAVCNFSM6AAAAAA6BADSZSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBTGMYDMMZUGA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Thank you very much for working on this. Is there any way I can help with the Bootloader side? I'd be happy to donate my time for this. (I know C/C++ [and Python and FORTRAN, but I suspect those won't be that helpful here]) |
I think the bootloader-update part of this is in raspberrypi/rpi-eeprom#503 |
Ah cool, thank you for the info! |
I see that the EEPROM part of this got pushed out as an update yesterday. Could someone from RPi comment on when the kernel side might make it out into the field? |
That depends on how large a field you want. It's available now as a beta via |
@pelwell Thanks for the reply. I have tried with the 6.1.66-v8-16k+ (Mon Dec 11 12:10:50 GMT 2023 ) kernel installed by |
I've not tried it in either mode myself, but I expected that with the fixed DTB and the appropriate config.txt and cmdlline.txt settings that both host mode and gadget mode would work. What configuration changes have you made? Is this something you've had working on an older Pi? |
This is all working with ecm and rndis ethernet devices. Thanks for getting this working again, I'll update my scripts for modifying RaspberryPiOS images over Christmas. |
Hello, has this problem been fixed? |
We believe so, provided the EEPROM image is also updated. |
Issue does not appear to be resolved. Updated the EEPROM on a Raspberry Pi 5. The USB network device is now created on the Pi 5, which did not occur before the EEPROM update. All looks fine from the Pi 5; USB device is created, is recognized in Network Manager, and can create a shared connection. But the client hardware on the other end of the USB cable does not detect a USB Ethernet device. Same thing observed with both a Linux and Mac device. Move the MicroSD card to a Pi 4, and it works perfectly. Fully updated Raspbian OS. Managing with network manager. Entry in cmdline.txt is "modules-load=dwc2,g_ether" |
@olsonmn I have this working, but I had to remove the serial port I was also creating. You can find my script for setting up the devices here: https://www.hardill.me.uk/wordpress/2023/12/23/pi5-usb-c-gadget/ You should not need the |
Thank you for the quick response; it is now working. Applying the "sudo rpi-update" from your blog post fixed the problem. I had run "sudo rpi-eeprom-update -a", so my guess is the latest EEPROM updates have not yet made it through to the public repositories. |
Just received my new Pi5 and can confirm stock issues, the applied fix/update is working with my pi 4 scripts now. |
I was able to make it work on non Apple devices, but it didn't work on either my iPad or MacBook. |
I did get it to work USB C to USB C on a Macbook Air, but it does not appear to work 100% of the time. |
I've found my Macbook Pro has a very limited ability to power devices over USB C (which is all it has). |
I suspect his is the root of many of the "USB C to USB C" issues. It is not the USB A that solves the problem, it is the powered hub in the middle that is solving the problem. |
Just confirming the "sudo rpi-update" fixed the USB C audio detection and
function. Thank you.
Nathan Scherdin
…On Wed, Jan 3, 2024 at 8:56 AM olsonmn ***@***.***> wrote:
I suspect his is the root of many of the "USB C to USB C" issues. It is
not the USB A that solves the problem, it is the powered hub in the middle
that is solving the problem.
—
Reply to this email directly, view it on GitHub
<#77 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE3QXKOEXDMHDFH2BFZP7YTYMWEUPAVCNFSM6AAAAAA6BADSZSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZVGY3TQNBTGY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I'm not using a powered hub between my iPad and Pi5, just a USB-C to many USB-A ports adapter. Also, my Macbook is the 14 inch Apple M1 Pro version with Thunderbolt 4 (USB-C) ports. I would expect it to have enough power to support a RPi. |
From a MacRumors answer (https://forums.macrumors.com/threads/usb-power-output-of-m1-and-m2-macbook-usb-c-thunderbolt-ports.2356508/):
So if you have nothing else plugged in you might get 3A @ 5V (marginal on a Pi 5), otherwise it could be 1.5A (nope). |
May I ask from which build/OS to initiate the command? Just to have a reliable method... |
Ok... just to rule out the power problem, I'm using an unpowered usb hub with both iPad and Macbook Pro. That's why I can't understand why it works with a USB-C hub connecting via its USB-A port to RPi's USB-C port, and the direct USB-C to USB-C doesn't work. I can even ssh to the RPi5 via Wi-Fi in both scenarios. |
Hm. Something like in https://forums.raspberrypi.com/viewtopic.php?t=246348 where in the hub setup the roles would be clear? |
I literally downloaded the latest release image, burned the SD card, booted
up the Pi, opened a command line and ran sudo rpi-update. After that I
believe I had to reboot. I already had enabled the USB-C host in
config.txt and the USB-C audio dac came right up.
Nathan Scherdin
…On Wed, Jan 3, 2024 at 11:33 AM ihew ***@***.***> wrote:
Just confirming the "sudo rpi-update" fixed the USB C audio detection and
function. Thank you. Nathan Scherdin
May I ask from which build/OS to initiate the command? Just to have a
reliable method...
—
Reply to this email directly, view it on GitHub
<#77 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE3QXKIHG5FTR4LYS2NHOJ3YMWW7JAVCNFSM6AAAAAA6BADSZSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZVHA3DKOBSHE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I’ve just updated the RPi5’s firmware this morning and USB-C to C worked with my MacBook, but stopped working after reboot. My naive guess is that something was reset during the upgrade, but changed during the reboot. |
It's possible that cold boot and reboot work differently. And beware the danger of looking for patterns in essentially random data. |
I can also confirm that update worked only for a short time. The device is no longer showing up properly after full power down. I have tried forcing full USB power and power is a 65W adapter. Not solved. Just going to return this pi and return to the pi 4. Pi5 also has issues with the CSI-2 adapter duo to lacking hardware encoding. I will try again after the tech is more developed. |
Just adding information. I ONLY tested a USB audio device. I am pretty
sure I rebooted/power cycled after installation but I will have to double
check now. :)
Nathan Scherdin
…On Sun, Jan 7, 2024 at 4:58 AM cowrevenge ***@***.***> wrote:
I can also confirm that update worked only for a short time. The device is
no longer showing up properly after full power down.
Not solved.
—
Reply to this email directly, view it on GitHub
<#77 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE3QXKKOUAAVVIG3O37G4VLYNKLXTAVCNFSM6AAAAAA6BADSZSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBQGA2TGMJTGI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Hello, just to share, I managed to get the keyboard and mouse to work over OTG using PiOS 32-bit, but not 64-bit. First I was trying the 64bits PiOS, but on dmesg I was getting the following error: |
how to do the last step |
Can we have a short discussion (and maybe testing) what the correct dr_mode config.txt settings per gadget would be? AFAIK, there are three modes for (forced) dr_mode : otg, host and peripheral. In gadget mode I would expect "peripheral" to be the one to use, to connect keyboards and othe HIDs I would expect it to be"otg" or "host". I may be wrong, but since I have seen them used arbitrarily or not at all in this thread, it would be nice to see what the correct setting would be and if helps with any of the observed oddities. Also found a discussion on a similar topic that mentions deprecation and cmdline.txt vs config.txt, so it might be worth a second look: |
Gadget mode = peripheral otg tells the driver to use the OTG pin to select between the two - it's safer to avoid this mode. |
Just FYI. I can get the mass storage gadget to work on the RPi5 after an rpi-update, but only on 32bits OS. It does not work with 64bits OS. I use And my app can "insert" and "remove" multiple virtual thumb drives, multiple times. |
USB mass storage gadget mode works on 64-bit operating systems e.g. here's a buildroot 64-bit mass-storage gadget. https://github.com/raspberrypi/usbboot/tree/master/mass-storage-gadget64 I'm locking this bug because the issue reported issue is resolved and the forums are a more appropriate place for general topic discussions. |
Likely more of a Pi 5 issue than a strictly Bookworm issue but as the two go together...
Hardware: Pi 5 8GB, 16GB SD card
OS: Raspberry Pi OS Bookworm full downloaded and updated today. Booting to command line w/o automatic login
Problem: enabling the dwc2 overlay and USB controller fails. The dwc2 kernel modules is loaded, g_* modules will load but the corresponding devices are not present on either RPiOS or the USB host.
Steps to reproduce:
Other information:
dmesg includes the following:
Attmpting to manually load the dtoverlay (sudo dtoverlay dwc2) results in
Same SD card and cables work as expected with a 4B.
See also https://forums.raspberrypi.com/viewtopic.php?t=357757
The text was updated successfully, but these errors were encountered: