All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] arm: socfpga: Enable ubi and ubifs support
@ 2015-12-21 15:22 Chin Liang See
  2015-12-21 23:12 ` Marek Vasut
  0 siblings, 1 reply; 6+ messages in thread
From: Chin Liang See @ 2015-12-21 15:22 UTC (permalink / raw)
  To: u-boot

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

Signed-off-by: Chin Liang See <clsee@altera.com>
Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
Cc: Dinh Nguyen <dinh.linux@gmail.com>
Cc: Pavel Machek <pavel@denx.de>
Cc: Marek Vasut <marex@denx.de>
Cc: Stefan Roese <sr@denx.de>
---
 include/configs/socfpga_common.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/include/configs/socfpga_common.h b/include/configs/socfpga_common.h
index f7c0eb5..7c50100 100644
--- a/include/configs/socfpga_common.h
+++ b/include/configs/socfpga_common.h
@@ -300,6 +300,15 @@ unsigned int cm_get_qspi_controller_clk_hz(void);
 				"- at 1536k(UBI)\0"
 #endif
 
+/* UBI and 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
+#undef CONFIG_SPI_FLASH_USE_4K_SECTORS
+#endif
+
 /*
  * SPL
  *
-- 
1.9.2.468.g3f0c02a

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [U-Boot] [PATCH] arm: socfpga: Enable ubi and ubifs support
  2015-12-21 15:22 [U-Boot] [PATCH] arm: socfpga: Enable ubi and ubifs support Chin Liang See
@ 2015-12-21 23:12 ` Marek Vasut
  2015-12-22  0:20   ` Chin Liang See
  0 siblings, 1 reply; 6+ messages in thread
From: Marek Vasut @ 2015-12-21 23:12 UTC (permalink / raw)
  To: u-boot

On Monday, December 21, 2015 at 04:22:07 PM, Chin Liang See wrote:
> When QSPI and NAND is enabled, the ubi and ubifs support
> will be enabled too.
> 
> Signed-off-by: Chin Liang See <clsee@altera.com>
> Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
> Cc: Dinh Nguyen <dinh.linux@gmail.com>
> Cc: Pavel Machek <pavel@denx.de>
> Cc: Marek Vasut <marex@denx.de>
> Cc: Stefan Roese <sr@denx.de>
> ---
>  include/configs/socfpga_common.h | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/include/configs/socfpga_common.h
> b/include/configs/socfpga_common.h index f7c0eb5..7c50100 100644
> --- a/include/configs/socfpga_common.h
> +++ b/include/configs/socfpga_common.h
> @@ -300,6 +300,15 @@ unsigned int cm_get_qspi_controller_clk_hz(void);
>  				"- at 1536k(UBI)\0"
>  #endif
> 
> +/* UBI and 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
> +#undef CONFIG_SPI_FLASH_USE_4K_SECTORS

This CONFIG_SPI_FLASH_USE_4K_SECTORS is Kconfig stuff, so it should go into 
configs/socfpga_* , otherwise this is fine.

> +#endif
> +
>  /*
>   * SPL
>   *

Best regards,
Marek Vasut

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] [PATCH] arm: socfpga: Enable ubi and ubifs support
  2015-12-21 23:12 ` Marek Vasut
@ 2015-12-22  0:20   ` Chin Liang See
  0 siblings, 0 replies; 6+ messages in thread
From: Chin Liang See @ 2015-12-22  0:20 UTC (permalink / raw)
  To: u-boot

On Tue, 2015-12-22 at 00:12 +0100, Marek Vasut wrote:
> On Monday, December 21, 2015 at 04:22:07 PM, Chin Liang See wrote:
> > When QSPI and NAND is enabled, the ubi and ubifs support
> > will be enabled too.
> > 
> > Signed-off-by: Chin Liang See <clsee@altera.com>
> > Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
> > Cc: Dinh Nguyen <dinh.linux@gmail.com>
> > Cc: Pavel Machek <pavel@denx.de>
> > Cc: Marek Vasut <marex@denx.de>
> > Cc: Stefan Roese <sr@denx.de>
> > ---
> >  include/configs/socfpga_common.h | 9 +++++++++
> >  1 file changed, 9 insertions(+)
> > 
> > diff --git a/include/configs/socfpga_common.h
> > b/include/configs/socfpga_common.h index f7c0eb5..7c50100 100644
> > --- a/include/configs/socfpga_common.h
> > +++ b/include/configs/socfpga_common.h
> > @@ -300,6 +300,15 @@ unsigned int
> > cm_get_qspi_controller_clk_hz(void);
> >  				"- at 1536k(UBI)\0"
> >  #endif
> > 
> > +/* UBI and 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
> > +#undef CONFIG_SPI_FLASH_USE_4K_SECTORS
> 
> This CONFIG_SPI_FLASH_USE_4K_SECTORS is Kconfig stuff, so it should
> go into 
> configs/socfpga_* , otherwise this is fine.
> 

oh, not aware of that. Ok let me update this.

Thanks
Chin Liang

> > +#endif
> > +
> >  /*
> >   * SPL
> >   *
> 
> Best regards,
> Marek Vasut

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] [PATCH] arm: socfpga: Enable ubi and ubifs support
  2015-12-11  9:25 ` Chin Liang See
