목요일, 3월 12, 2009

Darwin Boot Options

Source:
http://apple2pc.blogspot.com/2008/02/darwin-boot-options.html


Darwin Boot Options

when you boot your hackintosh you can press "F8" before you see the gray apple boot screen.



then you should see a menu with all the partitions you have, at this time you may choose between the partitions using up/down arrows (it defines what partition to load from).

another thing you can do at this boot prompt is to specify boot options.
note that the last line says: "boot:" this is your prompt, you may write one of the next options:

[Kernel Name]

[Kernel Flags]

[Boot Flags]
-s
-v
-f
-x

[Parameters]
cpus=
"Graphics Mode"=
rd=
config=
platform=
idlehalt=
legacy

[Info]
?memory
?video

[UnKnown flags]
debug=0x144


Kernel Name this boot option state what kernel to use in order to load the system, for instance you may use mach_kernel or any other kernel you downloaded and want to try (new EFI supporting kernel or new version of kernel), the kernel must be in folder "/"

Kernel Flags you can enter kernel flags that should be used during this boot time, kernel flags examples: debug=0x144 io=0xffffffff (not so sure what these guys do, but read more on kernel)

-s mean you would like to enter "Single User" mode which doesn't load GUI and doesn't mount partitions but gives you a prompt so you can make system maintenance and recovery procedures.

-v loads the system in Verbose mode which display allot of log lines during boot time and does not display the apple gray boot screen, it is good to use this option if things go wrong, or if you get an error screen and you want to know the reason.



-f tells the hackintosh to reload all kext (Kernel Extensions = drivers) and dump the cache, not rely on it (kext cache found in: /System/Library/Extensions.mkext, you can delete it manually and the system will recreate it)

the kext cache is built of the necessary kext that needs to be loaded and it will be created whenever it does not exist.
you can use a command line utility (from terminal) named: "mkextunpack" to extract the content and see what kext are cached for example the command:

mkextunpack -d /111 /System/Library/Extensions.mkext

will extract the content to a folder (that must exist before runing this command) /111
you can also use the command line utility "kextcache" to create or update kextcache.

-x this option boot the system into safe mode ignoring kext cache and loads only necessary kext

cpus= this parameter tells the hackintosh how many cpus to use, for instance if you have dual CPU or dual Core then you can state cpus=2, so the system will use both cpus, and if you get reboot without loading GUI or boot screen then you may use cpus=1 to allow use of one cpu and avoid reboot

"Graphics Mode"= this parameter tells the hackintosh to use stated graphics resolution and color depth, the pattern to use is: WidthxHeightxDepth@RefreshRate for instance a resolution of 640x480 with 32 bit color depth and 60 hertz frequancy refresh rate will look like this:

"Graphics Mode"="640x480x32@60"

rd= this parameter state what is the boot disk to use (instead of using the boot menu appearing before the prompt) you state the drive and partition in the pattern: diskXsY where X stands for the disk number (first disk (usually primary master in IDE) 0 second disk is 1 etc.) and Y stands for the partition on that disk starting with 1 as the first partition, so if you have one disk and one partition the parameter will look like this: rd=disk0s1

config= this parameter tells the system to load using different copy of the boot config file, the default copy used is kept in:

/Library/Preferences/SystemConfiguration/com.apple.Boot.plist

the content of this file state boot options such as:
timeout (how much time to wait for user selection in boot prompt)
kernel (what kernel to use)
kernel flags (what kernel flags to use in each and every boot)
quiet boot (weather to display boot menu or not)
boot graphics (if to boot with apple spinning circle)
etc.

platform= this parameter sets the platform to use at this boot time, you may use:
platform=ACPI (ACPI support)
platform=X86PC (non ACPI support)
platform=ACPI|86PC (try to support ACPI if fails do not support it)

idlehalt gets two values ether 1 or 0 stating true or false, if set to true then at idle time the cpu will halt causing power saving and cooling of CPU, if set to 0 then the cpu will allways run even in idle time.
idlehalt=0
idlehalt=1

-legacy causes the system to load in 32 bit mode while running on 64 bit systems

?memory this info screen display information about the memory on the machine

