2
0
forked from Ivasoft/openwrt

ar71xx: update image generation and trx header parsing for the WRT160NL

* patch by Bernhard Loos
 * note: trailing whitespaces has been removed

SVN-Revision: 20525
This commit is contained in:
Gabor Juhos
2010-03-27 17:38:36 +00:00
parent 37712c70c5
commit 905f2d62f9
2 changed files with 6 additions and 15 deletions

View File

@@ -123,12 +123,7 @@ static int wrt160nl_parse_partitions(struct mtd_info *master,
goto free_hdr;
}
kernel_len = uheader->ih_size / master->erasesize;
if (uheader->ih_size % master->erasesize)
kernel_len++;
kernel_len++;
kernel_len *= master->erasesize;
kernel_len = le32_to_cpu(theader->offsets[1]) + sizeof(struct cybertan_header);
trx_parts[0].name = "u-boot";
trx_parts[0].offset = 0;