GithubHelp home page GithubHelp logo

Platform missing about xnu HOT 5 CLOSED

darm64 avatar darm64 commented on June 25, 2024
Platform missing

from xnu.

Comments (5)

zhuowei avatar zhuowei commented on June 25, 2024

@aBradleyUno If you're wondering why the platform name is a bunch of tildes ("~~~~~"):

modifydevicetree.py probably erased the top level compatible node in the device tree. In that script, I only whitelisted the top level platform kext for the iPhone X, which has compatible: b'D22AP\x00iPhone10,3\x00AppleARM\x00'.

This compatible property loads the AppleARMPlatform kext, so even if you fix the modifydevicetree to whitelist that property for your device tree, you'll still get this error since there's no kext - but at least you'll get a better platform name in the error.

from xnu.

adalric avatar adalric commented on June 25, 2024

@zhuowei Ok so I got the platform message in the panic, and while trying to build a kextcache I got this


Unsupported.kext doesn't support architecture 'arm64'; skipping.
Private.kext doesn't support architecture 'arm64'; skipping.
Mach.kext doesn't support architecture 'arm64'; skipping.
MACFramework.kext doesn't support architecture 'arm64'; skipping.
Libkern.kext doesn't support architecture 'arm64'; skipping.
Kasan.kext doesn't support architecture 'arm64'; skipping.
IOKit.kext doesn't support architecture 'arm64'; skipping.
BSDKernel.kext doesn't support architecture 'arm64'; skipping.
Adding /Volumes/Darm64/System/Library/Extensions/System.kext/PlugIns/IOSystemManagement.kext to prelinked kernel.
Adding /Volumes/Darm64/System/Library/Extensions/System.kext/PlugIns/IONVRAMFamily.kext to prelinked kernel.
Adding /Volumes/Darm64/System/Library/Extensions/System.kext/PlugIns/ApplePlatformFamily.kext to prelinked kernel.
Adding /Volumes/Darm64/System/Library/Extensions/System.kext/PlugIns/AppleNMI.kext to prelinked kernel.
Adding /Volumes/Darm64/System/Library/Extensions/System.kext to prelinked kernel.

command file /Volumes/Darm64/System/Library/Extensions/System.kext/PlugIns/Unsupported.kext/Unsupported reveals something weird

/Volumes/Darm64/System/Library/Extensions/System.kext/PlugIns/Unsupported.kext/Unsupported: Mach-O 64-bit kext bundle ppc64

from xnu.

zhuowei avatar zhuowei commented on June 25, 2024

What command did you run to generate the kernelcache?

from xnu.

adalric avatar adalric commented on June 25, 2024

sudo kextcache -z -a arm64 -c /Volumes/Darm64/kernelcache.debug -K BUILD/obj/mach.debug /Volumes/Darm64/System/Library/Extensions -v 6

from xnu.

adalric avatar adalric commented on June 25, 2024

@zhuowei so, my bad, wrong cpu type there. Now Assertion failed: (nNonSplitKexts), function __OSKextGetPLKSegSizes, file /BuildRoot/Library/Caches/com.apple.xbs/Sources/IOKitUser/IOKitUser-1483.201.1/kext.subproj/OSKext.c, line 16718. zsh: abort sudo kextcache -z -a arm64 -c /Volumes/Darm64/kernelcache.debug -K -v 6

from xnu.

Related Issues (6)

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.