* [RFC] ARM: dts: i.MX53: voipac: Provide NAND flash partition table
@ 2014-09-04 15:33 Rostislav Lisovy
2014-09-04 15:44 ` [PATCH] " Rostislav Lisovy
0 siblings, 1 reply; 3+ messages in thread
From: Rostislav Lisovy @ 2014-09-04 15:33 UTC (permalink / raw)
To: barebox; +Cc: Rostislav Lisovy, Pavel Pisa
Signed-off-by: Rostislav Lisovy <lisovy@gmail.com>
---
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
diff --git a/arch/arm/dts/imx53-voipac-bsb.dts b/arch/arm/dts/imx53-voipac-bsb.dts
index 54c8bcd..12ce592 100644
--- a/arch/arm/dts/imx53-voipac-bsb.dts
+++ b/arch/arm/dts/imx53-voipac-bsb.dts
@@ -10,4 +10,5 @@
*/
#include <arm/imx53-voipac-bsb.dts>
+#include "imx53-voipac-dmm-668.dtsi"
#include "imx53.dtsi"
diff --git a/arch/arm/dts/imx53-voipac-dmm-668.dtsi b/arch/arm/dts/imx53-voipac-dmm-668.dtsi
new file mode 100644
index 0000000..dfff1c2
--- /dev/null
+++ b/arch/arm/dts/imx53-voipac-dmm-668.dtsi
@@ -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>;
+ };
+};
+
--
2.0.0.rc4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] ARM: dts: i.MX53: voipac: Provide NAND flash partition table
2014-09-04 15:33 [RFC] ARM: dts: i.MX53: voipac: Provide NAND flash partition table Rostislav Lisovy
@ 2014-09-04 15:44 ` Rostislav Lisovy
2014-09-05 5:42 ` Sascha Hauer
0 siblings, 1 reply; 3+ messages in thread
From: Rostislav Lisovy @ 2014-09-04 15:44 UTC (permalink / raw)
To: barebox; +Cc: Rostislav Lisovy, Pavel Pisa
Signed-off-by: Rostislav Lisovy <lisovy@gmail.com>
---
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
diff --git a/arch/arm/dts/imx53-voipac-bsb.dts b/arch/arm/dts/imx53-voipac-bsb.dts
index 54c8bcd..12ce592 100644
--- a/arch/arm/dts/imx53-voipac-bsb.dts
+++ b/arch/arm/dts/imx53-voipac-bsb.dts
@@ -10,4 +10,5 @@
*/
#include <arm/imx53-voipac-bsb.dts>
+#include "imx53-voipac-dmm-668.dtsi"
#include "imx53.dtsi"
diff --git a/arch/arm/dts/imx53-voipac-dmm-668.dtsi b/arch/arm/dts/imx53-voipac-dmm-668.dtsi
new file mode 100644
index 0000000..dfff1c2
--- /dev/null
+++ b/arch/arm/dts/imx53-voipac-dmm-668.dtsi
@@ -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>;
+ };
+};
+
--
2.0.0.rc4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ARM: dts: i.MX53: voipac: Provide NAND flash partition table
2014-09-04 15:44 ` [PATCH] " Rostislav Lisovy
@ 2014-09-05 5:42 ` Sascha Hauer
0 siblings, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2014-09-05 5:42 UTC (permalink / raw)
To: Rostislav Lisovy; +Cc: barebox, Pavel Pisa
On Thu, Sep 04, 2014 at 05:44:11PM +0200, Rostislav Lisovy wrote:
> Signed-off-by: Rostislav Lisovy <lisovy@gmail.com>
> ---
> 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
--
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
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-09-05 5:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-04 15:33 [RFC] ARM: dts: i.MX53: voipac: Provide NAND flash partition table Rostislav Lisovy
2014-09-04 15:44 ` [PATCH] " Rostislav Lisovy
2014-09-05 5:42 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox