Booting and Shutting Down Oracle® Solaris 11.2 Systems

Exit Print View

Updated: July 2014
 
 

SPARC: How to Boot a System With the Kernel Debugger (kmdb) Enabled

This procedure shows how to load the kernel debugger (kmdb) on a SPARC based system.


Note - Use the reboot command and the halt command with the –d option if you do not have time to debug the system interactively. Running the halt command with the –d option requires a manual reboot of the system afterward. However, if you use the reboot command, the system boots automatically. See the reboot(1M) for more information.
  1. Halt the system, causing it to display the ok prompt.

    To halt the system cleanly, use the halt command.

  2. Type boot –k to request the loading of the kernel debugger. Press return.
  3. Access the kernel debugger.

    The method used to enter the debugger depends on the type of console that is used to access the system:

    • If you are using a locally attached keyboard, press Stop-A or L1–A, depending on the type of keyboard.
    • If you are using a serial console, send a break by using the method that is appropriate for your type of serial console.

    A welcome message is displayed when you enter the kernel debugger for the first time.

    Rebooting with command: kadb
    Boot device: /iommu/sbus/espdma@4,800000/esp@4,8800000/sd@3,0
    .
    .
    .
Example 6-5  SPARC: Booting a System With the Kernel Debugger (kmdb) Enabled

The following example shows how to boot a SPARC based system with the kernel debugger (kmdb) enabled.

ok boot -k
Resetting...

Executing last command: boot kmdb -d
Boot device: /pci@1f,0/ide@d/disk@0,0:a File and args: kmdb -d
Loading kmdb...