X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/796a9d1091884a07817e5c140d0ff6a0b8c76235..33a352a75bf0d2246368dd07be2a0607af6004ba:/tools/firmware-utils/src/mkcsysimg.c diff --git a/tools/firmware-utils/src/mkcsysimg.c b/tools/firmware-utils/src/mkcsysimg.c index 3d5f00b9b..4f2352a60 100644 --- a/tools/firmware-utils/src/mkcsysimg.c +++ b/tools/firmware-utils/src/mkcsysimg.c @@ -1,6 +1,6 @@ /* * - * Copyright (C) 2007 Gabor Juhos + * Copyright (C) 2007-2009 Gabor Juhos * * This program was based on the code found in various Linux * source tarballs released by Edimax for it's devices. @@ -181,6 +181,9 @@ static struct board_info boards[] = { /* Conceptronic products */ BOARD_ADM("C54BSR4", "Conceptronic C54BSR4", 2, SIG_C54BSR4), + /* OSBRiDGE products */ + BOARD_ADM("5GXi", "OSBDRiDGE 5GXi", 2, SIG_5GXI), + {.model = NULL} }; @@ -574,7 +577,7 @@ block_writeout_hdr(FILE *outfile, struct csys_block *block) /* setup header fields */ memcpy(hdr.sig, block->sig, 4); hdr.addr = HOST_TO_LE32(block->addr); - hdr.size = HOST_TO_LE32(block->align-block->size_hdr); + hdr.size = HOST_TO_LE32(block->size - block->size_hdr - block->size_csum); DBG(1,"writing header for block"); res = write_out_data(outfile, (uint8_t *)&hdr, sizeof(hdr),NULL);