Skip to content

Linux payload implementing HV exploits to run a custom bootloader

C

logging & comment

buzzer-re1be941e9bdca
diff --git a/source/firmware.c b/source/firmware.c
index ff658b7..8fe633c 100644
--- a/source/firmware.c
+++ b/source/firmware.c
@@ -171,6 +171,9 @@ static int resolve_ps5_wifi_firmware(void **initrd, size_t *initrd_size) {
return 0;
}
+//
+// Wrapper to resolve future firmwares images using the kernel, at the moment only Marvell WiFi driver
+//
int resolve_device_firmwares(void **initrd, size_t *initrd_size) {
return resolve_ps5_wifi_firmware(initrd, initrd_size);
}
diff --git a/source/loader.c b/source/loader.c
index 87942cb..b751618 100644
--- a/source/loader.c
+++ b/source/loader.c
@@ -228,8 +228,10 @@ int fetch_linux(struct linux_info *info) {
return -1;
}
- if (resolve_device_firmwares(&initrd, &initrd_size) < 0)
+ if (resolve_device_firmwares(&initrd, &initrd_size) < 0) {
+ notify("Something went wrong while resolving device firmwares - Aborting\n");
return -1;
+ }
size_t vram_size;
char buf_vram[16] = {};