From b9b923b0f53a2873c2da979e62351af16e28dcaa Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Mon, 24 Oct 2022 14:50:13 -0700 Subject: [PATCH] Set arm64 pagesize to 64k explicitly --- Dockerfile-builder.template | 4 ++++ stable/uclibc/Dockerfile.builder | 4 ++++ unstable/uclibc/Dockerfile.builder | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/Dockerfile-builder.template b/Dockerfile-builder.template index 39a759dd..ffacfcba 100644 --- a/Dockerfile-builder.template +++ b/Dockerfile-builder.template @@ -99,6 +99,10 @@ RUN set -eux; \ setConfs="$setConfs \ BR2_aarch64=y \ "; \ +# https://github.com/docker-library/busybox/issues/149 + setConfs="$setConfs BR2_ARM64_PAGE_SIZE_64K=y"; \ + unsetConfs="$unsetConfs BR2_ARM64_PAGE_SIZE_4K"; \ +# (it's reasonable to use a larger page size than the host, but not the reverse, and some distros default to 64k instead of 4k) ;; \ \ # https://wiki.debian.org/ArmEabiPort#Choice_of_minimum_CPU diff --git a/stable/uclibc/Dockerfile.builder b/stable/uclibc/Dockerfile.builder index ab5d5287..494e43fd 100644 --- a/stable/uclibc/Dockerfile.builder +++ b/stable/uclibc/Dockerfile.builder @@ -86,6 +86,10 @@ RUN set -eux; \ setConfs="$setConfs \ BR2_aarch64=y \ "; \ +# https://github.com/docker-library/busybox/issues/149 + setConfs="$setConfs BR2_ARM64_PAGE_SIZE_64K=y"; \ + unsetConfs="$unsetConfs BR2_ARM64_PAGE_SIZE_4K"; \ +# (it's reasonable to use a larger page size than the host, but not the reverse, and some distros default to 64k instead of 4k) ;; \ \ # https://wiki.debian.org/ArmEabiPort#Choice_of_minimum_CPU diff --git a/unstable/uclibc/Dockerfile.builder b/unstable/uclibc/Dockerfile.builder index 061a8b06..abc2b7ce 100644 --- a/unstable/uclibc/Dockerfile.builder +++ b/unstable/uclibc/Dockerfile.builder @@ -86,6 +86,10 @@ RUN set -eux; \ setConfs="$setConfs \ BR2_aarch64=y \ "; \ +# https://github.com/docker-library/busybox/issues/149 + setConfs="$setConfs BR2_ARM64_PAGE_SIZE_64K=y"; \ + unsetConfs="$unsetConfs BR2_ARM64_PAGE_SIZE_4K"; \ +# (it's reasonable to use a larger page size than the host, but not the reverse, and some distros default to 64k instead of 4k) ;; \ \ # https://wiki.debian.org/ArmEabiPort#Choice_of_minimum_CPU