site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Hi, all, I successfully built the latest kernel, xnu-517.9.4. Before actually using it , I need to test whether it works or not.
From some previous threads, I learn that I can change boot-file variable to boot the Mac with my built kernel, but it seems not works.
Here is what I did:
sudo cp <path_to_my_built_kernel>/mach_kernel /mach_kernel.gcc sudo nvram boot-device boot-device hd:,\\:tbxi
sudo nvram boot-file='hd:, mach_kernel.gcc' sudo reboot #the system doesn't come up. reboot the machine, press crt-option-o-f keys, set-defaults /* this reset the boot-file varabile back to its default, which is mach_kernel */ reboot the machine, the system comes up. sudo cp /mach_kernel /mach_kernel_good /* save the currently working kernel */ sudo cp /mach_kernel.gcc /mach_kernel /* rename my built kernel with the default name: mach_kernel */ sudo reboot #the system comes up, so it proves that my built kernel is working.
As a conclusion, it looks like only by changing the boot-file variable name can't boot the system with a kernel having a different name other than mach_kernel. I am wondering has anyone successfully booted a system with a kernel, whose name is not mach_kernel ? If so, could you please provide some insights ? Thanks a lot. Michael ______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Gong Michael