Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Commit

Permalink
add 16k pagesize check
Browse files Browse the repository at this point in the history
  • Loading branch information
NoozAbooz committed Jan 20, 2024
1 parent 5d7e33b commit 9b216d7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@ sudo_wget() {
sudo wget "$1" -O "$2" || error "Couldn't download '$2' from '$1'"
}

PAGE_SIZE="$(getconf PAGE_SIZE)"
if [[ "$PAGE_SIZE" == "16384" ]]; then
#switch to 4K pagesize kernel
if [ -f /boot/config.txt ]; then
error "Raspberry Pi 5 PiOS images ship by default with a 16K PageSize Linux Kernel.
This kernel causes incompatibilities with some software including MCPI++ https://github.com/raspberrypi/bookworm-feedback/issues/107
To use it, you must switch to a 4K PageSize Linux Kernel. Enable it by adding 'kernel=kernel8.img' to /boot/config.txt. Reboot afterwards."
fi
fi

# Install depends
#echo -e "\e[4m\e[21m\e[5mInstalling dependencies...\e[0m\e[97m"
info "Installing Dependencies..."
Expand Down

0 comments on commit 9b216d7

Please sign in to comment.