cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5331
Views
10
Helpful
20
Replies

Cisco 2811 unable to load flash ios, constantly defaulting to ROMMON

LeeSteventon
Level 1
Level 1

Hi all,

 

I'm suddenly having problems with a 2811 not being able to boot from flash.

 

Each time I restert I get the error message:

 

loadprog: bad file magic number: 0x0
boot: cannot load "flash:"

I have tried:

- loading the image again onto the same and a new CF card - no success

- booting from a flash USB with the same ios image - no success

- entering into ROMMON and issuing the boot flash:<image name> command - same result, no success.

 

The following is the screen output:

 


Configuration Summary
(Virtual Configuration Register: 0x214f)
enabled are:
load rom after netboot fails
ignore system config info
console baud: 9600
boot: image specified by the boot system commands
or default to: cisco17-c2811

do you wish to change the configuration? y/n [n]: n


You must reset or power cycle for new config to take effect
rommon 2 > dir flash:
program load complete, entry point: 0x8000f000, size: 0xcb80
Directory of flash:

2 25534596 -rw- c2800nm-ipbase-mz.124-15.T7.bin
6237 2748 -rw- sdmconfig-2811.cfg
6834 1038 -rw- home.shtml
7380 5391 -rw- running-config
7382 5391 -rw- running-config_29-12-2017
rommon 3 > reset
c2811 platform with 262144 Kbytes of main memory
Main memory is configured to 64 bit mode with ECC enabled


Upgrade ROMMON initialized
program load complete, entry point: 0x8000f000, size: 0xcb80
program load complete, entry point: 0x8000f000, size: 0xcb80

loadprog: bad file magic number: 0x0
boot: cannot load "flash:"
c2811 platform with 262144 Kbytes of main memory
Main memory is configured to 64 bit mode with ECC enabled


Upgrade ROMMON initialized
program load complete, entry point: 0x8000f000, size: 0xcb80
program load complete, entry point: 0x8000f000, size: 0xcb80

loadprog: bad file magic number: 0x0
boot: cannot load "flash:"
c2811 platform with 262144 Kbytes of main memory
Main memory is configured to 64 bit mode with ECC enabled


Upgrade ROMMON initialized
Entering rommon> prompt after several failed attempts to boot an IOS image.
Please check your internal/external flash drives for the correct IOS image
and issue 'reset' at the rommon> prompt to re-try the boot process.
rommon 1 >

 

Any ideas / pointers as to what I can try next?

 

Thanks in advance for all and any help!

1 Accepted Solution

Accepted Solutions


@LeeSteventon wrote:

loadprog: bad file magic number: 0x0
boot: cannot load "flash:"


Pop the lid.  Make sure the DRAM isn't dislodged.  

If the router came from a used market, make sure there are no "grits" on the DRAM:  Take it out and clean it with something dry.  Can of compressed air will suffice.

View solution in original post

20 Replies 20

balaji.bandi
Hall of Fame
Hall of Fame

try below :

 

>boot flash0: c2800nm-ipbase-mz.124-15.T7.bin

 

then change the  cong registry

 

follow below guide.

 

https://www.cisco.com/c/en/us/td/docs/routers/access/1900/software/configuration/guide/Software_Configuration/appendixCrommon.html

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Hello BB and many thanks for your response.

 

Unfortunately, this didn't work. when I tried:

 

>boot flash0: c2800nm-ipbase-mz.124-15.T7.bin

this was the console output:

 

rommon 3 > boot flash0:c2800nm-ipbase-mz.124-15.T7.bin
program load complete, entry point: 0x8000f000, size: 0xcb80
program load complete, entry point: 0x8000f000, size: 0xcb80

loadprog: bad file magic number: 0x0
open: failed to find and/or load the bootloader: "flash:c2800nm-ipbase-mz.124-15.T7.bin"
loadprog: error - on file open
boot: cannot load "flash0:c2800nm-ipbase-mz.124-15.T7.bin"
rommon 4 >

If I then enter into confreg, see the following:

 

Configuration Summary
(Virtual Configuration Register: 0x2142)
enabled are:
load rom after netboot fails
ignore system config info
console baud: 9600
boot: image specified by the boot system commands
or default to: cisco2-c2811

do you wish to change the configuration? y/n [n]: y
enable "diagnostic mode"? y/n [n]:
enable "use net in IP bcast address"? y/n [n]:
disable "load rom after netboot fails"? y/n [n]:
enable "use all zero broadcast"? y/n [n]:
enable "break/abort has effect"? y/n [n]:
disable "ignore system config info"? y/n [n]:
change console baud rate? y/n [n]:
change the boot characteristics? y/n [n]: y
enter to boot:
0 = ROM Monitor
1 = the boot helper image
2-15 = boot system
[2]:

