From fdb332ba7f2d5faf79f2a5cc831cffdadae83400 Mon Sep 17 00:00:00 2001 From: Alex Gonzalez Date: Fri, 12 Jul 2024 16:18:17 +0200 Subject: [PATCH] rpi-config: replace otg_mode with the dwc2 driver The `otg_mode=1` setting makes the firmware mux the USB port to the XHCI host-only controller. However, even though this correctly enabled host mode in the USB port, the kernel drivers oops when a cable is plugged into the OTG port in the ioboard, probably because the XCHI controller does not support OTG or device mode. This commit reverts to using the dwc2 kernel overlay which has less performance but does not crash. Changelog-entry: use dwc2 driver for USB host mode in CM4-SB. Signed-off-by: Alex Gonzalez --- .../recipes-bsp/bootfiles/rpi-config_git.bbappend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layers/meta-balena-raspberrypi/recipes-bsp/bootfiles/rpi-config_git.bbappend b/layers/meta-balena-raspberrypi/recipes-bsp/bootfiles/rpi-config_git.bbappend index c7f713332..a869a6eef 100644 --- a/layers/meta-balena-raspberrypi/recipes-bsp/bootfiles/rpi-config_git.bbappend +++ b/layers/meta-balena-raspberrypi/recipes-bsp/bootfiles/rpi-config_git.bbappend @@ -41,7 +41,7 @@ do_deploy:append:revpi-connect-4() { } do_deploy:append:raspberrypicm4-ioboard-sb() { - echo "otg_mode=1" >> ${DEPLOYDIR}/bootfiles/config.txt + echo "dtoverlay=dwc2,dr_mode=host" >> ${DEPLOYDIR}/bootfiles/config.txt } do_deploy:append:raspberrypi3-unipi-neuron() {