Skip to content

CM4 USB power #333

Answered by rsta2
rpisnd asked this question in Q&A
Dec 11, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

For USB operation on the CM4 you have to define the system option USE_XHCI_INTERNAL before build. Just add the following line to your Config.mk file:

DEFINE += -DUSE_XHCI_INTERNAL

This enables the support for the internal xHCI USB host controller of the CM4. The DWC2 OTG USB controller is not supported by Circle for the CM4.

In config.txt you need the following settings for USB in AArch64 mode:

arm_64bit=1
kernel=kernel8-rpi4.img
armstub=armstub7-rpi4.bin
otg_mode=1

Be sure to have the device tree blobs bcm2711-rpi-4-b.dtb and bcm2711-rpi-cm4.dtb on the SD card.

Finally the following setting in the file cmdline.txt helps, if some USB device is not detected:

usbpowerdelay=2000

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rpisnd
Comment options

Answer selected by rpisnd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants