public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2 1/5] arm: socfpga: Enable ubi and ubifs support
@ 2015-12-22  0:59 Chin Liang See
  2015-12-22  0:59 ` [U-Boot] [PATCH v2 2/5] arm: socfpga: cyclone5: Undefine CONFIG_SPI_FLASH_USE_4K_SECTORS Chin Liang See
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Chin Liang See @ 2015-12-22  0:59 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>
---
Changes for v2
- move CONFIG_SPI_FLASH_USE_4K_SECTORS to Kconfig
---
 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 f7c0eb5..dfc3ed5 100644
--- a/include/configs/socfpga_common.h
+++ b/include/configs/socfpga_common.h
@@ -300,6 +300,14 @@ 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
+#endif
+
 /*
  * SPL
  *
-- 
1.9.2.468.g3f0c02a

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

* [U-Boot] [PATCH v2 2/5] arm: socfpga: cyclone5: Undefine CONFIG_SPI_FLASH_USE_4K_SECTORS
  2015-12-22  0:59 [U-Boot] [PATCH v2 1/5] arm: socfpga: Enable ubi and ubifs support Chin Liang See
@ 2015-12-22  0:59 ` Chin Liang See
  2015-12-22  1:15   ` Marek Vasut
  2015-12-23 18:13   ` Pavel Machek
  2015-12-22  0:59 ` [U-Boot] [PATCH v2 3/5] arm: socfpga: cyclone5_socdk: Enable ubiload console command Chin Liang See
                   ` (3 subsequent siblings)
  4 siblings, 2 replies; 14+ messages in thread
From: Chin Liang See @ 2015-12-22  0:59 UTC (permalink / raw)
  To: u-boot

Undefine CONFIG_SPI_FLASH_USE_4K_SECTORS for UBI
and UBIFS support on serial NOR flash

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>
---
Changes for v2
- move CONFIG_SPI_FLASH_USE_4K_SECTORS to Kconfig
---
 configs/socfpga_cyclone5_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configs/socfpga_cyclone5_defconfig b/configs/socfpga_cyclone5_defconfig
index 864358c..4216b55 100644
--- a/configs/socfpga_cyclone5_defconfig
+++ b/configs/socfpga_cyclone5_defconfig
@@ -23,3 +23,4 @@ CONFIG_DESIGNWARE_SPI=y
 CONFIG_DM_MMC=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
+CONFIG_SPI_FLASH_USE_4K_SECTORS=n
-- 
1.9.2.468.g3f0c02a

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

