Re: choosing kernel on intel?
Re: choosing kernel on intel?
- Subject: Re: choosing kernel on intel?
- From: Shantonu Sen <email@hidden>
- Date: Mon, 3 Nov 2008 14:17:21 -0800
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"
2) Use the "boot-args" NVRAM variable, with:
$ sudo nvram boot-args="debug=0x144 -v Kernel=mach_kernel.test"
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
3) Use an EFI boot option with bless, with:
$ sudo bless --mount / --setBoot --options "Kernel=mach_kernel.test"
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.
Shantonu Sen
email@hidden
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden