05-25-2010 02:08 AM - edited 03-04-2019 08:35 AM
Hi,
I have received Cisco VXR 7206 that can’t boot and always goes to ROMMON.
After debugging I saw that the router does not have valid IOS that can boot from.
rommon 11 > dev
Devices in device table:
id name
bootflash: boot flash
slot0: PCMCIA slot 0
slot1: PCMCIA slot 1
disk0: PCMCIA slot 0
disk1: PCMCIA slot 1
slot2: PCMCIA compact flash
disk2: PCMCIA compact flash
eprom: eprom
rommon 12 > dir bootflash:
File size Checksum File name
981 bytes (0x3d5) 0xa376a868 c7200p-ipbasek9-mz.124-4.XD4.bin
rommon 13 > dir slot0:
File size Checksum File name
rommon 14 > dir slot1:
File size Checksum File name
rommon 15 > dir disk0:
File size Checksum File name
rommon 16 > dir disk1:
File size Checksum File name
rommon 17 > dir slot2:
open: file "c7200p-atafslib-m" not found
open(): Open Error = -1
loadprog: error - on file open
cannot load the monitor library "slot2:%c7200p-atafslib-m" for device: slot2:
dir: cannot open device "slot2:"
rommon 18 > dir disk2:
open: file "c7200p-atafslib-m" not found
open(): Open Error = -1
loadprog: error - on file open
cannot load the monitor library "disk2:%c7200p-atafslib-m" for device: disk2:
dir: cannot open device "disk2:"
rommon 19 >
So I wanted to transfer an IOS image trough TFTP. But there is no command in the help menu that could be used for this kind of transfer.
rommon 19 > ?
alias set and display aliases command
boot boot up an external process
break set/show/clear the breakpoint
confreg configuration register utility
cont continue executing a downloaded image
context display the context of a loaded image
cpu_card_type display CPU card type
dev list the device table
dir list files in file system
dis disassemble instruction stream
frame print out a selected stack frame
help monitor builtin command help
history monitor command history
meminfo main memory information
repeat repeat a monitor command
reset system reset
rommon-pref Select ROMMON
set show all monitor variables
showmon display currently selected ROM monitor
show_spd show all SPD data
stack produce a stack trace
sync write monitor environment to NVRAM
sysret print out info from last system return
unalias unset an alias
unset unset a monitor variable
rommon 20 >
I’ve tried the following:
rommon 5 > IP_ADDRESS=192.168.1.1
rommon 6 >
rommon 6 > IP_SUBNET_MASK=255.255.255.0
rommon 7 > DEFAULT_GATEWAY=192.168.1.113
rommon 8 > TFTP_SERVER=192.168.1.113
rommon 9 > TFTP_FILE=c7200p-ipbasek9-mz.124-4.XD9.bin
rommon 10 > boot system tftp c7200p-ipbasek9-mz.124-4.XD9.bin 192.168.1.113
and got the following output from the VXR:
loadprog: bad file magic number: 0x0
boot: cannot load "bootflash:c7200p-ipbasek9-mz.124-4.XD4.bin system tftp c7200p-ipbasek9-mz.124-4.XD9.bin 192.168.1.113"
So I need help…
Does anyone encountered similar problem, or maybe I am doing something not right…
Best regards to all
05-25-2010 02:32 AM
Hello Oliver,
I note that:
>> 981 bytes (0x3d5) 0xa376a868 c7200p-ipbasek9-mz.124-4.XD4.bin
this file is too small or corrupted even for a boot loader it cannot be a correct file you should consider deleting it from bootflash
caution : read the following document before doing anything
see the procedure for C7200
Hope to help
Giuseppe
05-25-2010 06:37 AM
Hi giuslar,
thanks for the fast response.
I've seen the link that you have recommended to me, but the register is not the problem. Whatever register I set the router goes into ROMMON mode.
I am interested in how can I first format the flash on the VXR and then transfer the new IOS trough TFTP.
Cause I didn't manage to find on the net any procedure for transferring IOS image on VXR trough TFTP in ROMOM mode. I am familiar with the TFTP transfer procedure when the confreg is 0x2101 or 0x2102...
Best regards
05-25-2010 07:33 AM
05-26-2010 03:14 AM
Hi giuslar,
Thank you for the useful information.
According to what you’ve said I’ve transferred the following files:
c7200p-ipbasek9-mz.124-4.XD9.bin
c7200p-kboot-mz.124-4.XD9.bin
rommon 8 > dir slot2:
Directory of slot2:
2 7950564 -rw- c7200p-kboot-mz.124-4.XD9.bin
1944 21322640 -rw- c7200p-ipbasek9-mz.124-4.XD9.bin
rommon 10 > dir disk2:
Directory of disk2:
2 7950564 -rw- c7200p-kboot-mz.124-4.XD9.bin
1944 21322640 -rw- c7200p-ipbasek9-mz.124-4.XD9.bin
and I’ve set the following parameters in several attempts with diferent confreg:
BOOT=bootflash:/c7200p-ipbasek9-mz.124-4.XD9.bin
BOOT=disk2:/c7200p-kboot-mz.124-4.XD9.bin
But the VXR was still trying to boot from the bootflash, giving me the following output:
Readonly ROMMON initialized
loadprog: bad file magic number: 0x0
boot: cannot load "bootflash:c7200p-ipbasek9-mz.124-4.XD4.bin bootflash:"
so I’ve renamed the images from XD9 to XD4, and the same thing happened…
BTW I am transferring the image files trough card reader.
Best regards
05-26-2010 04:41 AM
Hello Oliver,
you need to:
delete the corrupted boot image *XD4
copy new boot image into bootflash it is the place where it should stay
>> BTW I am transferring the image files trough card reader.
this might be part of the problem
be aware that router filesystems may react negatively to a card written by somebody else (even a different router platform of another model)
follow instructions of first link I've provided for above steps
Hope to help
Giuseppe
05-27-2010 06:28 AM
Hi to all,
I’ve solved the problem.
Fact is that without “…kboot…” file the VXR can’t be started and the equivalent IOS image should be present in order to have clean situation (without booting the router in Router(boot) mode).
Because I’ve formatted the flash with a card reader the files on the card weren’t recognizable and acceptable so that the VXR can boot from, but the files were listed with the “dir disk2:” command.
So the solution was obvious… I’ve formatted the flash with the card reader and transferred the two files, kboot and IOS image to that card. I’ve found another functional VXR (same model 7206) and inserted the flash, copied the two files to the bootflash and formatted the flash, then transferred back the two files to the flash. After inserting that card in the “problematic” VXR everything worked as it should be.
Giuslar, thanks for the support.
05-27-2010 12:16 PM
Hello Oliver,
I'm happy you have solved this issue, when you have mentioned the card reader I understood it was related to it
Hope to help
Giuseppe
05-12-2020 08:31 PM
Hello I have a c2821 router I’m using for my lab. I had to format the CF. I found a procedure to tftp the . bin file in Rommon mode. I set up the IP on both pc and the router but not for sure which port on the router to plug the rj45 (network cable) back to my pc (which is the tftp sever). Also do I need to set something else in Rommon mode if I use the Gi0 or Gi1 interface. I’m not able to ping the router from the pc and it times out when I try to tftp the file. Thank you
05-14-2020 09:27 AM
Is the process you are using tftpdnld or is it something else? Perhaps you can supply more details about how you are setting up and executing tftp? Might be helpful if you post output of the command set in rommon.
05-30-2024 12:04 PM
Hello everyone
my switch c9200 starts in ROMMON as primary image, evertime i restart the switch is the same issue
Initializing Hardware...
System Bootstrap, Version 16.10.1r [FC5], RELEASE SOFTWARE (P)
Compiled Mon 05/06/2019 12:06:14 by rel
Current ROMMON image : Primary
C9200L-24P-4X platform with 2097152 Kbytes of main memory
How can i solve it to get access to configuration?
06-05-2024 03:22 PM
We do not have enough information about your situation to be ale to give good advice. As a starting point would you boot the switch and post all of the messages generated in the booting process?
06-05-2024 03:39 PM
If the switch can boot into ROMMON, post the complete output to the following ROMMON commands:
dir flash:
set
WARNING: Above commands are case sensitive.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide