blacktop / darwin-xnu-build Goto Github PK
View Code? Open in Web Editor NEWXNU kernel, Kernel Collection and CodeQL build scripts
License: MIT License
XNU kernel, Kernel Collection and CodeQL build scripts
License: MIT License
The build was successful with the build.sh script, but when booting with the corresponding kc file, it goes into an infinite boot state.
My Mac OS environment is as follows
MacBook pro (m1pro)
macOS version: 13.2
Xcode version: 14.3
Building macOS version: 13.2
build command :
KERNEL_CONFIG=RELEASE ARCH_CONFIG=ARM64 MACHINE_CONFIG=T6000 ./build.sh --kc (withdout CodeQL DB)
I disabled SIP ("csrutil disable") and also ran "bputil -a" to allow custom boot-args to be sent to the kernel.
Also, I added boot-arg like this
sudo nvram boot-args="-unsafe_kernel_text "
(I also tried "wlan.skywalk.enable=0 dk=0", but it failed).
If you run it on a different version (14.2), the kc build will give an error that the symbol cannot be found in "com.apple.driver.AppleH11ANEInterface". I only succeeded with kc build on version 13.2. However, as mentioned before, it goes into an infinite boot state.
Can I get a workaround for this problem?
Thanks.
Hi,
First of all, thanks for the script! I'm getting an error below and don't know what is causing it. I'm using Apple Silicon Mac but I guess that's not an issue here.
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: /Users/mortar/Desktop/goodies/darwin-xnu-build/build/dtrace.obj/dtrace.build/Release/libelf.build/Objects-normal/arm64/clscook.o is not an object file (not allowed in a library)
Libtool /Users/mortar/Desktop/goodies/darwin-xnu-build/build/dtrace.obj/UninstalledProducts/macosx/libelf.a normal (in target 'libelf' from project 'dtrace')
Am I mssing something? I just run ./build.sh
,that's all.
Thanks in advance
Hey there!
Awesome work on your library, I was hoping to play around with a custom kernel in a UTM VM for 13.5 (first attempt) and then 13.2 (second attempt) and ran into some trouble. I know 13.5 isn't officially supported, but is the general workflow:
KERNEL_CONFIG=RELEASE ARCH_CONFIG=ARM64 MACHINE_CONFIG=VMAPPLE ./build.sh --kc
and then in Recovery Mode
bputil -a
csrutil disable
kmutil configure-boot -c /path/to/darwin-xnu-build/fakeroot/oss-xnu.macOS.13.x.release.vmapple.kc.release
It seems to build okay I just can't get the kernel to boot. Do you have any thoughts on it? Thanks!
Clang 16 now has a check that array element type size must be a multiple of array element type alignment. This is problematic when building XNU with Clang 16. For example:
On clang 15 this compiles: https://godbolt.org/z/vTfh1jdzY
On clang 16 this doesn't compile: https://godbolt.org/z/8eMdznce1
was curious if maybe you know something that works with osx12? The guides on osx11 already don't apply which is so sadge and annoying... ':(
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.