[WIP] bcm2835-bootloader: add "#usb_max_current_enable=1" into distroconfig*.txt for RPi5 and RPi5-Composite#2204
Draft
ShigeakiAsai wants to merge 1 commit into
Conversation
…*.txt for RPi5 and RPi5-Composite
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request prepares a workaround for the power insufficient case with the USB3 ports on the RPi5.
RPI5 power supply recommends with 5V/5A unit.
The USB3 ports power is provided 1.6A when a 5V/5A power supply unit is connected.
But the USB3 ports power is only provided 600mA if a 5V/3A power supply unit is connected.
https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#typical-power-requirements
This is a specification of the Raspberry Pi 5, but it seems that USB devices may not function properly due to insufficient power.
It's better to use 5V/5A PSU, but there is workaround.
https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#differences-on-raspberry-pi-5
https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#power-supplies-and-raspberry-pi-os
When "usb_max_current_enable=1" is set in "config.txt", more power is provided to USB3 ports on RPi5.
However this is only needed USB power insufficient case and it should set disable as default.
Therefore, it's better to prepare this workaround and faq for user I think.
Build
RPi5.aarch64, RPi5-Composite.aarch64 and RPi4.aarch64 build are passed.
Test
a) "#usb_max_current_enable=1" is contained in "${INSTALL}/usr/share/bootloader/distroconfig.txt"
b) "#usb_max_current_enable=1" is contained in "${INSTALL}/usr/share/bootloader/distroconfig-composite.txt"
a) "#usb_max_current_enable=1" is contained in "${INSTALL}/usr/share/bootloader/distroconfig.txt"
b) "#usb_max_current_enable=1" is contained in "${INSTALL}/usr/share/bootloader/distroconfig-composite.txt"
a) "#usb_max_current_enable=1" is NOT contained in "${INSTALL}/usr/share/bootloader/distroconfig.txt"
b) "#usb_max_current_enable=1" is NOT contained in "${INSTALL}/usr/share/bootloader/distroconfig-composite.txt"
Note
please create faq for this workaround.
Thanks
ASAI, Shigeaki