* [U-Boot] [PATCH v2 3/5] arm: socfpga: cyclone5_socdk: Enable ubiload console command
  2015-12-22  0:59 [U-Boot] [PATCH v2 1/5] arm: socfpga: Enable ubi and ubifs support Chin Liang See
  2015-12-22  0:59 ` [U-Boot] [PATCH v2 2/5] arm: socfpga: cyclone5: Undefine CONFIG_SPI_FLASH_USE_4K_SECTORS Chin Liang See
@ 2015-12-22  0:59 ` Chin Liang See
  2015-12-22  0:59 ` [U-Boot] [PATCH v2 4/5] arm: socfpga: cyclone5_socdk: Enable qspiload " Chin Liang See
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 14+ messages in thread
From: Chin Liang See @ 2015-12-22  0:59 UTC (permalink / raw)
  To: u-boot

Enabling ubiload command to load kernel image and
device tree from mtd part labeled "UBI". ubiload
command will search the file from directory /boot.

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>
---
Changes for v2
- use && instead of ; for ubiload
- update commit message
---
 include/configs/socfpga_cyclone5_socdk.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/include/configs/socfpga_cyclone5_socdk.h b/include/configs/socfpga_cyclone5_socdk.h
index 3c2e2ae..72a3cef 100644
--- a/include/configs/socfpga_cyclone5_socdk.h
+++ b/include/configs/socfpga_cyclone5_socdk.h
@@ -74,7 +74,10 @@
 	"qspirootfstype=jffs2\0" \
 	"qspiboot=setenv bootargs " CONFIG_BOOTARGS \
 		" root=${qspiroot} rw rootfstype=${qspirootfstype};"\
-		"bootm ${loadaddr} - ${fdt_addr}\0"
+		"bootm ${loadaddr} - ${fdt_addr}\0" \
+	"ubiload=ubi part UBI && ubifsmount ubi0 && " \
+		"ubifsload ${loadaddr} /boot/${bootimage} && " \
+		"ubifsload ${fdt_addr} /boot/${fdtimage}\0"
 
 /* The rest of the configuration is shared */
 #include <configs/socfpga_common.h>
-- 
1.9.2.468.g3f0c02a

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

* [U-Boot] [PATCH v2 4/5] arm: socfpga: cyclone5_socdk: Enable qspiload console command
  2015-12-22  0:59 [U-Boot] [PATCH v2 1/5] arm: socfpga: Enable ubi and ubifs support Chin Liang See
  2015-12-22  0:59 ` [U-Boot] [PATCH v2 2/5] arm: socfpga: cyclone5: Undefine CONFIG_SPI_FLASH_USE_4K_SECTORS Chin Liang See
  2015-12-22  0:59 ` [U-Boot] [PATCH v2 3/5] arm: socfpga: cyclone5_socdk: Enable ubiload console command Chin Liang See
@ 2015-12-22  0:59 ` Chin Liang See
  2015-12-22  0:59 ` [U-Boot] [PATCH v2 5/5] arm: socfpga: cyclone5_socdk: Update qspiboot to use UBIFS Chin Liang See
  2015-12-22  1:17 ` [U-Boot] [PATCH v2 1/5] arm: socfpga: Enable ubi and ubifs support Marek Vasut
  4 siblings, 0 replies; 14+ messages in thread
From: Chin Liang See @ 2015-12-22  0:59 UTC (permalink / raw)
  To: u-boot

Enabling qspiload command which will load the kernel
image and dtb from UBIFS within MTD partition labeled
UBI.

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>
---
Changes for v2
- use && instead ; for qspiload
---
 include/configs/socfpga_cyclone5_socdk.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/configs/socfpga_cyclone5_socdk.h b/include/configs/socfpga_cyclone5_socdk.h
index 72a3cef..0ed7f42 100644
--- a/include/configs/socfpga_cyclone5_socdk.h
+++ b/include/configs/socfpga_cyclone5_socdk.h
@@ -70,6 +70,7 @@
 	"mmcload=mmc rescan;" \
 		"load mmc 0:1 ${loadaddr} ${bootimage};" \
 		"load mmc 0:1 ${fdt_addr} ${fdtimage}\0" \
+	"qspiload=sf probe && mtdparts default && run ubiload\0" \
 	"qspiroot=/dev/mtdblock0\0" \
 	"qspirootfstype=jffs2\0" \
 	"qspiboot=setenv bootargs " CONFIG_BOOTARGS \
-- 
1.9.2.468.g3f0c02a

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

* [U-Boot] [PATCH v2 5/5] arm: socfpga: cyclone5_socdk: Update qspiboot to use UBIFS
  2015-12-22  0:59 [U-Boot] [PATCH v2 1/5] arm: socfpga: Enable ubi and ubifs support Chin Liang See
                   ` (2 preceding siblings ...)
  2015-12-22  0:59 ` [U-Boot] [PATCH v2 4/5] arm: socfpga: cyclone5_socdk: Enable qspiload " Chin Liang See
@ 2015-12-22  0:59 ` Chin Liang See
  2015-12-22  1:17 ` [U-Boot] [PATCH v2 1/5] arm: socfpga: Enable ubi and ubifs support Marek Vasut
  4 siblings, 0 replies; 14+ messages in thread
From: Chin Liang See @ 2015-12-22  0:59 UTC (permalink / raw)
  To: u-boot

Update the qspiboot console command to use UBIFS instead
of old jffs2 file system.

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>
---
Changes for v2
- part of series
---
 include/configs/socfpga_cyclone5_socdk.h | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/include/configs/socfpga_cyclone5_socdk.h b/include/configs/socfpga_cyclone5_socdk.h