?video this info screen display information about the video card supported graphic modes

Enjoy
at 02:15
Labels: apple, boot options, darwin, hackintosh, leopard, mac
27 comments:

Fabrizio said...

Hi, my name is Fabrizio (Fab is enough)I'm writiting from italy. I've found this post via google and I wonder if you can help me. I've installed a kalyway dvd on a Acer notebook, Centrino 1.6, raw installation, whole disk. After some up and down the installation went fine and now is working. Tried on the same machine in Virtualbox, ubuntu&Xp, darwin won't boot cause PAE is not supported. Ok, triede WMware - same output. Even If I enable WMware for PAE. Do you know if it is possible to disable PAE at boot in darwin? Tnx for any help. You can find me at fabriziodotbuatgmaildotcom
Greetings from Italy
07 March, 2008 16:30
shay.bc said...

Fabrizio hi,

i don't have such problem, but i did some digging for you,

first let me ask this: if the disk image installation succeeded why would you like to install OS X as a vmWare or virtual box? it will be so slow (i tried it my self its like watching the stars move - very very slow)

but if you want to try it any way and the gray apple screen is crashing, then first thing to do is to use -v in the boot prompt and send the log you see,

the only thing i can see on the web related to vmware and PAE is this:

in the file: XXX.vmx write the parameter: paevm= "TRUE" to enable PAE and paevm= "FALSE" to disable it.

the (XXX.vmx on windows and XXX.cfg on linux) file should be in the folder where you decided to install the OS X VM , you can download a bootable copy of tiger in vmware here:
http://thepiratebay.org/tor/3985375/VMware_bootable_Apple_OSX (instructions included)

also check this post:
http://www.vmware.com/support/reference/common/pae_guest.html to understand how PAE is regarded in vmware

lastly this is a url that can generate your vmx file using GUI parameters you choose, then copy and paste into the vmx file (overwrite it)

http://www.easyvmx.com/expertform.shtml

if you succeed or fail please send the news i will try find more info and post it here.
08 March, 2008 12:51
Fabrizio said...

Thanks,
many things to test, it will take some time but I'll let you know.
About the reason why: I have to use windows on my noebook, for the time being i feel more confident in trying to carry along OSX in a box :) than the other way round. However, I've been told that stars actually move. :)
Thanks again.
Fab
08 March, 2008 15:35
shay.bc said...

hi Fab,

please note that there is a possibility to dual boot and choose at boot time between windows (vista/xp whatever) to os x (tiger/leopard).

i will add a post covering this issue.

Have Fun.
08 March, 2008 16:09
Faisal said...

Hi,
I have this strange problem
I installed leopard on a hardisk other than the main HDD which has xp installed
The insatllation went smoothly
but now niether does xp start nor does OSX
theres only this white screen with apple logo and it gets stuck
when I type -s i get this message that the firewire is not function 7 system is getting full secrue???
please help
09 March, 2008 20:41
shay.bc said...

hi faisal,

first of all do you see any boot options? such as Leopard/XP like in this post?

second try -v for verbose and try taking a picture or simply write the lines (some of it), try to find lines with the words: Exception, Error or Panic
and write them here i will try to help, also write what computer and hardware do you use.

next the line you talk about the FireWire does it looks like this:
" ERROR: FireWire unable to determine security-mode; defaulting to full-secure." if so then disregard it, it only means no security setup for the firewire so it is setting it to default (which is full security).

also please state that once you get past the error about the FireWire do you get any prompt? can you press enter or any key and get echo?

if so then Single mode is running and that is good news. in this case try this:
write;
/sbin/fsck -fy

press enter and then the system should write:

** The volume XXX appears to be OK

or:

***** FILE SYSTEM WAS MODIFIED *****

if it is the second option then do it again (the fsck command) until you get the first line saying it is ok

then write:
/sbin/mount - uw /

this should mount your file system and allow you to perform some tests in order to understand what is wrong and why the system is not booting.

now, if you can't single boot and can't understand (or send) data regarding the error then try re-installing and in the last screen (customize) choose only these options: (taken from iAtkos)
- Main System
- EFI Emulation
- Remove CPUPowerManagement
- Remove Thermal kext
- AppleSMBiosKext

