diff --git a/apps/Box64/install-64 b/apps/Box64/install-64 index 166f3c1089..2f140311eb 100755 --- a/apps/Box64/install-64 +++ b/apps/Box64/install-64 @@ -21,6 +21,7 @@ fi # obtain SOC_ID get_model +PAGE_SIZE="$(getconf PAGE_SIZE)" if [[ "$SOC_ID" == "tegra-x1" ]] || [[ "$SOC_ID" == "tegra-x2" ]]; then install_packages box64-tegrax1 || exit 1 elif [[ "$SOC_ID" == "rk3399" ]]; then @@ -29,6 +30,10 @@ elif [[ "$SOC_ID" == "bcm2711" ]]; then install_packages box64-rpi4arm64 || exit 1 elif [[ "$SOC_ID" == "bcm2837" ]]; then install_packages box64-rpi3arm64 || exit 1 +elif cat /proc/cpuinfo | grep -q aes && [[ "$PAGE_SIZE" == "16384" ]]; then + warning "There is no box64 pre-build for your device $SOC_ID $model and it has a 16K pagesize" + warning "Installing the generic arm page16k box64 build as a fallback (crypto extensions enabled)" + install_packages box64-generic-arm-page16k || exit 1 elif cat /proc/cpuinfo | grep -q aes; then warning "There is no box64 pre-build for your device $SOC_ID $model" warning "Installing the generic arm box64 build as a fallback (crypto extensions enabled)" diff --git a/apps/Box86/install-64 b/apps/Box86/install-64 index 9b80d11919..5793572557 100755 --- a/apps/Box86/install-64 +++ b/apps/Box86/install-64 @@ -1,5 +1,10 @@ #!/bin/bash +PAGE_SIZE="$(getconf PAGE_SIZE)" +if [[ "$PAGE_SIZE" == "16384" ]]; then + error "16K pagesize not supported on box86. Check if your system supports running 32bit ARM binaries and open an issue on Box86 GitHub if it can." +fi + function check-armhf() { ARMHF="$(dpkg --print-foreign-architectures | grep "armhf")" }