GithubHelp home page GithubHelp logo

darm64 / xnu Goto Github PK

View Code? Open in Web Editor NEW
79.0 17.0 12.0 41.63 MB

Research into porting the XNU kernel to ARM devices.

Home Page: https://discord.gg/bYzusvB

License: Other

C++ 8.41% Objective-C 4.86% C 78.59% Makefile 0.52% Lex 0.01% Yacc 0.08% Shell 0.17% Awk 0.01% Assembly 1.40% Python 2.21% Roff 2.30% Perl 0.05% HTML 1.16% DTrace 0.12% Swift 0.08% Lua 0.04% D 0.01% SmPL 0.01%
kernel xnu kernel-configuration mach-kernel architecture kext raspberry-pi raspberry-pi-3 arm64 aarch64

xnu's People

Contributors

adalric avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xnu's Issues

Platform missing

I'm not completely sure but I think we need some kexts.

After

Reading startup extensions.
Loading Kernel External Components.
Reading built-in kernel personalities for I/O Kit drivers.
Sending all eligible registered kexts' personalities to the IOCatalogue but not starting matching.
0 kext personality sent to the IOCatalogue; matching not started.

Kernel panics with

panic(cpu 0 caller 0xfffffff00785dd0c): "Unable to find driver for this platform: \"~~~~~~~~~~~~~~~~~~~~~~~~\".\n"
Nested panic detected:Kernel data abort. (saved state: 0xffffffe01b50aee0)
	  x0: 0xfffffff00700e852  x1:  0x0000000000000000  x2:  0x000000000000000d  x3:  0x0000000000000000
	  x4: 0x0000000000000001  x5:  0x0000000000000001  x6:  0x0000000000000000  x7:  0xffffffe01b4ebb64
	  x8: 0x0000000000000000  x9:  0xffffffe00020e080  x10: 0xffffffe00020e080  x11: 0x0000000000000000
	  x12: 0x0000000000000010 x13: 0x0000000000000066  x14: 0xffffffe002000000  x15: 0xfffffff007128e30
	  x16: 0xdeb8f177deb8f177 x17: 0xdeb8f177deb8f177  x18: 0xfffffff0072ed000  x19: 0xdeb8f177deb8f177
	  x20: 0x0000000000000000 x21: 0xffffffe01b50b4b0  x22: 0xfffffff0072ed534  x23: 0x00000000600003c4
	  x24: 0x0000000000000000 x25: 0x0000000000000000  x26: 0xdeb8f177deb8f177  x27: 0xdeb8f177deb8f177
	  x28: 0xdeb8f177deb8f177 fp:  0xffffffe01b50b250  lr:  0xfffffff007117db0  sp:  0xffffffe01b50b230
	  pc:  0xfffffff0072fbccc cpsr: 0x600003c4         esr: 0x96000005          far: 0x0000000000000014

The call trace is the following.

screen shot 2018-08-18 at 5 32 19 pm

Do you guys think this is the kernel asking us for the basic kexts or is it something else?

RPI 4 compatibility

I'm very interested in this project and I was wondering if this could run on the BCM2711, Raspberry Pi 4

Pull requests/Todo list?

Great project :)
I really like the idea of it, and it honestly feels like darwin-on-arm is sorta coming back.
I was wondering if you had a todo list of things that should be implemented (such as filling in functions that were "stubbed" out) and perhaps building a toolchain to compile on *nix.

Also: you accepting pull reqs? :P

libfirehose: Undefined symbols for architecture arm64

On linking I get this

ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/local/lib/kernel/libfirehose_kernel.a, file was built for archive which is not the architecture being linked (arm64): /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/local/lib/kernel/libfirehose_kernel.a
undef: ___firehose_buffer_tracepoint_flush
undef: ___firehose_buffer_create
undef: ___firehose_buffer_tracepoint_reserve
undef: ___firehose_merge_updates
Undefined symbols for architecture arm64:
  "___firehose_buffer_tracepoint_flush", referenced from:
      __firehose_trace in lto.o
  "___firehose_buffer_create", referenced from:
      _oslog_init in lto.o
  "___firehose_buffer_tracepoint_reserve", referenced from:
      __firehose_trace in lto.o
  "___firehose_merge_updates", referenced from:
      _oslogioctl in lto.o
ld: symbol(s) not found for architecture arm64
make: *** [all] Error 2

Help needed with Qemu

Currently we are able to build a mach0 binary, the boot process starts but panics everywhere... If you have experience with lldb please PM @abradleyuno on twitter.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.