Jump to content
  • Announcements

    • Allan

      Forum Rules   04/13/2018

      Hello folks! As some things are being fixed, we'll keep you updated. Per hour the Forum Rules don't have a dedicated "Tab", so here is the place that we have our Rules back. New Users Lounge > [READ] - InsanelyMac Forum Rules - The InsanelyMac Staff Team. 
Superhai

xnu-1228 / Boot Arguments

20 posts in this topic

Recommended Posts

  1. DTrace
    dtrace_dof_mode - Set DTrace DOF modes {0/1/2/3}
    DisableFBT - Disable FBT {1}
    IgnoreFBTBlacklist - Ignore blacklist of certain critical modules {1}
     
  2. BSD
    -b - Don't run /etc/rc.boot
    -l - Log leaks
    srv - Boot as server {1}
    ncl - Number of clusters
    nbuf - Number of buffers for bsd
    kmem - Kernel memory access {1}
    trace - Kernel trace buffer size
    msgbuf - Message Buffer
    rp - Root path
    mcache_flags - Memory cache flags
    mbuf_debug - MBuf Debug {1}
    initmcl - Init mbuf clusters
    socket_debug - Socket debug (net)
    net_affinity - Net Affinity (net)
    rte_debug - Route debug (net) {flags}
    -rwroot_hack - Mount root read/write
     
  3. IOKit
    mseg - Max segment
    dart - Remove mapper present
    io - IO Kit Debug
     
  4. Mach
    keepsyms - Do not unload KLD/Address-symbol translation {1}
    debug - Kernel debug {flags}
    nvram_paniclog - commit paniclog to NVRAM {1}
    pmsafe_debug - Put CPUs into "safe" power mode {1}
    preempt - Set default preemption rate
    unsafe - Max unsafe quanta
    poll - Max poll quanta
    yield - Schedule poll yield shift
    idlehalt - Halt idle thread to allow cpu into lowpower mode {1}
    panic_io_port - In a panic read from this I/O port {0x0 to 0xffff}
    _fpu - Limit boot-time cpu features {387/mmx/sse}
    diag - Diagnostic output
    serial - Serial diagnostic console
    maxmem - Maximum memory to use
    cpus -Numbers of cpus
    himemory_mode - Set memorymode for over 4GB {0 - All pages available/1- disable high mem/2 - prefer high mem}
    immediate_NMI - Force immediate NMI debugger {1}
    -legacy - Force legacy 32bit mode
    lcks - Lock statistics
    novmx - No altivec emulation in Rosetta {1}
    max_valid_dma_addr - Max valid DMA address
    maxbouncepool - Max bounce pool size
    maxloreserve - Max low reserve
    npvhash - Physical to virtual mapping hash
    wpkernel - Write protect kernel {1}
    -no_shared_cr3 - Disable shared kernel address space for 64 bit users
    -pmap_trace - Enable kernel traces for pmap
    _panicd_ip - IP of panic server
    _router_ip - IP of router
    panicd_port - Port of panic server
    -zc - Free zone element checking
    mtxspin - Mutex spin (ppc)
    vmmforce - VMM force (ppc)
    fn - Force nap (ppc) (acpi) {0/1/2}
    pmsx - Experimental power management stepper mode (ppc) {1}
    ctrc - Set tracing to specific cpu (ppc)
    tb - Non-default trace buffer size (ppc)
    wcte - Write combine timer enable (ppc)
    mcklog - Clear machine check flag (ppc)
    mcksoft - Machine check software recovery (ppc)
    ht_shift - Non-default hash table size (ppc) {1}
    zsize - Target zone size
    colors - Set VM colors
    fill - Fill pages
    serialbaud - Set serial baud rate
     
  5. Boot
    -v - Verbose Mode
    -x - Safe Mode
    -f - Old Safe Mode
    -F - Ignore Boot File
    -s - Single User Mode
    Graphics Mode - VESA Graphics Mode Dimensions
    Text Mode - VGA Text Mode Dimensions
    Boot Graphics - Graphics or Text Mode
    Quiet Boot - Quiet Bootmode
    MKext Cache - Mkext cache file
    Kernel Cache - Kernel Cache file
    rd - Root Device
    boot-uuid - Boot UUID
    platform - Platform Expert {ACPI}
    config - Load alternate config plist
     
  6. Other
    smbios - Verbose SMBIOS (AppleSMBIOS.kext) {1}
    acpi - Debug AppleACPIPlatform {1-8}
    acpi_level - ACPI Debug Level
    acpi_layer - ACPI Debug Layer
    acpi_sleep - ACPI Sleep
    nvdebug - NVDAResman debug
    nvrm - NVDAResman
    ndrv_debug_level - NDRV Debug Level (NVDAResman)
    pstep - Power Step Debug (ACPI_SMC)
    hpet - AppleHPET

