mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-14 20:37:06 +00:00
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 MFC after: 1 month Reviewed by: rgrimes Differential Revision: https://reviews.freebsd.org/D43296
This commit is contained in:
parent
a68d5a6625
commit
4347ef6050
|
@ -17,6 +17,7 @@ OL_DIR="${DTB_DIR}/overlays"
|
||||||
OVERLAYS="mmc.dtbo pwm.dtbo disable-bt.dtbo"
|
OVERLAYS="mmc.dtbo pwm.dtbo disable-bt.dtbo"
|
||||||
PART_SCHEME="MBR"
|
PART_SCHEME="MBR"
|
||||||
export BOARDNAME="RPI"
|
export BOARDNAME="RPI"
|
||||||
|
CONFIG_POWERD_ENABLE=1
|
||||||
|
|
||||||
arm_install_uboot() {
|
arm_install_uboot() {
|
||||||
UBOOT_DIR="/usr/local/share/u-boot/u-boot-rpi-arm64"
|
UBOOT_DIR="/usr/local/share/u-boot/u-boot-rpi-arm64"
|
||||||
|
|
|
@ -224,6 +224,9 @@ arm_install_base() {
|
||||||
echo 'sendmail_outbound_enable="NO"' >> ${CHROOTDIR}/${DESTDIR}/etc/rc.conf
|
echo 'sendmail_outbound_enable="NO"' >> ${CHROOTDIR}/${DESTDIR}/etc/rc.conf
|
||||||
echo 'sendmail_msp_queue_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
|
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
|
sync
|
||||||
umount_loop ${CHROOTDIR}/${DESTDIR}
|
umount_loop ${CHROOTDIR}/${DESTDIR}
|
||||||
|
|
Loading…
Reference in a new issue