add support for the Pirelli AG226G board (#5337)

SVN-Revision: 17190
This commit is contained in:
Florian Fainelli
2009-08-09 10:19:47 +00:00
parent 2d629e3a01
commit 85698765da
3 changed files with 29 additions and 0 deletions

View File

@@ -219,6 +219,10 @@ int tagfile(const char *kernel, const char *rootfs, const char *bin,
fseek(binfile, rootfsoff + rootfslen - fwaddr, SEEK_SET);
fwrite(&deadcode, sizeof(uint32_t), 1, binfile);
/* Flush the binfile buffer so that when we read from file, it contains
* everything in the buffer
*/
fflush(binfile);
/* Choose and compute the CRC32 that should be inserted in the tag */
if ( tagid && ( (strncmp(tagid, "bccfe", TAGID_LEN) == 0)) || ( strncmp(tagid, "bc300", TAGID_LEN) == 0)) {