ar71xx: increase max size of RouterStation and RouterStation Pro firmware images
[openwrt.git] / tools / firmware-utils / src / trx.c
index f2ad991..b983023 100644 (file)
@@ -60,7 +60,7 @@ uint32_t crc32buf(char *buf, size_t len);
 
 #define TRX_MAGIC      0x30524448      /* "HDR0" */
 #define TRX_VERSION    1
-#define TRX_MAX_LEN    0x5A0000
+#define TRX_MAX_LEN    0x720000
 #define TRX_NO_HEADER  1               /* Do not write TRX header */   
 
 struct trx_header {
@@ -172,6 +172,7 @@ int main(int argc, char **argv)
                                        fprintf(stderr, "realloc failed");
                                        return EXIT_FAILURE;
                                }
+                               p = (struct trx_header *) buf;
                                break;
                        case 'a':
                                errno = 0;
@@ -231,7 +232,6 @@ int main(int argc, char **argv)
 
        fclose(out);
        
-       printf("Offsets:\n0x%08x\n0x%08x\n0x%08x\n", p->offsets[0], p->offsets[1], p->offsets[2]);
        return EXIT_SUCCESS;
 }
 
This page took 0.020309 seconds and 4 git commands to generate.