Xmodem I/O error when copy IOS from tftp server

Unanswered Question
Sep 10th, 2010

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.

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
thisissanjoy Thu, 11/24/2016 - 06:29

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:

csawest.dc Sat, 09/11/2010 - 10:39

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...

mariusferezan Sat, 09/11/2010 - 11:28

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.

mariusferezan Sat, 09/11/2010 - 12:09

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.

morton2005 Sat, 09/11/2010 - 17:40

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!

Jason Collins Tue, 09/28/2010 - 06:49

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

garrett.fontenot Wed, 08/22/2012 - 12:50

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

Kyle Albasha Tue, 03/19/2013 - 14:44

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

Tymofii Dmytrenko Fri, 05/10/2013 - 15:37

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.

Eurymedon Tue, 12/03/2013 - 22:11

I had the same Problem,

finaly it worked with Win7x64/Tera Term command copy xmodem: flash:filename.bin

when the CCC starts go to file=>Transfer=>xModem and chose CRC as Type.

baud was 9600 when succeeded but I belived 115200 would work aswell

Actions

This Discussion