Pi Compute Module 4 defaults to `peripheral` mode
Compute Module 4 USB (via I/O board) does not work with the current config.txt
file. I think this is because the CM4 OTG mode defaults to peripheral
(as per: otg_mode), so won't accept its own peripherals.
Quick Workaround
Add otg_mode=1
to usercfg.txt
to force otg mode to host
.
Proposed Solution
- Add
[cm4]
sections to https://gitlab.alpinelinux.org/alpine/aports/-/blob/master/scripts/mkimg.arm.sh - Within
[cm4]
, add:dtoverlay=dwc2,dr_mode=host
This solution is derived from a commit in stock Raspberry Pi OS: https://github.com/raspberrypi/rpi-imager/commit/78f003fca7c5f9c3e7ffa432aeb6942940b5a6f3
Stock RPi OS does not seem to do this for [cm3]
.