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

build.sh: firmware pulled from the phone (fw-gpu/) goes into the small image as fw/

vcvkk17c9ffddcfee
diff --git a/userland/build.sh b/userland/build.sh
index 6b89733..d01795d 100755
--- a/userland/build.sh
+++ b/userland/build.sh
@@ -116,6 +116,12 @@ if [ -d $IOS/rootfs/usr/lib ]; then
cp com.redwood.demo.plist root/LaunchDaemons/
[ -n "$IOS_JOBS" ] && OSLOG=${OSLOG-com.apple.backboardd} ./mkjobs.py ${REST:+--rest} $IOS/rootfs root/LaunchDaemons $IOS_JOBS
fi
+# firmware of the phone's own hardware, where somebody has pulled it from the phone's Android into ../fw-gpu
+# (it is the vendor's and never in the repository): the kernel's GPU bring-up, bsd/dev/redwood_adreno.c, finds it in fw/
+if [ -d ../fw-gpu ]; then
+ mkdir -p root/fw
+ cp ../fw-gpu/* root/fw/
+fi
../mkpackfs.py -o root.packfs root
# --- the system image -----------------------------------------------------------------------------