projects
/
librecmc
/
librecmc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added OpenWRT-specific field to imagetag so that we can record the real root length...
[librecmc/librecmc.git]
/
package
/
mtd
/
src
/
imagetag.c
diff --git
a/package/mtd/src/imagetag.c
b/package/mtd/src/imagetag.c
index 2080128c172b8bbd38ef2cd058c57844e330414c..f6095be44afa38f5346d3842f58c28bf93efdb44 100644
(file)
--- a/
package/mtd/src/imagetag.c
+++ b/
package/mtd/src/imagetag.c
@@
-124,7
+124,7
@@
trx_fixup(int fd, const char *name)
exit(1);
}
exit(1);
}
- sprintf(&tag->
r
ootLength[0], "%lu", 0);
+ sprintf(&tag->
flashR
ootLength[0], "%lu", 0);
strncpy(&tag->totalLength[0], &tag->kernelLength[0], IMAGE_LEN);
imagestart = sizeof(tag);
strncpy(&tag->totalLength[0], &tag->kernelLength[0], IMAGE_LEN);
imagestart = sizeof(tag);
@@
-258,7
+258,7
@@
mtd_fixtrx(const char *mtd, size_t offset)
fprintf(stderr, "Checking current fixed status.\n");
}
fprintf(stderr, "Checking current fixed status.\n");
}
- rootfslen = strntoul(&tag->
r
ootLength[0], NULL, 10, IMAGE_LEN);
+ rootfslen = strntoul(&tag->
flashR
ootLength[0], NULL, 10, IMAGE_LEN);
if (rootfslen == 0) {
if (quiet < 2)
fprintf(stderr, "Header already fixed, exiting\n");
if (rootfslen == 0) {
if (quiet < 2)
fprintf(stderr, "Header already fixed, exiting\n");
@@
-270,7
+270,7
@@
mtd_fixtrx(const char *mtd, size_t offset)
fprintf(stderr, "Setting root length to 0.\n");
}
fprintf(stderr, "Setting root length to 0.\n");
}
- sprintf(&tag->
r
ootLength[0], "%lu", 0);
+ sprintf(&tag->
flashR
ootLength[0], "%lu", 0);
strncpy(&tag->totalLength[0], &tag->kernelLength[0], IMAGE_LEN);
if (quiet < 2) {
strncpy(&tag->totalLength[0], &tag->kernelLength[0], IMAGE_LEN);
if (quiet < 2) {