-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
mmap() fails on rpi5, but same call succeeds on x86_64 #6530
Comments
The default Pi 5 kernel uses 16kB pages for increased performance - try with |
Cool, thanks @pelwell that fixed both the test case, and the application.
Now do you know of any way to change the source of the test case to not require this change to config.txt? |
The mmap() size must be an integral number of pages, so I would replace the instances of 4096 with a macro/variable and make its value 16384 - at least for your test. |
Thank you again, I'll take that back to the developer and see if he can make the change. |
|
Thanks @popcornmix , I'd already looked up Many thanks to both of you for your help, Andrew |
Describe the bug
I'm trying to run Dosemu2 on raspberry pi 5 with latest up-to-date RaspiOS. I've created all the packages required but it fails during startup due to an mmap() failure. I have been in contact with the Dosemu2 developer and he has located the failure to a single mmap() call. He's produced a simple test case that succeeds on x86_64, but fails on arm64 of rpi 5.
Steps to reproduce the behaviour
Use this test program
compile and run
compare against same program run on x86_64 (Linux calypso 6.8.0-49-generic #49-Ubuntu SMP PREEMPT_DYNAMIC Mon Nov 4 02:06:24 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux)
Device (s)
Raspberry Pi 5
System
Logs
Nothing appears in dmesg at the time this test program is run
Additional context
No response
The text was updated successfully, but these errors were encountered: