cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
30405
Views
10
Helpful
15
Replies

Xmodem I/O error when copy IOS from tftp server

mariusferezan
Level 1
Level 1

After I formatted the flash I am trying to copy the IOS from tftp server using "copy xmodem: flash:c3550-ipbasek9-mz.122-44.SE6.bin" command, in rommon mode. I am getting the I/O error message.

I did try to boot from tftp using the "set BOOT tftp:c3550-ipbasek9-mz.122-44.SE6.bin" command and then "boot" command and I get an "error loading tftp:" and  "permission denied" message.

The tftp server is active; I did copy the old IOS before.

Here is the output from my switch:

switch: flash_init

Initializing flash...

flashfs[0]: 2 files, 1 directories

flashfs[0]: 0 orphaned files, 0 orphaned directories

flashfs[0]: Total bytes: 15998976

flashfs[0]: Bytes used: 2048

flashfs[0]: Bytes available: 15996928

flashfs[0]: flashfs fsck took 12 seconds.

...done Initializing Flash.

Boot Sector Filesystem <bs:> installed, fsid: 3

switch: dir flash:

Directory of flash:/

2     -rwx      22            <date>           env_vars

3     -rwx      43            <date>           system_env_vars

15996928 bytes available <2048 bytes used>

switch: set

BAUD=115200

BOOT=tftp:c3550-ipbasek9-mz.122-44.SE6.bin

switch: copy xmodem: flash:c3550-ipbasek9-mz.122-44.SE6.bin

Begin the Xmodem or Xmodem-1k transfer now...

CCCCCCCxmodem:: I/O error

Help would be really apreciated.

Thank you.

Marius.

15 Replies 15

Nagaraja Thanthry
Cisco Employee
Cisco Employee

Hello,

Can you try "copy xmodem: flash:" (without the image name)?

Regards,

NT

Hi garrett.fontenot,

 

Thanks .. it work for me...

 

Cheers,

Swapnil

Hello 

Can you please help me ---

same issue  here

ÿBase ethernet MAC Address: 00:0b:5f:62:b2:80
Xmodem file system is available.
The password-recovery mechanism is enabled.

The system has been interrupted prior to initializing the
flash filesystem. The following commands will initialize
the flash filesystem, and finish loading the operating
system software:

flash_init
boot

switch: load_helper
switch: he


lp
? -- Present list of available commands
boot -- Load and boot an executable image
cat -- Concatenate (type) file(s)
copy -- Copy a file
delete -- Delete file(s)
dir -- List files in directories
flash_init -- Initialize flash filesystem(s)
format -- Format a filesystem
fsck -- Check filesystem consistency
help -- Present list of available commands
load_helper -- Load and initialize a helper image
memory -- Present memory heap utilization information
mkdir -- Create dir(s)
more -- Concatenate (display) file(s)
rename -- Rename a file
reset -- Reset the system
rmdir -- Delete empty dir(s)
set -- Set or display environment variables
set_param -- Set system parameters in flash
sleep -- Pause (sleep) for a specified number of seconds
trap -- Cause a software breakpoint to occur
-- MORE --
type -- Concatenate (type) file(s)
unset -- Unset one or more environment variables
version -- Display boot loader version
switch: copy xmodem: flash:
Begin the Xmodem or Xmodem-1K transfer now...
CCxmodem:: unknown error
switch:
switch: copy xmodem: flash:
Begin the Xmodem or Xmodem-1K transfer now...
Cxmodem:: I/O error
switch: dir

List of filesystems currently registered:

flash[0]: (read-write)
xmodem[1]: (read-only)
null[2]: (read-write)

switch: copy xmodem: flash:c3550-ipservicesk9-mz.122-44.SE6
Begin the Xmodem or Xmodem-1K transfer now...
Cxmodem:: bad file number
switch: copy xmodem: flash:c3550-ipservicesk9-mz.122-44.SE6.bin
Begin the Xmodem or Xmodem-1K transfer now...
Cxmodem:: bad file number
switch:
switch: copy xmodem: flash:c3550-ipservicesk9-mz.122-44.SE6.bin
Begin the Xmodem or Xmodem-1K transfer now...
CCflash:c3550-ipservicesk9-mz.122-44.SE6.bin: invalid argument
switch: copy xmodem: flash:
Begin the Xmodem or Xmodem-1K transfer now...
Cflash:: invalid argument
switch: copy xmodem: flash:
Begin the Xmodem or Xmodem-1K transfer now...
Cxmodem:: I/O error
switch:
switch:

morton2005
Level 1
Level 1

I am also having the same issue with 3 separate switches.  At first I assumed it was the switch, but then it is a consistent error.  The document here http://www.cisco.com/en/US/products/hw/switches/ps628/products_tech_note09186a0080169696.shtml does not help.

I have redownloaded the image

Different workstations

Different OS (XP/Windows 7)

My next step is to call TAC.

Dear Friend,

Did you set xmodem protocol in Hyper Terminal >> send file>>protocol>>xmodem ???  after give tis command ???

you must need to set after given this command.

Cheers!!!

Vaib...

Yes I did.

Thank you.

Charles,

You are right, the document provided by Cisco does not help. I did follow the instructions and I am keep getting the I/O error. I have used two computers and I just tried the same thing on my 2950 last night....erased the flash, follow the steps copy xmodem: flash: and now my 2950 is not working.

I found the issue. I was using TeraTerm and then I switched to HyperTerminal from Windows XP and it worked fine, just like in Cisco documentation. I hope it will work for you as well. On my 3550 I had to set the BAUD at 9600 to work.

Good luck.

The document I read (http://www.cisco.com/en/US/products/hw/switches/ps628/products_tech_note09186a0080169696.shtml) does not specify an OS and does it requires a specific terminal emulator.

However I could not get to to work under anything except HyperTerminal under Windows XP 32 bit using 9600 baud.  I actually used a Windows XP Mode VM under Windows 7 with a pass through USB to Serial device and it worked like a charm.

I tried MANY different terminal emulators including Ponderosa, TeraTerm, SecureCRT, HypeTerminal (for Windows 7) and probably a few others.  Nothing worked!

This is interesting, ..I used Tera Term instead of Hyper Terminal and then it worked! I used this USB Serial adapter

I am using Hyperterminal and a USB-to-Serial Adapter for the rolled cable.

When I have this problem, I have had the best results using the following method:

(I usually put the bin file in the root of my c: drive to save typing)

At the switch:   prompt, type:

boot xmodem:c:\name-of-bin-file.bin       [ENTER]

As soon as you see CCCCC   in the terminal window.....

In Hyperterminal, from the tool bar, select Transfer -> Send File

Browse to the file, select Xmodem from the dropdown menu and select SEND

You should see the xmodem file send screen with the status bar. The only really bad part is that this upload process takes a long time.

Good Luck!!

Jason K. Collins

I am using Hyperterminal and a regular serial cable. Right now I am working on a 2950 Cisco Switch

At the switch: prompt, I typed:

copy xmodem: flash:filename.bin    [ENTER]

As soon as you see CCCCC   in the terminal window.....

In Hyperterminal, from the tool bar, select Transfer -> Send File

Browse to the file, select Xmodem from the dropdown menu and select SEND

After the process has finished, type en and then boot flash:filename.bin

This will boot the .bin in your flash directory. The previous post only boots the switch that one time until it turns off. It does not put the image in the flash directory.

-->I dont know why it has to be done this way, but this was a bare to figure out. Nothing works like its suppose to though.

-This process will take a long time.  Couldnt get a faster speed then 9600

How do setup win xp to regenoize serial connection com port ? all i see is com 1 and 2 however my console cable on Com3

That is realy strange.

I am using HT to copy files using xmodem, and it works fine with baud rate set to 115200.

For this to work, you have first ensure that there's enough free space on the flash (if not, format it or delete files). Then you have to execute "set BAUD 115200". Once you press Enter console will stop responding. You will have to disconnect (Call -> Disconnect), then change connection Properties (File -> Properties -> Configure) and set HyperTerminal connection's baud rate to 115200. You will have your connection restored.

After this just execute "copy xmodem: flash:.bin" and start file transfer in HT (Transfer -> Send File). Ensure that you selected an appropriate BIN file and changed transfer mode to XMODEM or XMODEM-1K before pressing send.

Works fine for me.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: