ar71xx: create WZR-HP-G300NH network config from uci-defaults
[openwrt.git] / tools / firmware-utils / src / imagetag.c
index 1818daa..bebaba2 100644 (file)
@@ -338,11 +338,12 @@ int tagfile(const char *kernel, const char *rootfs, const char *bin, \
 
        if (args->root_first_flag) {
          sprintf(tag.flashImageStart, "%lu", rootfsoff);
-         sprintf(tag.rootLength, "%lu", rootfslen);      
+         sprintf(tag.flashRootLength, "%lu", rootfslen);         
        } else {
          sprintf(tag.flashImageStart, "%lu", kerneloff);
-         sprintf(tag.rootLength, "%lu", rootfslen + sizeof(deadcode));
+         sprintf(tag.flashRootLength, "%lu", rootfslen + sizeof(deadcode));
        }
+       int2tag(tag.rootLength, rootfslen + sizeof(deadcode));
 
        if (args->rsa_signature_given) {
            strncpy(tag.rsa_signature, args->rsa_signature_arg, RSASIG_LEN);
@@ -360,10 +361,6 @@ int tagfile(const char *kernel, const char *rootfs, const char *bin, \
          strncpy(tag.information2, args->info2_arg, TAGINFO2_LEN);
        }
 
-       if (args->reserved1_given) {
-         strncpy(tag.reserved1, args->reserved1_arg, 8);
-       }
-
        if (args->reserved2_given) {
          strncpy(tag.reserved2, args->reserved2_arg, 16);
        }
This page took 0.026792 seconds and 4 git commands to generate.