aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/mtd/src/mtd.h
diff options
context:
space:
mode:
authorINAGAKI Hiroshi <musashino.open@gmail.com>2021-03-07 16:47:17 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2021-03-15 16:57:34 +0100
commitb5b0796a13223b56f1c2e13e2697c92dec22e9c2 (patch)
treef4a37b4d962f62829660206b2d5abad43d9d9942 /package/system/mtd/src/mtd.h
parent4d9f69322cdaaec10a8f37c67c772f5c3b21e841 (diff)
downloadupstream-b5b0796a13223b56f1c2e13e2697c92dec22e9c2.tar.gz
upstream-b5b0796a13223b56f1c2e13e2697c92dec22e9c2.tar.bz2
upstream-b5b0796a13223b56f1c2e13e2697c92dec22e9c2.zip
mtd: add option for TRX magic to fixtrx
Buffalo uses the TRX header with a different magic and even changes this magic with different devices. This change allows to specify the header to use as a command line argument. This is needed for the Buffalo WSR-2533DHP2 based on mt7622. Co-Developed-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'package/system/mtd/src/mtd.h')
-rw-r--r--package/system/mtd/src/mtd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/system/mtd/src/mtd.h b/package/system/mtd/src/mtd.h
index fe716b7150..d2facc8e3b 100644
--- a/package/system/mtd/src/mtd.h
+++ b/package/system/mtd/src/mtd.h
@@ -12,6 +12,7 @@
extern int quiet;
extern int mtdsize;
extern int erasesize;
+extern uint32_t opt_trxmagic;
extern int mtd_open(const char *mtd, bool block);
extern int mtd_check_open(const char *mtd);