Skip to content

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

Wi-Fi: the phone's board data and regulatory database go into the small image

vcvkkc0ba05adc518
diff --git a/userland/build.sh b/userland/build.sh
index a47c556..288b982 100755
--- a/userland/build.sh
+++ b/userland/build.sh
@@ -166,10 +166,14 @@ if [ -d ../fw-gpu ]; then
cp ../fw-gpu/* root/fw/
fi
# ... and the image of the Wi-Fi DSP, from /vendor/firmware_mnt/image of the same Android into ../fw-wifi
-# (bsd/dev/redwood_wifi.c; 7.6 MB)
+# (bsd/dev/redwood_wifi.c; 7.6 MB), with what the radio's firmware is sent once it runs: this phone's
+# board data and the regulatory database (image/qca6750 there; 60 and 24 KB)
if [ -f ../fw-wifi/wpss.mdt ]; then
mkdir -p root/fw
install -m 0644 ../fw-wifi/wpss.mdt ../fw-wifi/wpss.b0[2-9] root/fw/
+ for f in bd_m20gl.elf regdb_xiaomi.bin; do
+ [ -f ../fw-wifi/qca6750/$f ] && install -m 0644 ../fw-wifi/qca6750/$f root/fw/
+ done
fi
../mkpackfs.py -o root.packfs root