projects
/
openwrt
/
staging
/
xback.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96da72d
)
firmware-utils/mkzynfw: fix available flash space calculation
author
Gabor Juhos
<juhosg@openwrt.org>
Fri, 17 Dec 2010 20:34:31 +0000
(20:34 +0000)
committer
Gabor Juhos
<juhosg@openwrt.org>
Fri, 17 Dec 2010 20:34:31 +0000
(20:34 +0000)
SVN-Revision: 24653
tools/firmware-utils/src/mkzynfw.c
patch
|
blob
|
history
diff --git
a/tools/firmware-utils/src/mkzynfw.c
b/tools/firmware-utils/src/mkzynfw.c
index f3343df7269a93e03ddeb67f19e7625b45690186..36c176f4325f34c7c45098d2dbb0886cb49b2c4f 100644
(file)
--- a/
tools/firmware-utils/src/mkzynfw.c
+++ b/
tools/firmware-utils/src/mkzynfw.c
@@
-999,12
+999,13
@@
calc_block_offsets(int type, uint32_t *offset)
continue;
next_offs = ALIGN(*offset, block->align);
- avail = board->flash_size -
board->romio_offs -
next_offs;
+ avail = board->flash_size - next_offs;
if (block->file_size > avail) {
ERR("file %s is too big, offset = %u, size=%u,"
- " align = %u", block->file_name,
+ " a
vail = %u, a
lign = %u", block->file_name,
(unsigned)next_offs,
(unsigned)block->file_size,
+ (unsigned)avail,
(unsigned)block->align);
res = -1;
break;