@ 2015-12-11 14:26   ` Marek Vasut
  0 siblings, 0 replies; 6+ messages in thread
From: Marek Vasut @ 2015-12-11 14:26 UTC (permalink / raw)
  To: u-boot

On Friday, December 11, 2015 at 10:25:59 AM, Chin Liang See wrote:
> Hi Marek,
> 
> On Fri, 2015-12-11 at 17:19 +0800, Chin Liang See wrote:
> > When QSPI and NAND is enabled, the ubi and ubifs support
> > will be enabled too.
> > 
> > Signed-off-by: Chin Liang See <clsee@altera.com>
> > Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
> > Cc: Dinh Nguyen <dinh.linux@gmail.com>
> > Cc: Pavel Machek <pavel@denx.de>
> > Cc: Marek Vasut <marex@denx.de>
> > Cc: Stefan Roese <sr@denx.de>
> > ---
> > 
> >  include/configs/socfpga_common.h | 8 ++++++++
> >  1 file changed, 8 insertions(+)
> > 
> > diff --git a/include/configs/socfpga_common.h
> > b/include/configs/socfpga_common.h
> > index b3f65b6..a07017b 100644
> > --- a/include/configs/socfpga_common.h
> > +++ b/include/configs/socfpga_common.h
> > @@ -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
> > +
> 
> 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] [PATCH] arm: socfpga: Enable ubi and ubifs support
  2015-12-11  9:19 Chin Liang See
@ 2015-12-11  9:25 ` Chin Liang See
  2015-12-11 14:26   ` Marek Vasut
  0 siblings, 1 reply; 6+ messages in thread
From: Chin Liang See @ 2015-12-11  9:25 UTC (permalink / raw)
  To: u-boot

Hi Marek,

On Fri, 2015-12-11 at 17:19 +0800, Chin Liang See wrote:
> When QSPI and NAND is enabled, the ubi and ubifs support
> will be enabled too.
> 
> Signed-off-by: Chin Liang See <clsee@altera.com>
> Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
> Cc: Dinh Nguyen <dinh.linux@gmail.com>
> Cc: Pavel Machek <pavel@denx.de>
> Cc: Marek Vasut <marex@denx.de>
> Cc: Stefan Roese <sr@denx.de>
> ---
>  include/configs/socfpga_common.h | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/include/configs/socfpga_common.h
> b/include/configs/socfpga_common.h
> index b3f65b6..a07017b 100644
> --- a/include/configs/socfpga_common.h
> +++ b/include/configs/socfpga_common.h
> @@ -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
> +

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


>  /*
>   * SPL
>   *
> --
> 1.9.2.468.g3f0c02a
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] [PATCH] arm: socfpga: Enable ubi and ubifs support
@ 2015-12-11  9:19 Chin Liang See
  2015-12-11  9:25 ` Chin Liang See
  0 siblings, 1 reply; 6+ messages in thread
From: Chin Liang See @ 2015-12-11  9:19 UTC (permalink / raw)
  To: u-boot

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

Signed-off-by: Chin Liang See <clsee@altera.com>
Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
Cc: Dinh Nguyen <dinh.linux@gmail.com>
Cc: Pavel Machek <pavel@denx.de>
Cc: Marek Vasut <marex@denx.de>
Cc: Stefan Roese <sr@denx.de>
---
 include/configs/socfpga_common.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/include/configs/socfpga_common.h b/include/configs/socfpga_common.h
index b3f65b6..a07017b 100644
--- a/include/configs/socfpga_common.h
+++ b/include/configs/socfpga_common.h
@@ -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

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-12-22  0:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-21 15:22 [U-Boot] [PATCH] arm: socfpga: Enable ubi and ubifs support Chin Liang See
2015-12-21 23:12 ` Marek Vasut
2015-12-22  0:20   ` Chin Liang See
  -- strict thread matches above, loose matches on Subject: below --
2015-12-11  9:19 Chin Liang See
2015-12-11  9:25 ` Chin Liang See
2015-12-11 14:26   ` Marek Vasut

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.