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

The documented quick start was broken by tonight's merge, and prebuilt was two merges behind

vcvkkd20960c115d4
diff --git a/prebuilt/SHA256SUMS b/prebuilt/SHA256SUMS
index 264f652..49745cd 100644
--- a/prebuilt/SHA256SUMS
+++ b/prebuilt/SHA256SUMS
@@ -1,20 +1,23 @@
-Built 2026-10-18 23:32 from this tree.
+Built 2026-10-20 00:46 from this tree.
-657e680c326f215f201f3c7871491955431f68074822a8d96cdd98b381fcc722 prebuilt/mach.development.bcm2837
-b5e7f750a9cfd497817e8adb5d7bdb259556914e096ae340447c0ba5a5e66356 prebuilt/loader.efi
-d2a35a4a1d6658ffb3696914f727661b52c9333de8a3af8a31642b8023ce03ac prebuilt/userland/child
+d9fdf56c7055226dfe55bb723f3db9d54b4f6be21eac7f519296424fc66b92f7 prebuilt/mach.development.bcm2837
+ecc488194283d005ab4188c6dfc05c2dcd20817cc355059e6ebf5f1421781345 prebuilt/loader.efi
+cab0c58744bd9e4490ef4b9aabfe25758838a35279d1384d382e60e8653c91c3 prebuilt/userland/child
1a413befd511384052e1962c1394adce20f718e1f2657ce63ab09828ebc4bd1b prebuilt/userland/cpu_test
db564073effc31e7ab1679a7ffe0631ec22c3030ad347c927028f3e53c8583c3 prebuilt/userland/hello
a8baa9ab38333280369b0824aafaf92c7aa6a85851ff0b2551a4c711dbe59cfd prebuilt/userland/hello_dyn
-d055ddadd3f8efafb2c5294cbe4791beefa87dae619329440c5b98d5935cec9b prebuilt/userland/init
-e7bfd718aeef8340d3cf087973b2cf2f8c30022336478179a44287cf612ee410 prebuilt/userland/libredwood.dylib
+4725b9837964062f28a64adf4f101d60688d586d04e8827407022700c43e3318 prebuilt/userland/init
+5ebffd6d90a36ab8ecf4d9f48cf1b2f1dbd5b33661546d913d83147c9c86710d prebuilt/userland/libredwood-app.dylib
+6fd835aa39abed58ed79dfdc903303e00311b3ea80e3422bc0febf00a601748e prebuilt/userland/libredwood.dylib
7ce7cdabeae87985c687bb2b83130f317fa49ee18ca411484896b3540b71e059 prebuilt/userland/libredwood-media.dylib
-53d4e805ed793d074ceba270831903b48fc796cb128c196a0d8fccdba1599c1a prebuilt/userland/libredwood-sb.dylib
+120b8da2663d1e405a7117d1776363ff1faf090bf9b9f8fe262153de587bf26a prebuilt/userland/libredwood-sb.dylib
+1ad5f448b3790a42a246ec97d2db19ab79c08650eba7357f83b66e694f4427ef prebuilt/userland/libredwood-tweaks.dylib
07642c790f9a9d12274f11471a33e16cb5d81232052efa37c8069b64f16aa10a prebuilt/userland/mg_test
+a753963432c090491e4dced4229f0d2bda76c8938f0c8579c779987fffe3e5f3 prebuilt/userland/net_test
40a44d0c39a9d768b5acf39b78b36f68bf33aa998cacb429655d54dab6616eae prebuilt/userland/RedwoodAudio
-b78a177272b800752b36fd4f98660e1ce004cf16b695916916fe43b061446f40 prebuilt/userland/rwtouch
+2bcbda7590caa1c12cfdc165a99f4f2e427a8d4fa4f0b40fceea87ba8365e3bc prebuilt/userland/rwtouch
a7bd8279e8e0effd4094ab8369556a51899401d8e32a9fd3aefc451db445e0b6 prebuilt/userland/sound_test
-1078284cfcc73a19f5f97f9b8940c24e6d8438fdfdf06af6bf9e75c0de9efe58 prebuilt/userland/stage0
+02629167d9126f59d8f7ac86b30617e175a321819d3cf9fa7a89414656579a57 prebuilt/userland/stage0
143a06695cf54273b39a74a979c690715b7ba171dd408400084eac3ca78db3da prebuilt/userland/surf_test
879d6d554758905cdd17795e7049267bc516452cb6264c20ef11f680d25de5dd prebuilt/userland/svc_test
c25b95de00e4b2dffa5e1ede1810ff80e29b61f6cc39dc1ae2286620902acd20 prebuilt/uefi/BootShim.bin
diff --git a/prebuilt/loader.efi b/prebuilt/loader.efi
index e26336e..b103ea4 100755
Binary files a/prebuilt/loader.efi and b/prebuilt/loader.efi differ
diff --git a/prebuilt/mach.development.bcm2837 b/prebuilt/mach.development.bcm2837
index 79f9c3f..404a4e3 100755
Binary files a/prebuilt/mach.development.bcm2837 and b/prebuilt/mach.development.bcm2837 differ
diff --git a/prebuilt/userland/child b/prebuilt/userland/child
index dde667d..d9ccc16 100755
Binary files a/prebuilt/userland/child and b/prebuilt/userland/child differ
diff --git a/prebuilt/userland/init b/prebuilt/userland/init
index 183668d..3c9d4a1 100755
Binary files a/prebuilt/userland/init and b/prebuilt/userland/init differ
diff --git a/prebuilt/userland/libredwood-app.dylib b/prebuilt/userland/libredwood-app.dylib
new file mode 100755
index 0000000..9ff9225
Binary files /dev/null and b/prebuilt/userland/libredwood-app.dylib differ
diff --git a/prebuilt/userland/libredwood-sb.dylib b/prebuilt/userland/libredwood-sb.dylib
index f396a0a..6665cd9 100755
Binary files a/prebuilt/userland/libredwood-sb.dylib and b/prebuilt/userland/libredwood-sb.dylib differ
diff --git a/prebuilt/userland/libredwood-tweaks.dylib b/prebuilt/userland/libredwood-tweaks.dylib
new file mode 100755
index 0000000..b01a86e
Binary files /dev/null and b/prebuilt/userland/libredwood-tweaks.dylib differ
diff --git a/prebuilt/userland/libredwood.dylib b/prebuilt/userland/libredwood.dylib
index 8cdb363..cae1548 100755
Binary files a/prebuilt/userland/libredwood.dylib and b/prebuilt/userland/libredwood.dylib differ
diff --git a/prebuilt/userland/net_test b/prebuilt/userland/net_test
new file mode 100755
index 0000000..0a8d375
Binary files /dev/null and b/prebuilt/userland/net_test differ
diff --git a/prebuilt/userland/rwtouch b/prebuilt/userland/rwtouch
index 0283336..fa78a02 100755
Binary files a/prebuilt/userland/rwtouch and b/prebuilt/userland/rwtouch differ
diff --git a/prebuilt/userland/stage0 b/prebuilt/userland/stage0
index 61cb43c..71d46f6 100755
Binary files a/prebuilt/userland/stage0 and b/prebuilt/userland/stage0 differ
diff --git a/tools/update-prebuilt.sh b/tools/update-prebuilt.sh
index b5f0c48..8b78a42 100755
--- a/tools/update-prebuilt.sh
+++ b/tools/update-prebuilt.sh
@@ -4,14 +4,15 @@
# images and run the system (QEMU or the phone); see README.md.
set -e
cd "$(dirname "$(readlink -f "$0")")/.."
-K=xnu-src/xnu-8796.121.2/BUILD/obj/DEVELOPMENT_ARM64_BCM2837/mach.development.bcm2837
+# KERNEL=... to take the kernel from a tree built elsewhere (xnu/apply.sh makes one anywhere)
+K=${KERNEL:-xnu-src/xnu-8796.121.2/BUILD/obj/DEVELOPMENT_ARM64_BCM2837/mach.development.bcm2837}
MU=Mu-Silicium
mkdir -p prebuilt/userland prebuilt/uefi
cp $K prebuilt/mach.development.bcm2837
cp xnuloader/loader.efi prebuilt/loader.efi
cp userland/hello prebuilt/userland/
for f in init child stage0 hello_dyn svc_test surf_test rwtouch mg_test cpu_test sound_test libredwood.dylib libredwood-sb.dylib \
- libredwood-media.dylib RedwoodAudio; do
+ libredwood-media.dylib libredwood-app.dylib libredwood-tweaks.dylib RedwoodAudio net_test; do
cp userland/obj/$f prebuilt/userland/
done
if [ -f $MU/Build/redwoodPkg/RELEASE_CLANGPDB/FV/SILICIUM_UEFI.fd ]; then
diff --git a/userland/build.sh b/userland/build.sh
index d4e530f..c1d26a4 100755
--- a/userland/build.sh
+++ b/userland/build.sh
@@ -259,7 +259,10 @@ if [ -d $IOS/rootfs/usr/lib ]; then
# in /var/jb) as it is, since it lives on the prefix and is there at run time
case "$library" in
"") ;;
- /redwood/lib/*) [ -f "root/lib/${library#/redwood/lib/}" ] && echo "$library $names" ;;
+ # an "if" and not "&& echo": a last line whose library is absent would make the loop,
+ # and with it the pipeline and the whole build under set -e, fail -- which is what a tree
+ # with only prebuilt/userland in it does, since not every injection library is shipped there
+ /redwood/lib/*) if [ -f "root/lib/${library#/redwood/lib/}" ]; then echo "$library $names"; fi ;;
*) echo "$library $names" ;;
esac
done > root/etc/inject.conf