thats it! don't add anything else especially not video screen or network kext.

if system boots then you can start searching for appropriate kext for your system.

regarding the XP, if you want to boot back from it try this:
from single mode or from install dvd (terminal) write:

fdisk -e /dev/rdiskX
where X stands for your hard disk number (first one is 0 second is 1 etc.)

then in the fdisk utility use ? for list of commands
now:
write p (short for print) and press enter then it will display a table of disks and partitions, if your XP reside on first HD on first partition do this:
f X
where X stands for the XP partition probably 1
then it should look like this:
f 1
and press enter, then write
u (short for update)
and press enter
then write:
w (short for write)
then press enter
lastly press q (quit)
then restart and XP should be bootable again.
so as summary then the commands should look like this:

boot single mode (after restart press F8, at the prompt write -s and press enter)
/usr/sbin/fdisk -e /dev/rdisk0
f 1
u
w
q
Reboot!

tell me how it goes.
Hope this helps
09 March, 2008 23:25
Arjun said...

Hi, Great post i must say. But dude need some help here. Am a SAP beginner. So I've a windows 2003 server installed on a 10 gb partition and windows XP installed on 40 gb partition. I've left around 50 gb for Leopard. I downloaded the kalyway iso.

The problem is that i can't risk installing leopard (with 2003 server and xp already installed) if i can't boot back to the window OS's. I've been digging quite a bit and skimming thru insanelymac forums.

I found this http://www.digwin.com/view/dual-boot-osx-leopard-or-tiger-with-vistaxp-on-your-regular-intelamd-pc . but am not sure how to go about it.

is there any fairly easier or detailed ( tough ) guides i cud use. I had jas 10.4.1 earlier. well that was long back. That time what i used to do was, Boot from a live ubuntu cd and goto the Root terminal. And give the commands : fdisk /dev/hda
and then type pfor the partitions list . and then select the booting partition. I used to hit F8 then before the grey screen and it showed all the booting partitions.

But now, in leopard installation and dual booting, i never came across this stratergy to dual boot xp and leopard.

Pls help dude.. !!
18 March, 2008 22:11
shay.bc said...

hi arjun,

ok, it is very much possible to dual boot and triple boot leopard with windows, ubuntu etc. i did it my self, its not hard at all,

the main idea is that windows will be installed first and on a different partition or different hard-drive,

after leopard is installed, its partition will be marked as active, so you can boot from leopard but not from other OS that was installed before, they appear on the menu but can't boot them,

after leopard boots and everything is working you can go back to fdisk and flag the windows partition as bootable

next you will need to fix the windows using windows install CD, and then windows will be bootable again,

now its time to get leopard back, from fdisk flag the leopard partition again and its bootable

after doing this you will be able to choose from the darwin menu to boot from windows or leopard,

there are many guides for dual booting, i will create one this weekend, you could check back and see all the relative screenshots,

any way if you want other guides and other methods, here are the links:

http://wiki.osx86project.org/wiki/index.php/Install_On_A_Partition_Simple_And_Accurate

http://dailyapps.net/2008/03/hack-attack-dual-boot-leopard-and-windows-vista/

http://wiki.osx86project.org/wiki/index.php/Vista_bootloader

http://wiki.osx86project.org/wiki/index.php/Multibooting

http://coolblog.profit42.com/2007/07/03/updated-osx-10410-dual-boot-guide/

nice video displaying triple boot:
http://video.aol.com/video-detail/osx86-triple-boot-vista-ubuntu-grub--working-efi/3284893641
18 March, 2008 23:10
Rodrigo S. "boi" said...

Hi, i'm trying to install mac-os leopard, the hackintosh version, i'm havin problens with the fire-wire, He said that neet do put-it to full-secure mode, and after it he return an error, and said that is waiting for a root device.

i dont now what to do...i'll thanks a loot if you can help me
28 March, 2008 21:59
shay.bc said...

hi rodrigo,

you can ignore the firewire line it is not the problem (just a warning),

but regarding the "waiting for a root device" line can you describe in what stage of the installation did you get it? (after the success screen and reboot?) did you install darwin and do the fdisk thing?

