[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-111248":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":25,"hasPages":23,"topics":26,"createdAt":10,"pushedAt":36,"updatedAt":37,"readmeContent":38,"aiSummary":39,"trendingCount":16,"starSnapshotCount":16,"syncStatus":40,"lastSyncTime":41,"discoverSource":42},111248,"EmuFive","blue0x1\u002FEmuFive","blue0x1","A PS5 emulator for the PS4. Runs on a jailbroken PS4 with Linux, installed through PS4 Multiboot.","https:\u002F\u002Fgithub.com\u002Fblue0x1\u002FEmuFive\u002Freleases",null,"Python",369,24,11,16,0,7,89,287,40,88.14,"GNU General Public License v2.0",false,"main",true,[27,28,29,30,31,32,33,34,35],"emulator","goldhen","goldhen-ps4","homebrew","linux","ps4","ps4-jailbreak","ps5-emulator","vulkan","2026-11-23 01:47:43","2026-11-23 18:23:19","\u003Ch1 align=\"center\">\u003Cimg src=\"assets\u002Femufive-logo.png\" alt=\"EmuFive\" width=\"480\">\u003C\u002Fh1>\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fplatform-PS4-003791?logo=playstation&logoColor=white\" alt=\"Platform: PS4\">\n  \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fstatus-experimental-red\" alt=\"Status: experimental\">\n  \u003Ca href=\"LICENSE\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-GPL--2.0-blue\" alt=\"License: GPL-2.0\">\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cb>EN\u003C\u002Fb> · \u003Ca href=\"README.ar.md\">AR\u003C\u002Fa> · \u003Ca href=\"README.zh-CN.md\">ZH\u003C\u002Fa> · \u003Ca href=\"README.fr.md\">FR\u003C\u002Fa> · \u003Ca href=\"README.es.md\">ES\u003C\u002Fa> · \u003Ca href=\"README.de.md\">DE\u003C\u002Fa> · \u003Ca href=\"README.it.md\">IT\u003C\u002Fa> · \u003Ca href=\"README.pt-BR.md\">PT\u003C\u002Fa> · \u003Ca href=\"README.tr.md\">TR\u003C\u002Fa>\n\u003C\u002Fp>\n\nA PS5 emulator for the PS4.\n\nCreated by **[Chokri Hammedi (blue0x1)](https:\u002F\u002Fgithub.com\u002Fblue0x1)**. Built on [PS4 Multiboot](https:\u002F\u002Fgithub.com\u002Fblue0x1\u002Fps4-multiboot).\n\n> **Status: experimental research.** On a PS4 Pro, \"Sons of Sparta\" runs at about 40 FPS and more. KytyPS5 rewrites the PS5-only CPU instructions in game code (patch `0004`). Other games are still being tested, and many are slow for now. See [The CPU problem](#the-cpu-problem).\n\n\u003Cp align=\"center\">\u003Cimg src=\"assets\u002Fhome-screen.png\" alt=\"The EmuFive home screen on a PS4 Pro, with God of War Sons of Sparta selected\" width=\"900\">\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cb>\u003Ca href=\"#installing\">Installing\u003C\u002Fa>\u003C\u002Fb> · \u003Cb>\u003Ca href=\"#games\">Games\u003C\u002Fa>\u003C\u002Fb> · \u003Cb>\u003Ca href=\"#changelog\">Changelog\u003C\u002Fa>\u003C\u002Fb> · \u003Ca href=\"#how-it-works\">How it works\u003C\u002Fa> · \u003Ca href=\"#the-cpu-problem\">The CPU problem\u003C\u002Fa> · \u003Ca href=\"#plan\">Plan\u003C\u002Fa> · \u003Ca href=\"#building\">Building\u003C\u002Fa> · \u003Ca href=\"#credits\">Credits\u003C\u002Fa>\n\u003C\u002Fp>\n\n## How it works\n\n- **[PS4 Multiboot](https:\u002F\u002Fgithub.com\u002Fblue0x1\u002Fps4-multiboot)** starts Linux on the PS4 and installs Linux systems on its internal drive, from the controller.\n- **PS4 Mesa**, part of PS4 Multiboot, gives the PS4 GPU (Liverpool on the PS4 and Slim, Gladius on the Pro) Vulkan 1.3. KytyPS5 needs sparse resources, which RADV offers on this GPU with `RADV_EXPERIMENTAL=sparse`.\n- **KytyPS5**, upstream at a pinned commit with this project's patches (`patches\u002Fkytyps5\u002F`), built with `-march=btver2` for the PS4's AMD Jaguar CPU. The official build uses AVX2 and stops with \"Illegal instruction\" on the PS4.\n  - `0001`: the `KYTY_HOST_ARCH` build option (the CPU the emulator is compiled for).\n  - `0002`: a C library for homebrew. PS5 homebrew built with the ps5-native-app-boilerplate ships a stand-in `sce_module\u002Flibc.prx` whose functions all return 0 (the console uses its own C library), so in KytyPS5 its `malloc` failed. The patch adds the C library functions such homebrew imports and uses them only for such a stand-in module.\n  - `0003`: more for homebrew: files and folders, system calls, the foreground user, and extra mounts (`KYTY_MOUNTS`).\n  - `0004`: PS5 code on the PS4's CPU. Every AVX2, FMA and BMI2 instruction is rewritten into SSE4.2\u002FAVX\u002FBMI1 code when a module loads; one that cannot be rewritten there is replaced the first time it runs. See [The CPU problem](#the-cpu-problem).\n- **EmuFive** packs all of it into a small Linux system that boots straight into the emulator, full screen, with no desktop. It installs through PS4 Multiboot like any other system.\n\n## The CPU problem\n\nKytyPS5 does not emulate the PS5's CPU: it runs the game's own x86-64 code directly. PS5 games are built for the PS5's Zen 2 CPU and use AVX2, BMI2 and FMA instructions throughout. The PS4's Jaguar CPU has none of them, so game code stops at the first such instruction.\n\nPatch `0004` adds that to KytyPS5's guest instruction patcher. When the host CPU lacks AVX2, FMA or BMI2, each such instruction is replaced by code with the same effect: 256-bit integer operations as two 128-bit halves, permutes across halves with AVX moves and blends, per-element shifts one element at a time, FMA computed in double precision, gathers one element at a time, BMI2 with saved registers. The jump to a replacement goes where the instruction was; an instruction too short for one, in a spot the patcher cannot rearrange, faults and is replaced at run time.\n\n`tools\u002Fjaguar-test\u002F` checks every replacement on a PC that has these instructions: it takes each instruction form found in a program's code, runs the original and the replacement from the same random state, and compares all registers, flags and memory. The forms found in the programs tested so far match: 287 in God of War Sons of Sparta (gathers and VFMADDSUB included) and 227 in the programs tested before. The exceptions are rare last-bit differences in FMA (single precision is rounded twice, double precision is a multiply and an add) and a NaN corner case of 0 times infinity.\n\nThe Jaguar is still far slower than the PS5's CPU, and the replacements add to that, so even a game that runs may run slowly.\n\n## Plan\n\n| Step | Status |\n|---|---|\n| Vulkan on the PS4 GPU meets KytyPS5's requirements | Done (`RADV_EXPERIMENTAL=sparse`) |\n| KytyPS5 built for the PS4's CPU | Done (`KYTY_HOST_ARCH=btver2`) |\n| KytyPS5 starts on the PS4 and sets up the GPU | Done, PS4 Pro |\n| EmuFive system image, installs through PS4 Multiboot | Done, PS4 Pro |\n| A PS5 homebrew app without AVX2 runs and draws | Done: Snes9x PS5 2.11 rebuilt for btver2, PS4 Pro |\n| Controller, `\u002Fdata` and USB storage, loading a game in that app | Done on a PC test build (same patches); PS4 next |\n| AVX2, BMI2 and FMA translation for game code | Done (`0004`), checked on a PC |\n| A PS5 game runs on the PS4 | Done: God of War Sons of Sparta, about 40 FPS and more, PS4 Pro |\n| Hollow Knight: Silksong runs on the PS4 | Done since 1.0.1 (patches `0006` and `0007`), PS4 Pro |\n| Home screen: pick a game with the controller; Wi-Fi; Settings | Done, checked on a PC |\n| Games from the USB drive, the PS4 drive or a PC share | Done, checked on a PC; PS4 next |\n\n## Building\n\nNeeds Docker, git and the PS4 Mesa from PS4 Multiboot (`..\u002FPS4-Multiboot\u002Fout\u002Fps4-mesa.tar.xz`, built with `make mesa` there). `build-kyty.sh` clones KytyPS5 into `build\u002Fkytyps5` the first time, then resets it to the pinned commit and applies the patches on every build.\n\n```bash\nscripts\u002Fbuild-kyty.sh      # out\u002Fkytyps5-ps4.tar.xz\nscripts\u002Fbuild-rootfs.sh    # out\u002Fps5-ps4-rootfs.tar.xz\n```\n\n`PS4_MESA` and `KYTY` point `build-rootfs.sh` at other paths.\n\n## Installing\n\nEmuFive installs through [PS4 Multiboot](https:\u002F\u002Fgithub.com\u002Fblue0x1\u002Fps4-multiboot), like any other Linux system.\n\nYou need:\n\n- A jailbroken PS4 with **GoldHEN** (for its FTP server and payload loader).\n- A PC on the same network with an FTP client (for example FileZilla).\n- About 28 GB free on the PS4 (a 16 GB disk, and 10 GB always left free for the PS4), or a USB drive of 8 GB or more.\n- A DualShock 4 (on a USB cable, or paired over Bluetooth later).\n\nSteps:\n\n1. From the [PS4 Multiboot releases](https:\u002F\u002Fgithub.com\u002Fblue0x1\u002Fps4-multiboot\u002Freleases), download `bzImage`, `initramfs.cpio.gz`, `bootargs.txt` and `linux-2048mb.bin`. (`ps4-mesa.tar.xz` is not needed: EmuFive has PS4 Mesa built in.)\n2. From the [EmuFive releases](https:\u002F\u002Fgithub.com\u002Fblue0x1\u002FEmuFive\u002Freleases), download `ps5-ps4-rootfs.tar.xz` (or build it, see [Building](#building)). Keep its name: PS4 Multiboot finds systems by the `-ps4-rootfs` in it.\n3. Turn on GoldHEN's FTP server and copy the files to the PS4 (port 2121):\n\n   | File | Folder on the PS4 |\n   |---|---|\n   | `bzImage`, `initramfs.cpio.gz`, `bootargs.txt` | `\u002Fdata\u002Flinux\u002Fboot\u002F` |\n   | `ps5-ps4-rootfs.tar.xz` | `\u002Fuser\u002Fhome\u002F` |\n   | `linux-2048mb.bin` | `\u002Fdata\u002Fpayloads\u002F` |\n\n4. Run `linux-2048mb.bin` from GoldHEN's payload menu.\n\n   > **Be patient:** after the payload starts, the TV can show **\"No signal\" or a black screen for 1 to 2 minutes** while Linux starts. This is normal.\n\n5. In the PS4 Multiboot menu, pick **EmuFive**, then **Install to PS4** or **Install to USB drive**. It takes a few minutes.\n6. Put your games in one of the places below. A game is a folder with `eboot.bin` (and `sce_sys`), or a ZArchive (`.zar`) dump.\n\nAfter that, run the payload to start EmuFive: with only EmuFive installed it starts straight away, with other systems too the PS4 Multiboot menu appears first. Turn off or restart from the home screen to go back to the PS4 system. To install EmuFive again, delete `\u002Fuser\u002Fhome\u002Fps5-ps4.img` over FTP and run the payload.\n\nUpdates come from the EmuFive releases: Settings, System, Software update (no reinstall needed).\n\nThe system starts in the home screen and needs no keyboard:\n\n- The games show up as tiles, each labeled with where it is: **USB**, **PS4** or **PC**. Pick one and press Play; when it quits, the home screen comes back.\n- At the top: Wi-Fi (with an on-screen keyboard for the password) and Settings, and two tabs, **Games** and **Media** (L1 \u002F R1). Media shows your screenshots; open one, and Square deletes it.\n- OPTIONS on a game: favorite, hide, its own settings, its trophies and how long you played it.\n- **Internet**, the tile after the games: a web browser used with the controller. The left stick (or the touchpad) moves the pointer and X clicks; the right stick scrolls; O or L1 goes back, R1 forward; L2 and R2 zoom. Triangle types an address or a search, and choosing a text box on a page opens the on-screen keyboard. OPTIONS opens the menu: bookmarks, start page, zoom, search engine (Google, DuckDuckGo or Bing), Mobile sites (lighter pages) and clearing the history and cookies. The PS button goes back to the home screen, and the same page opens next time. It is WebKitGTK showing one page at a time, about 450 MB of memory with a page of text and more with video sites; the home screen closes while it runs, and a paused game has to be closed first. Downloads, uploads, the camera, the microphone and the location are refused. Bookmarks are in `~\u002F.config\u002Fps5-on-ps4\u002Fbrowser.json`, cookies in `~\u002F.local\u002Fshare\u002Fps5-browser`.\n- The PS button during a game pauses it and opens the quick menu: Resume, **Home** (the home screen, with the game still paused: PS or Resume goes back to it; starting another game asks first, then closes it), Close the game, volume, power.\n- Screenshots: PS + Square, or Share, also in a game. They go to `PS5-screenshots` on the USB drive (or `~\u002FScreenshots` without one), with a small notice in the corner. To get one on your phone, open it in Media and press Triangle (Share): scan the QR code with the phone (on the same network) to open it there, then save or share it. The PS4 serves that one picture, at a random address, only while the code is on screen. QR codes come from `python3-segno`.\n- Settings, Appearance: accent color, theme (dark, midnight, light), background (the game's art, a gradient, a solid color or your own picture from the USB drive), background dim, floating orbs, animations, tile size and shape, text size and font, clock, what the top bar shows (the battery is the controller's), menu sounds, rumble, button hints, screen edges (overscan) and a screensaver.\n- Settings, Controllers: light bar color and brightness, vibration on or off and its strength, the controller's microphone on or off (with the controller on a USB cable; Linux has no controller sound over Bluetooth), swapping X and O, and a test page for every button and stick. Settings, Games: defaults for all games, game language, HDR and frame pacing. Settings, Date and time: set automatically from the internet (the default) or by hand. Settings, System: the menu language (English, Arabic, French, Turkish, Spanish, German, Italian or Portuguese of Brazil), temperature and CPU load, back up the settings to the USB drive, or reset them all.\n- Profiles (Settings, Profile, and Switch profile in the quick menu): up to 8, each with its own name, avatar, saves, trophies and play time. With more than one, \"Who's playing?\" opens at the start. Each profile has its own KytyPS5 folder (`~\u002F.kytyps5\u002Fusers\u002F\u003CID>`, the first profile keeps `~\u002F.kytyps5`), with the shader cache shared.\n- Notices in the top-left corner, also in a game: a screenshot was saved, a controller connected (with its connection and battery level), the controller battery is low (15%). The top bar battery is green, yellow or red by level, with a lightning bolt while charging.\n- Running out of memory: a 4 GB swap file on the system disk (`ps5-swap.service`, made once when there is room) lets a big game slow down instead of freezing the PS4, and if memory and swap still run out, the game is closed before the PS4 freezes and the home screen says why.\n- Menu languages: the translations are in `lib\u002Fps5\u002Ftranslations.json`, one entry per English text. Arabic is right-aligned and drawn with DejaVu Sans; its letters are joined in `lib\u002Fps5\u002Fi18n.py`, since SDL_ttf here does not join them.\n- The program sees the USB drive as `\u002Fmnt\u002Fusb0` and a folder of the system (`~\u002Fdata`, kept between starts) as `\u002Fdata`. For Snes9x PS5, ROMs go in `snes9x\u002Froms` on the USB drive or in `~\u002Fdata\u002Fsnes9x\u002Froms`.\n- If the emulator stops with an error, the home screen shows the reason.\n- `PS5_GAME` in `\u002Fetc\u002Fps5-on-ps4.conf` runs one game straight away instead of the home screen.\n- Controllers: a DualShock 4 on a cable, or over Bluetooth after holding SHARE + PS until the light bar double-blinks.\n- Sound goes to the TV over HDMI, also when a controller on a cable brings its own sound card (`\u002Fetc\u002Fwireplumber\u002Fwireplumber.conf.d\u002F51-ps5-hdmi.conf`).\n\n### Where games can be\n\n- **USB drive:** the `PS5` folder at the top of the drive. exFAT is best (files over 4 GB); NTFS works too.\n- **PS4 drive:** `\u002Fuser\u002Fhome\u002FPS5` on the PS4, copied there with GoldHEN FTP. The system reads the PS4 drive read-only and never changes it. Not available when the system itself was installed on a USB drive.\n- **A PC:** a shared folder on Windows or Linux. In Settings, turn on **Use games from PC** and set the PC address, the shared folder and, unless it is a guest share, a username and password; then Connect. Games can be at the top of the shared folder or in a `PS5` folder in it. A network cable is faster than Wi-Fi.\n  - Windows: share the folder (Properties, Sharing). For a guest share, share it with Everyone and turn off *Password protected sharing* in Advanced sharing settings.\n  - Linux (Samba): a share with `guest ok = yes` for a guest share, or a Samba user (`smbpasswd -a`).\n  - The PS4 kernel has no SMB client, so the system uses smbnetfs (FUSE). The settings, password included, are kept in `~\u002F.config\u002Fps5-on-ps4\u002Fpc-share.json`, readable only by the `ps5` user.\n\n`tools\u002Fmake-pad-test-rom.py` writes a tiny SNES ROM for checking a controller: blue, green while a button is held.\n\nLogin: `ps5` \u002F `ps5` on tty2 or SSH. The emulator's output is in `~\u002Fkytyps5.log` (the run before: `~\u002Fkytyps5.log.1`).\n\n## Games\n\nThis project contains no PS5 system software and no games. Use only games you own and dumped yourself.\n\nTested games:\n\n| Game | Console | Result |\n|---|---|---|\n| God of War Sons of Sparta | PS4 Pro | Playable, about 40 FPS and more |\n| Hollow Knight: Silksong | PS4 Pro | Playable, 50 to 60 FPS |\n| Spider-Man 2 | | Not tested yet |\n\nTested a game? Open an [issue](https:\u002F\u002Fgithub.com\u002Fblue0x1\u002FEmuFive\u002Fissues) with the game, your console model and how it ran.\n\n## Changelog\n\n### 1.0.4 (2026-11-12)\n\n- Fixed: Software update in Settings did not start (\"The update did not start.\") [#16](https:\u002F\u002Fgithub.com\u002Fblue0x1\u002FEmuFive\u002Fissues\u002F16).\n- Fixed: with EmuFive installed on a USB drive, games on a second USB drive were not found [#15](https:\u002F\u002Fgithub.com\u002Fblue0x1\u002FEmuFive\u002Fissues\u002F15).\n\nTo update from 1.0.3 or earlier, start the update once by hand, since the old Software update cannot: turn on SSH in Settings, connect with `ssh ps5@\u003CPS4 address>` (password `ps5` unless you changed it) and run\n\n```bash\nsudo systemd-run --unit=emufive-update --collect \u002Fopt\u002Fps5-on-ps4\u002Fbin\u002Fps5-update install\n```\n\nIt installs every update you are missing (from 1.0.0 or 1.0.1 that includes 1.0.2's browser packages, about 110 MB), then restart from the home screen. From 1.0.4 on, Software update in Settings works. New installs use the `ps5-ps4-rootfs.tar.xz` of the 1.0.4 release.\n\n## Project layout\n\n| Path | Contents |\n|---|---|\n| `scripts\u002Fbuild-kyty.sh` | Builds KytyPS5 (upstream plus `patches\u002Fkytyps5\u002F`) for the PS4's CPU |\n| `patches\u002Fkytyps5\u002F` | This project's changes to KytyPS5 |\n| `scripts\u002Fbuild-rootfs.sh` | Builds the system image for PS4 Multiboot |\n| `scripts\u002Fmake-release.sh` | Makes the update pack of a release (Settings, System, Software update installs it) |\n| `scripts\u002Fupdates\u002F` | Scripts an update runs on the PS4 after its files are in (`--post`) |\n| `docker\u002F` | Build environments for both |\n| `overlay\u002F` | Files added to the system: session, home screen, settings, USB and PS4 drive mounts, controller pairing |\n| `tools\u002F` | Logo converter, controller test ROM, `extract-code.py` (the code of a PS5 SELF\u002FELF) |\n| `tools\u002Fjaguar-test\u002F` | Checks patch `0004`'s replacements against the real instructions |\n\n## Special thanks\n\n- [KytyPS5](https:\u002F\u002Fgithub.com\u002FKytyPS5\u002FKytyPS5), the PS5 emulator EmuFive is based on (GPL-2.0)\n- [Kyty](https:\u002F\u002Fgithub.com\u002FInoriRus\u002FKyty) by InoriRus, the emulator KytyPS5 is based on\n\n## Credits\n\n- [Mesa](https:\u002F\u002Fmesa3d.org), and the PS4 GPU patches by fail0verflow, DionKill and striker91n\n- The PS4 Linux kernel developers ([sony-jaguar-devs\u002Fps4-linux](https:\u002F\u002Fgithub.com\u002Fsony-jaguar-devs\u002Fps4-linux))\n\n## License\n\nCopyright (C) 2026 [Chokri Hammedi (blue0x1)](https:\u002F\u002Fgithub.com\u002Fblue0x1).\n\nGPL-2.0 (see `LICENSE`). KytyPS5, Mesa and the Linux kernel are under their own licenses. PlayStation is a trademark of Sony Interactive Entertainment; this project is not affiliated with Sony.\n","EmuFive 是一款在破解版 PS4 主机上运行的实验性 PS5 游戏模拟器，通过 PS4 Multiboot 启动 Linux 环境并利用 Vulkan 1.3（经 RADV 驱动支持）实现图形渲染。其核心组件 KytyPS5 经定制化修改，适配 PS4 的 AMD Jaguar CPU 架构，包括指令集重写（AVX2\u002FFMA\u002FBMI2 → SSE4.2\u002FAVX\u002FBMI1）、轻量级 C 库支持及系统调用补全，以运行部分 PS5 原生游戏（如《Sons of Sparta》可达约 40 FPS）。项目处于早期研究阶段，依赖 Jailbreak 和 Linux 软件栈，适用于具备技术能力的主机破解爱好者进行兼容性测试与底层研究。",2,"2026-11-24 04:40:34","CREATED_QUERY"]