Skip to content

Commit

Permalink
Enable ondemand CPU frequency scaling
Browse files Browse the repository at this point in the history
Resolves: #48
  • Loading branch information
metalefty committed Jun 24, 2024
1 parent 7a90a3a commit 5b5bf6e
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 6 deletions.
6 changes: 5 additions & 1 deletion AlmaLinux-8-RaspberryPi-console.aarch64.ks
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ timezone --isUtc --nontp UTC
selinux --enforcing
firewall --enabled --port=22:tcp
network --bootproto=dhcp --device=link --activate --onboot=on
services --enabled=sshd,NetworkManager,chronyd,bluetooth
services --enabled=sshd,NetworkManager,chronyd,bluetooth,cpupower,cpupower
shutdown
bootloader --location=mbr
lang en_US.UTF-8
Expand All @@ -39,6 +39,7 @@ part / --asprimary --fstype=ext4 --size=2700 --label=rootfs
-java-1.6.0-*
-java-1.7.0-*
-java-11-*
-kernel-tools
-python*-caribou*
-iwl1000-firmware
-iwl100-firmware
Expand Down Expand Up @@ -68,6 +69,7 @@ linux-firmware-raspberrypi
raspberrypi-userland
raspberrypi2-firmware
raspberrypi2-kernel4
raspberrypi2-kernel4-tools
nano
%end

Expand Down Expand Up @@ -116,6 +118,8 @@ EOF
cat > /boot/config.txt << EOF
# This file is provided as a placeholder for user options
# AlmaLinux - few default config options
[pi4]
arm_boost=1
[all]
# enable serial console
Expand Down
7 changes: 5 additions & 2 deletions AlmaLinux-8-RaspberryPi-gnome.aarch64.ks
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ timezone --isUtc --nontp UTC
selinux --enforcing
firewall --enabled --port=22:tcp
network --bootproto=dhcp --device=link --activate --onboot=on
services --enabled=sshd,NetworkManager,chronyd,bluetooth
services --enabled=sshd,NetworkManager,chronyd,bluetooth,cpupower
shutdown
bootloader --location=mbr
lang en_US.UTF-8
Expand All @@ -46,6 +46,7 @@ abattis-cantarell-fonts
-java-1.6.0-*
-java-1.7.0-*
-java-11-*
-kernel-tools
-python*-caribou*
-iwl1000-firmware
-iwl100-firmware
Expand Down Expand Up @@ -75,6 +76,7 @@ linux-firmware-raspberrypi
raspberrypi-userland
raspberrypi2-firmware
raspberrypi2-kernel4
raspberrypi2-kernel4-tools
nano
%end

Expand Down Expand Up @@ -132,8 +134,9 @@ gpu_mem=128
enable_uart=1
## AlmaLinux - can enable this for Pi 4
#[pi4]
[pi4]
#max_framebuffers=2
arm_boost=1
[all]
EOF
Expand Down
7 changes: 6 additions & 1 deletion AlmaLinux-9-RaspberryPi-console.aarch64.ks
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ timezone --isUtc --nontp UTC
selinux --enforcing
firewall --enabled --port=22:tcp
network --bootproto=dhcp --device=link --activate --onboot=on
services --enabled=sshd,NetworkManager,chronyd,bluetooth
services --enabled=sshd,NetworkManager,chronyd,bluetooth,cpupower
shutdown
bootloader --location=mbr
lang en_US.UTF-8
Expand All @@ -39,6 +39,7 @@ part / --asprimary --fstype=ext4 --size=2400 --label=rootfs
-java-1.6.0-*
-java-1.7.0-*
-java-11-*
-kernel-tools
-python*-caribou*
NetworkManager-wifi
almalinux-release-raspberrypi
Expand All @@ -52,6 +53,7 @@ linux-firmware-raspberrypi
raspberrypi-userland
raspberrypi2-firmware
raspberrypi2-kernel4
raspberrypi2-kernel4-tools
nano
libgpiod-utils
%end
Expand Down Expand Up @@ -102,6 +104,9 @@ cat > /boot/config.txt << EOF
# This file is provided as a placeholder for user options
# AlmaLinux - few default config options
[pi4]
arm_boost=1
[all]
# enable serial console
enable_uart=1
Expand Down
7 changes: 5 additions & 2 deletions AlmaLinux-9-RaspberryPi-gnome.aarch64.ks
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ timezone --isUtc --nontp UTC
selinux --enforcing
firewall --enabled --port=22:tcp
network --bootproto=dhcp --device=link --activate --onboot=on
services --enabled=sshd,NetworkManager,chronyd,bluetooth
services --enabled=sshd,NetworkManager,chronyd,bluetooth,cpupower
shutdown
bootloader --location=mbr
lang en_US.UTF-8
Expand All @@ -46,6 +46,7 @@ abattis-cantarell-fonts
-java-1.6.0-*
-java-1.7.0-*
-java-11-*
-kernel-tools
-python*-caribou*
NetworkManager-wifi
almalinux-release-raspberrypi
Expand All @@ -59,6 +60,7 @@ linux-firmware-raspberrypi
raspberrypi-userland
raspberrypi2-firmware
raspberrypi2-kernel4
raspberrypi2-kernel4-tools
nano
libgpiod-utils
%end
Expand Down Expand Up @@ -117,8 +119,9 @@ gpu_mem=128
enable_uart=1
## AlmaLinux - can enable this for Pi 4
#[pi4]
[pi4]
#max_framebuffers=2
arm_boost=1
[all]
EOF
Expand Down

0 comments on commit 5b5bf6e

Please sign in to comment.