Skip to contentSkip to conversation

arm: socfpga: Enable ubi and ubifs support

PATCH New Chin Liang See 2 participants 3 messages Dec 11, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: socfpga: Enable ubi and ubifs support

When QSPI and NAND is enabled, the ubi and ubifs support will be enabled too.

Cc Dinh Nguyen <[email protected]>
Cc Dinh Nguyen <[email protected]>
Cc Pavel Machek <[email protected]>
Cc Marek Vasut <[email protected]>
Cc Stefan Roese <[email protected]>
---
 include/configs/socfpga_common.h | 8 ++++++++
 1 file changed, 8 insertions(+)
include/configs/socfpga_common.h +8 -0
index b3f65b6..a07017b 100644
@@ -274,6 +274,14 @@ unsigned int cm_get_qspi_controller_clk_hz(void);
 #define CONFIG_SYS_CONSOLE_ENV_OVERWRITE
 #define CONFIG_ENV_SIZE			4096
 
+/* UBIFS support */
+#if defined(CONFIG_CMD_SF) || defined(CONFIG_CMD_NAND)
+#define CONFIG_CMD_UBI
+#define CONFIG_CMD_UBIFS
+#define CONFIG_RBTREE
+#define CONFIG_LZO
+#endif
+
 /*
  * SPL
  *

--
1.9.2.468.g3f0c02a

#1 lore raw

PATCH 1/1 arm: socfpga: Enable ubi and ubifs support

Hi Marek,

Quoted 21 lines · Chin Liang See

When QSPI and NAND is enabled, the ubi and ubifs support will be enabled too.

Cc Dinh Nguyen <[email protected]>
Cc Dinh Nguyen <[email protected]>
Cc Pavel Machek <[email protected]>
Cc Marek Vasut <[email protected]>
Cc Stefan Roese <[email protected]>
---
 include/configs/socfpga_common.h | 8 ++++++++
 1 file changed, 8 insertions(+)
include/configs/socfpga_common.h +0 -0
index b3f65b6..a07017b 100644
@@ -274,6 +274,14 @@ unsigned int
 cm_get_qspi_controller_clk_hz(void);
 #define CONFIG_SYS_CONSOLE_ENV_OVERWRITE

include/configs/socfpga_common.h unsigned int · line 285

Quoted 10 lines
include/configs/socfpga_common.h +8 -0
 #define CONFIG_ENV_SIZE			4096
 
+/* UBIFS support */
+#if defined(CONFIG_CMD_SF) || defined(CONFIG_CMD_NAND)
+#define CONFIG_CMD_UBI
+#define CONFIG_CMD_UBIFS
+#define CONFIG_RBTREE
+#define CONFIG_LZO
+#endif
+

I have issue on ubifsmount my ubinized image. I suspect it might created wrongly. The code is ok based on previous patches and the one you sent to me. Wonder you might able to validate with your working ubinized image?

Thanks in advance!
Chin Liang

Quoted 6 lines
include/configs/socfpga_common.h +0 -0
 /*
  * SPL

*
--
1.9.2.468.g3f0c02a

#2 lore raw

PATCH 1/1 arm: socfpga: Enable ubi and ubifs support

Quoted 28 lines · Chin Liang See

Hi Marek,

Quoted 25 lines · Chin Liang See

When QSPI and NAND is enabled, the ubi and ubifs support will be enabled too.

Cc Dinh Nguyen <[email protected]>
Cc Dinh Nguyen <[email protected]>
Cc Pavel Machek <[email protected]>
Cc Marek Vasut <[email protected]>
Cc Stefan Roese <[email protected]>

---

 include/configs/socfpga_common.h | 8 ++++++++
 1 file changed, 8 insertions(+)
include/configs/socfpga_common.h +0 -0
index b3f65b6..a07017b 100644
@@ -274,6 +274,14 @@ unsigned int
 cm_get_qspi_controller_clk_hz(void);
 
 #define CONFIG_SYS_CONSOLE_ENV_OVERWRITE
 #define CONFIG_ENV_SIZE			4096
 
Quoted 13 lines

include/configs/socfpga_common.h unsigned int cm_get_qspi_controller_clk_hz(void); · line 284

Quoted 8 lines
include/configs/socfpga_common.h +8 -0
+/* UBIFS support */
+#if defined(CONFIG_CMD_SF) || defined(CONFIG_CMD_NAND)
+#define CONFIG_CMD_UBI
+#define CONFIG_CMD_UBIFS
+#define CONFIG_RBTREE
+#define CONFIG_LZO
+#endif
+

I have issue on ubifsmount my ubinized image. I suspect it might created wrongly. The code is ok based on previous patches and the one you sent to me. Wonder you might able to validate with your working ubinized image?

Try applying this patch:

[PATCH] arm: Replace test for CONFIG_ARMV7 with CONFIG_CPU_V7

And then erase the SPI flash, reinstall the ubi image and try again. Does it help ?

Best regards,
Marek Vasut