Skip to contentSkip to conversation

ARM: dts: i.MX53: voipac: Provide NAND flash partition table

RFC New Rostislav Lisovy 2 participants 3 messages Sep 4, 2014 – Sep 5, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

RFC 1/1 ARM: dts: i.MX53: voipac: Provide NAND flash partition table

---
When compiled and loaded with the "imx-usb-loader" to RAM, the command "saveenv" and "loadenv" do work properly (i.e. "loading environment from /dev/nand0.environment.bb"). When I flash the barebox to the NAND with the "barebox_update" command and reboot the device, the message "environment load /dev/env0: No such file or directory" is provided during boot. "saveenv" and "loadenv" do not know anything about "/dev/nand0.environment.bb" anymore and try to access the "/dev/env0". What am I doing wrong?

 arch/arm/dts/imx53-voipac-bsb.dts      |  1 +
 arch/arm/dts/imx53-voipac-dmm-668.dtsi | 33 +++++++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+)
 create mode 100644 arch/arm/dts/imx53-voipac-dmm-668.dtsi
arch/arm/dts/imx53-voipac-bsb.dts +1 -0
index 54c8bcd..12ce592 100644
@@ -10,4 +10,5 @@
  */
 
 #include <arm/imx53-voipac-bsb.dts>
+#include "imx53-voipac-dmm-668.dtsi"
 #include "imx53.dtsi"
arch/arm/dts/imx53-voipac-dmm-668.dtsi new file +33 -0
new file mode 100644
index 0000000..dfff1c2
@@ -0,0 +1,33 @@
+/ {
+	chosen {
+		linux,stdout-path = &uart1;
+
+		environment@0 {
+			compatible = "barebox,environment";
+			device-path = &nfc, "partname:environment";
+		};
+	};
+};
+
+&nfc {
+	partition@0 {
+		label = "barebox";
+		reg = <0x0 0x80000>;
+	};
+
+	partition@1 {
+		label = "environment";
+		reg = <0x80000 0x80000>;
+	};
+
+	partition@2 {
+		label = "kernel";
+		reg = <0x100000 0x400000>;
+	};
+
+	partition@3 {
+		label = "rootfs";
+		reg = <0x500000 0x07B00000>;
+	};
+};
+
Signature · 7 lines
2.0.0.rc4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#1 lore raw

PATCH 1/1 ARM: dts: i.MX53: voipac: Provide NAND flash partition table

---
This is a bit embarrassing but please ignore my previous email. Everything works just fine, I was constantly flashing the old binary without the partition table :-)

 arch/arm/dts/imx53-voipac-bsb.dts      |  1 +
 arch/arm/dts/imx53-voipac-dmm-668.dtsi | 33 +++++++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+)
 create mode 100644 arch/arm/dts/imx53-voipac-dmm-668.dtsi
arch/arm/dts/imx53-voipac-bsb.dts +1 -0
index 54c8bcd..12ce592 100644
@@ -10,4 +10,5 @@
  */
 
 #include <arm/imx53-voipac-bsb.dts>
+#include "imx53-voipac-dmm-668.dtsi"
 #include "imx53.dtsi"
arch/arm/dts/imx53-voipac-dmm-668.dtsi new file +33 -0
new file mode 100644
index 0000000..dfff1c2
@@ -0,0 +1,33 @@
+/ {
+	chosen {
+		linux,stdout-path = &uart1;
+
+		environment@0 {
+			compatible = "barebox,environment";
+			device-path = &nfc, "partname:environment";
+		};
+	};
+};
+
+&nfc {
+	partition@0 {
+		label = "barebox";
+		reg = <0x0 0x80000>;
+	};
+
+	partition@1 {
+		label = "environment";
+		reg = <0x80000 0x80000>;
+	};
+
+	partition@2 {
+		label = "kernel";
+		reg = <0x100000 0x400000>;
+	};
+
+	partition@3 {
+		label = "rootfs";
+		reg = <0x500000 0x07B00000>;
+	};
+};
+
Signature · 7 lines
2.0.0.rc4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
maintainer Applied
#2 lore raw
Quoted 5 lines · Rostislav Lisovy

---
This is a bit embarrassing but please ignore my previous email. Everything works just fine, I was constantly flashing the old binary without the partition table :-)

:-)

Applied, thanks

Sascha

Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox