[openwrt/openwrt] ramips: fix partition layout of hiwifi hc5x61

LEDE Commits lede-commits at lists.infradead.org
Sun Feb 28 18:34:51 EST 2021


hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/df1e5d6463459637e2c1b39b11a05a45ed2322d4

commit df1e5d6463459637e2c1b39b11a05a45ed2322d4
Author: Shiji Yang <yangshiji66 at qq.com>
AuthorDate: Wed Feb 24 21:37:14 2021 +0800

    ramips: fix partition layout of hiwifi hc5x61
    
    Changes:
     * Increase "oem" partition size from 0x10000 to 0x20000
     * Correct partition lables, synchronize with official firmware
    
    Evidence:
    It should be the same as hiwifi hc5x61a and the fact indeed the
    case. Here is part of dmesg boot log read from official firmware:
    [    1.470000] Creating 7 MTD partitions on "raspi":
    [    1.470000] 0x000000000000-0x000000030000 : "u-boot"
    [    1.480000] 0x000000030000-0x000000040000 : "hw_panic"
    [    1.490000] 0x000000040000-0x000000050000 : "Factory"
    [    1.490000] 0x000000fc0000-0x000000fe0000 : "oem"
    [    1.500000] 0x000000fe0000-0x000000ff0000 : "bdinfo"
    [    1.510000] 0x000000ff0000-0x000001000000 : "backup"
    [    1.510000] 0x000000050000-0x000000fc0000 : "firmware"
    
    Signed-off-by: Shiji Yang <yangshiji66 at qq.com>
---
 target/linux/ramips/dts/mt7620a_hiwifi_hc5x61.dtsi | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/target/linux/ramips/dts/mt7620a_hiwifi_hc5x61.dtsi b/target/linux/ramips/dts/mt7620a_hiwifi_hc5x61.dtsi
index 6349ec5365..8d5d8e95ee 100644
--- a/target/linux/ramips/dts/mt7620a_hiwifi_hc5x61.dtsi
+++ b/target/linux/ramips/dts/mt7620a_hiwifi_hc5x61.dtsi
@@ -62,7 +62,7 @@
 			};
 
 			partition at 30000 {
-				label = "u-boot-env";
+				label = "hw_panic";
 				reg = <0x30000 0x10000>;
 				read-only;
 			};
@@ -76,12 +76,12 @@
 			partition at 50000 {
 				compatible = "denx,uimage";
 				label = "firmware";
-				reg = <0x50000 0xf80000>;
+				reg = <0x50000 0xf70000>;
 			};
 
-			partition at fd0000 {
-				label = "hwf_config";
-				reg = <0xfd0000 0x10000>;
+			partition at fc0000 {
+				label = "oem";
+				reg = <0xfc0000 0x20000>;
 				read-only;
 			};
 



More information about the lede-commits mailing list