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

Adrian Schmutzler mail at adrianschmutzler.de
Fri Jan 8 13:34:19 EST 2021


Hi,

> -----Original Message-----
> From: openwrt-devel [mailto:openwrt-devel-bounces at lists.openwrt.org]
> On Behalf Of Alexander Couzens
> Sent: Freitag, 8. Januar 2021 13:43
> To: openwrt-devel at lists.openwrt.org
> Cc: Alexander Couzens <lynxis at fe80.eu>
> Subject: [PATCH] ramips: fix partition layout of xiaomi mi router 4a 100mbit
> 
> 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.

There has been a similar discussion somewhere in the past (don't find it right now), and it appears that the names for these devices are either mixed or not strictly defined. This should definitely be investigated more closely before merging anything.

Best

Adrian

> ---
>  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 {
>  		label = "firmware";
> -		reg = <0x160000 0xea0000>;
> +		reg = <0x260000 0xda0000>;
>  		compatible = "denx,uimage";
>  	};
>  };
> --
> 2.29.2
> 
> 
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openpgp-digital-signature.asc
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
URL: <http://lists.openwrt.org/pipermail/openwrt-devel/attachments/20210108/2b65293a/attachment.sig>


More information about the openwrt-devel mailing list