|
|
|
|
@@ -45,6 +45,17 @@ To run *ps5-linux*, you need some required and optional hardwares:
|
|
|
|
|
|
|
|
|
|
#### Linux/macOS:
|
|
|
|
|
|
|
|
|
|
Install docker:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
sudo apt update
|
|
|
|
|
sudo apt install docker.io -y
|
|
|
|
|
sudo service docker start
|
|
|
|
|
sudo usermod -aG docker $USER
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Restart the terminal.
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
git clone https://github.com/ps5-linux/ps5-linux-image
|
|
|
|
|
cd ps5-linux-image
|
|
|
|
|
@@ -99,36 +110,7 @@ sudo dd if=output/ps5-ubuntu2604.img of=/dev/sdX bs=4M status=progress conv=fsyn
|
|
|
|
|
|
|
|
|
|
#### Windows (Balena Etcher):
|
|
|
|
|
|
|
|
|
|
Download Balena Etcher, select the .img file, select your USB drive, click Flash.
|
|
|
|
|
|
|
|
|
|
#### Windows (WSL2 + usbipd):
|
|
|
|
|
|
|
|
|
|
Install usbipd in PowerShell as administrator:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
winget install usbipd
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Plug in your USB drive, list devices and find the busid of your drive:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
usbipd list
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Bind and attach it to WSL (replace 5-3 with your busid):
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
usbipd bind --busid 5-3
|
|
|
|
|
usbipd attach --busid 5-3 --wsl
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Then flash from WSL:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
lsblk # confirm the drive appeared, e.g. /dev/sdb
|
|
|
|
|
sudo wipefs -a /dev/sdX
|
|
|
|
|
sudo dd if=output/ps5-ubuntu2604.img of=/dev/sdX bs=4M status=progress
|
|
|
|
|
```
|
|
|
|
|
Download [Balena Etcher](https://etcher.balena.io/), select the .img file, select your USB drive, click Flash.
|
|
|
|
|
|
|
|
|
|
### 3. Plug the USB drive into your PS5
|
|
|
|
|
|
|
|
|
|
@@ -164,7 +146,6 @@ Install the x86-64 cross-compilation tools before:
|
|
|
|
|
sudo apt install gcc-x86-64-linux-gnu binutils-x86-64-linux-gnu
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Find your PS5 IP at `Settings → Network → View Connection Status`.
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
@@ -175,9 +156,9 @@ If all is successful, the payload will automatically go into rest mode. Wait unt
|
|
|
|
|
|
|
|
|
|
If the LED is white, but you still have a blackscreen then:
|
|
|
|
|
|
|
|
|
|
- Try removing `video=DP-1:1920x1080@60` line in cmdline.txt.
|
|
|
|
|
- Try different monitors or capture cards, ideally with different resolutions. Currently, some monitors have issues.
|
|
|
|
|
- Try setting `amdgpu.force_1080p=1` in `cmdline.txt` in the FAT32 partition of the USB drive.
|
|
|
|
|
- Try removing `video=DP-1:1920x1080@60` line in cmdline.txt.
|
|
|
|
|
|
|
|
|
|
If none of this helps, please report the issue in our [Discord server](https://discord.gg/PeMGVB7BAm) and provide your EDID information.
|
|
|
|
|
|
|
|
|
|
@@ -192,36 +173,48 @@ Then, there are certain settings and commands we recommend doing:
|
|
|
|
|
|
|
|
|
|
2. Possibly, you have to disable and reenable your Wired/WLAN connection to get internet connection.
|
|
|
|
|
|
|
|
|
|
3. Install Firefox:
|
|
|
|
|
3. Hold packages to prevent updating the kernel when doing `apt upgrade`:
|
|
|
|
|
```bash
|
|
|
|
|
sudo apt-mark hold linux-generic linux-generic-hwe-24.04 linux-generic-hwe-26.04 linux-image-generic linux-image-generic-hwe-24.04 linux-image-generic-hwe-26.04 linux-headers-generic linux-headers-generic-hwe-24.04 linux-headers-generic-hwe-26.04
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
4. Install Firefox:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
sudo snap install firefox
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
5. Update mesa:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
sudo snap refresh mesa-2404 --channel=latest/edge
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
4. Clone our [ps5-linux-tools](https://github.com/ps5-linux/ps5-linux-tools):
|
|
|
|
|
6. Clone our [ps5-linux-tools](https://github.com/ps5-linux/ps5-linux-tools):
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
sudo apt install zlib1g-dev
|
|
|
|
|
git clone https://github.com/ps5-linux/ps5-linux-tools
|
|
|
|
|
cd ps5-linux-tools
|
|
|
|
|
make
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## M.2 installation
|
|
|
|
|
|
|
|
|
|
You can use a M.2 SSD exclusively for Linux (which means you cannot use it for PS5 game storage).
|
|
|
|
|
|
|
|
|
|
1. Attach the M.SSD and format it on your PS5.
|
|
|
|
|
2. Boot Linux on your PS5 and run these commands to initialize your M.2:
|
|
|
|
|
1. Attach the M.2 SSD by following the [official guide](https://www.playstation.com/en-us/support/hardware/ps5-install-m2-ssd).
|
|
|
|
|
2. **VERY IMPORTANT**: If you used the M2. SSD for games before, reformat it on the PS5 under `Settings` → `Storage` → `M.2 SSD Storage`.
|
|
|
|
|
3. Boot Linux on your PS5 and run these commands to initialize your M.2:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
sudo apt install zlib1g-dev
|
|
|
|
|
cd ps5-linux-tools
|
|
|
|
|
gcc -o m2_init m2_init.c -lz
|
|
|
|
|
sudo ./m2_init
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
3. Reboot via `sudo reboot`. If your PS5 asks you to format your M.2 again, please report this issue to us in our [Discord server](https://discord.gg/PeMGVB7BAm) and provide your M.2 model and storage size.
|
|
|
|
|
4. Relaunch Linux on your PS5.
|
|
|
|
|
5. Copy the `ps5-ubuntu2604.img` image that you built during installation or rebuild it on your PS5. Then, install it onto your M.2:
|
|
|
|
|
4. Reboot via `sudo reboot`. If your PS5 asks you to format your M.2 again, please report this issue to us in our [Discord server](https://discord.gg/PeMGVB7BAm) and provide your M.2 model and storage size.
|
|
|
|
|
5. Relaunch Linux on your PS5.
|
|
|
|
|
6. Copy the `ps5-ubuntu2604.img` image that you built during installation or rebuild it on your PS5. Then, install it onto your M.2:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
cd ps5-linux-tools
|
|
|
|
|
@@ -237,6 +230,8 @@ chmod +x ./m2_exec.sh
|
|
|
|
|
sudo ./m2_exec.sh
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Then follow the same instructions again as the previous section.
|
|
|
|
|
|
|
|
|
|
In order to always boot Linux from your M.2, you can edit the label at `/boot/efi/cmdline.txt` from `root=LABEL=ubuntu2604` to `root=LABEL=ubuntu2604-m2`.
|
|
|
|
|
|
|
|
|
|
## Fan & boost control
|
|
|
|
|
@@ -245,7 +240,6 @@ We provide a simple tool that allows you to boost your CPU to 3500Mhz and GPU to
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
cd ps5-linux-tools
|
|
|
|
|
gcc -o ps5_control ps5_control.c
|
|
|
|
|
sudo ./ps5_control --fan on
|
|
|
|
|
sudo ./ps5_control --boost on
|
|
|
|
|
```
|
|
|
|
|
@@ -258,7 +252,6 @@ Always turn on fan when your turn on boost, as this is what the official PS5 OS
|
|
|
|
|
- A: No, this is a soft-mod. You need to re-run the exploit in order to boot into Linux.
|
|
|
|
|
- Q: Can I put Linux into standby and resume?
|
|
|
|
|
- A: No, this is not supported. We may however add a shutdown feature that puts your PS5 into rest-mode allowing you to relaunch Linux when powering up again.
|
|
|
|
|
|
|
|
|
|
- Q: Can I continue using my PS5 if I install Linux?
|
|
|
|
|
- A: Yes, the internal SSD is not modified
|
|
|
|
|
- Q: Can I use the PS5's NIC/WLAN module in Linux?
|
|
|
|
|
@@ -273,12 +266,14 @@ Always turn on fan when your turn on boost, as this is what the official PS5 OS
|
|
|
|
|
|
|
|
|
|
## Tips and tricks
|
|
|
|
|
|
|
|
|
|
- If you see graphical issues in your games, add the environment variable `RADV_DEBUG=nohiz` as [recommended for BC250](https://elektricm.github.io/amd-bc250-docs/drivers/environment/#critical-environment-variables) as well.
|
|
|
|
|
- You can adjust the kernel cmdline in `cmdline.txt` in the FAT32 partition.
|
|
|
|
|
- You can adjust the VRAM size in `vram.txt` in the FAT32 partition. By default, it uses 512MB (0x20000000) which enables [Dynamic VRAM allocation](https://elektricm.github.io/amd-bc250-docs/bios/flashing/#why-flash-the-bios).
|
|
|
|
|
- Monitor hotswap may work, but it will not change resolution automatically.
|
|
|
|
|
- Some monitors have a black screen if a video=DP-1: parameter is set in `cmdline.txt`. Confirmed working without `video=DP-1:1920x1080@60` on:
|
|
|
|
|
- MSI MAG274Q QD E2, DELL S2721DGF, DELL U2515H (1440p@60Hz)
|
|
|
|
|
- Possibly also: LG 27GL850, Lenovo Legion Y27q, ViewSonic Elite XG270QG
|
|
|
|
|
|
|
|
|
|
Many configurations, tips and tricks from the [AMD BC250 Documentation](https://elektricm.github.io/amd-bc250-docs/) also apply to PS5.
|
|
|
|
|
|
|
|
|
|
## Bugs
|
|
|
|
|
|