Hello World! I've been reporting on Sony PlayStation hacking news since 2000 and started PSXHAX in 2014 to cover PlayStation (PSX), PlayStation 2 (PS2), PlayStation 3 (PS3), PlayStation 4 (PS4), PlayStation Portable (PSP), PlayStation Vita (PS Vita), PlayStation TV (PS TV) and next-gen PlayStation 5 (PS5) platforms along with anything else of interest.
Click on my UserName author link above and you'll be able to view a curated list of all the articles I've contributed thus far to PSXHAX.COM!
Since the last revision, PlayStation 4 developer BigBoss has updated the PS4Link library which allows PS4 to communicate and utilize a host file system with the PS4Client host tool.
According to the developer, PS4Link is now updated with ldr creation and information to do it yourself
PS4Link is a group of tools (libps4link, libdebugnet, ps4sh) for PS4 and host. It is the same method that we used in ps2dev days, so basically it is the same protocol than ps2link and ps2client have been using since 2003.
Functions available are defined like native sce functions so it is easy for homebrew developer to use these new functions:
FILEIO functions
Code:
int ps4LinkOpen(const char *file, int flags, int mode);
int ps4LinkClose(int fd);
int ps4LinkRead(int fd, void *data, size_t size);
int ps4LinkWrite(int fd, const void *data, size_t size);
int ps4LinkLseek(int fd, int offset, int whence);
int ps4LinkRemove(const char *file);
int ps4LinkMkdir(const char *dirname, int mode);
int ps4LinkRmdir(const char *dirname);
int ps4LinkDopen(const char *dirname);
int ps4LinkDread(int fd, struct dirent *dir);
int ps4LinkDclose(int fd);
Remote Commands functions
1) execelf
This command let you load and exec elf files compiled with libps4. Check samples directory.
2) execsprx
Right now do nothing
3) execwhoami
Show you uid and gid
4) execshowdir
Let you list filenames in directory. With ftp server you will not need it
5) exitps4
Try to close ps4link resources. If you try to run ps4sh again when all is released you will get a messager saying that it can't connect. Now you can leave ps4 browser.
check ps4link_internal.h and commands.c to see how can you implements new commands
How do I use it?
1) Configure your environment:
You will need:
[clang] 3.7 or upper i tested it on freebsd and osx. For osx :
For osx only (you will not need this for freebsd):
1 USB Hdd or a USB Key big enough to install Ubuntu
First you need to install Ubuntu on your USB Hdd:
Download the ISO
Copy the iso to Usb with a tool like unetbootin (Win/Mac/Linux) (You can burn on a DVD also)
Boot on this USB or DVD
Launch Install on your USB HDD or USB key (you can make small partition in Fat32 for Bzimage and initramfs) and the rest in Ext4
I've used the ubuntu-14.04.4-desktop-amd64.iso and made the install on my USB Hdd (with a PC of course) , nothing more to say here just configure your keyboard layout , password ...)
So now you should have Ubuntu installed on your USB Hdd ...
Now go to the PS4-Playground and load Linux (you must have of course a USB key with bZimage & initramfs.cpio.gz in the PS4)
Now you should see better-initramfs shell ...
Plug the USB Hdd where you have your ubuntu install (At this point you can remove the USB key with bZimage & initramfs.cpio.gz everything is in RAM)
Type fdisk -l to see the name of your USB Hdd ( /dev/sdXX)
As you can see my ubuntu partition is in /dev/sdc1
Now just type (if your bootable partition is sdc1)
Code:
mount /dev/sdc1 newroot/
exec switch_root /newroot/ /newroot/sbin/init
Sometimes exec switch_root don't start at the first time , just type the command again .. Wait a few seconds and you should see Ubuntu running
Keep in mind that there's no network working yet
PS4 Running Linux Ubuntu How to Run Ubuntu on a PS4 with 1 USB Stick
It's only been a few months since Sony's last update, and today in conjunction with PS4 Firmware 3.50 they have also released PS Vita System Software update 3.60 for PlayStation Vita handheld console owners.
Following the recent multiMAN updates, PlayStation 3 developer Lightra1n has now made available MultiMAN Singstar Repack 4.78.02 (mmCM) with details below.
A few days back PlayStation 4 developer kr105 released a PS4 Linux Loader Patch for 1.76 Firmware, and here's a follow-up PS4 Linux Installation Guide detailing how to install and run PS4 Linux from D-ecks via Wololo.
How to Install and Run Linux on your PS4
AT THE TIME OF THIS WRITING, THIS WORKS ONLY ON PS4 1.76 FW!
You'll need:
USB flash drive
USB keyboard
Internet connection
NEW METHOD (untested) - Magic DNS
What to do:
0. Remove custom host from router (manuals.playstation.net 89.108.88.221) if added earlier
1. On PS4 Open Network > Set Up Internet Connection
2. Select LAN or Wi-Fi -> Select your network and enter password -> Custom
3. Set everything to Automatic, Do Not Specify, Do Not use, except DNS Settings
4. In DNS Settings set Primary DNS to 89.108.88.221, secondary set to 0.0.0.0
5. Download 2 files from http://kr105.com/ps4kerneltest/
6. Copy downloaded files on usb stick
7. Insert usb stick into PS4
8. Save settings and open User's Guide
9. Wait for a few seconds
OLD METHOD (use as fallback)
What to do:
You will need to get access to the browser from 1.76 without updating your console. How to do so is explained below.