Upgrading U-boot via serial

U-boot is an open source bootloader. This post is here because I had a problem with U-boot where I couldn't update it using ethernet.

It's not that difficult to use serial line for u-boot upgrading, as long as you have a "working" u-boot flashed in your board, you can always use loady or loadb to download binary image into your board's RAM.

For achieving this, we'll need:

  • A target board with u-boot running;
  • A new u-boot binary;
  • Minicom;
  • a serial cable.

Let's do it, step by step. By the way, I'm using an OMAP 1710 H3 board, so be aware memory offsets in your board may change.

  1. Attach a serial cable to your board;
  2. Open minicom by issuing:
  3.  $ minicom

    in a terminal;

  4. Start your board and stop u-boot's autoboot;
  5. run:
  6.  # loady 10000000 115200

    at u-boot's prompt;

  7. Issue CTRL+s at U-boot and choose ymodem
  8. Wait until the image is loaded into memory
  9. After the image is loaded in RAM memory, it'll return you the amount of transfered bytes.
  10.  # protect off 00000000 0001ffff
  11.  # era 00000000 0001ffff
  12.  # cp.b 0x10000000 0x00000000 size_in_hex
  13.  # protect on 00000000 0001ffff

And that's all. Restart your board and you'll have a new U-boot flashed.

VN:F [1.9.0_1079]
Rating: 0.0/5 (0 votes cast)
VN:F [1.9.0_1079]
Rating: 0 (from 0 votes)

Leave a Reply