mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-10 15:03:07 +00:00
1d94f72439
Rebased patches: * generic: 273-batman-adv-Convert-packet.h-to-uapi-header.patch * ipq806x: 0065-arm-override-compiler-flags.patch * mvebu: 513-arm64-dts-marvell-armada37xx-Add-emmc-sdio-pinctrl-d.patch Removed patches: Fixed upstream: * ar71xx: 821-serial-core-add-support-for-boot-console-with-arbitr.patch * ath79: 921-serial-core-add-support-for-boot-console-with-arbitr.patch - in 4.14.256 via 9112e7ef87149b3d8093e7446d784117f6e18d69 * mvebu: 527-PCI-aardvark-allow-to-specify-link-capability.patch - in 4.14.257 via 62a3dc9b65a2b24800fc4267b8cf590fad135034 * mvebu: 524-PCI-aardvark-set-host-and-device-to-the-same-MAX-payload-size.patch - should be hopefully fixed by the bunch of changes in .256 and .257 Run tested on ipq40xx/glinet-b1300 and mvebu/turris-omnia. Fixes: CVE-2021-3640 Signed-off-by: Petr Štetiar <ynezz@true.cz>
59 lines
2.0 KiB
Diff
59 lines
2.0 KiB
Diff
From 3217cdfe8a3eae76fafbebbe407be5985a7fd4c2 Mon Sep 17 00:00:00 2001
|
|
From: Tomasz Maciej Nowak <tmn505@gmail.com>
|
|
Date: Mon, 31 Dec 2018 14:18:50 +0100
|
|
Subject: [PATCH] arm64: dts: armada-3720-espressobin: correct spi node
|
|
|
|
The manufacturer of this board, ships it with various SPI NOR chips and
|
|
increments U-Boot bootloader version along the time. There is no way to
|
|
tell which is placed on the board since no revision bump takes place.
|
|
This creates two issues.
|
|
|
|
The first, cosmetic. Since the SPI chip may differ, there's message on
|
|
boot stating that kernel expected w25q32dw and found different one. To
|
|
correct this, remove optional device-specific compatible string. Being
|
|
here lets replace bogus "spi-flash" string with proper one.
|
|
|
|
The second is linked to partitions layout, it changed after commit [1]
|
|
in Marvells downstream U-Boot fork, shifting environment location to the
|
|
end of boot device. Since the new boards can have U-Boot with this
|
|
change it can lead to improper results writing or reading from these
|
|
partitions. We can't tell if users will update bootloader to recent
|
|
version, so let's drop current layout.
|
|
|
|
1. https://github.com/MarvellEmbeddedProcessors/u-boot-marvell/commit/81e7251252aefe1a6b829ed05f3586320cb45372
|
|
|
|
Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
|
|
---
|
|
.../dts/marvell/armada-3720-espressobin.dts | 18 +-----------------
|
|
1 file changed, 1 insertion(+), 17 deletions(-)
|
|
|
|
--- a/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts
|
|
+++ b/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts
|
|
@@ -130,25 +130,9 @@
|
|
|
|
flash@0 {
|
|
reg = <0>;
|
|
- compatible = "winbond,w25q32dw", "jedec,spi-flash";
|
|
+ compatible = "jedec,spi-nor";
|
|
spi-max-frequency = <104000000>;
|
|
m25p,fast-read;
|
|
-
|
|
- partitions {
|
|
- compatible = "fixed-partitions";
|
|
- #address-cells = <1>;
|
|
- #size-cells = <1>;
|
|
-
|
|
- partition@0 {
|
|
- label = "uboot";
|
|
- reg = <0 0x180000>;
|
|
- };
|
|
-
|
|
- partition@180000 {
|
|
- label = "ubootenv";
|
|
- reg = <0x180000 0x10000>;
|
|
- };
|
|
- };
|
|
};
|
|
};
|
|
|