new file mode 100644
@@ -0,0 +1,35 @@
+--- a/drivers/mtd/bcm47xxpart.c
++++ b/drivers/mtd/bcm47xxpart.c
+@@ -42,7 +42,14 @@
+ #define T_METER_MAGIC 0x4D540000 /* MT */
+ #define ML_MAGIC1 0x39685a42
+ #define ML_MAGIC2 0x26594131
++
++
++#ifdef CONFIG_TRX_MAGIC_OVERRIDE
++#define TRX_MAGIC (CONFIG_TRX_MAGIC)
++#else
+ #define TRX_MAGIC 0x30524448
++#endif
++
+ #define SHSQ_MAGIC 0x71736873 /* shsq (weird ZTE H218N endianness) */
+ #define UBI_EC_MAGIC 0x23494255 /* UBI# */
+
+--- a/drivers/mtd/Kconfig
++++ b/drivers/mtd/Kconfig
+@@ -14,6 +14,15 @@ if MTD
+
+ menu "OpenWrt specific MTD options"
+
++config TRX_MAGIC_OVERRIDE
++ bool "Override trx magic"
++ default n
++
++config TRX_MAGIC
++ hex "Enter the magic..."
++ depends on TRX_MAGIC_OVERRIDE
++ default 0x12345678
++
+ config MTD_ROOTFS_ROOT_DEV
+ bool "Automatically set 'rootfs' partition to be root filesystem"
+ default y
Signed-off-by: Will Sheppard <wsheppard@embedded-bits.co.uk> --- .../patches-3.14/162-Belkin_custom_trx_magic.patch | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 target/linux/brcm47xx/patches-3.14/162-Belkin_custom_trx_magic.patch