aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/mtd/src/wrgg.h
diff options
context:
space:
mode:
authorStijn Tintel <stijn@linux-ipv6.be>2016-08-07 18:51:12 +0200
committerStijn Tintel <stijn@linux-ipv6.be>2016-10-27 01:50:42 +0300
commit9dfed03c35ca06afd7aa38b8584c74e06d12c516 (patch)
treed9f9626fa64279c7c043a2bde85f341c0de22423 /package/system/mtd/src/wrgg.h
parentdec29082e0d3d9aed4815e969641bd155b799b42 (diff)
downloadupstream-9dfed03c35ca06afd7aa38b8584c74e06d12c516.tar.gz
upstream-9dfed03c35ca06afd7aa38b8584c74e06d12c516.tar.bz2
upstream-9dfed03c35ca06afd7aa38b8584c74e06d12c516.zip
mtd: add fixwrgg command
Based on fixseama. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be> Acked-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'package/system/mtd/src/wrgg.h')
-rw-r--r--package/system/mtd/src/wrgg.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/package/system/mtd/src/wrgg.h b/package/system/mtd/src/wrgg.h
new file mode 100644
index 0000000000..0c4b3677ec
--- /dev/null
+++ b/package/system/mtd/src/wrgg.h
@@ -0,0 +1,20 @@
+#ifndef __wrgg_h
+#define __wrgg_h
+
+#define WRGG03_MAGIC 0x20080321
+
+struct wrgg03_header {
+ char signature[32];
+ uint32_t magic1;
+ uint32_t magic2;
+ char version[16];
+ char model[16];
+ uint32_t flag[2];
+ uint32_t reserve[2];
+ char buildno[16];
+ uint32_t size;
+ uint32_t offset;
+ char dev_name[32];
+ char digest[16];
+} __attribute__ ((packed));
+#endif /* __wrgg_h */