02-01-2019 11:48 AM
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-c2811do 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: 0xcb80loadprog: 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: 0xcb80loadprog: 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!
Solved! Go to Solution.
02-01-2019 04:43 PM
@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.
02-01-2019 12:27 PM
try below :
>boot flash0: c2800nm-ipbase-mz.124-15.T7.bin
then change the cong registry
follow below guide.
02-01-2019 02:33 PM
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: 0xcb80loadprog: 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-c2811do 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?
02-01-2019 03:12 PM
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.0monitor: 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 > tftpdnldIP_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: AutoInvoke 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?
02-01-2019 04:01 PM
confreg 0x2102 <-- i have pointed the document to change to this.
@Leo Laohoo also mentioned same to change
02-01-2019 02:34 PM
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: 0xcb80loadprog: 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-c2811do 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?
02-01-2019 03:52 PM
@LeeSteventon wrote:
(Virtual Configuration Register: 0x214f)
LOL!
Someone is pulling a prank on you.
Enter this command: confreg 0x2102
And then reboot.
02-01-2019 04:04 PM
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...
02-01-2019 04:20 PM
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 ?
02-01-2019 04:41 PM
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?
02-01-2019 04:29 PM
02-01-2019 04:38 PM
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 >
02-01-2019 04:40 PM
where is the image here ?
boot: cannot load "flash:"
02-01-2019 04:45 PM
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 >
02-01-2019 04:50 PM - edited 02-01-2019 04:51 PM
@LeeSteventon wrote:
rommon 2 > boot flash:c2800nm-ipbase-mz.124-15.T7.bin
program load complete, entry point: 0x8000f000, size: 0xcb80loadprog: 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.
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