Linux Loader for the PlayStation Vita
Clone or download
Latest commit d8e0589 Dec 23, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
Makefile Fix Makefile objcopy args Jan 31, 2018 Update README Dec 22, 2018
linux_bootstrap.ld Trying to do some cleanups... Dec 4, 2017
linux_bootstrap.s Add SMP support Dec 23, 2018
linuxloader.yml First commit Aug 18, 2017
main.c FIX!? Linux booting (don't touch L2, don't do WB to uncached memory) Dec 21, 2018
resume.s Add SMP support Dec 23, 2018

PlayStation Vita Linux Loader

What's this?

This is a kernel plugin that lets you run Linux in ARMv7 non-secure System mode.

How does it work?

At first, the plugin allocates a couple of physically contiguous buffers where it loads the Linux kernel image and the Device Tree Blob.

Then it triggers a power standby request and when PSVita OS is about to send the Syscon command to actually perform the standby, it changes the request type into a soft-reset and the resume routine address to a custom one (resume.s).

Once the PSVita wakes from the soft-reset, the custom resume routine executes and identity maps the scratchpad (address 0x1F000000) using a 1MiB section. Afterwards, the Linux bootstrap code (linux_bootstrap.s) is copied to the scratchpad where it proceeds and jumps to (passing some parameters such as the Linux and DTB physical addresses).

Since the Linux bootstrap code is now in an identity-mapped location, it can proceed to disable the MMU (and the caches) and finally jump to the Linux kernel.


You will need a compiled Linux kernel image (placed at ux0:/linux/zImage) and the corresponding DTB file (placed at ux0:/linux/vita.dtb).


This Linux loader will print debug info over UART0. Check UART Console for the location of the pins.


Thanks to everybody who has helped me, specially the Team Molecule (formed by Davee, Proxima, xyz, and YifanLu), TheFloW, motoharu, and everybody at the HENkaku Discord channel.