site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com 2) Use the "boot-args" NVRAM variable, with: $ sudo nvram boot-args="debug=0x144 -v Kernel=mach_kernel.test" 3) Use an EFI boot option with bless, with: $ sudo bless --mount / --setBoot --options "Kernel=mach_kernel.test" Shantonu Sen ssen@apple.com Sent from my Mac Pro On Nov 3, 2008, at 1:50 PM, Andrew Gallatin wrote: If I build a custom kernel on Intel, how do I choose to boot into it at boot time? Is the only option to copy it to /mach_kernel, and boot from CD (or another partition) and move things around if it doesn't boot? The last time I built a custom kernel was back before intel, in the ppc days. I have vague memories of being able to load different kernels from OpenFirmware. But there is no shell interface like that for EFI. Drew _______________________________________________ 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/ssen%40apple.com _______________________________________________ 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... You can get an EFI shell from a few places, for instance rEFIt (<http://refit.sourceforge.net
) or tianocore.org. I wouldn't recommend it, but if you go this approach, you can do something like:
fs2:/> \System\Library\CoreServices\boot.efi Kernel=mach_kernel.test If you don't use the EFI shell, there are several options, in increasing order of "ease of use": 1) Edit /Library/Preferences/SystemConfiguration/com.apple.Boot.plist and add an entry for: <key>Kernel</key> <string>mach_kernel.test</string> If you want to revert to the original kernel, you would need to edit that file to either remove the entry entirely, or point back at "mach_kernel" If you want to revert to the original kernel, you can zap NVRAM by holding command-option-P-R at boot. This will reset everything, including your boot-args and boot volume preference This ties the "Kernel=" setting to the boot option in EFI. If you want to temporarily boot back to the original kernel, hold down option at boot to go to the Boot Picker, and then proceed to select your boot volume (whatever was highlighted). Since you used the Boot Picker instead of the boot option set by bless, "Kernel=" is not used, and the original kernel is used. If you permanently want to revert to the original kernel, zap NVRAM with command-option-P-R. There are some even more elaborate methods, but those are probably the most common and useful options. This email sent to ssen@apple.com This email sent to site_archiver@lists.apple.com