There are more, which I will update it later. I will not add args which are not present in the current apple release (i.e. only vanilla). All reservations against errors and mistakes. If you find anyone please notify.

Share this post


Link to post
Share on other sites

Shouldn't "config" be in the boot options?

 

I use "config=tv" at boot sometimes to load a config file with different gfx string, so it loads /Library/Preferences/SystemConfiguration/tv.plist instead of com.apple.Boot.plist

Share this post


Link to post
Share on other sites
Shouldn't "config" be in the boot options?

 

I use "config=tv" at boot sometimes to load a config file with different gfx string, so it loads /Library/Preferences/SystemConfiguration/tv.plist instead of com.apple.Boot.plist

 

Yep you're right, I missed it from my notes. I'll edit.

Share this post


Link to post
Share on other sites

I need to know a leetle teeny weeny bit more about this section:

 

Boot

-v - Verbose Mode

-x - Safe Mode

-f - Old Safe Mode

-F - Ignore Boot File

-s - Single User Mode

Graphics Mode - VESA Graphics Mode Dimensions

Text Mode - VGA Text Mode Dimensions

Boot Graphics - Graphics or Text Mode

Quiet Boot - Quiet Bootmode

MKext Cache - Mkext cache file

Kernel Cache - Kernel Cache file

rd - Root Device

boot-uuid - Boot UUID

platform - Platform Expert {ACPI}

config - Load alternate config plist

 

 

Is there any place to get elaboration on these commands?

Share this post


Link to post
Share on other sites

They are no commands, they are flags.

 

Whe Darwin bootloader presents the boot menu (one partition or as many as you have) you can hit any key and a boot flag prompt appears, there you write the flag, you can combine the flags:

rd=disk0s3 -s -x "Graphics Mode"="800x600x32" platform=X86PC

 

You can also write "?" to display the boot help.

 

There are several posts about boot flags and of course Apple Developer site for documentation.

Share this post


Link to post
Share on other sites

Hi,

i am a bit confused about using the boot-flags.

 

I have EFI installed. And want to use boot-uuid - XXXXX

Does it have the same boot-flags ?

Also Chameleon ?

 

Are they using complete different "darwin bootloader" or are they loaded before darwin bootloader, so i can use this boot-flags.

Share this post


Link to post
Share on other sites

Thanks for the detail listings.

 

Can some of you tell us which options are the most useful ones in fixing kernel panics during boot up? e.g. panic due to some kext / modules or some other issues?

Thanks!

Share this post


Link to post
Share on other sites
Does Graphics Mode can truly set resolution and refresh rate?

 

Can be work on shared memory Nvidia card?

 

Type "?video" and you'll get a list of all modes you can set it.

Share this post


Link to post
Share on other sites

Hi, I'm looking for a way to make a boot flag selection at startup, do you know any bootloader which would make this thing possible ? Just want to have a choice as thepartition choice in darwin boot loader, which would allows me to set the config= or "graphics mode"= flags.

 

Thanks.

Share this post


Link to post
Share on other sites
  1. Other
    smbios - Verbose SMBIOS (AppleSMBIOS.kext) {1}
    acpi - Debug AppleACPIPlatform {1-8}
    acpi_level - ACPI Debug Level
    acpi_layer - ACPI Debug Layer
    acpi_sleep - ACPI Sleep
    pstep - Power Step Debug (ACPI_SMC)

 

Hi,

 

I'm very interested how to use these bootargs in detail. Do I have to write acpi=8, for instance? What about acpi_level, acpi_layer and acpi_sleep, or pstep? Is "pstep=1" correct to activate pstep debug, or just pstep?

 

How can I see the debug output of:

Store ("Hello World", Debug)

 

Any ideas?

 

Thank you

Share this post


Link to post
Share on other sites
Hi,

 

I'm very interested how to use these bootargs in detail. Do I have to write acpi=8, for instance? What about acpi_level, acpi_layer and acpi_sleep, or pstep? Is "pstep=1" correct to activate pstep debug, or just pstep?

 

How can I see the debug output of:

Store ("Hello World", Debug)

 

Any ideas?

 

Thank you

 

I'm afraid you won't be able to use the Debug object - the AppleACPIPlatform is apparently compiled without debug support.

 

If you look at ACPICA sources (the reference ACPI implementation), the trick should be done by setting

acpi_level=2 acpi_layer=0x80. However, this doesn't work with AppleACPIPlatform.

Share this post


Link to post
Share on other sites

Hi,

 

Anyone know how to set the prefered gpu gfx card to boot as primary? Sometimes a new install will pick the wrong screen. Anyhow will "quiet boot" supress the boot warnings that I get over my boot theme background image?

 

 

thanks.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Recently Browsing   0 members

    No registered users viewing this page.

×