git: 0c6e3bfd1362 - stable/14 - arm64/RPI: enable powerd by default on arm64-aarch64-RPI images
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 30 Jan 2024 20:10:44 UTC
The branch stable/14 has been updated by karels:
URL: https://cgit.FreeBSD.org/src/commit/?id=0c6e3bfd13621cfa2dbc432b08cbfb3dcf012d87
commit 0c6e3bfd13621cfa2dbc432b08cbfb3dcf012d87
Author: Mike Karels <karels@FreeBSD.org>
AuthorDate: 2024-01-05 19:41:24 +0000
Commit: Mike Karels <karels@FreeBSD.org>
CommitDate: 2024-01-30 20:10:00 +0000
arm64/RPI: enable powerd by default on arm64-aarch64-RPI images
Most 64-bit Raspberry Pi models have a variable processor clock
speed that defaults to a slow speed (e.g. 600 MHz for a nominal
1.5 GHz clock). This results in everything running slowly unless
or until powerd is started, and FreeBSD is then thought to be slow.
Enable powerd by default in /etc/rc.conf on the arm64-aarch64-RPI
images. Tested on Raspberry Pi 3B+ and 4B so far.
PR: 256836
Reviewed by: rgrimes
Differential Revision: https://reviews.freebsd.org/D43296
(cherry picked from commit 4347ef60501f2a55ad31f7532ad903b81f3af18f)
---
release/arm64/RPI.conf | 1 +
release/tools/arm.subr | 3 +++
2 files changed, 4 insertions(+)
diff --git a/release/arm64/RPI.conf b/release/arm64/RPI.conf
index 4f668cabea77..1a36a3af521e 100644
--- a/release/arm64/RPI.conf
+++ b/release/arm64/RPI.conf
@@ -17,6 +17,7 @@ OL_DIR="${DTB_DIR}/overlays"
OVERLAYS="mmc.dtbo pwm.dtbo disable-bt.dtbo"
PART_SCHEME="MBR"
export BOARDNAME="RPI"
+CONFIG_POWERD_ENABLE=1
arm_install_uboot() {
UBOOT_DIR="/usr/local/share/u-boot/u-boot-rpi-arm64"
diff --git a/release/tools/arm.subr b/release/tools/arm.subr
index c7beb6692f7a..2a3a278fbee6 100644
--- a/release/tools/arm.subr
+++ b/release/tools/arm.subr
@@ -224,6 +224,9 @@ arm_install_base() {
echo 'sendmail_outbound_enable="NO"' >> ${CHROOTDIR}/${DESTDIR}/etc/rc.conf
echo 'sendmail_msp_queue_enable="NO"' >> ${CHROOTDIR}/${DESTDIR}/etc/rc.conf
echo 'growfs_enable="YES"' >> ${CHROOTDIR}/${DESTDIR}/etc/rc.conf
+ if [ -n "${CONFIG_POWERD_ENABLE}" ]; then
+ echo 'powerd_enable="YES"' >> ${CHROOTDIR}/${DESTDIR}/etc/rc.conf
+ fi
sync
umount_loop ${CHROOTDIR}/${DESTDIR}