Re: [PATCH 1/3] [OpenRISC] Add __ashrdi3 and remove link to libgcc

2012-09-13 Thread Sascha Hauer
Hi Franck, On Thu, Sep 13, 2012 at 12:28:32AM +0200, Franck Jullien wrote: > In a previous patch, Sascha needed to add __ashrdi3 and then linked > to libgcc. This patch add the ashrdi3 function in the arch/openrisc/lib > directory and remove the libgcc dependency. > > Signed-off-by: Franck Jullie

[PATCH] pcm049 phycard l + xl2: update partion sizes

2012-09-13 Thread Jan Weitzel
Use 512k NAND Partion for barebox in enviroment and boards code pcm049: use 4MB for kernel Signed-off-by: Jan Weitzel --- arch/arm/boards/pcm049/board.c|4 ++-- arch/arm/boards/pcm049/env/config |2 +- arch/arm/boards/phycard-a-l1/env/config |2 +- arch/arm/boar

[PATCH 5/7] defaultenv-2: boot use global.linux.bootargs.dyn for dynamic globalvar

2012-09-13 Thread Jean-Christophe PLAGNIOL-VILLARD
linux.bootargs.dyn.* will be cleared at the beginning of boot This is need for boot sequence to do not have the previous boot param. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- defaultenv-2/base/bin/bootargs-ip |4 ++-- defaultenv-2/base/bin/bootargs-ip-barebox |2 +-

[PATCH 6/7] defaultenv-2: boot reset linux.bootargs.dyn. and bootm. globalvar

2012-09-13 Thread Jean-Christophe PLAGNIOL-VILLARD
This is need for boot sequence to do not have the previous boot param. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- defaultenv-2/base/bin/boot |4 1 file changed, 4 insertions(+) diff --git a/defaultenv-2/base/bin/boot b/defaultenv-2/base/bin/boot index 4ebda3f..103eb87 100644 -

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

2012-09-13 Thread Jean-Christophe PLAGNIOL-VILLARD
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 Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- .../arm/boards/crystalfontz-cfa10036/env/boot.d/01 |

[PATCH 2/7] echo: always allow to pass -e option

2012-09-13 Thread Jean-Christophe PLAGNIOL-VILLARD
This will allow to do not taint if not enabled Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Signed-off-by: Sascha Hauer --- commands/echo.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/commands/echo.c b/commands/echo.c index a19d992..4a5c981 100644 --- a

[PATCH 1/7] globalvar: add inline when not enabled

2012-09-13 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Signed-off-by: Sascha Hauer --- include/globalvar.h | 20 1 file changed, 20 insertions(+) diff --git a/include/globalvar.h b/include/globalvar.h index 7cc3976..a127a05 100644 --- a/include/globalvar.h +++ b/include/globalva

[PATCH 3/7] defaultenv-2/ansi-colors: export color only if enable

2012-09-13 Thread Jean-Christophe PLAGNIOL-VILLARD
This will allow to do not check it everywhere Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Signed-off-by: Sascha Hauer --- defaultenv-2/base/data/ansi-colors |4 defaultenv-2/menu/menu/mainmenu|4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/defaultenv

[PATCH 4/7] globalvar: add support to set a value to of all globalvars beginning with 'match'

2012-09-13 Thread Jean-Christophe PLAGNIOL-VILLARD
via c global_set_match and global -r Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- commands/global.c | 51 --- common/globalvar.c | 10 ++ include/globalvar.h |3 +++ 3 files changed, 53 insertions(+), 11 deletions(-) diff

[PATCH 2/2] P2020rdb: eTSEC2 support

2012-09-13 Thread Renaud Barbier
This patch defines the parameters to configure the eTSEC2 Ethernet port. It also sets the TBI physical address of port eTSEC1 to eTSEC3 to prevent the eTSEC2 PHY(address 0) from going into an undefined state. Signed-off-by: Renaud Barbier --- arch/ppc/boards/freescale-p2020rdb/p2020rdb.c | 24

