[PATCH v2] ARM: dts: imx6qdl-sabresd: Fix barebox-environment location

Fabio Estevam festevam at gmail.com
Sat Apr 23 16:01:33 PDT 2016


After doing a 'saveenv' command, it is no longer possible to boot.

The reason for this behaviour is that the 'barebox' partition has currently
a size of 0x80000 (512 kB), which is not sufficient to store the barebox
binary. This causes the 'barebox' and 'barebox-environment' partitions
to overlap.

Fix this problem by increasing the size of the 'barebox' partition and
by placing the 'barebox-environment' right after it.

Signed-off-by: Fabio Estevam <festevam at gmail.com>
---
Changes since v1:
- Also adjust the partition size for 'barebox'.

 arch/arm/dts/imx6qdl-sabresd.dtsi | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/arm/dts/imx6qdl-sabresd.dtsi b/arch/arm/dts/imx6qdl-sabresd.dtsi
index 32318cf..690cd41 100644
--- a/arch/arm/dts/imx6qdl-sabresd.dtsi
+++ b/arch/arm/dts/imx6qdl-sabresd.dtsi
@@ -31,11 +31,11 @@
 
 	partition at 0 {
 		label = "barebox";
-		reg = <0x0 0x80000>;
+		reg = <0x0 0xc0000>;
 	};
 
-	environment_usdhc3: partition at 1 {
+	environment_usdhc3: partition at c0000 {
 		label = "barebox-environment";
-		reg = <0x80000 0x80000>;
+		reg = <0xc0000 0x80000>;
 	};
 };
-- 
1.9.1




More information about the barebox mailing list