我正在为OSXHighSiera10.13.3构建和运行一个xnu-4570.41.2内核。我正在根据森的博客和这是最近的教程等指南在本地编译它。一旦编译了内核,我就把它加载到HighSiera10.13.3 VirtualBox VM中,替换内核,这样它就可以从我的内核启动。
尽管VM正在引导和运行我的内核(从我替换内核之前和之后的uname -a输出以及添加到引导进程中的print语句的差异中可以看出),但在内核扩展预链接过程中,我看到了以下错误。它们在引导过程中出现,每当我按照指南的指示替换VM的内核后运行sudo kextcache -invalidate /。
kxld[com.apple.iokit.IOStorageFamily]: In interface com.apple.kpi.mach of __kernel__, couldn't find symbol _mach_bridge_register_regwrite_timestamp_callback
kxld[com.apple.iokit.IOStorageFamily]: In interface com.apple.kpi.private of __kernel__, couldn't find symbol _kern_buflet_get_data_length
kxld[com.apple.iokit.IOStorageFamily]: In interface com.apple.kpi.private of __kernel__, couldn't find symbol _kern_buflet_get_data_limit
kxld[com.apple.iokit.IOStorageFamily]: In interface com.apple.kpi.private of __kernel__, couldn't find symbol _kern_buflet_get_data_offset
...
kxld[com.apple.nke.applicationfirewall]: In interface com.apple.kpi.private of __kernel__, couldn't find symbol _xcpm_mbox_lock
kxld[com.apple.nke.applicationfirewall]: In interface com.apple.kpi.private of __kernel__, couldn't find symbol _xcpm_mbox_unlock
kxld[com.apple.nke.applicationfirewall]: In interface com.apple.kpi.bsd of __kernel__, couldn't find symbol _bpf_tap_packet_in
kxld[com.apple.nke.applicationfirewall]: In interface com.apple.kpi.bsd of __kernel__, couldn't find symbol _bpf_tap_packet_out这些只是18,000个这样的错误中的一个样本。虽然这些错误并不妨碍构建工作的PrelinkedKernel,但是在内核编译或安装中显然缺少了一些步骤。为什么会发生这些错误?有人知道我怎么解决这些问题吗?
https://stackoverflow.com/questions/51600345
复制相似问题