summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeresa Remmet <t.remmet@phytec.de>2016-06-29 12:01:08 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2016-06-30 08:37:24 +0200
commit53bad16e009d4951ef48f7d0f6971a22e6aa3887 (patch)
tree5ae8a7af7ab6cdb22e5ad8d0b0203c6660659eb1
parent3368a42e7221b497a6ea7d6dddaa46ca8dafbdb9 (diff)
downloadbarebox-53bad16e009d4951ef48f7d0f6971a22e6aa3887.tar.gz
barebox-53bad16e009d4951ef48f7d0f6971a22e6aa3887.tar.xz
ARM: phytec-som-am335x: Add backup partition for barebox
Add a redundant barebox partition to improve nand safety at least a little bit. Signed-off-by: Teresa Remmet <t.remmet@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/boards/phytec-som-am335x/board.c1
-rw-r--r--arch/arm/dts/am335x-phytec-phycard-som.dtsi23
-rw-r--r--arch/arm/dts/am335x-phytec-phycore-som.dtsi19
-rw-r--r--arch/arm/dts/am335x-phytec-phyflex-som.dtsi23
4 files changed, 45 insertions, 21 deletions
diff --git a/arch/arm/boards/phytec-som-am335x/board.c b/arch/arm/boards/phytec-som-am335x/board.c
index d5c27e2777..7f62453d93 100644
--- a/arch/arm/boards/phytec-som-am335x/board.c
+++ b/arch/arm/boards/phytec-som-am335x/board.c
@@ -62,6 +62,7 @@ static char *xloadslots[] = {
static char *nandslots[] = {
"/dev/nand0.barebox.bb",
+ "/dev/nand0.barebox_backup.bb",
};
static int physom_devices_init(void)
diff --git a/arch/arm/dts/am335x-phytec-phycard-som.dtsi b/arch/arm/dts/am335x-phytec-phycard-som.dtsi
index f052f0cc3a..3dd9cade43 100644
--- a/arch/arm/dts/am335x-phytec-phycard-som.dtsi
+++ b/arch/arm/dts/am335x-phytec-phycard-som.dtsi
@@ -206,23 +206,32 @@
};
partition@100000 {
+ label = "barebox_backup";
+ reg = <0x100000 0x80000>;
+ };
+
+ partition@180000 {
label = "bareboxenv";
- reg = <0x100000 0x40000>;
+ reg = <0x180000 0x40000>;
};
- partition@140000 {
+ partition@1C0000 {
label = "oftree";
- reg = <0x140000 0x40000>;
+ reg = <0x1C0000 0x40000>;
};
- partition@180000 {
+ partition@200000 {
label = "kernel";
- reg = <0x180000 0x800000>;
+ reg = <0x200000 0x800000>;
};
- partition@980000 {
+ partition@A00000 {
label = "root";
- reg = <0x980000 0x0>;
+ /*
+ * Size 0x0 extends partition to
+ * end of nand flash.
+ */
+ reg = <0xA00000 0x0>;
};
};
};
diff --git a/arch/arm/dts/am335x-phytec-phycore-som.dtsi b/arch/arm/dts/am335x-phytec-phycore-som.dtsi
index e48d545e64..0fc3c96baa 100644
--- a/arch/arm/dts/am335x-phytec-phycore-som.dtsi
+++ b/arch/arm/dts/am335x-phytec-phycore-som.dtsi
@@ -290,27 +290,32 @@
};
partition@100000 {
+ label = "barebox_backup";
+ reg = <0x100000 0x80000>;
+ };
+
+ partition@180000 {
label = "bareboxenv";
- reg = <0x100000 0x40000>;
+ reg = <0x180000 0x40000>;
};
- partition@140000 {
+ partition@1C0000 {
label = "oftree";
- reg = <0x140000 0x40000>;
+ reg = <0x1C0000 0x40000>;
};
- partition@180000 {
+ partition@200000 {
label = "kernel";
- reg = <0x180000 0x800000>;
+ reg = <0x200000 0x800000>;
};
- partition@980000 {
+ partition@A00000 {
label = "root";
/*
* Size 0x0 extends partition to
* end of nand flash.
*/
- reg = <0x980000 0x0>;
+ reg = <0xA00000 0x0>;
};
};
};
diff --git a/arch/arm/dts/am335x-phytec-phyflex-som.dtsi b/arch/arm/dts/am335x-phytec-phyflex-som.dtsi
index 6561625686..db78cb10fd 100644
--- a/arch/arm/dts/am335x-phytec-phyflex-som.dtsi
+++ b/arch/arm/dts/am335x-phytec-phyflex-som.dtsi
@@ -304,23 +304,32 @@
};
partition@100000 {
+ label = "barebox_backup";
+ reg = <0x100000 0x80000>;
+ };
+
+ partition@180000 {
label = "bareboxenv";
- reg = <0x100000 0x40000>;
+ reg = <0x180000 0x40000>;
};
- partition@140000 {
+ partition@1C0000 {
label = "oftree";
- reg = <0x140000 0x40000>;
+ reg = <0x1C0000 0x40000>;
};
- partition@180000 {
+ partition@200000 {
label = "kernel";
- reg = <0x180000 0x800000>;
+ reg = <0x200000 0x800000>;
};
- partition@980000 {
+ partition@A00000 {
label = "root";
- reg = <0x980000 0x0>;
+ /*
+ * Size 0x0 extends partition to
+ * end of nand flash.
+ */
+ reg = <0xA00000 0x0>;
};
};
};