Files
ps5-linux-image/distros/batocera
mia26MAjFm f8d0b65b36 batocera: auto-discover the current build instead of hardcoding
The mirror rotates older builds out — the pinned 43-20260430 went 404
on its own within ~4 weeks. Scrape the `last/` index for whatever
batocera-x86_64-*.img.gz is there now (currently 43.1-20260529). VER
and BUILD are then derived from the discovered filename so the cache
key + log lines remain informative.

BATOCERA_URL still wins if set (override path unchanged).
2026-06-23 19:27:48 -04:00
..

batocera

Adds support for Batocera (Buildroot-based retro-emulation distro) on PS5 hardware.

Batocera ships as an .img.gz with FAT32 boot + ext4 SHARE partitions; the OS itself lives in a squashfs at /boot/batocera. distros/batocera/build-rootfs.sh downloads + unsquashes that image and swaps in the linux-ps5 kernel:

  1. Download https://mirrors.o2switch.fr/batocera/x86_64/stable/last/
  2. Loop-mount the FAT32, find the embedded squashfs
  3. unsquashfs to $CHROOT
  4. Extract the linux-ps5 .deb's vmlinuz/boot/bzImage
  5. Patch libretroControllers.py (PS5 controller-mapping fix)
  6. Set up first-boot SHARE partition creator (ps5-share-init)
  7. Write fstab with /boot vfat (NOT /boot/efi — batocera-part's SHARE auto-detection greps /proc/mounts for /boot)

Build locally

./build_image.sh --distro batocera

Image size: 16 GB default (Batocera unsquashes to ~6 GB; headroom for /userdata). Override the batocera release with BATOCERA_VER / BATOCERA_BUILD envs (defaults track the upstream "last" channel).