Skip to content

armv7 and a page size of 32K #198

Open
@magicse

Description

@magicse

Can someone help and explain..?
I have real hardware on armv7 and a page size of 32K.
The Alpine linux 3.17.0 container on this hardware gives me the following information.

c35d59e2d2cb:~# uname -a
Linux c35d59e2d2cb 4.2.8 #2 SMP Mon Feb 19 17:02:59 CST 2024 armv7l Linux
c35d59e2d2cb:~# uname -m
armv7l
c35d59e2d2cb:~# cat /etc/os-release
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.17.0
PRETTY_NAME="Alpine Linux v3.17"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"
c35d59e2d2cb:~# getconf PAGESIZE
32768
c35d59e2d2cb:~#

I want to get the same PAGE SIZE 32K in emulation of ARMv7 on x86 hardware
And this is what the Alpine Linux 3.17.0 container will give me in emulation.

sudo apt-get install qemu binfmt-support qemu-user-static
oot@magic-VirtualBox:/home/magic# docker run -e "QEMU_PAGESIZE=32768" --rm --platform linux/arm/v7 -it alpine:3.18.0 /bin/sh
/ # uname -a
Linux 7ae3521dbb82 6.5.0-15-generic #15~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Jan 12 18:54:30 UTC 2 armv7l Linux
/ # uname -m
armv7l
/ # cat /etc/os-release 
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.18.0
PRETTY_NAME="Alpine Linux v3.18"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"
/ # getconf PAGESIZE
4096
/ # 

How can I change the page size?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions