The Raspberry Pi is where many people first meet Box64. A small, affordable board running x86_64 Linux games and tools is an appealing idea, and with Box64 it is a practical one. The Raspberry Pi 5, in particular, has enough processing and graphics power to make the experience genuinely enjoyable. This guide covers everything specific to running Box64 on the Raspberry Pi 5 and Pi 4.
Choosing the right operating system
Box64 needs a 64-bit operating system. The official Raspberry Pi OS (64-bit) is the most common choice, and Ubuntu and other 64-bit distributions work too. The older 32-bit Raspberry Pi OS cannot run Box64, although it can run Box86 for 32-bit x86 programs.
Confirm your system architecture with:
uname -m
The result should be aarch64.
The page-size question on the Raspberry Pi 5
This is the most important Raspberry Pi 5 detail for Box64 users. The Pi 5's default kernel uses 16 KB memory pages, which improves performance for some native workloads. Many x86_64 programs, and Wine in particular, assume 4 KB pages, and Box64 is most compatible on a 4 KB kernel.
Raspberry Pi OS ships both kernels. To use the 4 KB one, add this line to /boot/firmware/config.txt:
kernel=kernel8.img
Reboot, then confirm the change:
getconf PAGESIZE
A result of 4096 means the 4 KB kernel is active. The Raspberry Pi 4 already uses 4 KB pages by default, so no change is needed there.
Building Box64 for the Raspberry Pi
Install the build tools, fetch the source and use the board-specific profile.
sudo apt update
sudo apt install git cmake build-essential python3
git clone https://github.com/ptitSeb/box64
cd box64 && mkdir build && cd build
For a Raspberry Pi 5:
cmake .. -D RPI5ARM64=1 -D CMAKE_BUILD_TYPE=RelWithDebInfo
For a Raspberry Pi 4:
cmake .. -D RPI4ARM64=1 -D CMAKE_BUILD_TYPE=RelWithDebInfo
Then compile and install:
make -j4
sudo make install
sudo systemctl restart systemd-binfmt
On a Pi 5, the build typically completes in around ten to fifteen minutes. On a Pi 4 it takes longer. Models with 2 GB of RAM or less may need make -j2 to avoid running out of memory.
Installing with Pi-Apps
Pi-Apps is a popular app store for Raspberry Pi OS that includes Box64. It handles downloading and installing a suitable build and can update it later. This is a convenient option for newcomers, although building from source gives you the newest code and full control over options.
Graphics drivers
Box64 passes OpenGL and Vulkan calls to the native drivers, so graphics performance depends on them. Raspberry Pi OS includes Mesa's V3D driver for OpenGL and the V3DV driver for Vulkan on both the Pi 4 and Pi 5. Keeping the system updated keeps these drivers current:
sudo apt update && sudo apt full-upgrade
For Windows games through Wine, DXVK translates Direct3D to Vulkan. The Pi 5's GPU supports Vulkan well enough for many older titles, while the Pi 4 is better suited to lighter games and OpenGL-based software.
Cooling and power
Box64 keeps the processor busy, and sustained load generates heat. Without cooling, the Raspberry Pi throttles its clock speed to protect itself, which directly reduces Box64 performance.
- Raspberry Pi 5: Use the official Active Cooler or a case with a fan. The Pi 5 is designed to have active cooling under load.
- Raspberry Pi 4: A heatsink case or a small fan makes a clear difference in long sessions.
- Power supply: Use the official power supply for your model. Under-voltage also causes throttling and can make USB devices unreliable.
You can watch for throttling with vcgencmd get_throttled. A result of throttled=0x0 means everything is fine.
Storage
Games and Wine prefixes involve many small file reads. A fast microSD card helps, but the Raspberry Pi 5 can boot from an NVMe SSD through an M.2 HAT, which makes loading noticeably quicker. The Pi 4 can boot from a USB 3 SSD for similar benefits.
Tuning Box64 on the Raspberry Pi
Start with default settings. If a program runs but feels slow, try:
export BOX64_DYNAREC_BIGBLOCK=2
export BOX64_DYNAREC_CALLRET=1
If it crashes, move in the other direction:
export BOX64_DYNAREC_STRONGMEM=1
export BOX64_DYNAREC_BIGBLOCK=0
Once you find settings that work, save them in ~/.box64rc under the program's executable name so they apply automatically. Our environment variables guide explains how.
What runs well on a Raspberry Pi
| Category | Pi 5 experience | Pi 4 experience |
|---|---|---|
| x86_64 command-line tools | Good | Good |
| Linux-native indie games | Often smooth | Playable for lighter titles |
| Older Windows games via Wine | Many are playable | Limited to lighter titles |
| Modern AAA games | Generally too demanding | Not realistic |
| Steam client | Works with patience | Slow |
Overclocking
Both boards can be overclocked through config.txt, and Box64 benefits from higher clock speeds. Overclocking increases heat and power draw, may reduce stability and should only be attempted with good cooling and a quality power supply. Increase settings gradually and test stability before relying on them.
Running Box86 alongside Box64
Some programs, including older games and parts of the Linux Steam client, are 32-bit x86. On a Raspberry Pi with a 64-bit OS, you have two options. You can enable 32-bit ARM support (armhf) and install Box86 alongside Box64, which is the traditional approach. Alternatively, you can build Box64 with its Box32 option, which lets a single 64-bit build run many 32-bit x86 programs without any armhf libraries. The Box32 route is simpler to maintain and continues to improve with each Box64 release, while Box86 remains a mature, well-tested option.
A sensible first project
If you are new to Box64, begin with something small and satisfying rather than a large modern game. A good progression looks like this:
- Run a simple x86_64 command-line tool to confirm that Box64 and binfmt are working.
- Try a lightweight Linux-native indie game that uses SDL2 and OpenGL, so you can see library wrapping at work.
- Set up Wine and run an older Windows game from the DirectX 9 era.
- Experiment with per-game tuning in
~/.box64rconce you understand the basics.
Each step builds confidence and helps you isolate problems. If something fails at step three, you already know that Box64 itself works, so the issue lies with Wine or the graphics stack.
Keeping the system healthy
Run sudo apt update && sudo apt full-upgrade regularly to keep the kernel, firmware and Mesa drivers current, then rebuild Box64 from the latest source every few weeks. Check vcgencmd get_throttled after long sessions to confirm your cooling is keeping up, and keep at least a few gigabytes of free storage for Wine prefixes and shader caches.
Raspberry Pi 5 versus Raspberry Pi 4 for Box64
Both boards run Box64, but the experience differs considerably. The Raspberry Pi 5 uses Cortex-A76 cores, which are substantially faster per clock than the Pi 4's Cortex-A72 cores, and it runs them at a higher frequency. Its VideoCore VII GPU is also a clear step up from the Pi 4's VideoCore VI. In practice, programs that were borderline on a Pi 4 often become comfortable on a Pi 5.
The Pi 5 also offers a PCI Express connector for NVMe storage, faster memory and better input and output throughput, all of which shorten loading times. The Pi 4, however, remains a capable Box64 machine for command-line tools, lighter games and older software, and its default 4 KB kernel means one less setting to change.
If you are buying hardware specifically for Box64, the Raspberry Pi 5 with 8 GB of RAM, active cooling and NVMe storage is the most satisfying choice in the Raspberry Pi range. If you already own a Pi 4, it is well worth trying Box64 on it before upgrading; you may find it does everything you need.
Other single-board computers
The same principles apply to other ARM64 boards. Rockchip RK3588 boards are particularly popular for Box64 because of their eight-core processors, and Box64 provides a dedicated build profile for them. Graphics support on those boards depends on the maturity of Mesa's drivers for their Mali GPUs, which has improved considerably in recent years.
Monitoring performance while you play
The Raspberry Pi provides simple tools for watching what happens during a session. vcgencmd measure_temp reports the processor temperature, and vcgencmd measure_clock arm shows the current clock speed. Running these in a second terminal while a program runs through Box64 reveals whether the board is cooling adequately or quietly slowing down. For graphics-heavy programs, the Mesa HUD can display frame rates on screen, which helps when comparing Box64 settings.
Frequently asked questions
No. Box64 requires a 64-bit operating system. On 32-bit Raspberry Pi OS, use Box86 for 32-bit x86 programs instead.
Many x86_64 programs and Wine assume 4 KB memory pages. The 4K kernel gives Box64 the widest compatibility.
Use RPI5ARM64 for a Raspberry Pi 5 and RPI4ARM64 for a Raspberry Pi 4.
Yes, it is convenient for beginners. Building from source gives you newer code and full control over options.
Active cooling is strongly recommended. Without it, the Pi 5 throttles under sustained load and Box64 performance drops.
Conclusion
The Raspberry Pi is one of the best places to enjoy Box64. Choose a 64-bit OS, switch a Pi 5 to the 4K kernel, build with the correct board profile and keep the board cool, and you have a compact machine that runs a surprising range of x86_64 software. Add per-program tuning over time, and Box64 will keep getting more out of your Raspberry Pi with every release.

Box64 Environment Variables and box64rc Profiles Explained
Running Windows Games with Box64, Wine and DXVK
Box64 vs FEX-Emu vs QEMU: Choosing the Right x86 Translator