HP Integrity rx2800 Kernel Debugging Guide - Page 20

Windows Server 2008 Systems Only ⇒ Using BCDEdit

Page 20 highlights

3. At the Enter OS boot option to modify: prompt, select the first boot option by entering: 1. The system displays the following: 1 LoadIdentifier = Windows Server 2003, Datacenter 2 OsLoadOptions = /REDIRECT /NOVESA 3 EfiOsLoaderFilePath = cf5f2ddc-b885-11d7-b831-000000000000 :: \efi\microsoft\winnt50\ia64ldr.efi 4 OsLoaderFilePath = e605a034-b885-11d7-b831-000000000000 :: \windows Enter VAR to modify: 2 4. At the Enter VAR to modify: prompt, select the second variable to modify (OsLoadOptions) by entering: 2. 5. Reenter the OsLoadOptions variable, this time adding the /DEBUG and /BAUDRATE switches, as follows: OsLoadOptions=/REDIRECT /NOVESA /DEBUG /BAUDRATE=115200 NOTE: The /NOVESA switch is needed only on cell-based servers running Windows Server 2003 without SP1 and with a VGA card installed in the nPartition. 6. Verify that the change was made by repeating step 1 through step 3. The system displays the following: 1 LoadIdentifier = Windows Server 2003, Datacenter 2 OsLoadOptions = /REDIRECT /NOVESA /DEBUG /BAUDRATE=115200 3 EfiOsLoaderFilePath = cf5f2ddc-b885-11d7-b831-000000000000 :: \efi\microsoft\winnt50\ia64ldr.efi 4 OsLoaderFilePath = e605a034-b885-11d7-b831-000000000000 :: \windows 7. After verifying the changes to the OsLoadOptions variable, exit and boot the operating system. After debugging is complete, remove the /DEBUG and /BAUDRATE=115200 switches from the boot configuration OsLoadOptions variable and reboot the operating system. Windows Server 2008 Systems Only ⇒ Using BCDEdit The values you assign with this tool depend on the type of connection you are trying to make with the target system. At any time from the command line you can enter the following commands to see the online help regarding tool usage: bcdedit /? or bcdedit /dbgsettings /? To enable debugging for a typical serial connection in Windows Server 2008, complete the following steps: 1. Make a copy of the default boot entry by issuing the following command: C:\>bcdedit /copy {identifier_of_boot_entry_to_be_copied} /d "original non-debug boot entry" The system indicates that it successfully copied the boot entry with a new description. 2. Set the connection type and baud rate for the debugger: C:\>bcdedit /dbgsettings SERIAL BAUDRATE:115200 20 Debugging the kernel locally

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37

3.
At the
Enter OS boot option to modify:
prompt, select the first boot option by
entering:
1
. The system displays the following:
1 LoadIdentifier = Windows Server 2003, Datacenter
2
OsLoadOptions = /REDIRECT /NOVESA
3
EfiOsLoaderFilePath = cf5f2ddc-b885-11d7-b831-000000000000 ::
\efi\microsoft\winnt50\ia64ldr.efi
4
OsLoaderFilePath = e605a034-b885-11d7-b831-000000000000 :: \windows
Enter VAR to modify:
2
4.
At the
Enter VAR to modify:
prompt, select the second variable to modify
(OsLoadOptions) by entering:
2
.
5.
Reenter the OsLoadOptions variable, this time adding the
/DEBUG
and
/BAUDRATE
switches,
as follows:
OsLoadOptions=/REDIRECT /NOVESA /DEBUG /BAUDRATE=115200
NOTE:
The
/NOVESA
switch is needed only on cell-based servers running Windows Server
2003
without SP1
and with a VGA card installed in the nPartition.
6.
Verify that the change was made by repeating step 1 through step 3. The system displays
the following:
1
LoadIdentifier = Windows Server 2003, Datacenter
2
OsLoadOptions = /REDIRECT /NOVESA /DEBUG /BAUDRATE=115200
3
EfiOsLoaderFilePath = cf5f2ddc-b885-11d7-b831-000000000000 ::
\efi\microsoft\winnt50\ia64ldr.efi
4
OsLoaderFilePath = e605a034-b885-11d7-b831-000000000000 :: \windows
7.
After verifying the changes to the OsLoadOptions variable, exit and boot the operating
system.
After debugging is complete, remove the
/DEBUG
and
/BAUDRATE=115200
switches from the
boot configuration OsLoadOptions variable and reboot the operating system.
Windows Server 2008 Systems Only
Using BCDEdit
The values you assign with this tool depend on the type of connection you are trying to make
with the target system. At any time from the command line you can enter the following commands
to see the online help regarding tool usage:
bcdedit /?
or
bcdedit /dbgsettings /?
To enable debugging for a typical serial connection in Windows Server 2008, complete the
following steps:
1.
Make a copy of the default boot entry by issuing the following command:
C:\>bcdedit /copy {identifier_of_boot_entry_to_be_copied} /d
original non-debug boot entry
The system indicates that it successfully copied the boot entry with a new description.
2.
Set the connection type and baud rate for the debugger:
C:\>bcdedit /dbgsettings SERIAL BAUDRATE:115200
20
Debugging the kernel locally