Load Marvell WiFi blobs dynamically using initramfs (#11)

* Add PS5 WiFi firmware initramfs loader support
Add a CPIO wrapper to add new files/folders at initrd at runtime
Add early boot scripts (initramfs-tools for debian-based) support

* logging & comment
This commit is contained in:
Anderson
2026-05-11 14:26:13 -03:00
committed by GitHub
parent 4355489449
commit d5e1702917
11 changed files with 342 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
#include "loader.h"
#include "config.h"
#include "firmware.h"
#include "utils.h"
#include <errno.h>
#include <fcntl.h>
@@ -227,6 +228,11 @@ int fetch_linux(struct linux_info *info) {
return -1;
}
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] = {};
int ret = find_and_read_file("vram.txt", buf_vram, sizeof(buf_vram) - 1);