Re: [PATCH 7/7] defaultenv-2: add boot sequence

2012-09-28 Thread Jean-Christophe PLAGNIOL-VILLARD
On 20:06 Fri 28 Sep , Sascha Hauer wrote: > On Fri, Sep 28, 2012 at 05:48:01PM +0200, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > On 12:48 Fri 28 Sep , Sascha Hauer wrote: > > > > > > boot [method]: If called without method, it will iterate over > > >/env/boot.d/*. If th

Re: [PATCH 7/7] defaultenv-2: add boot sequence

2012-09-28 Thread Sascha Hauer
On Fri, Sep 28, 2012 at 05:48:01PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: > On 12:48 Fri 28 Sep , Sascha Hauer wrote: > > > > boot [method]: If called without method, it will iterate over > >/env/boot.d/*. If that directory does not exist, > >it will fa

Re: [PATCH v3] davinci_emac: follow phylib changes

2012-09-28 Thread Jean-Christophe PLAGNIOL-VILLARD
On 18:17 Fri 28 Sep , Jan Luebbe wrote: > Since v2 I've changed the platform_data flags to bools (as suggested by > Jean-Christophe). Acked-by: Jean-Christophe PLAGNIOL-VILLARD much more clean specially compare to the U-Boot one Best Regards, J. > > > __

Re: [PATCH] arm: cfa10036: Add proper resource length

2012-09-28 Thread Sascha Hauer
On Fri, Sep 28, 2012 at 04:39:02PM +0200, Maxime Ripard wrote: > Hi Sascha, > > Le 28/09/2012 16:32, Sascha Hauer a écrit : > > On Fri, Sep 28, 2012 at 03:58:12PM +0200, Maxime Ripard wrote: > >> The cfa10036 board file were missing the length parameter when adding > >> devices. This made barebox

[PATCH] scripts: add tool to create image for SPI boot on AM35xx

2012-09-28 Thread Jan Luebbe
Booting from SPI on an AM35xx (and possibly other TI SOCs) requires a special format: - 32 bit image size in big-endian - 32 bit load address in big-endian - binary image converted from little- to big-endian The mk-am35xx-spi-image tool converts barebox.bin to this format. Signed-off-by: Jan Lue

[PATCH v3 1/3] davinci_emac: return 0 on successful transmit

2012-09-28 Thread Jan Luebbe
The _send function should not return the length of the transmitted packet. Signed-off-by: Jan Luebbe --- drivers/net/davinci_emac.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/davinci_emac.c b/drivers/net/davinci_emac.c index 09fcb63..7f39972 100644 ---

[PATCH v3 2/3] davinci_emac: adjust to new phylib framework

2012-09-28 Thread Jan Luebbe
Also pass flags using platform_data and remove useless casts from void*. Signed-off-by: Jan Luebbe --- drivers/net/Kconfig|2 +- drivers/net/davinci_emac.c | 79 ++-- include/net/davinci_emac.h | 10 ++ 3 files changed, 57 insertions(+)

[PATCH v3 3/3] davinci_emac: get rid of mdio wrapper functions

2012-09-28 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- drivers/net/davinci_emac.c | 51 +--- 1 file changed, 19 insertions(+), 32 deletions(-) diff --git a/drivers/net/davinci_emac.c b/drivers/net/davinci_emac.c index 91fd226..7d4dbdc 100644 --- a/drivers/net/davinci_emac.c +++

[PATCH v3] davinci_emac: follow phylib changes

2012-09-28 Thread Jan Luebbe
Since v2 I've changed the platform_data flags to bools (as suggested by Jean-Christophe). ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

Re: [PATCH 7/7] defaultenv-2: add boot sequence

2012-09-28 Thread Jean-Christophe PLAGNIOL-VILLARD
On 12:48 Fri 28 Sep , Sascha Hauer wrote: > On Thu, Sep 13, 2012 at 07:40:23PM +0200, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > Boot will boot run sequentially the script in /env/boot.d > > > > drop global.boot.default as we start the boot sequence by default > > > > update the current b

Re: [PATCH v2 2/3] davinci_emac: adjust to new phylib framework

2012-09-28 Thread Jean-Christophe PLAGNIOL-VILLARD
On 17:00 Fri 28 Sep , Jan Luebbe wrote: > Also pass flags using platform_data and remove useless casts from void*. > > Signed-off-by: Jan Luebbe > --- > drivers/net/Kconfig|2 +- > drivers/net/davinci_emac.c | 81 > ++-- > include/net/da

[PATCH v2 2/3] davinci_emac: adjust to new phylib framework

2012-09-28 Thread Jan Luebbe
Also pass flags using platform_data and remove useless casts from void*. Signed-off-by: Jan Luebbe --- drivers/net/Kconfig|2 +- drivers/net/davinci_emac.c | 81 ++-- include/net/davinci_emac.h | 13 +++ 3 files changed, 62 insertions(+

[PATCH v2 3/3] davinci_emac: get rid of mdio wrapper functions

2012-09-28 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- drivers/net/davinci_emac.c | 51 +--- 1 file changed, 19 insertions(+), 32 deletions(-) diff --git a/drivers/net/davinci_emac.c b/drivers/net/davinci_emac.c index 52786e0..997dc7b 100644 --- a/drivers/net/davinci_emac.c +++

[PATCH v2 1/3] davinci_emac: return 0 on successful transmit

2012-09-28 Thread Jan Luebbe
The _send function should not return the length of the transmitted packet. Signed-off-by: Jan Luebbe --- drivers/net/davinci_emac.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/davinci_emac.c b/drivers/net/davinci_emac.c index 09fcb63..7f39972 100644 ---

davinci_emac: follow phylib changes

2012-09-28 Thread Jan Luebbe
Since v1 I've dropped the useless casts from void* and switched to using platform_data. ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox

Re: Writing to the OCOTP on mx28 boards

2012-09-28 Thread Maxime Ripard
Hi Sascha, Le 28/09/2012 14:42, Sascha Hauer a écrit : > On Fri, Sep 28, 2012 at 02:23:32PM +0200, Maxime Ripard wrote: >> Le 28/09/2012 14:08, Maxime Ripard a écrit : >>> Hi everyone, >>> >>> I'm trying to write down some data to the /dev/ocotp file, which is >>> basically a one time programming

OMAP SPI adding inline functions

2012-09-28 Thread Teresa Gamez
Hello Jan, I'm working on adding inline functions for omap devices to reduce the board code. I have noticed that the omap3_spi driver doesn't fit in the scheme. It uses the dev->id to set the master->bus_num. So I have to pass the argument here and can not use the DEVICE_ID_DYNAMIC define. Has

Re: [PATCH] arm: cfa10036: Add proper resource length

2012-09-28 Thread Maxime Ripard
Hi Sascha, Le 28/09/2012 16:32, Sascha Hauer a écrit : > On Fri, Sep 28, 2012 at 03:58:12PM +0200, Maxime Ripard wrote: >> The cfa10036 board file were missing the length parameter when adding >> devices. This made barebox crash early in the boot, in the mxs-mci >> driver. >> >> Provide the resour

Re: [PATCH] gpio: reduce verbosity while probing

2012-09-28 Thread Sascha Hauer
On Fri, Sep 28, 2012 at 02:57:01PM +0200, Jan Luebbe wrote: > Signed-off-by: Jan Luebbe > --- > arch/arm/mach-imx/gpio.c |2 +- > arch/arm/mach-omap/gpio.c |2 +- > drivers/gpio/gpio-stmpe.c |2 +- > 3 files changed, 3 insertions(+), 3 deletions(-) Applied, thanks Sascha > > diff

Re: [PATCH] arm: cfa10036: Add the OCOTP device

2012-09-28 Thread Sascha Hauer
On Fri, Sep 28, 2012 at 03:58:21PM +0200, Maxime Ripard wrote: > Signed-off-by: Maxime Ripard > --- > arch/arm/boards/crystalfontz-cfa10036/cfa10036.c |4 > 1 file changed, 4 insertions(+) Applied, thanks Sascha > > diff --git a/arch/arm/boards/crystalfontz-cfa10036/cfa10036.c > b/a

Re: [PATCH] arm: cfa10036: Add proper resource length

2012-09-28 Thread Sascha Hauer
On Fri, Sep 28, 2012 at 03:58:12PM +0200, Maxime Ripard wrote: > The cfa10036 board file were missing the length parameter when adding > devices. This made barebox crash early in the boot, in the mxs-mci > driver. > > Provide the resources lengths in a consistent format. Applied, thanks Sascha

Re: [PATCH] [RFC] i2c-imx: send a soft bus reset during probe

2012-09-28 Thread Uwe Kleine-König
Hello, On Thu, Sep 27, 2012 at 11:53:12AM +0200, Sascha Hauer wrote: > Sounds good. We often have this problem. > > I wonder if it's worth to have this as a general callback in the i2c > layer. Unfortunately my patch doesn't work. The problem is that if an i2c slave is stuck with sda low the imx

[PATCH] mci imx-esdhc: increase write timeout

2012-09-28 Thread Sascha Hauer
The timeout for wating for the bus to be idle is too short when the card does internal garbage collection. This was triggered with filling an SD card under Linux with /dev/urandom, then doing a saveenv under barebox afterwards. Linux has timeouts here up to 300ms. Use a second to be safe. Signed-o

[PATCH] arm: cfa10036: Add the OCOTP device

2012-09-28 Thread Maxime Ripard
Signed-off-by: Maxime Ripard --- arch/arm/boards/crystalfontz-cfa10036/cfa10036.c |4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boards/crystalfontz-cfa10036/cfa10036.c b/arch/arm/boards/crystalfontz-cfa10036/cfa10036.c index fcb7057..522d2d7 100644 --- a/arch/arm/boards/cry

[PATCH] arm: cfa10036: Add proper resource length

2012-09-28 Thread Maxime Ripard
The cfa10036 board file were missing the length parameter when adding devices. This made barebox crash early in the boot, in the mxs-mci driver. Provide the resources lengths in a consistent format. Signed-off-by: Maxime Ripard --- arch/arm/boards/crystalfontz-cfa10036/cfa10036.c |5 +++--

[PATCH] gpio: reduce verbosity while probing

2012-09-28 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- arch/arm/mach-imx/gpio.c |2 +- arch/arm/mach-omap/gpio.c |2 +- drivers/gpio/gpio-stmpe.c |2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-imx/gpio.c b/arch/arm/mach-imx/gpio.c index e661cc1..268e598 100644 --- a/arch/

Re: Writing to the OCOTP on mx28 boards

2012-09-28 Thread Sascha Hauer
On Fri, Sep 28, 2012 at 02:23:32PM +0200, Maxime Ripard wrote: > Le 28/09/2012 14:08, Maxime Ripard a écrit : > > Hi everyone, > > > > I'm trying to write down some data to the /dev/ocotp file, which is > > basically a one time programming chip containing four bytes. > > > > Using the command mw

Re: Writing to the OCOTP on mx28 boards

2012-09-28 Thread Maxime Ripard
Le 28/09/2012 14:08, Maxime Ripard a écrit : > Hi everyone, > > I'm trying to write down some data to the /dev/ocotp file, which is > basically a one time programming chip containing four bytes. > > Using the command mw -b -d /dev/ocotp 0-3 0x01020304 writes down only > "4" to the first byte of t

Writing to the OCOTP on mx28 boards

2012-09-28 Thread Maxime Ripard
Hi everyone, I'm trying to write down some data to the /dev/ocotp file, which is basically a one time programming chip containing four bytes. Using the command mw -b -d /dev/ocotp 0-3 0x01020304 writes down only "4" to the first byte of the OCOTP, which is not quite what I was expecting. What's t

Re: Write Protect Error re-flashing /dev/nor0.barebox

2012-09-28 Thread Jerry Kirk
Sascha Hauer writes: > On Wed, Sep 26, 2012 at 07:07:32PM +, Jerry Kirk wrote: > > Any ideas what we now need to do to be able to overwrite Barebox? > > I think you are the victim of a bug fix ;) Thanks Sascha, that was it. ___ barebox mailing l

Re: [PATCH 7/7] defaultenv-2: add boot sequence

2012-09-28 Thread Sascha Hauer
On Thu, Sep 13, 2012 at 07:40:23PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: > Boot will boot run sequentially the script in /env/boot.d > > drop global.boot.default as we start the boot sequence by default > > update the current board using the defaultenv-2 at the sametime > I'm going to

Re: [PATCH] [RFC] i2c-imx: send a soft bus reset during probe

2012-09-28 Thread Uwe Kleine-König
Hi Johannes, On Thu, Sep 27, 2012 at 12:33:23PM +0200, Johannes Stezenbach wrote: > On Thu, Sep 27, 2012 at 11:53:12AM +0200, Sascha Hauer wrote: > > On Thu, Sep 27, 2012 at 12:56:46AM +0200, Uwe Kleine-König wrote: > > > > > > 2-WIRE SOFTWARE RESET: After an interruption in protocol, pow

Re: issue patch in next net/eth: fix link handling

2012-09-28 Thread Jean-Christophe PLAGNIOL-VILLARD
On 10:55 Fri 28 Sep , Sascha Hauer wrote: > On Fri, Sep 28, 2012 at 10:27:16AM +0200, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > On 09:50 Fri 28 Sep , Sascha Hauer wrote: > > > On Fri, Sep 28, 2012 at 04:28:21AM +0200, Jean-Christophe > > > PLAGNIOL-VILLARD wrote: > > > > HI, > > > >

Re: issue patch in next net/eth: fix link handling

2012-09-28 Thread Sascha Hauer
On Fri, Sep 28, 2012 at 10:27:16AM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: > On 09:50 Fri 28 Sep , Sascha Hauer wrote: > > On Fri, Sep 28, 2012 at 04:28:21AM +0200, Jean-Christophe PLAGNIOL-VILLARD > > wrote: > > > HI, > > > > > > The patch is next > > > net/eth: fix link handling

Re: issue patch in next net/eth: fix link handling

2012-09-28 Thread Jean-Christophe PLAGNIOL-VILLARD
On 09:50 Fri 28 Sep , Sascha Hauer wrote: > On Fri, Sep 28, 2012 at 04:28:21AM +0200, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > HI, > > > > The patch is next > > net/eth: fix link handling > > > > was NEVER send to the ML > > > > IIRC I was the author of the first versio

Re: [PATCH v2] environment generation: Fix dependencies

2012-09-28 Thread Jean-Christophe PLAGNIOL-VILLARD
On 10:04 Fri 28 Sep , Sascha Hauer wrote: > The dependencies for generating the environment do not work properly: > > - If files are removed from the defaultenv, a subsequent make will not > update the default environment. > - If CONFIG_DEFAULT_ENVIRONMENT_PATH changes, the default environme

[PATCH v2] environment generation: Fix dependencies

2012-09-28 Thread Sascha Hauer
The dependencies for generating the environment do not work properly: - If files are removed from the defaultenv, a subsequent make will not update the default environment. - If CONFIG_DEFAULT_ENVIRONMENT_PATH changes, the default environment also will not be regenerated. This patch fixes thi

Re: issue patch in next net/eth: fix link handling

2012-09-28 Thread Sascha Hauer
On Fri, Sep 28, 2012 at 04:28:21AM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: > HI, > > The patch is next > net/eth: fix link handling > > was NEVER send to the ML > > IIRC I was the author of the first version and this disapear > > Uwe and I just get this dis

Re: [PATCH 4/7] Add USB booting capabilities to OMAP

2012-09-28 Thread Sascha Hauer
On Fri, Sep 28, 2012 at 02:27:54AM +0200, vj wrote: > Hi Sascha, > I've been playing with passing some data from first to second stage using > Jan's patches. > It worked fine, but in my case I want to store this data on a global > variable, which is cleared as it's in the BSS. > There is a clean w