mirror of
https://github.com/ps5-linux/ps5-linux-image.git
synced 2026-07-16 01:50:40 +00:00
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).
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:
- Download
https://mirrors.o2switch.fr/batocera/x86_64/stable/last/ - Loop-mount the FAT32, find the embedded squashfs
unsquashfsto$CHROOT- Extract the linux-ps5
.deb'svmlinuz→/boot/bzImage - Patch
libretroControllers.py(PS5 controller-mapping fix) - Set up first-boot SHARE partition creator (
ps5-share-init) - Write fstab with
/boot vfat(NOT/boot/efi— batocera-part's SHARE auto-detection greps/proc/mountsfor/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).