box86
box86 copied to clipboard
Raspberry Pi 5: libm.so.6: ELF load command address/offset not page-aligned
Raspberry Pi OS 64-bit
LSB
Distributor ID: Debian
Description: Debian GNU/Linux 12 (bookworm)
Release: 12
Codename: bookworm
uname: Linux raspberrypi 6.1.0-rpi7-rpi-2712 #1 SMP PREEMPT Debian 1:6.1.63-1+rpt1 (2023-11-24) aarch64 GNU/Linux
Happens when running test01, or steam
You are probably using a 16K pagesize OS. Note that mostly nothing will work with 16K pagesize, at least not wine.
But you'll have to gives more detail if you are interrested in a fix, because I don't have a PI5 so I cannot reproduce anything on my side.
You are probably using a 16K pagesize OS. Note that mostly nothing will work with 16K pagesize, at least not wine.
But you'll have to gives more detail if you are interrested in a fix, because I don't have a PI5 so I cannot reproduce anything on my side.
Yeah after looking at the error for box64 I googled it and noticed that at least on rpi5 Raspberry OS is 16K pages
I can second that I'm also running into this issue with the Raspberry Pi 5. It was also an issue with Box64 until I ran it as DRPI5ARM64PS16K
, but it would appear that that's not an option on Box 86.
It would appear that either the RP5 kernel needs to be recompiled with 4K pages or box86 needs to add support for the RP5's 16K. I tried manually adding the compiler flags in the CMakeLists.txt
file, but to no surprise it threw an error during compilation and failed. I've attached the compile log for anyone who's curious.
compile_log.txt
I recompiled my kernel to 4K using the guide here: https://www.raspberrypi.com/documentation/computers/linux_kernel.html#building-the-kernel-locally While it did get my box86 past it's error, it did not resolve the issue documented of libc not being detected with box64
It would appear logging out and back in after running install_steam.sh helped me get past some issues, but now when I got to launch steam it just hangs.
I can second that I'm also running into this issue with the Raspberry Pi 5. It was also an issue with Box64 until I ran it as
DRPI5ARM64PS16K
, but it would appear that that's not an option on Box 86.It would appear that either the RP5 kernel needs to be recompiled with 4K pages or box86 needs to add support for the RP5's 16K. I tried manually adding the compiler flags in the
CMakeLists.txt
file, but to no surprise it threw an error during compilation and failed. I've attached the compile log for anyone who's curious. compile_log.txt
Yeah I wrote the RPI5ARM64(PS16K)
stuff after noticing this. One option is to for now use Ubuntu (which uses 4K pages on RPi5)
@sundhaug92 kernel recompilation is not necessary on piOS. both 16k and 4k pagesize kernels are included, you can switch between the two with an option in config.txt https://github.com/raspberrypi/bookworm-feedback/issues/107#issuecomment-1773810662
Since there is no dedicated RPi 5 target yet, did you use -DRPI4=1
or just -DARM_DYNAREC=1
.