oosexgang/hakios-xnu-kernel
Acerca de
El kernel XNU de código abierto de Apple en teléfonos Android: su propio cargador y controladores, y Metal en Adreno.
Otros proyectosCrecimiento de estrellas medido
- in 24h
- +7
- in 7 days
- +90
- in 15 days
- +145
- in 1 month
- +531
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
README.md
OriginalHakiOS kernel
Apple's XNU kernel (xnu-12377.121.6, the kernel of Darwin 26 and 27) with what it takes to start Darwin on
Qualcomm phones and in QEMU: our loader, our drivers, and stand-ins for Apple's closed parts.
Nothing of Apple's is in this repository: no firmware, no IPSW, no system images, no screenshots. They are made on your machine from files you have.
Where things are
| Directory | What |
|---|---|
arch/arm64/ |
The machine: boot/ (the loader and the UEFI port), boot/dts/ (the boards), kernel/, include/, configs/ (defconfigs), tools/ |
drivers/ |
The drivers (board/) and the IOKit stand-ins (iokit/) |
include/ |
The headers the drivers share with user space |
fs/ |
Our APFS, read and written, and the file system in memory |
crypto/, security/ |
The kernel's cryptography provider; the AMFI stand-in |
init/, lib/ |
The first programs Darwin runs, and their small C library |
components/ |
What makes a part of Darwin work: Metal, Apple ID, the keystore, camera, sound, brightness, wallpaper, status bar, tweaks |
kernel/ |
Apple's release, the patches to it, and the tools that assemble, check and build the kernel |
darwin/ |
Darwin 26/27 user space: the image and library builders |
tools/, workbench/ |
The tools; the tests that need no phone |
scripts/ |
What you run by hand: set a machine up (setup-ubuntu.sh), release the sources (release.sh) |
samples/ |
Starting points to copy: a phone's own repository, a defconfig of your own |
MAINTAINERS |
Each part of the project: its files, its tests, its documents (scripts/tests-for.py FILE says what to run) |
Documentation/ |
Everything else (layout.md has the whole map) |
Where it is
Said plainly, each with where it is recorded; "seen on a phone", "runs in QEMU" and "passes the host tests" are three different statements.
| What | State |
|---|---|
| Darwin 27.2 (24B119, the iPhone12,1's files) | The home screen on a Snapdragon 780G phone, from RAM, drawn in software (gpu=0); in QEMU the lock screen. darwin26-boot.md |
| Darwin 26.6.2 (23G90) | The home screen on the same phone, first on 31 October 2026. Same document. |
| Each driver | What it has been seen to do, and how tied it is to one phone: drivers.md; what a phone can turn on next: tools/boards.py status NAME. |
| New, not yet seen on a phone | Bluetooth for Darwin (bt=2: the controller's firmware, bluetoothd's service, channel and control), the kernel's own UFS driver in phone_perf, one image for a phone (images.md). Held by the host tests and, where it can be, by QEMU. |
| Not there | What Darwin draws with the GPU -- applications' icons, Liquid Glass -- while the GPU is off (metal-glass.md). |
A day with a phone, the runs in order and what each must say: Documentation/phone-test.ru.md.
How do I build it
- The kernel:
kernel/build.sh(ormake kernel-check, with LLVM's tools). It makes the tree beside the repository and buildsBUILD/obj/mach.development.bcm2837in it.build.config.arm64says what kind of kernel. - The loader:
arch/arm64/boot/build.sh. - Darwin's images:
darwin/userland/root26-darwin.shafterdarwin/userland/inj26.sh(build.config.darwin27).
What each needs: Documentation/building.md.
How do I run it
- In QEMU:
make qemu(the kernel booted as a phone boots it, its shell and its tests), ortools/qemu-kernel.sh [--defconfig NAME] KERNEL. - On a phone:
./bench enter,./bench ramdisk IMAGE, thenBENCH_DEFCONFIG=NAME ./bench run, NAME goingphone_first,phone_look,phone_metal,phone_ufs_check,phone_perfon a phone's first day.tools/defconfig.py --listnames the defconfigs.
The Redwood device package and its U-Boot/Mu-Silicium port are kept in the separate poco-x5-pro-device and
poco-x5-pro-uefi repositories beside this checkout; the kernel stays device-generic.
A new phone: Documentation/porting.md. A phone kept in a repository of its own
(its board.dts at the top) is built with make phone FROM=URL.
How do I submit changes
- BEST: change the file where it is kept (
drivers/board/thermal.c, not a copy in an assembled tree), or work in the tree and take it back withkernel/export.sh. - LESS GOOD: a patch made elsewhere: apply it to an assembled tree, then
kernel/export.sh(kernel/import-patch.shdoes both).
Requirements:
make checkpasses, and so dokernel/verify.shandkernel/syntax-check.shfor a change to the kernel.- One topic a commit. The subject starts with what it touches (
drivers/board/thermal:,Metal:,arch/arm64/boot:), and the body says why. - A driver starts only on the boards whose file lists its feature, and does nothing without its boot argument.
- Nothing of Apple's, of a phone maker's or of a vendor's is committed:
tools/check-publishable.shlooks.
More: CONTRIBUTING.md.
Licence
Our work is MIT (LICENSES/preferred/MIT); what extends Apple's kernel and what came from HakiOS is APSL 2.0
(LICENSES/other/APSL-2.0). NOTICE.md has the list.
Explorar proyectos relacionados
Cargando…