index 0ed7f42..c4c4ecb 100644
--- a/include/configs/socfpga_cyclone5_socdk.h
+++ b/include/configs/socfpga_cyclone5_socdk.h
@@ -71,11 +71,9 @@
 		"load mmc 0:1 ${loadaddr} ${bootimage};" \
 		"load mmc 0:1 ${fdt_addr} ${fdtimage}\0" \
 	"qspiload=sf probe && mtdparts default && run ubiload\0" \
-	"qspiroot=/dev/mtdblock0\0" \
-	"qspirootfstype=jffs2\0" \
 	"qspiboot=setenv bootargs " CONFIG_BOOTARGS \
-		" root=${qspiroot} rw rootfstype=${qspirootfstype};"\
-		"bootm ${loadaddr} - ${fdt_addr}\0" \
+		" ubi.mtd=1,64 root=ubi0:rootfs rw rootfstype=ubifs;"\
+		"bootz ${loadaddr} - ${fdt_addr}\0" \
 	"ubiload=ubi part UBI && ubifsmount ubi0 && " \
 		"ubifsload ${loadaddr} /boot/${bootimage} && " \
 		"ubifsload ${fdt_addr} /boot/${fdtimage}\0"
-- 
1.9.2.468.g3f0c02a

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

* [U-Boot] [PATCH v2 2/5] arm: socfpga: cyclone5: Undefine CONFIG_SPI_FLASH_USE_4K_SECTORS
  2015-12-22  0:59 ` [U-Boot] [PATCH v2 2/5] arm: socfpga: cyclone5: Undefine CONFIG_SPI_FLASH_USE_4K_SECTORS Chin Liang See
@ 2015-12-22  1:15   ` Marek Vasut
  2015-12-22  1:55     ` Chin Liang See
  2015-12-23 18:13   ` Pavel Machek
  1 sibling, 1 reply; 14+ messages in thread
From: Marek Vasut @ 2015-12-22  1:15 UTC (permalink / raw)
  To: u-boot

On Tuesday, December 22, 2015 at 01:59:46 AM, Chin Liang See wrote:
> Undefine CONFIG_SPI_FLASH_USE_4K_SECTORS for UBI
> and UBIFS support on serial NOR flash
> 
> 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>
> ---
> Changes for v2
> - move CONFIG_SPI_FLASH_USE_4K_SECTORS to Kconfig
> ---
>  configs/socfpga_cyclone5_defconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/configs/socfpga_cyclone5_defconfig
> b/configs/socfpga_cyclone5_defconfig index 864358c..4216b55 100644
> --- a/configs/socfpga_cyclone5_defconfig
> +++ b/configs/socfpga_cyclone5_defconfig
> @@ -23,3 +23,4 @@ CONFIG_DESIGNWARE_SPI=y
>  CONFIG_DM_MMC=y
>  CONFIG_USB=y
>  CONFIG_DM_USB=y
> +CONFIG_SPI_FLASH_USE_4K_SECTORS=n

And for arriaV ... ? And sockit ? ;-)

Best regards,
Marek Vasut

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

* [U-Boot] [PATCH v2 1/5] arm: socfpga: Enable ubi and ubifs support
  2015-12-22  0:59 [U-Boot] [PATCH v2 1/5] arm: socfpga: Enable ubi and ubifs support Chin Liang See
                   ` (3 preceding siblings ...)
  2015-12-22  0:59 ` [U-Boot] [PATCH v2 5/5] arm: socfpga: cyclone5_socdk: Update qspiboot to use UBIFS Chin Liang See
@ 2015-12-22  1:17 ` Marek Vasut
  4 siblings, 0 replies; 14+ messages in thread
From: Marek Vasut @ 2015-12-22  1:17 UTC (permalink / raw)
  To: u-boot

On Tuesday, December 22, 2015 at 01:59:45 AM, 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>
> ---
> Changes for v2
> - move CONFIG_SPI_FLASH_USE_4K_SECTORS to Kconfig

All but 2/5 looks good :)

Best regards,
Marek Vasut

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

* [U-Boot] [PATCH v2 2/5] arm: socfpga: cyclone5: Undefine CONFIG_SPI_FLASH_USE_4K_SECTORS
  2015-12-22  1:15   ` Marek Vasut
