mirror of
https://github.com/ps5-linux/ps5-linux-loader.git
synced 2026-05-12 09:41:59 +00:00
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
This commit is contained in:
14
scripts/ubuntu/initramfs-tools
Normal file
14
scripts/ubuntu/initramfs-tools
Normal 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
|
||||
13
scripts/ubuntu/ps5-wifi-fw
Normal file
13
scripts/ubuntu/ps5-wifi-fw
Normal file
@@ -0,0 +1,13 @@
|
||||
if [ "${PS5_FW_INSTALL_DONE:-}" != y ]; then
|
||||
FW_PATH="usr/lib/firmware/nxp/pcieuartiw620_combo_v1.bin"
|
||||
FW_SRC="/${FW_PATH}"
|
||||
FW_DST="${rootmnt}/${FW_PATH}"
|
||||
if [ -n "$rootmnt" ] && [ -f "$FW_SRC" ]; then
|
||||
mkdir -p "${FW_DST%/*}"
|
||||
cp "$FW_SRC" "$FW_DST"
|
||||
chmod 0644 "$FW_DST"
|
||||
PS5_FW_INSTALL_DONE=y
|
||||
export PS5_FW_INSTALL_DONE
|
||||
[ -e /dev/kmsg ] && printf 'ps5-fw-install: installed %s\n' "$FW_DST" > /dev/kmsg || true
|
||||
fi
|
||||
fi
|
||||
Reference in New Issue
Block a user