Usage and Building.md changes for ps4_unfself which is required for Testing

This commit is contained in:
RyzenDew 2023-07-28 00:07:36 -03:00 committed by GitHub
parent b63d13d6ec
commit 032d1915f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 31 additions and 5 deletions

19
.github/BUILDING.md vendored
View file

@ -4,28 +4,41 @@
### The dependencies for Debian-like distributions. ### The dependencies for Debian-like distributions.
``` ```
sudo apt install build-essential cmake libunwind-dev libglfw3-dev libvulkan-dev vulkan-validationlayers-dev spirv-tools glslang-tools libspirv-cross-c-shared-dev sudo apt install build-essential cmake libunwind-dev libglfw3-dev libvulkan-dev vulkan-validationlayers-dev spirv-tools glslang-tools libspirv-cross-c-shared-dev python3-pip git
``` ```
# git is only needed for ubuntu 22.04
### The dependencies for Fedora distributions: ### The dependencies for Fedora distributions:
``` ```
sudo dnf install cmake libunwind-devel glfw-devel vulkan-devel vulkan-validation-layers-devel spirv-tools glslang-devel gcc-c++ gcc spirv-tools-devel xbyak-devel sudo dnf install cmake libunwind-devel glfw-devel vulkan-devel vulkan-validation-layers-devel spirv-tools glslang-devel gcc-c++ gcc spirv-tools-devel xbyak-devel python3-pip
``` ```
### The dependencies for Arch distributions: ### The dependencies for Arch distributions:
``` ```
sudo pacman -S libunwind glfw-x11 vulkan-devel glslang sudo pacman -S libunwind glfw-x11 vulkan-devel glslang python-pip git cmake
``` ```
> Side note you will need to pull ``spirv-cross`` from the AUR for now so do the following > Side note you will need to pull ``spirv-cross`` from the AUR for now so do the following
``` ```
sudo pacman -S --needed git base-devel && git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si sudo pacman -S --needed git base-devel && git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si
``` ```
> Side note glslang as of the newest version is broken and it needs a simple fix
```
sudo ln -s /usr/bin/glslang /usr/bin/glslangValidator
```
``` ```
yay -S spirv-cross yay -S spirv-cross
``` ```
## We need one more thing
Python2 is now replaced fully and to use ```ps4_unfself``` we have to use python3 and install future using ```pip```
```
pip install future
```
## Getting spriv-cross on Fedora and Arch Linux ## Getting spriv-cross on Fedora and Arch Linux
``` ```

17
.github/USAGE.md vendored
View file

@ -1,7 +1,20 @@
# Usage # Usage
## How to prepare eboot.bin with ps4_unfself
### eboot.bin needs to be unfselfed and to do this [pip](https://github.com/RyzenDew/rpcsx/edit/usage-changes/.github/BUILDING.md#we-need-one-more-thing) is required with this tool [ps4_unfself](https://github.com/SocraticBliss/ps4_unfself)
Place ```ps4_unfself.py``` into the same folder as the eboot.bin then open a console and type
```
python ps4_unfself.py eboot.bin
```
You will get a read out and it will make an ```eboot.elf```
## How to run samples and games ## How to run samples and games
You will need firmware 5.05 dumped via PS4 FTP it must be fully decrypted and we do not provide the firmware
See the Commands of `rpcsx-os` (`-h` argument), or join the [Discord](https://discord.gg/t6dzA4wUdG) for help. See the Commands of `rpcsx-os` (`-h` argument), or join the [Discord](https://discord.gg/t6dzA4wUdG) for help.
You can run the emulator with some samples using this command: You can run the emulator with some samples using this command:
@ -12,13 +25,13 @@ rm -f /dev/shm/rpcsx-* && ./rpcsx-os --mount "<path to fw>/system" "/system" --
## Creating a log ## Creating a log
You can use this flag if you encountered a segfault for debugging purposes. ### You can use this flag if you encountered a segfault for debugging purposes.
```sh ```sh
--trace --trace
``` ```
You can redirect all log messages to a file by appending this command: ### You can redirect all log messages to a file by appending this command:
```sh ```sh
&>log.txt &>log.txt