This section describes how to modify the configuration register by using the confreg GRUB command. This command is similar to the confreg ROMMON command used on other Cisco hardware routers. Because the router does not include a ROMMON mode, tGRUB command mode provides the equivalent functionality.
You can also modify the configuration register setting from the Cisco IOS XE CLI by using the config-register command in global configuration mode.
Note
The modified configuration register value is automatically written into NVRAM. To apply the new value, reset or power-cycle the router.
Procedure
|
confreg [ value ]
Example:
grub> confreg 0x2102
Changes the configuration register settings while in GRUB command mode.
-
Optionally, enter the new hexadecimal value for the configuration register. Specify a value between 0x0 and 0xFFFF.
-
If you do not enter the value, the router prompts you for each bit of the 16-bit configuration register.
|
This sample configuration specifies entering the GRUB mode and using the configuration register. You access the GRUB mode by entering the Cisco IOS XE config-register command and specifying the value as “0000”.
Router(config)#
config-register 0x0000
GNU GRUB version 0.97 (638K lower / 3143616K upper memory)
[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possible
completions of a device/filename. ESC at any time exits to menu. ]
grub> help
[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possible
completions of a device/filename. ESC at any time exits to menu. ]
confreg [VALUE] help [--all] [PATTERN ...]
grub>
confreg
Configuration Summary
(Virtual Configuration Register: 0x0)
enabled are:
boot: the boot loader
do you wish to change the configuration? y/n [
n
]:
ignore system config info? y/n [
n
]:
automatically boot default system image? y/n [
n
]:
Configuration Register: 0x0
grub> confreg
Configuration Summary
(Virtual Configuration Register: 0x0)
enabled are:
boot: the boot loader
do you wish to change the configuration? y/n [
n
]:
ignore system config info? y/n [n]:
automatically boot default system image? y/n [n]:
Configuration Register: 0x42
grub> confreg 0x2102
Configuration Register: 0x2102
grub>
confreg
Configuration Summary
(Virtual Configuration Register: 0x2102)
enabled are:
boot: default image
do you wish to change the configuration? y/n [
n
]:
grub>
grub>
GNU GRUB version 2.02 (638K lower / 3143616K upper memory)
-------------------------------------------------------------------
0: C8000v - packages.conf
1: C8000v - c800v-packages-universalk9
2: C8000v - GOLDEN IMAGE
-------------------------------------------------------------------
Use the ^ and v keys to select which entry is highlighted.
Press enter to boot the selected OS, or 'c' for a command-line.
Highlighted entry is 0:
Booting 'C8000v - packages.conf'
root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
kernel /packages.conf rw root=/dev/ram console=ttyS1,9600 max_loop=64 HARDWARE=
virtual SR_BOOT=harddisk:packages.conf
Calculating SHA-1 hash...done
SHA-1 hash:
calculated 817e1716:e8e62778:7dd0b806:32db2bdd:13e51407
expected 817e1716:e8e62778:7dd0b806:32db2bdd:13e51407
package header rev 1 structure detected
Calculating SHA-1 hash...done
SHA-1 hash:
calculated d4eaba99:34cbda63:26151233:9d0e9aa4:9c625302
expected d4eaba99:34cbda63:26151233:9d0e9aa4:9c625302
Package type:0x7531, flags:0x0
[Linux-bzImage, setup=0x2e00, size=0x2c18c00]
[isord @ 0x7e6d0000, 0x191f000 bytes]