diff options
author | Pawel Dembicki <paweldembicki@gmail.com> | 2019-01-03 16:08:51 +0000 |
---|---|---|
committer | Christian Lamparter <chunkeey@gmail.com> | 2019-01-05 21:59:52 +0100 |
commit | 576c69938bb38c7edfa23f220eb30cb5c1d0a726 (patch) | |
tree | 17bdfb29c5bcdeae6cf4720921c338fc6e2f5a80 /target/linux/mpc85xx/files/arch | |
parent | c8115167f946be85f812f3c94d6294b67ac8944c (diff) | |
download | upstream-576c69938bb38c7edfa23f220eb30cb5c1d0a726.tar.gz upstream-576c69938bb38c7edfa23f220eb30cb5c1d0a726.tar.bz2 upstream-576c69938bb38c7edfa23f220eb30cb5c1d0a726.zip |
mpc85xx: tl-wdr4900-v1: convert to mtdsplit image
Currently, the image creation process for the TP-Link tl-wdr4900-v1
needs a fixed sized kernel and places the rootfs partition at a
fixed offset. With the upcoming move to 4.19 the kernel will no
longer fit into the existing allocated space for the kernel
partition.
This patch converts the device to utilize the established
tplink,firmware mtdsplitter, which can deal with a dynamic
kernel/rootfs size.
Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com> [reworded commit]
Diffstat (limited to 'target/linux/mpc85xx/files/arch')
-rw-r--r-- | target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts | 73 |
1 files changed, 34 insertions, 39 deletions
diff --git a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts index c54cab9511..0969b272a8 100644 --- a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts +++ b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/tl-wdr4900-v1.dts @@ -35,49 +35,44 @@ spi0: spi@7000 { flash@0 { - #address-cells = <1>; - #size-cells = <1>; compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <25000000>; - u-boot@0 { - reg = <0x0 0x0050000>; - label = "u-boot"; - read-only; - }; - - dtb@50000 { - reg = <0x00050000 0x00010000>; - label = "dtb"; - read-only; - }; - - kernel@60000 { - reg = <0x00060000 0x002a0000>; - label = "kernel"; - }; - - rootfs@300000 { - reg = <0x00300000 0x00ce0000>; - label = "rootfs"; - }; - - config: config@fe0000 { - reg = <0x00fe0000 0x00010000>; - label = "config"; - read-only; - }; - - caldata@ff0000 { - reg = <0x00ff0000 0x00010000>; - label = "caldata"; - read-only; - }; - - firmware@60000 { - reg = <0x00060000 0x00f80000>; - label = "firmware"; + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + reg = <0x0 0x0050000>; + label = "u-boot"; + read-only; + }; + + partition@50000 { + reg = <0x00050000 0x00010000>; + label = "dtb"; + read-only; + }; + + partition@60000 { + compatible = "tplink,firmware"; + reg = <0x00060000 0x00f80000>; + label = "firmware"; + }; + + config: partition@fe0000 { + reg = <0x00fe0000 0x00010000>; + label = "config"; + read-only; + }; + + partition@ff0000 { + reg = <0x00ff0000 0x00010000>; + label = "caldata"; + read-only; + }; }; }; }; |