gemini: Generate padded kernel+rootfs images for DIR-685
[openwrt/openwrt.git] / target / linux / gemini / patches-4.19 / 0019-ARM-dts-gemini-Indent-DIR-685-partition-table.patch
1 From 4a228ecf553e879bae384e634bb6413438e81a0e Mon Sep 17 00:00:00 2001
2 From: Linus Walleij <linus.walleij@linaro.org>
3 Date: Mon, 11 Mar 2019 15:43:05 +0100
4 Subject: [PATCH 1/2] ARM: dts: gemini: Indent DIR-685 partition table
5
6 It is discouraged to have OF partitions as subnodes directly
7 under the device, create a "partitions" subnode and put the
8 partitions inside it.
9
10 Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
11 ---
12 arch/arm/boot/dts/gemini-dlink-dir-685.dts | 82 ++++++++++++----------
13 1 file changed, 44 insertions(+), 38 deletions(-)
14
15 diff --git a/arch/arm/boot/dts/gemini-dlink-dir-685.dts b/arch/arm/boot/dts/gemini-dlink-dir-685.dts
16 index 9b2824816ddc..50ff65d95f26 100644
17 --- a/arch/arm/boot/dts/gemini-dlink-dir-685.dts
18 +++ b/arch/arm/boot/dts/gemini-dlink-dir-685.dts
19 @@ -267,44 +267,50 @@
20 /* 32MB of flash */
21 reg = <0x30000000 0x02000000>;
22
23 - /*
24 - * This "RedBoot" is the Storlink derivative.
25 - */
26 - partition@0 {
27 - label = "RedBoot";
28 - reg = <0x00000000 0x00040000>;
29 - read-only;
30 - };
31 - /*
32 - * This firmware image contains the kernel catenated
33 - * with the squashfs root filesystem. For some reason
34 - * this is called "upgrade" on the vendor system.
35 - */
36 - partition@40000 {
37 - label = "upgrade";
38 - reg = <0x00040000 0x01f40000>;
39 - read-only;
40 - };
41 - /* RGDB, Residental Gateway Database? */
42 - partition@1f80000 {
43 - label = "rgdb";
44 - reg = <0x01f80000 0x00040000>;
45 - read-only;
46 - };
47 - /*
48 - * This partition contains MAC addresses for WAN,
49 - * WLAN and LAN, and the country code (for wireless
50 - * I guess).
51 - */
52 - partition@1fc0000 {
53 - label = "nvram";
54 - reg = <0x01fc0000 0x00020000>;
55 - read-only;
56 - };
57 - partition@1fe0000 {
58 - label = "LangPack";
59 - reg = <0x01fe0000 0x00020000>;
60 - read-only;
61 + partitions {
62 + compatible = "fixed-partitions";
63 + #address-cells = <1>;
64 + #size-cells = <1>;
65 +
66 + /*
67 + * This "RedBoot" is the Storlink derivative.
68 + */
69 + partition@0 {
70 + label = "RedBoot";
71 + reg = <0x00000000 0x00040000>;
72 + read-only;
73 + };
74 + /*
75 + * This firmware image contains the kernel catenated
76 + * with the squashfs root filesystem. For some reason
77 + * this is called "upgrade" on the vendor system.
78 + */
79 + partition@40000 {
80 + label = "upgrade";
81 + reg = <0x00040000 0x01f40000>;
82 + read-only;
83 + };
84 + /* RGDB, Residental Gateway Database? */
85 + partition@1f80000 {
86 + label = "rgdb";
87 + reg = <0x01f80000 0x00040000>;
88 + read-only;
89 + };
90 + /*
91 + * This partition contains MAC addresses for WAN,
92 + * WLAN and LAN, and the country code (for wireless
93 + * I guess).
94 + */
95 + partition@1fc0000 {
96 + label = "nvram";
97 + reg = <0x01fc0000 0x00020000>;
98 + read-only;
99 + };
100 + partition@1fe0000 {
101 + label = "LangPack";
102 + reg = <0x01fe0000 0x00020000>;
103 + read-only;
104 + };
105 };
106 };
107
108 --
109 2.20.1
110