Apple's open-source XNU kernel on Android phones: its own loader and drivers, Metal on the Adreno. Runs from RAM; a reboot gives the phone back to Android.
C
mpss, soc-args: the IPA firmware file name (soc_ipa_fw) from the device tree -- qcom,firmware-name of qcom,ipa_fws is 'yupik_ipa_fws' on the SM7325 and differs by SoC, so it is no longer hardcoded in the firmware path; the modem's own 'modem.mdt' is the same on every Qualcomm phone and stays; prebuilt kernel
shimoku7431aa58c6e93c
diff --git a/devices/poco-x5-pro/soc.args b/devices/poco-x5-pro/soc.argsindex cd54004..f914842 100644--- a/devices/poco-x5-pro/soc.args+++ b/devices/poco-x5-pro/soc.args@@ -12,3 +12,4 @@ soc_ipa_stream=0x480soc_ipa_stream_uc=0x482soc_pas_mpss=0x4soc_pas_ipa=0xf+soc_ipa_fw=yupik_ipa_fwsdiff --git a/prebuilt/SHA256SUMS b/prebuilt/SHA256SUMSindex 2cf3c5f..21c803e 100644--- a/prebuilt/SHA256SUMS+++ b/prebuilt/SHA256SUMS@@ -1,6 +1,6 @@-Built 2026-10-25 22:25 from this tree.+Built 2026-10-25 22:53 from this tree.-5e702cebb1a7f038ef22e07000cf673dec0ead5a0b42d82b7d397d47b2b537ca prebuilt/mach.development.bcm2837+03e794e8e1d389a6abb9bcd2431eaccf9747271ff8c1234922225718c70441e9 prebuilt/mach.development.bcm28373de0d8b2095989a9a8f9f9679b8bec01d80bad38eee535d934d29b7b76fee984 prebuilt/loader.efi932c856c04e87611b16c872da37c461d572c6258da0202ecd875d91c29886e03 prebuilt/userland/HakiosAudio45bffe2da6b2484836bd29074b39bd5cc67b4cdaa253c2aa39561ce5188d6ddc prebuilt/userland/childdiff --git a/prebuilt/mach.development.bcm2837 b/prebuilt/mach.development.bcm2837index 8e047b5..24720fc 100755Binary files a/prebuilt/mach.development.bcm2837 and b/prebuilt/mach.development.bcm2837 differdiff --git a/tools/soc-args.py b/tools/soc-args.pyindex d47b0a7..aaea0a2 100755--- a/tools/soc-args.py+++ b/tools/soc-args.py@@ -126,8 +126,15 @@ def main():pas_id('qcom,mss', 'soc_pas_mpss')pas_id('qcom,ipa_fws', 'soc_pas_ipa')+ _, ipa_fws = find_named(nodes, 'qcom,ipa_fws')+ ipa_fw_name = None+ if ipa_fws and 'qcom,firmware-name' in ipa_fws:+ ipa_fw_name = ipa_fws['qcom,firmware-name'].split(b'\0')[0].decode()+for name, value in args:print(f'{name}={value:#x}')+ if ipa_fw_name:+ print(f'soc_ipa_fw={ipa_fw_name}')if not args:sys.exit('soc-args.py: found none of the expected nodes; is this the phone\'s own device tree?')diff --git a/xnu/files/bsd/dev/hakios.mpss.c b/xnu/files/bsd/dev/hakios.mpss.cindex 00a4046..15c8115 100644--- a/xnu/files/bsd/dev/hakios.mpss.c+++ b/xnu/files/bsd/dev/hakios.mpss.c@@ -2207,10 +2207,19 @@ ipa_firmware_load(void)if (!option("modem_ipa_smmu_off")) {ipa_space_on();}- header = root_file("image/yupik_ipa_fws.mdt", &header_size);- if (header == NULL) {- printf("mpss: %u: no fw/image/yupik_ipa_fws.mdt: the IPA's firmware is not loaded\n", step);- return false;+ {+ /* the IPA's firmware file is SoC-specific (dt: qcom,firmware-name of qcom,ipa_fws; "yupik_ipa_fws"+ * on the first phone, something else on another SoC); soc_ipa_fw= overrides the name */+ char fw[80], path[96];++ strlcpy(fw, "yupik_ipa_fws", sizeof(fw));+ PE_parse_boot_argn("soc_ipa_fw", fw, sizeof(fw));+ snprintf(path, sizeof(path), "image/%s.mdt", fw);+ header = root_file(path, &header_size);+ if (header == NULL) {+ printf("mpss: %u: no fw/%s: the IPA's firmware is not loaded\n", step, path);+ return false;+ }}count = header_size >= 52 ? header[44] | header[45] << 8 : 0;if (memcmp(header, "\177ELF\1", 5) != 0 || count == 0 || count > 8 || 52 + 32 * count > header_size) {