diff options
author | John Crispin <john@openwrt.org> | 2013-07-25 16:01:58 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2013-07-25 16:01:58 +0000 |
commit | 9b2c7be0c46bccff40488137ecdbfc7ae4793bc1 (patch) | |
tree | 2ccdaa3b15fdb3ef8b585370608f815cd110beac /target | |
parent | bbf2b18933d8ba14120736266763bf101d93a86e (diff) | |
download | upstream-9b2c7be0c46bccff40488137ecdbfc7ae4793bc1.tar.gz upstream-9b2c7be0c46bccff40488137ecdbfc7ae4793bc1.tar.bz2 upstream-9b2c7be0c46bccff40488137ecdbfc7ae4793bc1.zip |
ramips: important patch for HG255D
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
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/ramips/dts/HG255D.dts | 8 | ||||
-rw-r--r-- | target/linux/ramips/image/Makefile | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/target/linux/ramips/dts/HG255D.dts b/target/linux/ramips/dts/HG255D.dts index 695969038d..7ecb4f36df 100644 --- a/target/linux/ramips/dts/HG255D.dts +++ b/target/linux/ramips/dts/HG255D.dts @@ -47,7 +47,13 @@ partition@80000 { label = "firmware"; - reg = <0x80000 0xf80000>; + reg = <0x80000 0xf60000>; + }; + + partition@fa0000 { + label = "factory-orig"; + reg = <0xfa0000 0x20000>; + read-only; }; }; diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile index 0aa84ac151..d59e0ac95c 100644 --- a/target/linux/ramips/image/Makefile +++ b/target/linux/ramips/image/Makefile @@ -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)) |