Skip to content

Commit

Permalink
rpi-config: replace otg_mode with the dwc2 driver
Browse files Browse the repository at this point in the history
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 kernel 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 <alexg@balena.io>
  • Loading branch information
alexgg committed Jul 15, 2024
1 parent 98ddb8a commit 9b40bf9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 9b40bf9

Please sign in to comment.