site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Here's the direct link: http://opendarwin.org/~jpm/naughty/darwin/kswap.sh JP On 14 Nov 2004, at 06:54, Gong Michael wrote: 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/johnpell%40mac.com This email sent to johnpell@mac.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 probably know about this, but there is a script available from this site: http://opendarwin.org/~jpm/xnu.html called kswap.sh that may be useful. -- "NOTICE: This E-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution or copying of this communication is strictly prohibited, Please reply to the sender that you have received the message in error, then delete it. Thank you." This email sent to site_archiver@lists.apple.com