Any ideas?

I have also tried setting up my PC as a TFTP server and loading the ios image from there, but also with no success:

 

rommon 2 > IP_ADDRESS=20.20.20.30
rommon 3 > IP_SUBNET_MASK:255.255.255.0

monitor: command "IP_SUBNET_MASK:255.255.255.0" not found
rommon 4 > IP_SUBNET_MASK=255.255.255.0
rommon 5 > DEFAULT_GATEWAY=20.20.20.20
rommon 6 > TFTP_SERVER=20.20.20.20
rommon 7 > TFTP_FILE=c2800nm-ipbase-mz.124-15.T7.bin
rommon 8 > tftpdnld

IP_ADDRESS: 20.20.20.30
IP_SUBNET_MASK: 255.255.255.0
DEFAULT_GATEWAY: 20.20.20.20
TFTP_SERVER: 20.20.20.20
TFTP_FILE: c2800nm-ipbase-mz.124-15.T7.bin
TFTP_VERBOSE: Progress
TFTP_RETRY_COUNT: 18
TFTP_TIMEOUT: 7200
TFTP_CHECKSUM: Yes
TFTP_MACADDR: 00:24:c4:12:74:98
FE_PORT: Fast Ethernet 0
FE_SPEED_MODE: Auto

Invoke this command for disaster recovery only.
WARNING: all existing data in all partitions on flash: will be lost!
Do you wish to continue? y/n: [n]: y
heap_allocation:
*** TLB (Load/Fetch) Exception ***
Access address = 0x0
PC = 0xbfcf49ac, Cause = 0x8, Status Reg = 0x3040a803
Failure detected during ROMMON start-up tests. Restart ROMMON.
c2811 platform with 262144 Kbytes of main memory
Main memory is configured to 64 bit mode with ECC enabled

Interesting that the ROMMON start-up tests failed (see bold text above). Is there maybe something corrupt there?

 confreg 0x2102   <-- i have pointed the document to change to this.

 

@Leo Laohoo also mentioned same to change

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Hello BB and many thanks for your response.

 

Unfortunately, this didn't work. when I tried:

 

>boot flash0: c2800nm-ipbase-mz.124-15.T7.bin

this was the console output:

 

rommon 3 > boot flash0:c2800nm-ipbase-mz.124-15.T7.bin
program load complete, entry point: 0x8000f000, size: 0xcb80
program load complete, entry point: 0x8000f000, size: 0xcb80

loadprog: bad file magic number: 0x0
open: failed to find and/or load the bootloader: "flash:c2800nm-ipbase-mz.124-15.T7.bin"
loadprog: error - on file open
boot: cannot load "flash0:c2800nm-ipbase-mz.124-15.T7.bin"
rommon 4 >

If I then enter into confreg, see the following:

 

Configuration Summary
(Virtual Configuration Register: 0x2142)
enabled are:
load rom after netboot fails
ignore system config info
console baud: 9600
boot: image specified by the boot system commands
or default to: cisco2-c2811

do you wish to change the configuration? y/n [n]: y
enable "diagnostic mode"? y/n [n]:
enable "use net in IP bcast address"? y/n [n]:
disable "load rom after netboot fails"? y/n [n]:
enable "use all zero broadcast"? y/n [n]:
enable "break/abort has effect"? y/n [n]:
disable "ignore system config info"? y/n [n]:
change console baud rate? y/n [n]:
change the boot characteristics? y/n [n]: y
enter to boot:
0 = ROM Monitor
1 = the boot helper image
2-15 = boot system
[2]:

Any ideas?

Leo Laohoo
Hall of Fame
Hall of Fame

@LeeSteventon wrote:

(Virtual Configuration Register: 0x214f)


LOL!

Someone is pulling a prank on you. 

Enter this command:  confreg 0x2102

And then reboot.

Hmmm, that seems to have made things worse:

 

*** TLB (Load/Fetch) Exception ***
Access address = 0x0
PC = 0x80015b7c, Cause = 0x8, Status Reg = 0x3040a803

monitor: command "boot" aborted due to exception
rommon 3 > reset
c2811 platform with 262144 Kbytes of main memory
Main memory is configured to 64 bit mode with ECC enabled


Upgrade ROMMON initialized
program load complete, entry point: 0x8000f000, size: 0xcb80
program load complete, entry point: 0x8000f000, size: 0xcb80


*** TLB (Load/Fetch) Exception ***
Access address = 0x0
PC = 0x80015b7c, Cause = 0x8, Status Reg = 0x3040a803

