Uploading files with xmodem

PuTTy on Windows does not support zmodem, xmodem, etc. so I often used HyperTerminal, but the GUI of Hyperterminal annoys me.

So instead of switching between PuTTy and HyperTerminal all the time, I tried to use a different terminal emulator ‘TeraTerm Pro’. This seems fine, but for some reason it dumps a few random characters on the serial line after the file is transferred, falsely answering the multiple choice menu to decide between runtime, diag, multiple image or loader.

I am now using GNU Screen with lrzsz. It was a little struggle to figure out the correct syntax for this, because Screen has a google-incompatible name. Hopefully I’ve sprinkled enough relevant terms in this post to help somebody else with this issue.

I start screen with ‘screen /dev/ttyUSB0 115200’. Then when I start the Xmodem download on the bootrom side I execute CTRL-A “:exec !! sx -kb firmware.bix” in screen.

This works mostly fine. It eats the multiple choice menu after the transfer, but you can press <ENTER> to view it again. And FYI, the bootrom support Xmodem-1K giving a nice transferboost over regular Xmodem.

Advertisements

4 Responses to “Uploading files with xmodem”

  1. sloaf Says:

    Awesome, thanks for the help. Just got my cisco switch back up and running.

  2. math66 Says:

    thx you.

    i have write my doc from youre.

    *********************
    Attention a etre raccordé sur le bon switch en cas de stack
    *********************

    screen /dev/ttyUSB0

    enable
    conf t
    line con 0
    speed 115200

    CTRL A + k

    screen /dev/ttyUSB0 115200

    exit
    exit

    copy ymodem: flash:filename.bin

    CTRL A puis :exec sz -kb filename.bin

  3. HAXCESS Says:

    GNU Screen and Xmodem!…

    How many terms are incompatible with Google? screen (the gnu screen program) is one of them unfortunately. How often have you found yourself needing to upload an IOS to a dead router or switch? And how often do you have to do this on a Linux or Mac bas…

  4.  click here Says:

    It's actually a fantastic area for any trip
    with or without all your family members.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: