diff options
author | Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> | 2013-11-12 21:58:03 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-11-18 10:53:11 +0100 |
commit | 4f3570c470e7df13c7bd9d4bd7a720922d97e9c5 (patch) | |
tree | 69e11041ffed61e9501c988cf14b95abef62478a /scripts/kwboot.c | |
parent | 32a57751252ffe1adc8f3dc95ff937d2daa3f856 (diff) | |
download | barebox-4f3570c470e7df13c7bd9d4bd7a720922d97e9c5.tar.gz barebox-4f3570c470e7df13c7bd9d4bd7a720922d97e9c5.tar.xz |
scripts: kwboot: fix missing soh initialization
Xmodem blocks should start with SOH but kwboot never sets the first
block byte. This fixes kwboot's Xmodem block initialization and sets
first block byte to SOH.
Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts/kwboot.c')
-rw-r--r-- | scripts/kwboot.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/kwboot.c b/scripts/kwboot.c index 33c94b3a8b..81da3e81bc 100644 --- a/scripts/kwboot.c +++ b/scripts/kwboot.c @@ -334,6 +334,7 @@ kwboot_xm_makeblock(struct kwboot_block *block, const void *data, size_t n; int i; + block->soh = SOH; block->pnum = pnum; block->_pnum = ~block->pnum; |