@ 2015-12-22  1:55     ` Chin Liang See
  2015-12-22  2:09       ` Marek Vasut
  0 siblings, 1 reply; 14+ messages in thread
From: Chin Liang See @ 2015-12-22  1:55 UTC (permalink / raw)
  To: u-boot

On Tue, 2015-12-22 at 02:15 +0100, Marek Vasut wrote:
> On Tuesday, December 22, 2015 at 01:59:46 AM, Chin Liang See wrote:
> > Undefine CONFIG_SPI_FLASH_USE_4K_SECTORS for UBI
> > and UBIFS support on serial NOR flash
> > 
> > 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>
> > ---
> > Changes for v2
> > - move CONFIG_SPI_FLASH_USE_4K_SECTORS to Kconfig
> > ---
> >  configs/socfpga_cyclone5_defconfig | 1 +
> >  1 file changed, 1 insertion(+)
> > 
> > diff --git a/configs/socfpga_cyclone5_defconfig
> > b/configs/socfpga_cyclone5_defconfig index 864358c..4216b55 100644
> > --- a/configs/socfpga_cyclone5_defconfig
> > +++ b/configs/socfpga_cyclone5_defconfig
> > @@ -23,3 +23,4 @@ CONFIG_DESIGNWARE_SPI=y
> >  CONFIG_DM_MMC=y
> >  CONFIG_USB=y
> >  CONFIG_DM_USB=y
> > +CONFIG_SPI_FLASH_USE_4K_SECTORS=n
> 
> And for arriaV ... ? And sockit ? ;-)

haha too obsess testing on CV board :)
Let me include them into these series.

Thanks
Chin Liang

> 
> Best regards,
> Marek Vasut

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

* [U-Boot] [PATCH v2 2/5] arm: socfpga: cyclone5: Undefine CONFIG_SPI_FLASH_USE_4K_SECTORS
  2015-12-22  1:55     ` Chin Liang See
@ 2015-12-22  2:09       ` Marek Vasut
  2015-12-22  2:26         ` Chin Liang See
  2015-12-22  6:07         ` Stefan Roese
  0 siblings, 2 replies; 14+ messages in thread
From: Marek Vasut @ 2015-12-22  2:09 UTC (permalink / raw)
  To: u-boot

On Tuesday, December 22, 2015 at 02:55:05 AM, Chin Liang See wrote:
> On Tue, 2015-12-22 at 02:15 +0100, Marek Vasut wrote:
> > On Tuesday, December 22, 2015 at 01:59:46 AM, Chin Liang See wrote:
> > > Undefine CONFIG_SPI_FLASH_USE_4K_SECTORS for UBI
> > > and UBIFS support on serial NOR flash
> > > 
> > > 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>
> > > ---
> > > Changes for v2
> > > - move CONFIG_SPI_FLASH_USE_4K_SECTORS to Kconfig
> > > ---
> > > 
> > >  configs/socfpga_cyclone5_defconfig | 1 +
> > >  1 file changed, 1 insertion(+)
> > > 
> > > diff --git a/configs/socfpga_cyclone5_defconfig
> > > b/configs/socfpga_cyclone5_defconfig index 864358c..4216b55 100644
> > > --- a/configs/socfpga_cyclone5_defconfig
> > > +++ b/configs/socfpga_cyclone5_defconfig
> > > @@ -23,3 +23,4 @@ CONFIG_DESIGNWARE_SPI=y
> > > 
> > >  CONFIG_DM_MMC=y
> > >  CONFIG_USB=y
> > >  CONFIG_DM_USB=y
> > > 
> > > +CONFIG_SPI_FLASH_USE_4K_SECTORS=n
> > 
> > And for arriaV ... ? And sockit ? ;-)
> 
> haha too obsess testing on CV board :)
> Let me include them into these series.

These should be the only three boards which use QSPI NOR.

SoCrates, MCV and DE0 do not have QSPI NOR. SR1500 I believe also doesn't have 
one.

Best regards,
Marek Vasut

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

