Pārlūkot izejas kodu

apm821xx: mybooklive: fix ubootenv probe

With nvmem-layout, these probe errors go away.

Add status = "disabled" as the u-boot env driver can't handle redundant
environments properly. As a result, fw_printenv ends up not working
right.

Signed-off-by: Rosen Penev <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/16618
Signed-off-by: Robert Marko <[email protected]>
Rosen Penev 1 gadu atpakaļ
vecāks
revīzija
26254408e3
1 mainītis faili ar 10 papildinājumiem un 12 dzēšanām
  1. 10 12
      target/linux/apm821xx/dts/wd-mybooklive.dts

+ 10 - 12
target/linux/apm821xx/dts/wd-mybooklive.dts

@@ -50,6 +50,7 @@
 					partition@0 {
 						reg = <0x00000000 0x00001000>;
 						label = "u-boot-env-1";
+						status = "disabled";
 
 						nvmem-layout {
 							compatible = "u-boot,env-redundant-bool";
@@ -59,18 +60,15 @@
 						};
 					};
 
-/*
- * Causes the following warning: * sysfs: cannot create duplicate filename '/bus/nvmem/devices/u-boot-env0'
- *
- *					partition@1000 {
- *						reg = <0x00001000 0x00001000>;
- *						label = "u-boot-env-2";
- *
- *						nvmem-layout {
- *							compatible = "u-boot,env-redundant-bool";
- *						};
- *					};
- */
+					partition@1000 {
+						reg = <0x00001000 0x00001000>;
+						label = "u-boot-env-2";
+						status = "disabled";
+
+						nvmem-layout {
+							compatible = "u-boot,env-redundant-bool";
+						};
+					};
 				};