TFTP transfer in ROMMON

Unanswered Question
May 25th, 2010

/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;}

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

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Average Rating: 0 (0 ratings)
Giuseppe Larosa Tue, 05/25/2010 - 02:32

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

http://www.cisco.com/en/US/products/hw/routers/ps214/products_tech_note09186a0080110ed1.shtml#loadingthebootimage

Hope to help

Giuseppe

plasiboli_2 Tue, 05/25/2010 - 06:37

/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;}

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

Giuseppe Larosa Tue, 05/25/2010 - 07:33

Hello Oliver,

as explained in the previous link the C7200 is multi stage, that is you need a boot image installed in order later to load via TFTP the full IOS image.

see the boot procedure that Peter Paluch had provided some time ago in attachment

Hope to help

Giuseppe

plasiboli_2 Wed, 05/26/2010 - 03:14

/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;}

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

Giuseppe Larosa Wed, 05/26/2010 - 04:41

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

plasiboli_2 Thu, 05/27/2010 - 06:28

/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;}

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.

Giuseppe Larosa Thu, 05/27/2010 - 12:16

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

Actions

Login or Register to take actions

This Discussion

Posted May 25, 2010 at 2:08 AM
Stats:
Replies:7 Avg. Rating:
Views:5438 Votes:0
Shares:0
Tags: tftp, rommon, vxr
+

Related Content

Discussions Leaderboard