[OpenWrt-Devel] [PATCH] mediatek: Fix amount of memory on U7623
Jonas Gorski
jonas.gorski at gmail.com
Tue Aug 7 16:10:06 EDT 2018
On 6 August 2018 at 19:46, Kristian Evensen <kristian.evensen at gmail.com> wrote:
> While finalizing support for the U7623 with 512MB RAM, I made an embarrassing
> error and configured 1GB RAM for the board. I also forgot to move memory
> from the dtsi and to the dts. This commit takes care of my errors.
>
> While I am confessing my mistakes, I also note that I made a mistake in
> the commit message of the initial U7623 commit. It is the .bin-file, and
> not the .gz file that shall be sent to the device via tftp.
>
> Signed-off-by: Kristian Evensen <kristian.evensen at gmail.com>
> ---
> .../0227-arm-dts-Add-Unielec-U7623-DTS.patch | 37 +++++++++++++---------
> 1 file changed, 22 insertions(+), 15 deletions(-)
>
> diff --git a/target/linux/mediatek/patches-4.14/0227-arm-dts-Add-Unielec-U7623-DTS.patch b/target/linux/mediatek/patches-4.14/0227-arm-dts-Add-Unielec-U7623-DTS.patch
> index eb864e4657..8c0b7611b6 100644
> --- a/target/linux/mediatek/patches-4.14/0227-arm-dts-Add-Unielec-U7623-DTS.patch
> +++ b/target/linux/mediatek/patches-4.14/0227-arm-dts-Add-Unielec-U7623-DTS.patch
> @@ -1,16 +1,18 @@
> -From 13872b8abfadfe70598c065c19d1db759477c4e6 Mon Sep 17 00:00:00 2001
> +From 1ebcba67d45f1365bcb1b5eb8b0cd8c847610ef2 Mon Sep 17 00:00:00 2001
> From: Kristian Evensen <kristian.evensen at gmail.com>
> Date: Sun, 17 Jun 2018 14:41:47 +0200
> Subject: [PATCH] arm: dts: Add Unielec U7623 DTS
>
> ---
> arch/arm/boot/dts/Makefile | 1 +
> - .../dts/mt7623a-unielec-u7623-02-emmc-512M.dts | 17 +
> - .../boot/dts/mt7623a-unielec-u7623-02-emmc.dtsi | 375 +++++++++++++++++++++
> - 3 files changed, 393 insertions(+)
> + .../dts/mt7623a-unielec-u7623-02-emmc-512M.dts | 22 ++
> + .../boot/dts/mt7623a-unielec-u7623-02-emmc.dtsi | 366 +++++++++++++++++++++
> + 3 files changed, 389 insertions(+)
> create mode 100644 arch/arm/boot/dts/mt7623a-unielec-u7623-02-emmc-512M.dts
> create mode 100644 arch/arm/boot/dts/mt7623a-unielec-u7623-02-emmc.dtsi
>
> +diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
> +index 3fec84fa0..e685ce9a4 100644
> --- a/arch/arm/boot/dts/Makefile
> +++ b/arch/arm/boot/dts/Makefile
> @@ -1062,6 +1062,7 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += \
> @@ -21,9 +23,12 @@ Subject: [PATCH] arm: dts: Add Unielec U7623 DTS
> mt7623n-rfb-nand.dtb \
> mt7623n-bananapi-bpi-r2.dtb \
> mt8127-moose.dtb \
> +diff --git a/arch/arm/boot/dts/mt7623a-unielec-u7623-02-emmc-512M.dts b/arch/arm/boot/dts/mt7623a-unielec-u7623-02-emmc-512M.dts
> +new file mode 100644
> +index 000000000..6efa6e159
> --- /dev/null
> +++ b/arch/arm/boot/dts/mt7623a-unielec-u7623-02-emmc-512M.dts
> -@@ -0,0 +1,17 @@
> +@@ -0,0 +1,22 @@
> +/*
> + * Copyright 2018 Kristian Evensen <kristian.evensen at gmail.com>
> + *
> @@ -40,10 +45,18 @@ Subject: [PATCH] arm: dts: Add Unielec U7623 DTS
> + memory {
> + reg = <0 0x80000000 0 0x20000000>;
> + };
> ++
> ++ memory at 80000000 {
> ++ device_type = "memory";
> ++ reg = <0 0x80000000 0 0x20000000>;
> ++ };
You are adding a second memory node with the same register range as
the one directly above here, that looks wrong.
Regards
Jonas
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list