* [U-Boot] [PATCH v2 2/5] arm: socfpga: cyclone5: Undefine CONFIG_SPI_FLASH_USE_4K_SECTORS
  2015-12-22  2:09       ` Marek Vasut
@ 2015-12-22  2:26         ` Chin Liang See
  2015-12-22  6:07         ` Stefan Roese
  1 sibling, 0 replies; 14+ messages in thread
From: Chin Liang See @ 2015-12-22  2:26 UTC (permalink / raw)
  To: u-boot

On Tue, 2015-12-22 at 03:09 +0100, Marek Vasut wrote:
> On Tuesday, December 22, 2015 at 02:55:05 AM, Chin Liang See wrote:
> > On Tue, 2015-12-22 at 02:15 +0100, Marek Vasut wrote:
> > > On Tuesday, December 22, 2015 at 01:59:46 AM, Chin Liang See
> > > wrote:
> > > > Undefine CONFIG_SPI_FLASH_USE_4K_SECTORS for UBI
> > > > and UBIFS support on serial NOR flash
> > > > 
> > > > 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>
> > > > ---
> > > > Changes for v2
> > > > - move CONFIG_SPI_FLASH_USE_4K_SECTORS to Kconfig
> > > > ---
> > > > 
> > > >  configs/socfpga_cyclone5_defconfig | 1 +
> > > >  1 file changed, 1 insertion(+)
> > > > 
> > > > diff --git a/configs/socfpga_cyclone5_defconfig
> > > > b/configs/socfpga_cyclone5_defconfig index 864358c..4216b55
> > > > 100644
> > > > --- a/configs/socfpga_cyclone5_defconfig
> > > > +++ b/configs/socfpga_cyclone5_defconfig
> > > > @@ -23,3 +23,4 @@ CONFIG_DESIGNWARE_SPI=y
> > > > 
> > > >  CONFIG_DM_MMC=y
> > > >  CONFIG_USB=y
> > > >  CONFIG_DM_USB=y
> > > > 
> > > > +CONFIG_SPI_FLASH_USE_4K_SECTORS=n
> > > 
> > > And for arriaV ... ? And sockit ? ;-)
> > 
> > haha too obsess testing on CV board :)
> > Let me include them into these series.
> 
> These should be the only three boards which use QSPI NOR.
> 
> SoCrates, MCV and DE0 do not have QSPI NOR. SR1500 I believe also
> doesn't have 
> one.

Nice, dun need to scratch my head :)

Thanks
Chin Liang

> 
> Best regards,
> Marek Vasut

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

* [U-Boot] [PATCH v2 2/5] arm: socfpga: cyclone5: Undefine CONFIG_SPI_FLASH_USE_4K_SECTORS
  2015-12-22  2:09       ` Marek Vasut
  2015-12-22  2:26         ` Chin Liang See
@ 2015-12-22  6:07         ` Stefan Roese
  2015-12-22  6:34           ` Chin Liang See
  1 sibling, 1 reply; 14+ messages in thread
From: Stefan Roese @ 2015-12-22  6:07 UTC (permalink / raw)
  To: u-boot

On 22.12.2015 03:09, Marek Vasut wrote:
> On Tuesday, December 22, 2015 at 02:55:05 AM, Chin Liang See wrote:
>> On Tue, 2015-12-22 at 02:15 +0100, Marek Vasut wrote:
>>> On Tuesday, December 22, 2015 at 01:59:46 AM, Chin Liang See wrote:
>>>> Undefine CONFIG_SPI_FLASH_USE_4K_SECTORS for UBI
>>>> and UBIFS support on serial NOR flash
>>>>
>>>> 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>
>>>> ---
>>>> Changes for v2
>>>> - move CONFIG_SPI_FLASH_USE_4K_SECTORS to Kconfig
>>>> ---
>>>>
>>>>   configs/socfpga_cyclone5_defconfig | 1 +
>>>>   1 file changed, 1 insertion(+)
>>>>
>>>> diff --git a/configs/socfpga_cyclone5_defconfig
>>>> b/configs/socfpga_cyclone5_defconfig index 864358c..4216b55 100644
>>>> --- a/configs/socfpga_cyclone5_defconfig
>>>> +++ b/configs/socfpga_cyclone5_defconfig
>>>> @@ -23,3 +23,4 @@ CONFIG_DESIGNWARE_SPI=y
>>>>
>>>>   CONFIG_DM_MMC=y
>>>>   CONFIG_USB=y
>>>>   CONFIG_DM_USB=y
>>>>
>>>> +CONFIG_SPI_FLASH_USE_4K_SECTORS=n
>>>
>>> And for arriaV ... ? And sockit ? ;-)
>>
>> haha too obsess testing on CV board :)
>> Let me include them into these series.
>
> These should be the only three boards which use QSPI NOR.
>
> SoCrates, MCV and DE0 do not have QSPI NOR. SR1500 I believe also doesn't have
> one.

SR1500 does have QSPI NOR. Its the boot device.

Thanks,
Stefan

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

* [U-Boot] [PATCH v2 2/5] arm: socfpga: cyclone5: Undefine CONFIG_SPI_FLASH_USE_4K_SECTORS
  2015-12-22  6:07         ` Stefan Roese
@ 2015-12-22  6:34           ` Chin Liang See
  0 siblings, 0 replies; 14+ messages in thread
From: Chin Liang See @ 2015-12-22  6:34 UTC (permalink / raw)
  To: u-boot

On Tue, 2015-12-22 at 07:07 +0100, Stefan Roese wrote:
> On 22.12.2015 03:09, Marek Vasut wrote:
> > On Tuesday, December 22, 2015 at 02:55:05 AM, Chin Liang See wrote:
> > > On Tue, 2015-12-22 at 02:15 +0100, Marek Vasut wrote:
> > > > On Tuesday, December 22, 2015 at 01:59:46 AM, Chin Liang See
> > > > wrote:

[..]

> > > > > 
> > > > > 
> > > > > diff --git a/configs/socfpga_cyclone5_defconfig
> > > > > b/configs/socfpga_cyclone5_defconfig index 864358c..4216b55
> > > > > 100644
> > > > > --- a/configs/socfpga_cyclone5_defconfig
> > > > > +++ b/configs/socfpga_cyclone5_defconfig
> > > > > @@ -23,3 +23,4 @@ CONFIG_DESIGNWARE_SPI=y
> > > > > 
> > > > >   CONFIG_DM_MMC=y
> > > > >   CONFIG_USB=y
> > > > >   CONFIG_DM_USB=y
> > > > > 
> > > > > +CONFIG_SPI_FLASH_USE_4K_SECTORS=n
> > > > 
> > > > And for arriaV ... ? And sockit ? ;-)
> > > 
> > > haha too obsess testing on CV board :)
> > > Let me include them into these series.
> > 
> > These should be the only three boards which use QSPI NOR.
> > 
> > SoCrates, MCV and DE0 do not have QSPI NOR. SR1500 I believe also
> > doesn't have
> > one.
> 
> SR1500 does have QSPI NOR. Its the boot device.

Just in time as going to create v3 now :)

Thanks
Chin Liang

Thanks,
> Stefan
> 

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

* [U-Boot] [PATCH v2 2/5] arm: socfpga: cyclone5: Undefine CONFIG_SPI_FLASH_USE_4K_SECTORS
  2015-12-22  0:59 ` [U-Boot] [PATCH v2 2/5] arm: socfpga: cyclone5: Undefine CONFIG_SPI_FLASH_USE_4K_SECTORS Chin Liang See
  2015-12-22  1:15   ` Marek Vasut
@ 2015-12-23 18:13   ` Pavel Machek
  2015-12-23 23:11     ` Chin Liang See
  1 sibling, 1 reply; 14+ messages in thread
From: Pavel Machek @ 2015-12-23 18:13 UTC (permalink / raw)
  To: u-boot

On Tue 2015-12-22 08:59:46, Chin Liang See wrote:
> Undefine CONFIG_SPI_FLASH_USE_4K_SECTORS for UBI
> and UBIFS support on serial NOR flash
> 
> 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>
> ---
> Changes for v2
> - move CONFIG_SPI_FLASH_USE_4K_SECTORS to Kconfig
> ---
>  configs/socfpga_cyclone5_defconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/configs/socfpga_cyclone5_defconfig b/configs/socfpga_cyclone5_defconfig
> index 864358c..4216b55 100644
> --- a/configs/socfpga_cyclone5_defconfig
> +++ b/configs/socfpga_cyclone5_defconfig
> @@ -23,3 +23,4 @@ CONFIG_DESIGNWARE_SPI=y
>  CONFIG_DM_MMC=y
>  CONFIG_USB=y
>  CONFIG_DM_USB=y
> +CONFIG_SPI_FLASH_USE_4K_SECTORS=n

Actually, do we usually specify =n in config files? It seems to be so
rare it is an error.

Normally, we have something like "# CONFIG_SYS_MALLOC_F is not set" in
config files.

									Pavel

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

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

* [U-Boot] [PATCH v2 2/5] arm: socfpga: cyclone5: Undefine CONFIG_SPI_FLASH_USE_4K_SECTORS
  2015-12-23 18:13   ` Pavel Machek