monitor: command "boot" aborted due to exception
c2811 platform with 262144 Kbytes of main memory
Main memory is configured to 64 bit mode with ECC enabled


Upgrade ROMMON initialized
program load complete, entry point: 0x8000f000, size: 0xcb80
program load complete, entry point: 0x8000f000, size: 0xcb80


*** TLB (Load/Fetch) Exception ***
Access address = 0xe5a4
PC = 0x80015b7c, Cause = 0x8, Status Reg = 0x3040a803

monitor: command "boot" aborted due to exception
c2811 platform with 262144 Kbytes of main memory
Main memory is configured to 64 bit mode with ECC enabled


Upgrade ROMMON initialized
Entering rommon> prompt after several failed attempts to boot an IOS image.
Please check your internal/external flash drives for the correct IOS image
and issue 'reset' at the rommon> prompt to re-try the boot process.
rommon 1 >

 

No-one else has access to this router as it is currently standalone at my home office and always has been...

Access address = 0x0

 

Follow the document which i have provided step by step  - post full output from console.

 

then we can come to conclusion either you hitting with any bugs, can you please confirm is this working version or upgraded ?

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Not sure what you mean by "Follow the document which i have provided step by step". Are you referring to the link you sent (Using ROM Monitor)?

 

This is a general guide it seems to using ROMMON on Cisco 3900 Series, 2900 Series, and 1900 Series routers.. Which part do you want me to follow?

If there are any modules installed, pop all of them out.

Removed modules and hard reboot. Same result:

 

rommon 1 > confreg 0x2102


rommon 2 > reset
c2811 platform with 262144 Kbytes of main memory
Main memory is configured to 64 bit mode with ECC enabled


Upgrade ROMMON initialized
program load complete, entry point: 0x8000f000, size: 0xcb80
program load complete, entry point: 0x8000f000, size: 0xcb80

loadprog: bad file magic number: 0x0
boot: cannot load "flash:"
c2811 platform with 262144 Kbytes of main memory
Main memory is configured to 64 bit mode with ECC enabled


Upgrade ROMMON initialized
program load complete, entry point: 0x8000f000, size: 0xcb80
program load complete, entry point: 0x8000f000, size: 0xcb80

loadprog: bad file magic number: 0x0
boot: cannot load "flash:"
c2811 platform with 262144 Kbytes of main memory
Main memory is configured to 64 bit mode with ECC enabled


Upgrade ROMMON initialized
Entering rommon> prompt after several failed attempts to boot an IOS image.
Please check your internal/external flash drives for the correct IOS image
and issue 'reset' at the rommon> prompt to re-try the boot process.
rommon 1 >

where is the image here ?

 

boot: cannot load "flash:"

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Yes I saw that too BB, seemed odd. But if I try and load the image from ROMMON I get the following:

 


rommon 1 > dir flash:
program load complete, entry point: 0x8000f000, size: 0xcb80
Directory of flash:

2 25534596 -rw- c2800nm-ipbase-mz.124-15.T7.bin
6237 2748 -rw- sdmconfig-2811.cfg
6834 1038 -rw- home.shtml
7380 5391 -rw- running-config
7382 5391 -rw- running-config_29-12-2017
rommon 2 > boot flash:c2800nm-ipbase-mz.124-15.T7.bin
program load complete, entry point: 0x8000f000, size: 0xcb80

loadprog: bad file magic number: 0x0
boot: cannot load "flash:c2800nm-ipbase-mz.124-15.T7.bin"
rommon 3 > boot flash0:c2800nm-ipbase-mz.124-15.T7.bin
program load complete, entry point: 0x8000f000, size: 0xcb80
program load complete, entry point: 0x8000f000, size: 0xcb80

loadprog: bad file magic number: 0x0
open: failed to find and/or load the bootloader: "flash:c2800nm-ipbase-mz.124-15.T7.bin"
loadprog: error - on file open
boot: cannot load "flash0:c2800nm-ipbase-mz.124-15.T7.bin"
rommon 4 >


@LeeSteventon wrote:

rommon 2 > boot flash:c2800nm-ipbase-mz.124-15.T7.bin
program load complete, entry point: 0x8000f000, size: 0xcb80

loadprog: bad file magic number: 0x0


Has this router successfully loaded this IOS before?  According to the lines above, it's telling me the file is corrupt. 

To make things (a lot) worst, Cisco is no longer making the IOS files for the ISR G1 available.  

If you find a library somewhere, I'd also recommend to use the "M" train & avoid using the "T" train due to "stability" issue.

Review Cisco Networking products for a $25 gift card