Jump to content

**** SOLVED ***Easiest way to change a boot kernel, pls help a noob


DMP
 Share

6 posts in this topic

Recommended Posts

Hi all,

 

Massive thanks to headrush69 :D for your expertise, entered vanillakernel into .boot.plist and it is working well.

 

 

 

Thanks again

 

 

Dmp

 

 

 

 

 

Hi,

 

I am running kalyway 10.5.2 everything is going well, except for usb, Any usb device that is not inserted when pc powers up will not mount. After reading other threads i have sourced a solution but need help doing it. When i installed Kalyway i selected the sleep kernel, this kernel does not allow the usb devices to mount, when i manually selected the vanilla kernel to execute at startup, USB works fine.

 

My question, what is the easiest way to make the vanilla kernel the default option rather than the sleep kernel, without reinstalling ?

 

 

Thanks

 

DMP

 

;)

Link to comment
Share on other sites

In terminal:

 

sudo mv /mach_kernel /mach_kernel_sleep
sudo mv your_vanilla_kernel /mach_kernel
chown root:wheel /mach_kernel
chmod 644 /mach_kernel

 

Of course change your_vanilla_kernel to the full path and name of your vanilla kernel.

 

Or edit /Library/Preferences/SystemConfiguration/com.apple.Boot,plist and add the name of your vanilla kernel under kernel options:

 

	<key>Kernel Flags</key>
<string>mach_kernel_vanilla</string>

 

Make sure the vanilla kernel is in root directory / and name matches what yours is named.

Link to comment
Share on other sites

Headrush,

 

Thanks for the fast reply, i attempted your second option, but no dice, i may have cocked it up! Is there anyway of finding where the vanilla kernel is located? I understand that it needs to be in the root to enable it to run, i just don't know ... A where to find it and B... where to put it.

 

 

Thanks

 

DMP

 

 

In terminal:

 

sudo mv /mach_kernel /mach_kernel_sleep
sudo mv your_vanilla_kernel /mach_kernel
chown root:wheel /mach_kernel
chmod 644 /mach_kernel

 

Of course change your_vanilla_kernel to the full path and name of your vanilla kernel.

 

Or edit /Library/Preferences/SystemConfiguration/com.apple.Boot,plist and add the name of your vanilla kernel under kernel options:

 

	<key>Kernel Flags</key>
 <string>mach_kernel_vanilla</string>

 

Make sure the vanilla kernel is in root directory / and name matches what yours is named.

Link to comment
Share on other sites

Thanks for the fast reply, i attempted your second option, but no dice, i may have cocked it up! Is there anyway of finding where the vanilla kernel is located?

If you don't know the file name of the vanilla kernel you couldn't do it. (The filename was just an example)

 

I understand that it needs to be in the root to enable it to run, i just don't know ... A where to find it and B... where to put it.

What is the output of

 

ls -l /

in Terminal.app?

 

If you don't have the vanilla kernel installed, you can extract it from the Kalyway 10.5.2 DVD using:

 

sudo cp /Volumes/Kalyway\ 10.5.2\ DVD\ Intel_Amd/mach_kernel_vanilla
chown root:wheel /mach_kernel_vanilla
chmod 644 /mach_kernel_vanilla

 

Test this kernel and then you can make it default by doing steps above.

 

Just curious, if you don't know where vanilla kernel is, how do you USB works with it if you can't boot it? Previous install?

Link to comment
Share on other sites

Hi Headrush,

 

here is the output of ls -l /

 

drwxrwxr-x+ 38 root admin 1292 5 Jul 22:39 Applications

drwxrwxr-t+ 51 root admin 1734 5 Jul 22:46 Library

drwxr-xr-x@ 2 root wheel 68 29 Jan 13:22 Network

drwxr-xr-x 4 root wheel 136 6 Jul 2008 System

drwxr-xr-x 5 root admin 170 6 Jul 2008 Users

drwxrwxrwt@ 3 root admin 102 5 Jul 23:41 Volumes

drwxr-xr-x 3 root wheel 102 5 Jul 13:14 backup

drwxr-xr-x@ 40 root wheel 1360 6 Jul 2008 bin

drwxrwxr-t@ 2 root admin 68 29 Jan 13:22 cores

dr-xr-xr-x 2 root wheel 512 5 Jul 23:40 dev

lrwxr-xr-x@ 1 root admin 11 6 Jul 2008 etc -> private/etc

dr-xr-xr-x 2 root wheel 1 5 Jul 23:41 home

-rw-r--r-- 1 root wheel 5021876 24 Mar 04:25 kabylkernel

-rwxr-xr-x 1 root wheel 5039804 2 Mar 23:02 mach_kernel

-rwxr-xr-x 1 root wheel 5039804 5 Jul 21:57 mach_kernel.backup

-rw-r--r--@ 1 root wheel 10725958 6 Feb 18:11 mach_kernel.ctfsys

-rw-r--r-- 1 root wheel 5021876 5 Mar 16:25 modbinkernel

-rwxrwxr-x@ 1 root admin 2401 24 Feb 16:17 movevideodrivers

dr-xr-xr-x 2 root wheel 1 5 Jul 23:41 net

-rw-r--r-- 1 root wheel 5017744 14 Feb 00:00 nforcekernel

drwxr-xr-x@ 6 root wheel 204 6 Jul 2008 private

drwxr-xr-x@ 66 root wheel 2244 6 Jul 2008 sbin

-rw-r--r-- 1 root wheel 5039804 2 Mar 23:02 sleepkernel

-rw-r--r-- 1 root wheel 5040024 27 Feb 04:26 speedstepkernel

lrwxr-xr-x@ 1 root admin 11 6 Jul 2008 tmp -> private/tmp

drwxr-xr-x@ 12 root wheel 408 6 Jul 2008 usr

-rw-r--r-- 1 root wheel 10276952 5 Mar 16:25 vanillakernel

lrwxr-xr-x@ 1 root admin 11 6 Jul 2008 var -> private/var

 

 

In relation to knowing why / how vanilla kernel works..... when i boot, efi loader pops up and if i press f8 i can boot one of five kernels, i.e sleep, sidestep, vanilla etc. When i select 'vanillakernel' i am able to use usb devices without a problem.

 

thanks

 

dmp

 

 

 

 

If you don't know the file name of the vanilla kernel you couldn't do it. (The filename was just an example)

 

 

What is the output of

 

ls -l /

in Terminal.app?

 

If you don't have the vanilla kernel installed, you can extract it from the Kalyway 10.5.2 DVD using:

 

sudo cp /Volumes/Kalyway\ 10.5.2\ DVD\ Intel_Amd/mach_kernel_vanilla
chown root:wheel /mach_kernel_vanilla
chmod 644 /mach_kernel_vanilla

 

Test this kernel and then you can make it default by doing steps above.

 

Just curious, if you don't know where vanilla kernel is, how do you USB works with it if you can't boot it? Previous install?

Link to comment
Share on other sites

In relation to knowing why / how vanilla kernel works..... when i boot, efi loader pops up and if i press f8 i can boot one of five kernels, i.e sleep, sidestep, vanilla etc. When i select 'vanillakernel' i am able to use usb devices without a problem.

So all you need to do is add vanillakernel to the Kernel Flags in com.apple.Boot.plist

Link to comment
Share on other sites

 Share

×
×
  • Create New...