Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

armv7 and a page size of 32K #198

Open
magicse opened this issue Apr 6, 2024 · 0 comments
Open

armv7 and a page size of 32K #198

magicse opened this issue Apr 6, 2024 · 0 comments

Comments

@magicse
Copy link

magicse commented Apr 6, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant