ramips: important patch for HG255D
authorJohn Crispin <john@openwrt.org>
Thu, 25 Jul 2013 16:01:58 +0000 (16:01 +0000)
committerJohn Crispin <john@openwrt.org>
Thu, 25 Jul 2013 16:01:58 +0000 (16:01 +0000)
r37505 add support for Huawei HG255D, but it only tested under a community hacked u-boot ("lintel u-boot"), which has a different mtd layout compared to origin one. If you install it on a box with origin u-boot, the origin factory part will be destroyed, and your wifi interface will never up!!!

This patch shrink firmware part in mtd layout to exclude origin factory part, and  I will prepare another patch to fix the eeprom extract issue for box with origin u-boot.

Signed-off-by: Leon Xu <ylxu72@gmail.com>
SVN-Revision: 37530

target/linux/ramips/dts/HG255D.dts
target/linux/ramips/image/Makefile

index 695969038d44cc11e8858bb58d78e3a5b3acbd86..7ecb4f36df2c59272085da5b22718502a2b8b9f3 100644 (file)
 
                partition@80000 {
                        label = "firmware";
-                       reg = <0x80000 0xf80000>;
+                       reg = <0x80000 0xf60000>;
+               };
+               
+               partition@fa0000 {
+                       label = "factory-orig";
+                       reg = <0xfa0000 0x20000>;
+                       read-only;
                };
        };
 
index 0aa84ac151c60894851a9c5180cf722f2d5252fc..d59e0ac95c1a42b8f871ffbc8cf80f7e5b75a06e 100644 (file)
@@ -114,7 +114,7 @@ ralink_default_fw_size_8M=8060928
 BuildFirmware/Default8M/squashfs=$(call BuildFirmware/OF,$(1),$(2),$(3),$(ralink_default_fw_size_8M),$(4))
 BuildFirmware/Default8M/initramfs=$(call BuildFirmware/OF/initramfs,$(1),$(2),$(3),$(4))
 
-ralink_default_fw_size_16M=16252928
+ralink_default_fw_size_16M=16121856
 BuildFirmware/Default16M/squashfs=$(call BuildFirmware/OF,$(1),$(2),$(3),$(ralink_default_fw_size_16M),$(4))
 BuildFirmware/Default16M/initramfs=$(call BuildFirmware/OF/initramfs,$(1),$(2),$(3),$(4))