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
Download:
ps4link-master.zip /
PS4Link GIT
From the ReadMe file:
PS4LINK FOR PS4
What does this do?
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):
Downloading clang