@ 2015-12-23 23:11     ` Chin Liang See
  0 siblings, 0 replies; 14+ messages in thread
From: Chin Liang See @ 2015-12-23 23:11 UTC (permalink / raw)
  To: u-boot

On Wed, 2015-12-23 at 19:13 +0100, Pavel Machek wrote:
> On Tue 2015-12-22 08:59:46, Chin Liang See wrote:
> > Undefine CONFIG_SPI_FLASH_USE_4K_SECTORS for UBI
> > and UBIFS support on serial NOR flash
> > 
> > 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>
> > ---
> > Changes for v2
> > - move CONFIG_SPI_FLASH_USE_4K_SECTORS to Kconfig
> > ---
> >  configs/socfpga_cyclone5_defconfig | 1 +
> >  1 file changed, 1 insertion(+)
> > 
> > diff --git a/configs/socfpga_cyclone5_defconfig
> > b/configs/socfpga_cyclone5_defconfig
> > index 864358c..4216b55 100644
> > --- a/configs/socfpga_cyclone5_defconfig
> > +++ b/configs/socfpga_cyclone5_defconfig
> > @@ -23,3 +23,4 @@ CONFIG_DESIGNWARE_SPI=y
> >  CONFIG_DM_MMC=y
> >  CONFIG_USB=y
> >  CONFIG_DM_USB=y
> > +CONFIG_SPI_FLASH_USE_4K_SECTORS=n
> 
> Actually, do we usually specify =n in config files? It seems to be so
> rare it is an error.
> 
> Normally, we have something like "# CONFIG_SYS_MALLOC_F is not set"
> in
> config files.

yah, this was fixed by Marek. 

Thanks
Chin Liang

> 
> 									
> Pavel
> 

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

end of thread, other threads:[~2015-12-23 23:11 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-22  0:59 [U-Boot] [PATCH v2 1/5] arm: socfpga: Enable ubi and ubifs support Chin Liang See
2015-12-22  0:59 ` [U-Boot] [PATCH v2 2/5] arm: socfpga: cyclone5: Undefine CONFIG_SPI_FLASH_USE_4K_SECTORS Chin Liang See
2015-12-22  1:15   ` Marek Vasut
2015-12-22  1:55     ` Chin Liang See
2015-12-22  2:09       ` Marek Vasut
2015-12-22  2:26         ` Chin Liang See
2015-12-22  6:07         ` Stefan Roese
2015-12-22  6:34           ` Chin Liang See
2015-12-23 18:13   ` Pavel Machek
2015-12-23 23:11     ` Chin Liang See
2015-12-22  0:59 ` [U-Boot] [PATCH v2 3/5] arm: socfpga: cyclone5_socdk: Enable ubiload console command Chin Liang See
2015-12-22  0:59 ` [U-Boot] [PATCH v2 4/5] arm: socfpga: cyclone5_socdk: Enable qspiload " Chin Liang See
2015-12-22  0:59 ` [U-Boot] [PATCH v2 5/5] arm: socfpga: cyclone5_socdk: Update qspiboot to use UBIFS Chin Liang See
2015-12-22  1:17 ` [U-Boot] [PATCH v2 1/5] arm: socfpga: Enable ubi and ubifs support Marek Vasut

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox