change boot-file doesn't work
change boot-file doesn't work
- Subject: change boot-file doesn't work
- From: Gong Michael <email@hidden>
- Date: Sun, 14 Nov 2004 09:54:52 -0500 (EST)
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden