Difference between revisions of "Boot options"

From ReactOS Wiki
Jump to: navigation, search
(cut from Installing ReactOS)
 
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
''Other name'' '''''freeldr.ini options'''''
 +
 
The [[kernel]] command line is a text string that is passed to ReactOS by the boot loader (usually [[FreeLoader]]). It consists of several switches, each of which has a special meaning to ReactOS. A switch is a forward slash (<code>/</code>) followed by a text string (the name of the switch), and optionally an equal sign (<code>=</code>) and a text string (the value). If the equal sign is present, then at least one value is required to follow.
 
The [[kernel]] command line is a text string that is passed to ReactOS by the boot loader (usually [[FreeLoader]]). It consists of several switches, each of which has a special meaning to ReactOS. A switch is a forward slash (<code>/</code>) followed by a text string (the name of the switch), and optionally an equal sign (<code>=</code>) and a text string (the value). If the equal sign is present, then at least one value is required to follow.
  
The syntax, variables, and device strings used by FreeLoader conform to the [[Wikipedia:Advanced_RISC_Computing|ARC]] firmware and boot specification, similarly to the boot system used in all Windows NT implementations (such as the Windows NT boot loader on the x86 architecture, or the ARC console used to boot Windows NT 4.0 on the [[Wikipedia:Jazz_(computer)|MIPS]], Alpha AXP, and PowerPC architectures). Because of this, boot disks and other firmware- or BIOS-accessible devices are specified by each of the bus, disk, slice, and partition values associated with the device.
+
The syntax, variables, and device strings used by FreeLoader conform to the [[wikipedia:Advanced RISC Computing|ARC]] firmware and boot specification, similarly to the boot system used in all Windows NT implementations (such as the Windows NT boot loader on the x86 architecture, or the ARC console used to boot Windows NT 4.0 on the [[wikipedia:Jazz (computer)|MIPS]], Alpha AXP, and PowerPC architectures). Because of this, boot disks and other firmware- or BIOS-accessible devices are specified by each of the bus, disk, slice, and partition values associated with the device.
  
 
In FreeLoader the kernel command line is specified in an <code>Options</code> setting in <tt>freeldr.ini</tt>. The following text is an example of the contents of <tt>freeldr.ini</tt>, which boots ReactOS from the first partition of the first IDE drive of the computer system:
 
In FreeLoader the kernel command line is specified in an <code>Options</code> setting in <tt>freeldr.ini</tt>. The following text is an example of the contents of <tt>freeldr.ini</tt>, which boots ReactOS from the first partition of the first IDE drive of the computer system:
 
<syntaxhighlight lang="ini">
 
<syntaxhighlight lang="ini">
 
  [ReactOS]
 
  [ReactOS]
  BootType=ReactOS
+
  BootType=Windows2003
 
  SystemPath=multi(0)disk(0)rdisk(0)partition(1)\reactos
 
  SystemPath=multi(0)disk(0)rdisk(0)partition(1)\reactos
 
  Options=/DEBUGPORT=SCREEN
 
  Options=/DEBUGPORT=SCREEN
Line 19: Line 21:
  
 
; <code>DEBUGPORT</code> : Specifying <code>DEBUGPORT</code> as a boot option will enable certain debugging features.
 
; <code>DEBUGPORT</code> : Specifying <code>DEBUGPORT</code> as a boot option will enable certain debugging features.
* Format: <code>DEBUGPORT=[SCREEN|BOCHS|GDB|PICE|COM1|COM2|COM3|COM4|COM:|FILE|MDA]</code><br>Any one of the following values may set:
+
* Format: <code>DEBUGPORT=[SCREEN|BOCHS|GDB|PICE|COM1|COM2|COM3|COM4|COM:|FILE|MDA]</code><br />Any one of the following values may set:
 
** <code>SCREEN</code>: Send debug output to the screen.
 
** <code>SCREEN</code>: Send debug output to the screen.
 
** <code>BOCHS</code>: Send debug output to bochs.
 
** <code>BOCHS</code>: Send debug output to bochs.
Line 28: Line 30:
 
** <code>COM3</code>: Send debug output to COM3.
 
** <code>COM3</code>: Send debug output to COM3.
 
** <code>COM4</code>: Send debug output to COM4.
 
** <code>COM4</code>: Send debug output to COM4.
** <code>COM:[hex address]</code>: Specifies the COM port address. (Example: /DEBUGPORT=COM:0xCC00 )
+
** <code>COM:[hex address]</code>: Specifies the COM I/O port address. (Example: /DEBUGPORT=COM:0xCC00 --here 0xCC00 is [[On COM Ports|base]] I/O port number)
** <code>FILE</code>: Send debug output to a file %systemroot%/reactos/debug.log  
+
** <code>FILE</code>: Send debug output to a file %systemroot%/reactos/debug.log
 
** <code>MDA</code>: Send debug output to MDA ''(The old text graphic card from IBM)''.
 
** <code>MDA</code>: Send debug output to MDA ''(The old text graphic card from IBM)''.
 
It is allowed to use several <code>DEBUGPORT</code> options, but for ports of the same class, for example, COM ports, only the one (last one) will be used for output.
 
It is allowed to use several <code>DEBUGPORT</code> options, but for ports of the same class, for example, COM ports, only the one (last one) will be used for output.
Line 48: Line 50:
 
; <code>FIRSTCHANCE</code> : Set up exceptions to be passed to debugger on its occurrence, before being handled by regular exception handling code.
 
; <code>FIRSTCHANCE</code> : Set up exceptions to be passed to debugger on its occurrence, before being handled by regular exception handling code.
 
; <code>MININT</code>: loads the Registry SYSTEM hive as a volatile hive, such, that changes made to it in memory are not saved back to the hive image, into registry file. Useful for running ReactOS from liveCD.
 
; <code>MININT</code>: loads the Registry SYSTEM hive as a volatile hive, such, that changes made to it in memory are not saved back to the hive image, into registry file. Useful for running ReactOS from liveCD.
 +
; <code>SOS</code>: The /SOS parameter displays the names of the drivers as they load during the boot process.
 +
 +
See also: [[wikipedia:NTLDR|List of Windows NTLDR options]] (Wikipedia link)
  
See also: [http://en.wikipedia.org/wiki/NTLDR List of Windows NTLDR options] (Wikipedia link)
+
[[Category:Documentation]]
 +
[[Category:Tutorial]]

Latest revision as of 19:49, 30 December 2015

Other name freeldr.ini options

The kernel command line is a text string that is passed to ReactOS by the boot loader (usually FreeLoader). It consists of several switches, each of which has a special meaning to ReactOS. A switch is a forward slash (/) followed by a text string (the name of the switch), and optionally an equal sign (=) and a text string (the value). If the equal sign is present, then at least one value is required to follow.

The syntax, variables, and device strings used by FreeLoader conform to the ARC firmware and boot specification, similarly to the boot system used in all Windows NT implementations (such as the Windows NT boot loader on the x86 architecture, or the ARC console used to boot Windows NT 4.0 on the MIPS, Alpha AXP, and PowerPC architectures). Because of this, boot disks and other firmware- or BIOS-accessible devices are specified by each of the bus, disk, slice, and partition values associated with the device.

In FreeLoader the kernel command line is specified in an Options setting in freeldr.ini. The following text is an example of the contents of freeldr.ini, which boots ReactOS from the first partition of the first IDE drive of the computer system:

 [ReactOS]
 BootType=Windows2003
 SystemPath=multi(0)disk(0)rdisk(0)partition(1)\reactos
 Options=/DEBUGPORT=SCREEN

As used in the above sample file, DEBUGPORT is a boot option. By adding the boot option /DEBUGREPORT=SCREEN, ReactOS will print debugging information to the screen.

Options

The following boot options may be used:

DEBUG 
Turn on debugging output. This option is automatically turned on when building debug version.

To specify output device use DEBUGPORT option. If DEBUGPORT is not specified output by default goes to COM1.

  • Format: DEBUG
DEBUGPORT 
Specifying DEBUGPORT as a boot option will enable certain debugging features.
  • Format: DEBUGPORT=[SCREEN|BOCHS|GDB|PICE|COM1|COM2|COM3|COM4|COM:|FILE|MDA]
    Any one of the following values may set:
    • SCREEN: Send debug output to the screen.
    • BOCHS: Send debug output to bochs.
    • GDB: Enable the GNU debugger (GDB) stub so remote debugging using GDB is possible.
    • PICE: Enable the Private ICE driver so debugging using Private ICE is possible.
    • COM1: Send debug output to COM1.
    • COM2: Send debug output to COM2.
    • COM3: Send debug output to COM3.
    • COM4: Send debug output to COM4.
    • COM:[hex address]: Specifies the COM I/O port address. (Example: /DEBUGPORT=COM:0xCC00 --here 0xCC00 is base I/O port number)
    • FILE: Send debug output to a file %systemroot%/reactos/debug.log
    • MDA: Send debug output to MDA (The old text graphic card from IBM).

It is allowed to use several DEBUGPORT options, but for ports of the same class, for example, COM ports, only the one (last one) will be used for output.

BAUDRATE 
Specifies baudrate of the serial port to be [baudrate] bps. Used in conjunction with COM1-4 or GDB.
  • Format: BAUDRATE=[baudrate]
IRQ 
Specifies the IRQ number of the serial port to be [irq-number]. Used in conjunction with COM1-4 or GDB.
  • Format: IRQ=[irq-number]
PROFILE 
Enables profiling. Profiling information will be written in %windir%\profiler.log. This will slow down the system quite a bit.
  • Format: PROFILE
MAXMEM 
Will restrict ReactOS to use only the first [maxmem] MB of physical memory.
  • Format: MAXMEM=[maxmem]
NOGUIBOOT 
disables the bitmap that displays the progress bar at ReactOS startup.
FIRSTCHANCE 
Set up exceptions to be passed to debugger on its occurrence, before being handled by regular exception handling code.
MININT
loads the Registry SYSTEM hive as a volatile hive, such, that changes made to it in memory are not saved back to the hive image, into registry file. Useful for running ReactOS from liveCD.
SOS
The /SOS parameter displays the names of the drivers as they load during the boot process.

See also: List of Windows NTLDR options (Wikipedia link)