[PATCH 1/2] gianfar: region request returns NULL on already mapped region

2012-09-13 Thread Renaud Barbier
When requesting a memory region and that region has already been requested within an instance of the driver or another instance, a NULL pointer is obtained from the function dev_request_mem_region. For a eTSEC port we have three sets of registers: - MAC registers - External phy access registers - T

[PATCH 0/2] P2020RDB eTSEC2

2012-09-13 Thread Renaud Barbier
This patch set updates the gianfar driver and enables the port eTSEC2 of the P2020RDB. Both eTSEC2 and eTSEC3 can be used. Also it has been noticed that dev_request_mem_region returns NULL when a region is already mapped. Some of the registers set may be the same between or within driver instances.

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

2012-09-13 Thread Jean-Christophe PLAGNIOL-VILLARD
HI, v4: update boot script v3: update comments v2: drop global.boot.default as we start the boot sequence by default update ansi-colors allow to always pass -e to echo this patch series depends on fs-symlink send pr

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

2012-09-13 Thread Jean-Christophe PLAGNIOL-VILLARD
On 11:44 Wed 12 Sep , Sascha Hauer wrote: > On Wed, Sep 12, 2012 at 11:01:28AM +0200, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > On 09:20 Wed 12 Sep , Sascha Hauer wrote: > > > On Tue, Sep 11, 2012 at 12:19:27PM +0200, Jean-Christophe > > > PLAGNIOL-VILLARD wrote: > > > > Boot will boo

[PATCH 1/7] globalvar: add inline when not enabled

2012-09-13 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- include/globalvar.h | 20 1 file changed, 20 insertions(+) diff --git a/include/globalvar.h b/include/globalvar.h index 7cc3976..a127a05 100644 --- a/include/globalvar.h +++ b/include/globalvar.h @@ -1,6 +1,7 @@ #ifndef

[PATCH 3/7] defaultenv: switch hostname to global.hostname

2012-09-13 Thread Jean-Christophe PLAGNIOL-VILLARD
Udpate dhcp with it too. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/boards/chumby_falconwing/env/config |2 +- arch/arm/boards/eukrea_cpuimx25/env/config| 14 +++--- arch/arm/boards/eukrea_cpuimx35/env/config| 14 +++--- arch/arm/boa

[PATCH 6/7] dhcp: add retries limit support

2012-09-13 Thread Jean-Christophe PLAGNIOL-VILLARD
via -r opt, global.dhcp.retries or dhcp_retries set the priority order; This will allow to do not stay infinite loop if no dhcp available for boot sequence as example Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- net/dhcp.c | 37 ++--- 1 file changed, 34

[PATCH 2/7] defaultenv: enable glovalvar support

2012-09-13 Thread Jean-Christophe PLAGNIOL-VILLARD
This will allow to do not have 2 set of var for defaultenv and the new defaultenv-2. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/Kconfig |1 + defaultenv/bin/init |2 ++ 2 files changed, 3 insertions(+) diff --git a/common/Kconfig b/common/Kconfig index b97392c..9378

[PATCH 7/7] defaultenv-2: eth0 add default global.dhcp.vendor_id

2012-09-13 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- defaultenv-2/base/network/eth0 |1 + 1 file changed, 1 insertion(+) diff --git a/defaultenv-2/base/network/eth0 b/defaultenv-2/base/network/eth0 index 048a288..7e731ca 100644 --- a/defaultenv-2/base/network/eth0 +++ b/defaultenv-2/base/netw

[PATCH 5/7] dhcp: add copy_only_if_valid support

2012-09-13 Thread Jean-Christophe PLAGNIOL-VILLARD
This will allow to only update a var if recive a valid data. This is need for hostname. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- net/dhcp.c |7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/net/dhcp.c b/net/dhcp.c index b4f2830..02dc529 100644 --- a/net/dhcp

[PATCH 4/7] dhcp: switch to global var support

