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

@@ -0,0 +1,14 @@
if [ "${PS5_FW_INSTALL_DONE:-}" != y ] &&
[ -f /scripts/functions ] &&
[ -d /scripts/local-bottom ] &&
[ -n "$rootmnt" ] &&
[ -e "${rootmnt}/etc/os-release" ]; then
ID=
ID_LIKE=
. "${rootmnt}/etc/os-release"
case " ${ID} ${ID_LIKE} " in
*" ubuntu "*)
[ -e /scripts/ubuntu/ps5-wifi-fw ] && . /scripts/ubuntu/ps5-wifi-fw
;;
esac
fi