Using the ROM Monitor
ROM Monitor Commands
193
Cisco VGD 1T3 Voice Gateway Software Configuration Guide
NVRAM size:0x80000
Main memory control register:0xbe9022f4
Shared memory control register:0x00000202
•
reset or i—Resets and initializes the system, similar to power up.
•
rommon-pref [readonly | upgrade]—Selects the ROM monitor image to be booted on the next
reload.
•
set—Displays all the monitor variables and their values.
•
showmon—Displays both ROM monitor images and verifies which image is running.
For example:
rommon 1 >
showmon
ReadOnly ROMMON version is:
System Bootstrap, Version 12.4(22r)T, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 2008 by cisco Systems, Inc.
VGD platform with 524288 Kbytes of main memory
Upgrade ROMMON version is:
System Bootstrap, Version 12.4(22r)T, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 2008 by cisco Systems, Inc.
ReadOnly ROMMON currently running
ReadOnly ROMMON is selected for next boot
•
stack [num]—Produces a stack trace of the number of frames, specified by num. The default is 5.
The command dumps from the kernel stack and the process stack (if one is available) of a booted
image.
For example:
rommon 5 >
stack 8
Stack trace:
PC = 0x02004adc
Frame 00: FP = 0x02003938 RA = 0x02005f2a
Frame 01: FP = 0x02003948 RA = 0x02005df0
Frame 02: FP = 0x02003960 RA = 0x020050ee
Frame 03: FP = 0x02003994 RA = 0x02004034
Frame 04: FP = 0x02003b00 RA = 0x00012ca6
•
sync—Writes the working in-core copy of the environment variables and aliases them to NVRAM
so that they are read on the next reset.
•
sysret—Displays the return information from the last booted system image. This includes the reason
for terminating the image, a stack dump of up to eight frames, and if an exception is involved, the
address where the exception occurred.
For example:
rommon 8 >
sysret
System Return Info:
count: 19, reason: user break
pc:0x60043754, error address: 0x0
Stack Trace:
FP: 0x80007e78, PC: 0x60043754
FP: 0x80007ed8, PC: 0x6001540c
FP: 0x80007ef8, PC: 0x600087f0