mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2025-12-10 08:44:39 +01:00
treewide: convert u-boot,env to nvmem-layout
Non nvmem-layout is deprecated. Signed-off-by: Rosen Penev <rosenp@gmail.com> Link: https://github.com/openwrt/openwrt/pull/16376 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
parent
2dc3617c0b
commit
96fc2fa594
7 changed files with 29 additions and 16 deletions
|
|
@ -127,12 +127,15 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
partition@80000 {
|
partition@80000 {
|
||||||
compatible = "u-boot,env";
|
|
||||||
label = "u-boot-env0";
|
label = "u-boot-env0";
|
||||||
reg = <0x80000 0x10000>;
|
reg = <0x80000 0x10000>;
|
||||||
read-only;
|
read-only;
|
||||||
|
|
||||||
macaddr_uboot_ethaddr: ethaddr {
|
nvmem-layout {
|
||||||
|
compatible = "u-boot,env";
|
||||||
|
|
||||||
|
macaddr_uboot_ethaddr: ethaddr {
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -138,12 +138,15 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
partition@100000 {
|
partition@100000 {
|
||||||
compatible = "u-boot,env";
|
|
||||||
label = "cfg1";
|
label = "cfg1";
|
||||||
reg = <0x100000 0x40000>;
|
reg = <0x100000 0x40000>;
|
||||||
read-only;
|
read-only;
|
||||||
|
|
||||||
macaddr_uboot_ethaddr: ethaddr {
|
nvmem-layout {
|
||||||
|
compatible = "u-boot,env";
|
||||||
|
|
||||||
|
macaddr_uboot_ethaddr: ethaddr {
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -203,7 +203,6 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
partition@100000 {
|
partition@100000 {
|
||||||
compatible = "u-boot,env";
|
|
||||||
reg = <0x0100000 0x40000>;
|
reg = <0x0100000 0x40000>;
|
||||||
label = "u-boot-env";
|
label = "u-boot-env";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -83,12 +83,15 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
partition@30000 {
|
partition@30000 {
|
||||||
compatible = "u-boot,env";
|
|
||||||
label = "u-boot-env";
|
label = "u-boot-env";
|
||||||
reg = <0x030000 0x010000>;
|
reg = <0x030000 0x010000>;
|
||||||
|
|
||||||
macaddr_uboot_ethaddr: ethaddr {
|
nvmem-layout {
|
||||||
#nvmem-cell-cells = <1>;
|
compatible = "u-boot,env";
|
||||||
|
|
||||||
|
macaddr_uboot_ethaddr: ethaddr {
|
||||||
|
#nvmem-cell-cells = <1>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -104,12 +104,15 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
partition@40000 {
|
partition@40000 {
|
||||||
compatible = "u-boot,env";
|
|
||||||
label = "u-boot-env";
|
label = "u-boot-env";
|
||||||
reg = <0x040000 0x010000>;
|
reg = <0x040000 0x010000>;
|
||||||
|
|
||||||
macaddr_uboot_ethaddr: ethaddr {
|
nvmem-layout {
|
||||||
#nvmem-cell-cells = <1>;
|
compatible = "u-boot,env";
|
||||||
|
|
||||||
|
macaddr_uboot_ethaddr: ethaddr {
|
||||||
|
#nvmem-cell-cells = <1>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -169,7 +169,6 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
partition@e0000 {
|
partition@e0000 {
|
||||||
compatible = "u-boot,env";
|
|
||||||
label = "0:APPSBLENV";
|
label = "0:APPSBLENV";
|
||||||
reg = <0x000e0000 0x00010000>;
|
reg = <0x000e0000 0x00010000>;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
|
||||||
|
|
||||||
--- a/arch/arm64/boot/dts/qcom/ipq9574-rdp-common.dtsi
|
--- a/arch/arm64/boot/dts/qcom/ipq9574-rdp-common.dtsi
|
||||||
+++ b/arch/arm64/boot/dts/qcom/ipq9574-rdp-common.dtsi
|
+++ b/arch/arm64/boot/dts/qcom/ipq9574-rdp-common.dtsi
|
||||||
@@ -74,11 +74,155 @@
|
@@ -74,11 +74,161 @@
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
flash@0 {
|
flash@0 {
|
||||||
|
|
@ -125,12 +125,15 @@ Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
|
||||||
+ };
|
+ };
|
||||||
+
|
+
|
||||||
+ partition@530000 {
|
+ partition@530000 {
|
||||||
+ compatible = "u-boot,env";
|
|
||||||
+ label = "0:appsblenv";
|
+ label = "0:appsblenv";
|
||||||
+ reg = <0x530000 0x10000>;
|
+ reg = <0x530000 0x10000>;
|
||||||
+
|
+
|
||||||
+ macaddr_lan: ethaddr {
|
+ nvmem-layout {
|
||||||
+ #nvmem-cell-cells = <1>;
|
+ compatible = "u-boot,env";
|
||||||
|
+
|
||||||
|
+ macaddr_lan: ethaddr {
|
||||||
|
+ #nvmem-cell-cells = <1>;
|
||||||
|
+ };
|
||||||
+ };
|
+ };
|
||||||
+ };
|
+ };
|
||||||
+
|
+
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue