compute rootfs crc32 required for brcm63xx web upgrades
SVN-Revision: 15081
This commit is contained in:
parent
241b3d5d40
commit
11a791a318
1 changed files with 1 additions and 4 deletions
|
@ -191,10 +191,7 @@ int tagfile(const char *kernel, const char *rootfs, const char *bin,
|
||||||
fseek(binfile, rootfsoff - fwaddr, SEEK_SET);
|
fseek(binfile, rootfsoff - fwaddr, SEEK_SET);
|
||||||
while (rootfsfile && !feof(rootfsfile) && !ferror(rootfsfile)) {
|
while (rootfsfile && !feof(rootfsfile) && !ferror(rootfsfile)) {
|
||||||
read = fread(readbuf, sizeof(uint8_t), sizeof(readbuf), rootfsfile);
|
read = fread(readbuf, sizeof(uint8_t), sizeof(readbuf), rootfsfile);
|
||||||
/*
|
crc = crc32(crc, readbuf, read);
|
||||||
* TODO: Is this necessary ?
|
|
||||||
* crc = crc32(crc, readbuf, read);
|
|
||||||
*/
|
|
||||||
fwrite(readbuf, sizeof(uint8_t), read, binfile);
|
fwrite(readbuf, sizeof(uint8_t), read, binfile);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue