diff --git a/target/linux/ramips/dts/mt7621_hiwifi_hc5962.dts b/target/linux/ramips/dts/mt7621_hiwifi_hc5962.dts index f8d7268b9206708c0035fa39c7f4b86c2318af29..aabf9f32138744a7c3d3fdfca38609e7d0a00df6 100644 --- a/target/linux/ramips/dts/mt7621_hiwifi_hc5962.dts +++ b/target/linux/ramips/dts/mt7621_hiwifi_hc5962.dts @@ -44,6 +44,22 @@ linux,code = ; }; }; + + ubi-concat { + compatible = "mtd-concat"; + devices = <&ubipart0 &ubipart1>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + ubi@540000 { + label = "ubi"; + reg = <0x0 0x79c0000>; + }; + }; + }; }; &nand { @@ -74,18 +90,12 @@ partition@140000 { label = "kernel"; - reg = <0x140000 0x200000>; + reg = <0x140000 0x400000>; }; - partition@340000 { - label = "ubi"; - reg = <0x340000 0x1E00000>; - }; - - partition@2140000 { - label = "hw_panic"; - reg = <0x2140000 0x80000>; - read-only; + ubipart0: partition@540000 { + label = "ubipart0"; + reg = <0x540000 0x1c80000>; }; partition@21c0000 { @@ -94,30 +104,9 @@ read-only; }; - partition@2240000 { - label = "backup"; - reg = <0x2240000 0x80000>; - read-only; - }; - - partition@22c0000 { - label = "overly"; - reg = <0x22c0000 0x1000000>; - }; - - partition@32c0000 { - label = "firmware_backup"; - reg = <0x32c0000 0x2000000>; - }; - - partition@52c0000 { - label = "oem"; - reg = <0x52c0000 0x200000>; - }; - - partition@54c0000 { - label = "opt"; - reg = <0x54c0000 0x2ac0000>; + ubipart1: partition@2240000 { + label = "ubipart1"; + reg = <0x2240000 0x5d40000>; }; }; }; diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk index aa5df49e79aaae60dcd7769a1a86d17b4850ed35..47945bd07d29317877883895ffe6b1e2e01f6a32 100644 --- a/target/linux/ramips/image/mt7621.mk +++ b/target/linux/ramips/image/mt7621.mk @@ -331,7 +331,7 @@ TARGET_DEVICES += gnubee_gb-pc2 define Device/hiwifi_hc5962 BLOCKSIZE := 128k PAGESIZE := 2048 - KERNEL_SIZE := 2097152 + KERNEL_SIZE := 4096k UBINIZE_OPTS := -E 5 IMAGE_SIZE := 32768k IMAGES += factory.bin @@ -341,9 +341,6 @@ define Device/hiwifi_hc5962 DEVICE_VENDOR := HiWiFi DEVICE_MODEL := HC5962 DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 kmod-usb3 wpad-openssl - SUPPORTED_DEVICES += hc5962 - # Kernel partition too small - DEFAULT := n endef TARGET_DEVICES += hiwifi_hc5962 diff --git a/target/linux/ramips/mt7621/config-4.14 b/target/linux/ramips/mt7621/config-4.14 index 2ae6afb97fae973ea3765c6d63a91455e2367b64..8560cfa0f04e6e91b47938cf48ec62002cfa2b92 100644 --- a/target/linux/ramips/mt7621/config-4.14 +++ b/target/linux/ramips/mt7621/config-4.14 @@ -200,6 +200,7 @@ CONFIG_MTD_UBI_BLOCK=y # CONFIG_MTD_UBI_FASTMAP is not set # CONFIG_MTD_UBI_GLUEBI is not set CONFIG_MTD_UBI_WL_THRESHOLD=4096 +CONFIG_MTD_VIRT_CONCAT=y CONFIG_MTK_MTD_NAND=y CONFIG_NEED_DMA_MAP_STATE=y CONFIG_NET_FLOW_LIMIT=y