[PATCH] ramips: fix partition layout of xiaomi mi router 4a 100mbit

Rafał Miłecki zajec5 at gmail.com
Fri Jan 8 08:57:06 EST 2021


On 08.01.2021 13:42, Alexander Couzens wrote:
> The partition layout doesn't match the partition layout read out by OEM
> version. It's unclear to me if different firmware version have different
> partition layouts.

Missing Signed-off-by



> ---
>   target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4a-100m.dts | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4a-100m.dts b/target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4a-100m.dts
> index 37797fc368cb..ea7e99d0b3fc 100644
> --- a/target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4a-100m.dts
> +++ b/target/linux/ramips/dts/mt7628an_xiaomi_mi-router-4a-100m.dts
> @@ -10,13 +10,13 @@
>   &partitions {
>   	partition at 60000 {
>   		label = "overlay";
> -		reg = <0x60000 0x100000>;
> +		reg = <0x60000 0x200000>;
>   		read-only;
>   	};
>   
>   	partition at 160000 {

You need to update address in the node name.


>   		label = "firmware";
> -		reg = <0x160000 0xea0000>;
> +		reg = <0x260000 0xda0000>;
>   		compatible = "denx,uimage";
>   	};
>   };
> 



More information about the openwrt-devel mailing list