В OS X можно установить параметры начальной загрузки с
nvram boot-args=[options]
Где опции, я знаю о-v (подробный)-x (безопасный режим) и arch=x86_64 (загружаются в ядро на 64 бита на способных машинах на 64 бита).
Есть еще какие-нибудь? Кажется, нет никакой документации.
Поиск с помощью Google для boot-args site:developer.apple.com
дает некоторые хорошие ресурсы. Например.
cpus=1
вынуждает систему только использовать единственное ядро процессора. srv=1
установлен на Xserves и машинах, которым установили Сервер Mac OS X, и предположительно изменяет некоторые настраивающие параметры ядра для благоприятной для сервера операции. _panicd_ip=a.b.c.d
Позволяет Вам указать IP-адрес панического сервера отладки для записи дампов ядра ядра в. debug=0xH
(Где H является цифрой 1-4 шестнадцатеричное число), Позволяет Вам установить флаги отладки ядра из этого списка:
DB_HALT 0x01 Halt at boot-time and wait for debugger attach (gdb). DB_PRT 0x02 Send kernel debugging printf output to console. DB_NMI 0x04 Drop into debugger on NMI (Command–Power, Command-Option-Control-Shift-Escape, or interrupt switch). DB_KPRT 0x08 Send kernel debugging kprintf output to serial port. DB_KDB 0x10 Make ddb (kdb) the default debugger (requires a custom kernel). DB_SLOG 0x20 Output certain diagnostic info to the system log. DB_ARP 0x40 Allow debugger to ARP and route (allows debugging across routers and removes the need for a permanent ARP entry, but is a potential security hole)—not available in all kernels. DB_KDP_BP_DIS 0x80 Support old versions of gdb on newer systems. DB_LOG_PI_SCRN 0x100 Disable graphical panic dialog. DB_KERN_DUMP_ON_PANIC 0x0400 Causes the kernel to core dump when the system panics. DB_KERN_DUMP_ON_NMI 0x0800 Causes the kernel to core dump when the user triggers an NMI. DB_DBG_POST_CORE 0x1000 Controls the kernel's behavior after dumping core in response to an NMI (DB_KERN_DUMP_ON_NMI). If the user triggers an NMI and this flag is clear, the kernel will dump core and then continue. Conversely, if this flag is set the kernel will dump core and then wait for a debugger connection. DB_PANICLOG_DUMP 0x2000 Controls whether the kernel dumps a full core (if the flag is clear) or simply a panic log (if the flag is set).
-f Force rebuild extensions cache
-v Verbose booting shows debug information
-s Boots into single user mode (means only terminal based mode)
-x Boots into safe mode
-legacy Boots into 32bit instead of 64bit mode
rd=disk0s1 Force to boot a specific partition on a specific drive (BSD drive notation, means disk0 = physical disk 1). Here disk1 partition 1 is forced to be booted.
Graphics Mode=1024x768x32@75 Forces to boot with a resolution of 1024 x 768 with 32bit colors at 75Hz
Kernel=mach_kernel Forces to load a specific kernel, helpful for testing of new kernels.
cpus=1 Force using only 1 CPU core, may help addressing issues
idlehalt=0 May solve stuttering and shuttering on dualcore CPUs
platform=X86PC Forces to not use powermanagement (disables ACPI)
platform=ACPI Forces to use powermanagement (enables ACPI, but may crash your system)
Apple, кажется, не предоставляет всесторонний список. Поиск с помощью Google для нескольких известных опций и site:apple.com
не приводит ни к каким результатам. Сокращение списка опций находит статьи как этот и некоторый исходный код, анализирующий эти аргументы, но ничто всестороннее.
Вы могли также искать PE_parse_boot_arg
, функция, которая, ну, в общем, анализирует загрузочные аргументы.
Однако существует несколько сторонних страниц в сети, где пользователи предоставляют наиболее исчерпывающую информацию, я мог найти, но это могло бы устареть: