Re: [PATCH v2 4/7] arm: integrate kwbimage in the image generation

2013-05-08 Thread Gregory CLEMENT
Hi Thomas, On 05/08/2013 11:10 PM, Thomas Petazzoni wrote: > When a ARCH_MVEBU platform is selected, generate barebox.kwb and > barebox.kwbuart images from barebox.bin, using kwbimage. > > barebox.kwb is generated by executing kwbimage on the board > kwbimage.cfg file, and is therefore designed t

Re: [PATCH v2 0/7] Basic support for Armada 370/XP SOCs

2013-05-08 Thread Gregory CLEMENT
On 05/08/2013 11:59 PM, Thomas Petazzoni wrote: > Dear Gregory CLEMENT, > > On Wed, 08 May 2013 23:53:40 +0200, Gregory CLEMENT wrote: > >>> - Add an integration of kwbimage to the Barebox build process. Now, >>>when an ARCH_MVEBU platform is selected, a barebox.kwb file is >>>automatica

Re: [PATCH v2 0/7] Basic support for Armada 370/XP SOCs

2013-05-08 Thread Thomas Petazzoni
Dear Gregory CLEMENT, On Wed, 08 May 2013 23:53:40 +0200, Gregory CLEMENT wrote: > > - Add an integration of kwbimage to the Barebox build process. Now, > >when an ARCH_MVEBU platform is selected, a barebox.kwb file is > >automatically generated using the board kwbimage.cfg, and a > >

Re: [PATCH v2 0/7] Basic support for Armada 370/XP SOCs

2013-05-08 Thread Gregory CLEMENT
Hi Thomas, On 05/08/2013 11:10 PM, Thomas Petazzoni wrote: > Hello, > > Here is a patch set that adds basic support for the Marvell Armada 370 > and Armada XP SOCs. For now, the support is quite minimal, since only > the serial port is supported. However, a significant part of the work > has been

Re: [PATCH] ARM: PCM970: Add definition for SPI CS1

2013-05-08 Thread Sascha Hauer
On Wed, May 08, 2013 at 11:34:38AM +0400, Alexander Shiyan wrote: > This chipselect is used on RDK Zigbee connector. Since we cannot > define additional chipselect after SPI is initialized, define this one > in main SPI initialization in PCM038 SOM. > > Signed-off-by: Alexander Shiyan Applied, t

Re: MXS: fix SoC detecting

2013-05-08 Thread Sascha Hauer
On Wed, May 08, 2013 at 02:57:07PM +0200, Juergen Beisert wrote: > The missing 'break' statement lets look an i.MX23 like an i.MX28. > > Signed-off-by: Juergen Beisert Applied, thanks Sascha > > diff --git a/arch/arm/mach-mxs/imx.c b/arch/arm/mach-mxs/imx.c > index cdf9275..fcb26f7 100644

Re: [PATCH] MCI/MXS: fix signed/unsigned mismatch

2013-05-08 Thread Sascha Hauer
On Wed, May 08, 2013 at 02:21:11PM +0200, Juergen Beisert wrote: > > Signed-off-by: Juergen Beisert Applied, thanks Sascha > > diff --git a/drivers/mci/mxs.c b/drivers/mci/mxs.c > index c15461c..9dee863 100644 > --- a/drivers/mci/mxs.c > +++ b/drivers/mci/mxs.c > @@ -55,7 +55,7 @@ struct mxs_

Re: [RFC 2/4] of: add MIPS memory bank adding support

2013-05-08 Thread Sascha Hauer
On Tue, May 07, 2013 at 08:34:10PM +0400, Antony Pavlov wrote: > The MIPS architecture has different view on memory > resources than the ARM architecture. > This patch move memory segment registration > to a arch-specific files. > > Signed-off-by: Antony Pavlov > --- > arch/arm/cpu/dtb.c | 1

Re: Barebox Enviroment FileSystem

2013-05-08 Thread Sascha Hauer
On Wed, May 08, 2013 at 10:27:39AM +0200, andreas.wil...@rafi.de wrote: > > Hi there > > I'm just about to implement direct access to BareBox Env FileSystem from > Windows Embedded Compact 7 launched through BB and it seems to me I met a > bug in the environment code. > > File: common/environmen

[PATCH v2 7/7] arm: add basic support for the Armada XP GP platform

2013-05-08 Thread Thomas Petazzoni
The Armada XP GP platform is an evaluation platform designed by Marvell, that uses the MV78460 quad-core SoC from the Armada XP family. Signed-off-by: Thomas Petazzoni --- arch/arm/Makefile |1 + arch/arm/boards/marvell-armada-xp-gp/Makefile |2 ++ a

[PATCH v2 6/7] arm: add basic support for the Armada 370 Mirabox platform

2013-05-08 Thread Thomas Petazzoni
The Mirabox is a platform manufactured by Globalscale, and based on the Marvell Armada 370 SoC. Signed-off-by: Thomas Petazzoni --- arch/arm/Makefile |1 + arch/arm/boards/globalscale-mirabox/Makefile |2 ++ arch/arm/boards/globalscale-mirabox/confi

[PATCH v2 1/7] scripts: new kwbimage manipulation tool for Marvell SoC boot images

2013-05-08 Thread Thomas Petazzoni
The Marvell EBU SoCs (Kirkwood, Armada 370, Armada XP) have a BootROM that understand a specific image format, composed of a main header, several extension headers and a paylod. This image can be booted from NAND, SPI, SATA, UART, NOR, etc. This patch adds a tool that allows to extract the compone

[PATCH v2 5/7] arm: add basic support for Armada XP OpenBlocks AX3 platform

2013-05-08 Thread Thomas Petazzoni
The OpenBlocks AX3 platform is manufactured by PlatHome and uses the MV78260 dual-core SoC from the Armada XP family. Signed-off-by: Thomas Petazzoni --- arch/arm/Makefile |1 + arch/arm/boards/plathome-openblocks-ax3/Makefile |2 ++ arch/arm/boards/pla

[PATCH v2 2/7] scripts: add kwboot tool

2013-05-08 Thread Thomas Petazzoni
This tool is used with Marvell EBU SoC to trigger the UART boot mode provided by the SoC BootROM, and push the bootloader image to the target using the Xmodem protocol. It has been taken from the U-Boot source code, with minor modifications to make it work with Armada 370/XP platforms. Signed-off

[PATCH v2 3/7] arm: initial support for Marvell Armada 370/XP SoCs

2013-05-08 Thread Thomas Petazzoni
This commit adds minimal support for the Armada 370 and Armada XP SoCs from Marvell. Signed-off-by: Thomas Petazzoni --- arch/arm/Kconfig|8 ++ arch/arm/Makefile |1 + arch/arm/mach-mvebu/Kconfig | 40 arch/

[PATCH v2 4/7] arm: integrate kwbimage in the image generation

2013-05-08 Thread Thomas Petazzoni
When a ARCH_MVEBU platform is selected, generate barebox.kwb and barebox.kwbuart images from barebox.bin, using kwbimage. barebox.kwb is generated by executing kwbimage on the board kwbimage.cfg file, and is therefore designed to be booted from the default boot media of the board, as defined by kw

[PATCH v2 0/7] Basic support for Armada 370/XP SOCs

2013-05-08 Thread Thomas Petazzoni
Hello, Here is a patch set that adds basic support for the Marvell Armada 370 and Armada XP SOCs. For now, the support is quite minimal, since only the serial port is supported. However, a significant part of the work has been the development of the tools that allow to extract/create bootable imag

Re: [PATCH 0/7] Basic support for Marvell Armada 370/XP SoC

2013-05-08 Thread Gregory CLEMENT
On 05/08/2013 12:46 PM, Thomas Petazzoni wrote: > Dear Gregory CLEMENT, > > On Wed, 08 May 2013 01:28:47 +0200, Gregory CLEMENT wrote: > >> it was a great work, I am currently trying to use but unfortunately, >> I didn't managed to run barebox on the Armada XP OpenBlocks AX3 from >> Plathome :/ >

Re: [PATCH 1/2] ARM: Make OMAP syslib.c functions available for other ARM targets

2013-05-08 Thread Sascha Hauer
On Wed, May 08, 2013 at 11:42:50AM +0400, Alexander Shiyan wrote: > > On Sat, Apr 27, 2013 at 08:58:54PM +0400, Alexander Shiyan wrote: > > > This patch moves OMAP syslib functions into common ARM location, so > > > make these functions available to other ARM targets. > > > > > > +/** > > > + * @b

Re: [PATCH v3] nand_base: sync flash detection functions with linux 3.9's code

2013-05-08 Thread Eric Bénard
Le Thu, 9 May 2013 02:50:23 +0800, Jean-Christophe PLAGNIOL-VILLARD a écrit : > > On May 9, 2013, at 2:20 AM, Eric Bénard wrote: > > > Le Wed, 8 May 2013 19:45:41 +0200, > > Jean-Christophe PLAGNIOL-VILLARD a écrit : > > > >> one small issue > >> > >> /opt/work/barebox/drivers/mtd/nand/nand

Re: [PATCH v3] nand_base: sync flash detection functions with linux 3.9's code

2013-05-08 Thread Jean-Christophe PLAGNIOL-VILLARD
On May 9, 2013, at 2:20 AM, Eric Bénard wrote: > Le Wed, 8 May 2013 19:45:41 +0200, > Jean-Christophe PLAGNIOL-VILLARD a écrit : > >> one small issue >> >> /opt/work/barebox/drivers/mtd/nand/nand_base.c: In function >> 'nand_get_flash_type': >> /opt/work/barebox/drivers/mtd/nand/nand_base.c:

Re: [PATCH v3] nand_base: sync flash detection functions with linux 3.9's code

2013-05-08 Thread Eric Bénard
Le Wed, 8 May 2013 19:45:41 +0200, Jean-Christophe PLAGNIOL-VILLARD a écrit : > one small issue > > /opt/work/barebox/drivers/mtd/nand/nand_base.c: In function > 'nand_get_flash_type': > /opt/work/barebox/drivers/mtd/nand/nand_base.c:1383:6: warning: unused > variable 'ret' > > otherwise it w

Re: [PATCH v3] nand_base: sync flash detection functions with linux 3.9's code

2013-05-08 Thread Jean-Christophe PLAGNIOL-VILLARD
one small issue /opt/work/barebox/drivers/mtd/nand/nand_base.c: In function 'nand_get_flash_type': /opt/work/barebox/drivers/mtd/nand/nand_base.c:1383:6: warning: unused variable 'ret' otherwise it work barebox 2013.05.0-00117-g62ef1d9 #615 Thu May 9 01:46:46 CST 2013 Board: Atmel at91sam9x5

Re: [PATCH v2] nand_base: fix to test for JCPV problem

2013-05-08 Thread Eric Bénard
Le Wed, 8 May 2013 19:11:32 +0200, Jean-Christophe PLAGNIOL-VILLARD a écrit : > Hi, > > same > > barebox 2013.05.0-00119-g57955f2 #613 Thu May 9 01:12:00 CST 2013 > > > Board: Atmel at91sam9x5-ek > AT91: Detected soc type: at91sam9x5 > AT91: Detected soc subtype: at91sam9x25 > Clocks: C

[PATCH v3] nand_base: sync flash detection functions with linux 3.9's code

2013-05-08 Thread Eric Bénard
Signed-off-by: Eric Bénard --- drivers/mtd/nand/nand_base.c | 385 ++- include/linux/mtd/bbm.h | 2 + 2 files changed, 268 insertions(+), 119 deletions(-) diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index e8103cf..e601f8

Re: [PATCH v2] nand_base: fix to test for JCPV problem

2013-05-08 Thread Jean-Christophe PLAGNIOL-VILLARD
Hi, same barebox 2013.05.0-00119-g57955f2 #613 Thu May 9 01:12:00 CST 2013 Board: Atmel at91sam9x5-ek AT91: Detected soc type: at91sam9x5 AT91: Detected soc subtype: at91sam9x25 Clocks: CPU 400 MHz, master 133 MHz, main 12.000 MHz netconsole: registered as cs2 CM: SAM9X25-CM [B2] from R

Re: [PATCH] nand_base: fix to test for JCPV problem

2013-05-08 Thread Eric Bénard
Le Wed, 8 May 2013 18:41:58 +0200, Jean-Christophe PLAGNIOL-VILLARD a écrit : > On 18:20 Wed 08 May , Eric Bénard wrote: > > Signed-off-by: Eric Bénard > > better but an other BUG > > Board: Atmel at91sam9x5-ek > AT91: Detected soc type: at91sam9x5 > AT91: Detected soc subtype: at91sam9x25

[PATCH v2] nand_base: fix to test for JCPV problem

2013-05-08 Thread Eric Bénard
Signed-off-by: Eric Bénard --- this patch sync flash detection functions with linux 3.9's code drivers/mtd/nand/nand_base.c | 377 ++- include/linux/mtd/bbm.h | 2 + 2 files changed, 265 insertions(+), 114 deletions(-) diff --git a/drivers/mtd/nand/

Re: [PATCH] nand_base: fix to test for JCPV problem

2013-05-08 Thread Jean-Christophe PLAGNIOL-VILLARD
On 18:20 Wed 08 May , Eric Bénard wrote: > Signed-off-by: Eric Bénard better but an other BUG Board: Atmel at91sam9x5-ek AT91: Detected soc type: at91sam9x5 AT91: Detected soc subtype: at91sam9x25 Clocks: CPU 400 MHz, master 133 MHz, main 12.000 MHz netconsole: registered as cs2 CM: SAM9X25-

Re: [PATCH 1/1] Revert "nand_base: detect more ONFI flash"

2013-05-08 Thread Jean-Christophe PLAGNIOL-VILLARD
On 18:25 Wed 08 May , Eric Bénard wrote: > Hi Jean-Christophe, > > Le Wed, 8 May 2013 15:30:24 +0800, > Jean-Christophe PLAGNIOL-VILLARD a écrit : > > > > > On May 8, 2013, at 1:11 PM, Sascha Hauer wrote: > > > > > On Tue, May 07, 2013 at 10:21:39PM +0200, Jean-Christophe > > > PLAGNIOL-

Re: [PATCH 1/1] Revert "nand_base: detect more ONFI flash"

2013-05-08 Thread Eric Bénard
Hi Jean-Christophe, Le Wed, 8 May 2013 15:30:24 +0800, Jean-Christophe PLAGNIOL-VILLARD a écrit : > > On May 8, 2013, at 1:11 PM, Sascha Hauer wrote: > > > On Tue, May 07, 2013 at 10:21:39PM +0200, Jean-Christophe PLAGNIOL-VILLARD > > wrote: > >> this brake the nand support on at91sam9x5ek >

[PATCH] nand_base: fix to test for JCPV problem

2013-05-08 Thread Eric Bénard
Signed-off-by: Eric Bénard --- drivers/mtd/nand/nand_base.c | 20 +--- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index e8103cf..d04e24b 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drivers/mtd/nand

MXS: fix SoC detecting

2013-05-08 Thread Juergen Beisert
The missing 'break' statement lets look an i.MX23 like an i.MX28. Signed-off-by: Juergen Beisert diff --git a/arch/arm/mach-mxs/imx.c b/arch/arm/mach-mxs/imx.c index cdf9275..fcb26f7 100644 --- a/arch/arm/mach-mxs/imx.c +++ b/arch/arm/mach-mxs/imx.c @@ -101,6 +101,7 @@ static void mxs_silico

[PATCH] MCI/MXS: fix signed/unsigned mismatch

2013-05-08 Thread Juergen Beisert
Using the MXS MCI driver with an eight bit capable eMMC results into the 'devinfo' message the interface uses '0' bits for data transfer: barebox:/ devinfo mxs_mci0 resources: num : 0 start : 0x80034000 size : 0x2000 driver: mxs_mci bus: platform Interface Min. bus cloc

Re: [PATCH 0/7] Basic support for Marvell Armada 370/XP SoC

2013-05-08 Thread Thomas Petazzoni
Dear Gregory CLEMENT, On Wed, 08 May 2013 01:28:47 +0200, Gregory CLEMENT wrote: > it was a great work, I am currently trying to use but unfortunately, > I didn't managed to run barebox on the Armada XP OpenBlocks AX3 from > Plathome :/ > > I get something like that: > > kwboot -t -b barebix.bi

Barebox Enviroment FileSystem

2013-05-08 Thread andreas . willig
Hi there I'm just about to implement direct access to BareBox Env FileSystem from Windows Embedded Compact 7 launched through BB and it seems to me I met a bug in the environment code. File: common/environment.c Line: 89 (latest revision by 8th of May) Function: file_save_action The creation of

Re[2]: [PATCH 1/2] ARM: Make OMAP syslib.c functions available for other ARM targets

2013-05-08 Thread Alexander Shiyan
> On Sat, Apr 27, 2013 at 08:58:54PM +0400, Alexander Shiyan wrote: > > This patch moves OMAP syslib functions into common ARM location, so > > make these functions available to other ARM targets. > > > > +/** > > + * @brief clear & set a value in a bit range for a 32 bit address > > + * > > + * @

Re: MIPS: xburst: use common serial code

2013-05-08 Thread Sascha Hauer
On Tue, May 07, 2013 at 12:51:24PM +0400, Antony Pavlov wrote: > This commit series moves the UART code for Ingenic SoCs > from board level to machine level. So the code > can be reused for different boards or even > different Ingenic SoCs. > > [PATCH 1/2] MIPS: xburst: use common serial code > [P

Re: [PATCH 1/2] ARM: Make OMAP syslib.c functions available for other ARM targets

2013-05-08 Thread Sascha Hauer
On Sat, Apr 27, 2013 at 08:58:54PM +0400, Alexander Shiyan wrote: > This patch moves OMAP syslib functions into common ARM location, so > make these functions available to other ARM targets. > > +/** > + * @brief clear & set a value in a bit range for a 32 bit address > + * > + * @param[in] addr A

[PATCH] ARM: PCM970: Add definition for SPI CS1

2013-05-08 Thread Alexander Shiyan
This chipselect is used on RDK Zigbee connector. Since we cannot define additional chipselect after SPI is initialized, define this one in main SPI initialization in PCM038 SOM. Signed-off-by: Alexander Shiyan --- arch/arm/boards/pcm038/pcm038.c | 13 +++-- 1 file changed, 11 insertions(

Re: [PATCH 1/1] Revert "nand_base: detect more ONFI flash"

2013-05-08 Thread Jean-Christophe PLAGNIOL-VILLARD
On May 8, 2013, at 1:11 PM, Sascha Hauer wrote: > On Tue, May 07, 2013 at 10:21:39PM +0200, Jean-Christophe PLAGNIOL-VILLARD > wrote: >> this brake the nand support on at91sam9x5ek >> where we have a non compliant ONFI nand >> NAND device: Manufacturer ID: 0xad, Chip ID: 0xda (Hynix NAND 256MiB

Re: [PATCH] Added sd driver for bcm2835 (Raspberry PI)

2013-05-08 Thread Sascha Hauer
Hi Wilhelm, I just pushed the mentioned register definitions to the -next branch. I would take this patch if you update it to use this register definitions. (in drivers/mci/sdhci.h) Sascha On Fri, Apr 26, 2013 at 08:09:00AM +0200, wilhelm wrote: > --- > arch/arm/mach-bcm2835/core.c | 1 + >