flash: write_image would fail for certain images
commit5e79f999bcc898d94a2d7751831e9f7aee24fbd5
authorØyvind Harboe <oyvind.harboe@zylin.com>
Thu, 29 Apr 2010 15:42:47 +0000 (29 17:42 +0200)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Thu, 29 Apr 2010 16:39:48 +0000 (29 18:39 +0200)
treed76fb4bf92542115bb6ebd6d72479c9998cc8e2e
parent78248f1df67d1b4feefd8ac4e459acd7599d6af2
flash: write_image would fail for certain images

Fix a bug where write_image would fail if the sections
in the image were not in ascending order. This has previously
been fixed in gdb load.

Solved by sorting the image sections before running flash
write_image erase unlock foo.elf.

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
src/flash/nor/core.c