|
|
This appendix describes the Cisco 1600 series router ROM monitor (also called the bootstrap program), the firmware that runs when the router is powered up or reset. The ROM monitor can help you isolate or rule out hardware problems encountered when installing your router.
This appendix contains the following sections:
In normal operation, the ROM monitor helps to initialize the processor hardware and boot the operating system software. To use the ROM monitor, you must have console port access. Refer to the section "Connecting the Console" in the chapter "Installing the Router."
From the operating system software, you can configure the router to remain in the ROM monitor the next time it boots by setting virtual configuration register bits 3, 2, 1, and 0 to zero. From the console, enter the following configuration command:
config-reg 0x0
The new configuration register value, 0x0, takes effect after the router is rebooted with the reload command. The router remains in the ROM monitor and does not boot the operating system.
As long as the configuration value remains 0x0, you must manually boot the operating system from the console. Refer to the boot command in the section "Command Descriptions" later in this appendix.
The Cisco 1600 ROM monitor prompt looks like this:
In this example, 1 is the line number and is incremented at each prompt.
Enter ? or help at the ROM monitor prompt to display a list of available commands and options, as follows:
Commands are case sensitive. You can abort any command by pressing the Break key at the console.
ROM monitor syntax in this appendix uses the same conventions described in "About This Guide."
The following ROM monitor commands are among the most useful:
Console download is a ROM monitor function that enables you to download to the router either a software image or a configuration file over the router's console port. After console download, the file is either saved to the Fast Flash memory card or to main memory for execution (image files only).
Console download should be used when you do not have access to a Trivial File Transfer Protocol (TFTP) server.
Following is the syntax for the console download command:
Following is a syntax description for the console download command:
Since the ROM monitor console download uses the console to perform the data transfer, error messages are only displayed on the console when the data transfer is terminated.
If an error does occur during a data transfer, the transfer is terminated and an error message is displayed. If you have changed the baud rate from the default rate (with the s option), the error message is followed by a message telling you to restore the terminal to the baud rate specified in the configuration register.
Most debugging commands are functional only when Cisco IOS software has crashed or is aborted. If you enter a debugging command and Cisco IOS crash information is not available, you see the following error message:
The following are debugging commands:
The virtual configuration register resides in NVRAM and is identical in operation to other Cisco routers. You can view or modify the virtual configuration register from either the ROM monitor or the operating system software.
To change the virtual configuration register from the ROM monitor, enter confreg by itself for menu mode, or enter the new value of the register in hexadecimal.
Copyright 1988-1996 © Cisco Systems Inc.
rommon 1>
rommon 1> ?
help monitor builtin command help
boot boot up an external process
dir list files in file system
dev list the device table
confreg configuration register utility
reset system reset
stack produce a stack trace
context display the context of a loaded image
frame print out a selected stack frame
sysret print out info from last system return
meminfo main memory information
rommon 2>
rommon 10> dev
Devices in device table:
id name
flash: flash
eprom: eprom
rommon 11> dir flash:
File size Checksum File name
2229799 bytes (0x220627) 0x469e C1601-k
xmodem [-ycefrx] [-s baud_rate] <file_name>
y
(Optional) Sets the router to perform the download using ymodem protocol. Default is xmodem protocol. The following is the differences between xmodem and ymodem transfers:
c
(Optional) Performs the download using CRC-16 error checking to validate packets. Default is 8-bit CRC.
e
(Optional) Erases Flash memory before starting the download. If there are other Flash memory partitions, this option erases the first partition only.
f
(Optional) Erases the entire Flash memory (full erase).
r
(Optional) Image is loaded into DRAM for execution. Default is to load the image into Flash memory.
x
(Optional) Image is loaded into DRAM without being executed. The image can then be launched with the ROM monitor launch command.
-s baud_rate
(Optional) Specifies the download baud rate. Options are: 1200, 2400, 4800, 9600, 19200, 38400, 115200.
Note---This option should be used only when the router is directly connected to the host PC from which the software image will be downloaded. Do not use this option when downloading the software image over a modem connection.
Default is baud rate currently specified in the configuration register
This rate applies only during the data transfer. Once the data transfer is complete, the baud rate reverts to the rate specified in the configuration register.
file_name
The name of the system image file or the system configuration file. In order for the router to recognize it, the configuration file must be name router-config.
"xxx: kernel context state is invalid, can not proceed."
rommon 9 > context
>CPU Context:
>d0 - 0x00000001 a0 - 0x0204f4ea
>d1 - 0x00000001 a1 - 0x00006b74
>d2 - 0x00000001 a2 - 0x0204f41c
>d3 - 0x00000000 a3 - 0x02003990
>d4 - 0x00000000 a4 - 0x00000000
>d5 - 0x00000000 a5 - 0x0000000f
>d6 - 0x00000000 a6 - 0x020039f4
>d7 - 0x00000064 a7 - 0x02003944
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
FP: 0x80007f18, PC: 0x80008734
rommon 9> meminfo
Main memory size: 2 MB.
Available main memory starts at 0x2005000, size 0x200000
NVRAM size: 8 KB.
rommon 7> confreg
Configuration Summary
enabled are:
console baud: 9600
boot: the ROM Monitor
do you wish to change the configuration? y/n [n]: y
enable "diagnostic mode"? y/n [n]: y
enable "use net in IP bcast address"? y/n [n]:
enable "load rom after netboot fails"? y/n [n]:
enable "use all zero broadcast"? y/n [n]:
enable "break/abort has effect"? y/n [n]:
enable "ignore system config info"? y/n [n]:
change console baud rate? y/n [n]: y
enter rate: 0 = 9600, 1 = 4800, 2 = 1200, 3 = 2400 [0]: 0
change the boot characteristics? y/n [n]: y
enter to boot:
0 = ROM Monitor
1 = the boot helper image
2-15 = boot system
[0]: 0
Configuration Summary
enabled are:
diagnostic mode
console baud: 9600
boot: the ROM Monitor
do you wish to change the configuration? y/n [n]:
You must reset or power cycle for new config to take effect
![]()
![]()
![]()
![]()
![]()
![]()
![]()