arm: socfpga: Enable ubi and ubifs support
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.
--- include/configs/socfpga_common.h | 8 ++++++++ 1 file changed, 8 insertions(+)
include/configs/socfpga_common.h +8 -0
@@ -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
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.
Signed-off-by Chin Liang See <[email protected]>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@@ -274,6 +274,14 @@ unsigned intcm_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
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.
Signed-off-by Chin Liang See <[email protected]>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@@ -274,6 +274,14 @@ unsigned intcm_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