# Elf Files for Raspberry Pi0

**URL:** <https://forum.makecode.com/t/elf-files-for-raspberry-pi0/20072>\
**Category:** Help\
**Created:** [May 19, 2023, 7:58pm UTC](https://forum.makecode.com/t/elf-files-for-raspberry-pi0/20072 "2023-05-19T19:58:58Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Vegz78](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/vegz78/32/1201_2.png) [@Vegz78](https://forum.makecode.com/u/Vegz78)\
**Post date:** [April 8, 2024, 8:13pm UTC](https://forum.makecode.com/t/elf-files-for-raspberry-pi0/20072/3 "2024-04-08T20:13:42Z")

</div>

Hi @fsiaux,

Sorry for my late reply, did not see your post here until now.

There are at least 2 ways to get MakeCode Arcade games to run on an arcade cabinet with a Raspberry Pi.

1. Either the firmware method on a RPi Zero, which you linked to above, which requires the games to be downloaded as UF2-files from the editor, or

2. Using McAirpos on a vanilla Linux installation or a retro games system, like RetroPie, Recalbox or Batocera on any Raspberry Pi model, presumeably also any SBC with the same ARM architecture:

> [@MakeCode Arcade on Raspberry Pi (including RetroPie, Recalbox, Batocera etc.)](https://forum.makecode.com/t/makecode-arcade-on-raspberry-pi-including-retropie-recalbox-batocera-etc/14267):
>
> With reference to previous correspondence with @richard and @peli, and happy to announce that McAirpos now supports running MakeCode Arcade games natively and with controller support on [Batocera](https://batocera.org) retro-gaming distro in addition to [RetroPie](https://retropie.org.uk), [Recalbox](https://www.recalbox.com) and the [Raspberry Pi OS](https://www.raspberrypi.com/software/) [console](https://en.wikipedia.org/wiki/Linux_console) and presumably other similar ARM hardware and Linux flavours, as well as a new working [Ansible](https://www.ansible.com) playbook template that allows quickly scripted installation onto several devices in parallel in e.g. a classroom, collaborat…

Here, you still(I have some distant plans to support uf2) have to download the MakeCode Arcade games as .elf files, which you could get help generating from a MakeCode Arcade share link here:

> **[Welcome to McAirpos](https://vegz78.github.io/McAirpos/)**
>
> MakeCode Arcade games in RetroPie, Recalbox 7/8 and Batocera, running natively as ELF executables on Raspberry Pi OS/Linux ARM with 1-2 gamepads

Or, doing it manually yourself in the editor like this:

> [@McAirpos and elf files](https://forum.makecode.com/t/mcairpos-and-elf-files/27845/4):
>
> It’s kinda goofy, but you have to use a special link or append the end of your URL with a bit of code. Once you do that, then when you download your games, they will download as .elf instead of .uf2. Here’s a link you can use: [https://arcade.makecode.com/?nolocalhost=1&compile=rawELF&hw=rpi#](https://arcade.makecode.com/?nolocalhost=1&compile=rawELF&hw=rpi#) It’ll take you to the dashboard and look like normal, but you’ll see that ‘compile=rawELF’ part in there that lets you know your downloads will come through as .elf files now. Hope that helps!

---

_[View the full topic](https://forum.makecode.com/t/elf-files-for-raspberry-pi0/20072)._
