mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-02-17 17:44:43 +02:00
[tools] compute rootfs crc32 required for brcm63xx web upgrades
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15081 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
832e95312e
commit
bfb51f9f6d
@ -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…
x
Reference in New Issue
Block a user