[OpenWrt-Devel] [PATCH v1 6/7] kernel: bcm47xx: Add custom TRX header option to kernel
Will Sheppard
sheppard.will at gmail.com
Mon Feb 9 11:29:23 EST 2015
Signed-off-by: Will Sheppard <wsheppard at 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
diff --git a/target/linux/brcm47xx/patches-3.14/162-Belkin_custom_trx_magic.patch b/target/linux/brcm47xx/patches-3.14/162-Belkin_custom_trx_magic.patch
new file mode 100644
index 0000000..eea7716
--- /dev/null
+++ b/target/linux/brcm47xx/patches-3.14/162-Belkin_custom_trx_magic.patch
@@ -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
--
1.9.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list