02-04-2009 06:30 PM - edited 07-03-2021 05:06 PM
I tried to upgrade the 1220 AP with an IOS Image. I have deleted the old IOS which was inside the AP. But after rebooting it shows "magic number mismatch: bad mzip file
Error loading "flash:/c1200-k9w7-tar.123-8.JEC2.tar".
I done a reset to the AP, but still i cannot get in the IOS. i have tried the tftpdnld process, but the tftpdnld command is not recognised by the AP.
Anyone can help....Please
Solved! Go to Solution.
02-09-2009 12:14 PM
try this:
format flash:
then reset.
After the reset you will be in BOOTLOADER
type:
set
it will show IP address 10.0.0.1
connect laptop with a TFTP server directly to the AP and change its IP address to 10.0.0.5
at the AP prompt trype:
tar -xtract tftp://10.0.0.5/filename.tar flash:
this will download and expand the tar file in the AP filesystem.
Reset the AP; the file might not be loaded the first time, just type boot at the prompt and that will load it.
you should be back online.
02-04-2009 07:24 PM
c1200-k9w7-tar.123-8.JEC2.tar is a compressed file. You need to uncompress this.
If there is enough space in the AP, run the command:
archive tar /x flash:c1200-k9w7-tar.123-8.JEC2.tar flash:
Does this help?
02-04-2009 09:50 PM
Hi Leolaohoo,
Thanks a lot for your reply.
The problem is i have deleted the IOS from the AP. So i cannot load to the IOS. I can only load to the setup mode. In this setup mode, archive command is not valid. My .tar image is already inside the flash.But it cannot load because .tar is not a valid boot image.
Do you know how can i extract the .tar files which is inside the flash mem..??
Thanks a lot...!!!
02-05-2009 12:41 PM
Are you in ROMmon mode? What is the cursor?
02-05-2009 05:38 PM
Yes...I am in Rommon mode...
the cursor is ap:
This is what i am getting during the boot up of the AP
Xmodem file system is available.
flashfs[0]: 137 files, 6 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 7741440
flashfs[0]: Bytes used: 5599232
flashfs[0]: Bytes available: 2142208
flashfs[0]: flashfs fsck took 15 seconds.
Reading cookie from flash parameter block...done.
Base ethernet MAC Address: 00:0d:bc:c7:60:05
Initializing ethernet port 0...
Reset ethernet port 0...
Reset done!
ethernet link up, 100 mbs, full-duplex
Ethernet port 0 initialized: link is up
The system is unable to boot automatically because there
are no bootable files to boot.
C1200 Boot Loader (C1200-BOOT-M) Version 12.2(8)JA, EARLY DEPLOYMENT RELEASE SOFTWARE (fc1)
TAC Support: http://www.cisco.com/tac
Compiled Wed 12-Feb-03 15:23 by hqluong
ap:
ap:
Thanks a lot for your help..
02-08-2009 05:24 PM
OK, you are in ROMMON. If you type the "?", do you see the TFTPDNLD command?
02-08-2009 10:40 PM
Nope...i tried almost all commands inside the ROMmon mode....this TFTPDNLD command is also not inside ROMmon mode....any other way to recover the IOS..??
02-06-2009 12:12 PM
I am having the same issue. Waiting on a solution. Running the tar -xtract command will find the file on my PC but keeps saying "permission denied". any help would be great.
02-08-2009 10:44 PM
Hi..
I have also tried this tar -xtract command...but getting the same error....."permission denied"....
Any help...
02-09-2009 12:14 PM
try this:
format flash:
then reset.
After the reset you will be in BOOTLOADER
type:
set
it will show IP address 10.0.0.1
connect laptop with a TFTP server directly to the AP and change its IP address to 10.0.0.5
at the AP prompt trype:
tar -xtract tftp://10.0.0.5/filename.tar flash:
this will download and expand the tar file in the AP filesystem.
Reset the AP; the file might not be loaded the first time, just type boot at the prompt and that will load it.
you should be back online.
02-10-2009 01:01 AM
Hi Carlos,
Yup..its working....Thanks a lot for your great help...
Also can you advise me how can i upgrade the IOS of 1200 AP from one version to another using the tftp locally and not using the web page...??
Thanks once again....
Regards
Subhash
02-10-2009 06:22 AM
Hi Subhash,
Working with Software Images
This section describes how to archive (download and upload) software image files, which contain the system software, Cisco IOS software, radio firmware, and the web management HTML files.
You download an access point image file from a TFTP, FTP, or RCP server to upgrade the access point software. You upload an access point image file to a TFTP, FTP, or RCP server for backup purposes. You can use this uploaded image for future downloads to the same access point or another of the same type.
Hope this helps!
Rob
02-10-2009 07:21 AM
For what its worth for people in the position that I was in, I have a solution for upgrading to the LWAPP image. I TFTP'ed the LWAPP image to the AP and then deleted the current Autonomous image. When you reboot, it cannot find a proper boot path because the LWAPP image is in the compressed .tar format. When trying to run another image through TFTP didnt work, I ran the tar -xtract command on the image in flash and then xtracted straight to flash. This now gives you a bootable image that will boot the AP in LWAPP mode.
The command is: tar -xtract flash:
Next type: dir flash: and you will see the bootable image.
Type: set BOOT flash:
Hope this helps anyone else in my situation.
02-26-2009 04:19 AM
Hi Carlos
Excellent post, thanks.
For others, my AP did not show an IP address when i typed in 'set', as recommended above, so I did the following:
set IP-ADDR 10.0.0.1
set DEFAULT_ROUTER 10.0.0.2 (my laptop IP)
set NETMASK 255.255.255.0
tftp_init
reset
This has set an IP information and once tftp is initiated you can then do the tar -xtract thing with success.
I had an LWAPP AP which I needed to recover and I used the IOS to LWAPP conversion image to recover it. Once plugged back into network it updates itself from the controllers and becomes fully operational.
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