2012-09-13 Thread Jean-Christophe PLAGNIOL-VILLARD
This way you can specify as previously set the dhcp parameter via global.dhcp.xxx and get the result via global.dhcp.xxx This is need for the defaultenv-2 to add the bootp suppport. Use it on defaultenv too to have only one set of var. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/a

[PATCH 0/7 v2] dhcp: update to globalvar

2012-09-13 Thread Jean-Christophe PLAGNIOL-VILLARD
HI, v2: fix missing hostname switch set default retry to 20 fix comment this pull is a split of the bootp work as I may have not time to finish it those days please pull The following changes since commit 8b3bf5971afbdf1acc5becabb6f15ba4b2a5559d:

Re: [PATCH 1/1] mci_spi: fix missing switch to spi_register_driver

2012-09-13 Thread Sascha Hauer
On Thu, Sep 13, 2012 at 04:33:45PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Squashed into the commit breaking it. Thanks Sascha > --- > drivers/mci/mci_spi.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/d

[PATCH 1/1] mci_spi: fix missing switch to spi_register_driver

2012-09-13 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- drivers/mci/mci_spi.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mci/mci_spi.c b/drivers/mci/mci_spi.c index a659ebb..aebf56d 100644 --- a/drivers/mci/mci_spi.c +++ b/drivers/mci/mci_spi.c @@ -423,7 +423,7 @@

[RFC][FAT] Handle MBR on the first sector

2012-09-13 Thread Franck Jullien
*** Did not send this email with git because it's no working where I am ** We may have some disk with MBR as a first sector. In this case, the current FAT check returns an error. However, the FAT sector exist and the MBR can tell us where it is. This patch make the FAT fs try to find the FAT boot

Re: [PATCH 6/7] dhcp: add retries limit support

2012-09-13 Thread Jean-Christophe PLAGNIOL-VILLARD
On 09:43 Thu 13 Sep , Sascha Hauer wrote: > On Thu, Sep 13, 2012 at 09:38:38AM +0200, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > On 09:12 Thu 13 Sep , Sascha Hauer wrote: > > > On Wed, Sep 12, 2012 at 04:48:27PM +0200, Jean-Christophe > > > PLAGNIOL-VILLARD wrote: > > > > via -r opt, g

Re: [PATCH 6/7] dhcp: add retries limit support

2012-09-13 Thread Sascha Hauer
On Thu, Sep 13, 2012 at 09:38:38AM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: > On 09:12 Thu 13 Sep , Sascha Hauer wrote: > > On Wed, Sep 12, 2012 at 04:48:27PM +0200, Jean-Christophe PLAGNIOL-VILLARD > > wrote: > > > via -r opt, global.dhcp.retries or dhcp_retries > > > > > > set the pr

Re: [PATCH 6/7] dhcp: add retries limit support

2012-09-13 Thread Jean-Christophe PLAGNIOL-VILLARD
On 09:12 Thu 13 Sep , Sascha Hauer wrote: > On Wed, Sep 12, 2012 at 04:48:27PM +0200, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > via -r opt, global.dhcp.retries or dhcp_retries > > > > set the priority order; > > > > This will allow to do not stay infinite loop if no dhcp availlable > >

Re: [PATCH 6/7] dhcp: add retries limit support

2012-09-13 Thread Jean-Christophe PLAGNIOL-VILLARD
On 09:12 Thu 13 Sep , Sascha Hauer wrote: > On Wed, Sep 12, 2012 at 04:48:27PM +0200, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > via -r opt, global.dhcp.retries or dhcp_retries > > > > set the priority order; > > > > This will allow to do not stay infinite loop if no dhcp availlable > >

Re: [PATCH 6/7] dhcp: add retries limit support

2012-09-13 Thread Sascha Hauer
On Wed, Sep 12, 2012 at 04:48:27PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: > via -r opt, global.dhcp.retries or dhcp_retries > > set the priority order; > > This will allow to do not stay infinite loop if no dhcp availlable s/availlable/available/ > @@ -746,11 +767,17 @@ static int do_d