if so please send an exact copy of the text you gen on the hackintosh screen.

also send details on the hardware you use (this message usually comes up when no SATA/IDE drive is detected)

also describe how did you format the partition (disk util, journald...)

if you didn't even started the install and see this message then put both HD and DVD on the same IDE controller (primary) where HD is master and DVD is slave and you will be able to install, the procedure will be very slow though, but after the installation everything should work fast.

hope it helps
29 March, 2008 00:46
Parth nanavati said...

Hi

my name is PARTH, i've installed
iAKTOS V1.0iR2, it does not have darwin boot in utility.

after installation is does not boot at all and keep re booting as show in this vdo by someody else..

http://www.youtube.com/watch?v=asFhN5vq2c0

can you please help me
28 April, 2008 15:59
Fabrizio said...

Hi everybody.
I'm a little out of the matter right now (by the way, i have a PAE enabled CPU now) but it seems to me to remember I had the same problem using (via kalyway) a vanilla kernel on a non SS3 CPU (ie a non intel - core) I hade to go for a customized (re)installation removing the default vanilla kernel selection. Thet did the magic for me, hope willdo for you as well.
Have fun...
28 April, 2008 16:34
shay.hackintosh said...

hi Parth,
sorry for the late reply,
did you try the first aid steps?
they are:
1. checking the BIOS setup (see this post)
2. in the darwin prompt (after pressing F8) write: cpus=1 -v -x -f
3. goto the HCL and make sure that your hardware is supported.

let me know if the problem is solved or remains.

ShayBC.
29 April, 2008 23:49
shay.hackintosh said...

hi parth,

i missed the part where you say you don't have darwin boot loader but using the iatkos r2, then in customize (where you select the features to be installed) you should have the "x86 Darwin Bootloader" - select it!!!

also here are some more ideas:
1. try to install the leopard without the EFI.

2. try reinstalling with as minimum options you can (please see my post "Install Leopard")

3. write in the darwin prompt rd=diskXsY (where X is the number of the leopard drive starting from 0 and Y is the number of Leopard partition starting from 1 example: rd=disk0s1)

4. make sure (from windows) you have at least SSE2 using the CPUz utility

hope this helps,
ShayBC.
30 April, 2008 00:17
Daniel said...

Hello,
Thank you for writing these guides, they have been very useful so far.

I have a question for you: I am only able to boot into Leo if I use -f.
Is there anything I can do so as to not need to do this each time.


Thank you very, very much in advance

Daniel
29 August, 2008 02:11
shay.hackintosh said...

hi daniel,

first of i think you should automate the swich so you will not need to manually write it every time, see how to do that at this post

second, you need to specify what output do you get at the console (using the -v option in the darwin boot prompt) when you don't use the -f option, then i can suggest how to solved it.
the -f option reset the cached kext (drivers), so probably for some reason your hardware is changing from boot to boot (maybe you are using external USB drive and it keeps changing its number),

hope it gives you a direction,

Shay.
30 August, 2008 21:27
Daniel said...

Hi Shay
That worked perfectly, thank you so very much!
01 September, 2008 00:11
JL said...

hi.... greetings... JL here, hoping you can help me out. i've downloaded ideneb v1.1 - 10.5.4 from mininova...

my specs are:
- amd athlon 4400 dual core x2 64
- ide 40gig hard disk
- 64mb nvidia graphics card

first, i installed it without customizing, and i got an infinite reboot after the darwin bootup.

then, i erased again, then installed selecting all options in the customize installation. it now goes to the gray apple screen, but would end up with the error that i should press my power button, pc needs to shut down.

maybe you can help me out, on which options i should pick. just in case, you can see the ideneb in mininova. and also, what else i should've done.

thank you so much for your help in advance.
11 September, 2008 12:45
JL said...

by the way, here's my motherboard: http://www.msicomputer.com/product/p_spec.asp?model=K9N6SGM-V

JL. your help is very much appreciated and thank you so much :)
11 September, 2008 13:05
shay.hackintosh said...

hi JL,
sorry for not seeing thiscomment before, please use switch -v and write here the error you get
01 November, 2008 19:09
jrd8307 said...

