ARM: dts: i.MX53: voipac: Provide NAND flash partition table
Subsystems (2)
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
@@ -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
@@ -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
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
@@ -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
@@ -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
Quoted 5 lines · Rostislav Lisovy
Signed-off-by Rostislav Lisovy <[email protected]>---
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