[LEDE-DEV] [PATCH v2] ipq806x: Expand TP-Link C2600 os-image partition
Joris de Vries
j.s.de.vries at gmail.com
Sat May 12 11:28:48 PDT 2018
v2: Adjust base address in name as well.
The default image does not fit 2MB anymore, expand os-image partition to 4MB.
Run-tested on TP-Link Archer C2600.
Signed-off-by: Joris de Vries <joris at apptrician.nl>
---
.../files-4.14/arch/arm/boot/dts/qcom-ipq8064-c2600.dts | 6 +++---
tools/firmware-utils/src/tplink-safeloader.c | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/target/linux/ipq806x/files-4.14/arch/arm/boot/dts/qcom-ipq8064-c2600.dts b/target/linux/ipq806x/files-4.14/arch/arm/boot/dts/qcom-ipq8064-c2600.dts
index a4fd13429c..02b1e7b1c9 100644
--- a/target/linux/ipq806x/files-4.14/arch/arm/boot/dts/qcom-ipq8064-c2600.dts
+++ b/target/linux/ipq806x/files-4.14/arch/arm/boot/dts/qcom-ipq8064-c2600.dts
@@ -231,12 +231,12 @@
os-image at 1f0000 {
label = "os-image";
- reg = <0x1f0000 0x200000>;
+ reg = <0x1f0000 0x400000>;
};
- rootfs at 3f0000 {
+ rootfs at 5f0000 {
label = "rootfs";
- reg = <0x3f0000 0x1b00000>;
+ reg = <0x5f0000 0x1900000>;
};
defaultmac: default-mac at 1ef0000 {
diff --git a/tools/firmware-utils/src/tplink-safeloader.c b/tools/firmware-utils/src/tplink-safeloader.c
index 53205353b7..9e9fe5afaf 100644
--- a/tools/firmware-utils/src/tplink-safeloader.c
+++ b/tools/firmware-utils/src/tplink-safeloader.c
@@ -279,8 +279,8 @@ static struct device_info boards[] = {
{"fs-uboot", 0x100000, 0x70000},
{"uboot-env", 0x170000, 0x40000},
{"radio", 0x1b0000, 0x40000},
- {"os-image", 0x1f0000, 0x200000},
- {"file-system", 0x3f0000, 0x1b00000},
+ {"os-image", 0x1f0000, 0x400000}, /* Stock: base 0x1f0000 size 0x200000 */
+ {"file-system", 0x5f0000, 0x1900000}, /* Stock: base 0x3f0000 size 0x1b00000 */
{"default-mac", 0x1ef0000, 0x00200},
{"pin", 0x1ef0200, 0x00200},
{"product-info", 0x1ef0400, 0x0fc00},
--
2.17.0
> On 12 May 2018, at 20:12, Joris de Vries <j.s.de.vries at gmail.com> wrote:
>
> The default image does not fit 2MB anymore, expand os-image partition to 4MB.
>
> Run-tested on TP-Link Archer C2600.
>
> Signed-off-by: Joris de Vries <joris at apptrician.nl>
> ---
> .../files-4.14/arch/arm/boot/dts/qcom-ipq8064-c2600.dts | 4 ++--
> tools/firmware-utils/src/tplink-safeloader.c | 4 ++--
> 2 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/target/linux/ipq806x/files-4.14/arch/arm/boot/dts/qcom-ipq8064-c2600.dts b/target/linux/ipq806x/files-4.14/arch/arm/boot/dts/qcom-ipq8064-c2600.dts
> index a4fd13429c..e69ef3a0f2 100644
> --- a/target/linux/ipq806x/files-4.14/arch/arm/boot/dts/qcom-ipq8064-c2600.dts
> +++ b/target/linux/ipq806x/files-4.14/arch/arm/boot/dts/qcom-ipq8064-c2600.dts
> @@ -231,12 +231,12 @@
>
> os-image at 1f0000 {
> label = "os-image";
> - reg = <0x1f0000 0x200000>;
> + reg = <0x1f0000 0x400000>;
> };
>
> rootfs at 3f0000 {
> label = "rootfs";
> - reg = <0x3f0000 0x1b00000>;
> + reg = <0x5f0000 0x1900000>;
> };
>
> defaultmac: default-mac at 1ef0000 {
> diff --git a/tools/firmware-utils/src/tplink-safeloader.c b/tools/firmware-utils/src/tplink-safeloader.c
> index 53205353b7..9e9fe5afaf 100644
> --- a/tools/firmware-utils/src/tplink-safeloader.c
> +++ b/tools/firmware-utils/src/tplink-safeloader.c
> @@ -279,8 +279,8 @@ static struct device_info boards[] = {
> {"fs-uboot", 0x100000, 0x70000},
> {"uboot-env", 0x170000, 0x40000},
> {"radio", 0x1b0000, 0x40000},
> - {"os-image", 0x1f0000, 0x200000},
> - {"file-system", 0x3f0000, 0x1b00000},
> + {"os-image", 0x1f0000, 0x400000}, /* Stock: base 0x1f0000 size 0x200000 */
> + {"file-system", 0x5f0000, 0x1900000}, /* Stock: base 0x3f0000 size 0x1b00000 */
> {"default-mac", 0x1ef0000, 0x00200},
> {"pin", 0x1ef0200, 0x00200},
> {"product-info", 0x1ef0400, 0x0fc00},
> --
> 2.17.0
>
>
More information about the Lede-dev
mailing list