Hello,

I have a strange rebooting problem. That I have researched for hours and have not found an answer that I am hoping you can help me with.


Here is my info:



Using iDeneb 10.5.5


Averatec 2575 Laptop
AMD TL-60 CPU
4GB Memory
SATA Hard Drive
SATA DVD Drive




VESA v2.0 16MB (ATI ATOMBIOS)
Loading Darwin/x86
Loading Kernel mach_kernel
Loading HFS+ file: [mach_kernel] from 42302f0
Loading HFS+ file: [mach_kernel] from 42302f0
LoadDrivers : Loeading from [/System/Library/Extensions.mkext]
Loading HFS+ file: [/System/Library/Extensions.mkext] from 42302f0
Loading HFS+ file: [/System/Library/Extensions.mkext] from 42302f0
Starting Darwin/x86

================================================== =====

After “Starting Darwin/x86” PC reboot immediately




I have tried different combinations of -V -X -S -F, CPUS=1, etc. still reboots immediately. Again thanks for any help and information in resolving this. God Bless
09 November, 2008 07:12
shay.hackintosh said...

hi jrd8307,
the only reason i can see for constatnt reboot is that the distribution you use (in your case iDeneb) does not support your hardware (board and/or CPU) so one solution is to use cpus=1 and hope that the double core is the problem and that will solve it, but as i can see you have already tried this solution without success, another thing you can do to avoid hackintosh constant reboot, or immidiate reboot, or reboot loop, is to try another distribution like kalyway or iAtkos or JAS, or Leo4all etc. (and then upgrade them to 10.5.5), see this post for distributions list:http://apple2pc.blogspot.com/2008/03/download-hackintosh-os-x-leopard.html

also try to inject another kernel into your installation DVD, that might solve it, link to inject guide: http://osx86.wikidot.com/how-to-s

Shay.
14 November, 2008 08:31
Hatch said...

Hi Shay,

You have some excellent guides and technical information here, could you tell me is it yet possible to boot into MAC Osx from Darwin by default into a non-active partition?
It is a bug that occurs if you use the Vista boot loader for multi-boots:
http://neosmart.net/forums/showthread.php?t=1018
02 December, 2008 11:54
aziz said...

bro..
i have a problem..

my proc T5500 always use cpus=1
how about fsb?

more info pls...
03 February, 2009 05:33
Stefan said...

Hi, i tried to install the iATKOS version, but it doesn't work. i get the grey background with apple logo and the "ring" turns around but nothing happens next, i waited for an hour...

i also tried with: -v -x -f -s cpus=1 and it stopped at one point:
MAC Framework successfully initialized using 18485 buffer headers and 4896 cluster IO buffer headers
Extension "com.apple.driver.ACPI_SMC_PlatformPlugin" has immediate dependencies on both com.apple.kernel and com.apple.kpi components; use only one style.

what does it means?
i'm happy if you could help me,
greatings from germany
18 February, 2009 18:36
chase said...

Hello,
Thanks for the guides they have been helping a tremendous amount. However I have two reoccurring problems I would like to request help with.

Lately when attempting to install Os X (ideneb 10.5.5) my system has given me the still waiting on root device. Once rd=disk0 -v was entered this problem was bypassed. Now every time I can get past this issue the install hangs at this message:

BSD process name corresponding to current thread: kernel_task

Mac OS version:
Not yet set

Kernel Version:(varies from distro i've tried both Leo4all and ideneb 1.3 and 10.5.5)

The other problem I've had and this one truly confuses me, though OS X will not install, I have and still can boot into OS X, when using Ideneb 10.5.5 the ide 100gb hdd I've been using to install shows up as the OS X drive, and most everything functions; only laggly as if it was running as a "livecd". I have never been prompted to install OS X, not once have I been promoted to partition the hard drive, or install drivers. Any ideas?

Thank you,
William
24 February, 2009 05:27
Stefan said...

hello again,
i used a newer version of iDeneb and everything go right.
nevertheless thanks for the good forum and guides here.
greetings
02 March, 2009 09:54

-----
잊어 버릴까봐 적어 둔다.

Cheers,
June

댓글 없음:

댓글 쓰기