Re: [PATCH 3/8] console: factorise function to get the console by name

2013-09-27 Thread Jean-Christophe PLAGNIOL-VILLARD
On 10:50 Fri 27 Sep , Sascha Hauer wrote: > On Fri, Sep 27, 2013 at 09:14:13AM +0200, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > rename it to console_get_by_name > > > > +struct console_device *console_get_by_name(const char *cname) > > +{ >

[PATCH 1/1] omap: xload: switch to generic bootstrap

2013-09-27 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- .../configs/am335x_beaglebone_mlo_small_defconfig | 2 + arch/arm/configs/archosg9_xload_defconfig | 2 + arch/arm/configs/omap3530_beagle_xload_defconfig | 3 + arch/arm/configs/panda_xload_defconfig | 2 + arch

Re: [PATCH 2/4] ARM: OMAP: register OMAP specific barebox bootm handler

2013-09-27 Thread Jean-Christophe PLAGNIOL-VILLARD
On 09:17 Fri 27 Sep , Sascha Hauer wrote: > The OMAP ROM code passes the boot information via r0 to the > bootloader. Add an OMAP specific barebox handler to pass this > information to the next stage. This allows us to chainload > bootloaders without loosing the information where we booted from

Re: [PATCH 1/1] command: add read command

2013-09-27 Thread Jean-Christophe PLAGNIOL-VILLARD
On 10:15 Fri 27 Sep , Sascha Hauer wrote: > On Thu, Sep 26, 2013 at 07:45:56AM +0200, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > +static int do_read(int argc, char *argv[]) > > +{ > > + int opt; > > + int cont = 0; > > + int ret = -EINVAL;

[PATCH 1/8] console_simple: fix: set f_active

2013-09-27 Thread Jean-Christophe PLAGNIOL-VILLARD
so generic code can check if the console is enabled and now we can use loadb & loadxy Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/console_simple.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/console_simple.c b/common/console_simple.c index e1d4c85..6cb

[PATCH 4/8] console: introduce startup and shutdown

2013-09-27 Thread Jean-Christophe PLAGNIOL-VILLARD
so enable the uart only if used so linux can detect the right one enable if it want Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/console.c| 6 ++ common/console_common.c | 36 common/console_simple.c | 3 +++ include/console.h

[PATCH 7/8] serial: amba-pl011: add start and shutdown support

2013-09-27 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- drivers/serial/amba-pl011.c | 45 + 1 file changed, 33 insertions(+), 12 deletions(-) diff --git a/drivers/serial/amba-pl011.c b/drivers/serial/amba-pl011.c index fc7723e..5a8e633 100644 --- a

[PATCH 6/8] animeo_ip: update to use console_open/close for rs485 crossed detection

2013-09-27 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/boards/animeo_ip/init.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/arm/boards/animeo_ip/init.c b/arch/arm/boards/animeo_ip/init.c index 2fee1ff..e6d2745 100644 --- a/arch/arm/boards/animeo_ip/init.c

[PATCH 2/8] console: factorise function to get the first enabled console

2013-09-27 Thread Jean-Christophe PLAGNIOL-VILLARD
rename it to console_get_first_current Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/ppc/mach-mpc85xx/fdt.c | 4 +--- commands/loadb.c| 22 +- commands/loadxy.c | 24 ++-- common/console_common.c | 21

[PATCH 8/8] serial: atmel: add start and shutdown support

2013-09-27 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- drivers/serial/atmel.c | 42 +- 1 file changed, 33 insertions(+), 9 deletions(-) diff --git a/drivers/serial/atmel.c b/drivers/serial/atmel.c index c2a5d33..10eb2e7 100644 --- a/drivers/serial/atmel.c

[PATCH 5/8] loadbxy: use console_open/close

2013-09-27 Thread Jean-Christophe PLAGNIOL-VILLARD
so we can use non startup console Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- commands/loadxy.c | 25 +++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/commands/loadxy.c b/commands/loadxy.c index fe1b5f5..33f923d 100644 --- a/commands/loadxy.c

[PATCH 3/8] console: factorise function to get the console by name

2013-09-27 Thread Jean-Christophe PLAGNIOL-VILLARD
rename it to console_get_by_name Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- commands/loadxy.c | 26 ++ common/console_common.c | 17 + include/console.h | 1 + 3 files changed, 20 insertions(+), 24 deletions(-) diff --git a/commands

[PATCH 0/8] more serial cleanup

2013-09-27 Thread Jean-Christophe PLAGNIOL-VILLARD
rosoft.org/barebox.git delivery/serial_more_cleanup for you to fetch changes up to fdbe3feeb840d9f372ee0914902658c38deabc72: serial: atmel: add start and shutdown support (2013-09-27 15:01:30 +0800) ---- Jean-Christophe PLAGNIOL-

Re: Wrong barebox_image_size value

2013-09-26 Thread Jean-Christophe PLAGNIOL-VILLARD
On 22:30 Thu 26 Sep , Rostislav Lisovy wrote: > Dear barebox developers and users; > I am compiling barebox for freescale-imx53-smd board. My issue is, > that the image does not contain the correct size record. > The "bootloader size" needed by the flashing tool is initialized in > freescale-mx

[PATCH 1/1] command: add read command

2013-09-25 Thread Jean-Christophe PLAGNIOL-VILLARD
this will allow us to read file content into a var Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- commands/Kconfig | 4 ++ commands/Makefile | 1 + commands/read.c | 126 ++ 3 files changed, 131 insertions(+) create mode 100644

[PATCH 1/1 v2] fs: add uimagefs

2013-09-25 Thread Jean-Christophe PLAGNIOL-VILLARD
crc32 -f /tmp-multi/data -V /tmp-multi/data.crc CRC32 for /tmp-multi/data 0x ... 0x08ee ==> 0x88d5a0db Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- v2: add data entry to expose the all data and it's crc as data.crc this will allow to check the crc32 f

[PATCH 1/1] fs: add uimagefs

2013-09-24 Thread Jean-Christophe PLAGNIOL-VILLARD
10 entry_point -rwxrwxrwx 1292 data0 -rwxrwxrwx983 data1 you can get the image header via an ioctl on any file UIMAGEFS_METADATA Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- Hi, Sascha take a look how to integrate it with bootm so as we discuss we can sim

Re: Porting to a new board

2013-09-24 Thread Jean-Christophe PLAGNIOL-VILLARD
On 10:00 Tue 24 Sep , Allen Kennedy Jr. wrote: > The dhcp command gives: > "warning: No MAC address set. Using random address 62:1C:8B:DF:6D:4D" > Then the device console hangs, Ctrl-C does nothing. Breaking into it > via JTAG, I see > the PC and LR are off in the weeds and the stack and regis

Re: [PATCH 1/2 v2] filetype: add Binary PacKage BPK type

2013-09-24 Thread Jean-Christophe PLAGNIOL-VILLARD
On 11:37 Tue 24 Sep , Sascha Hauer wrote: > On Tue, Sep 24, 2013 at 11:23:23AM +0200, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > On 09:34 Tue 24 Sep , Sascha Hauer wrote: > > > On Sat, Sep 21, 2013 at 04:54:15PM +0200, Jean-Christophe > > > PLAGNIOL-VIL

Re: [PATCH 2/2 v2] fs: add BPKFS support

2013-09-24 Thread Jean-Christophe PLAGNIOL-VILLARD
On 17:28 Tue 24 Sep , Sascha Hauer wrote: > On Tue, Sep 24, 2013 at 02:44:42PM +0200, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > On 11:33 Tue 24 Sep , Sascha Hauer wrote: > > > On Tue, Sep 24, 2013 at 11:24:50AM +0200, Jean-Christophe > > > PLAGNIOL-VILLA

Re: [PATCH 2/2 v2] fs: add BPKFS support

2013-09-24 Thread Jean-Christophe PLAGNIOL-VILLARD
On 11:33 Tue 24 Sep , Sascha Hauer wrote: > On Tue, Sep 24, 2013 at 11:24:50AM +0200, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > On 09:32 Tue 24 Sep , Sascha Hauer wrote: > > > Some typos inside > > > > > > On Sat, Sep 21, 2013 at 04:54:16PM

Re: [PATCH v2] bootm: update os_entry from uimage

2013-09-24 Thread Jean-Christophe PLAGNIOL-VILLARD
On 16:54 Mon 23 Sep , Sascha Hauer wrote: > On Mon, Sep 23, 2013 at 04:32:26PM +0200, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > On 11:13 Mon 23 Sep , Sascha Hauer wrote: > > > On Mon, Sep 23, 2013 at 10:16:00AM +0200, Jean-Christophe > > > PLAGNIOL-VILLA

Re: [PATCH 2/2 v2] fs: add BPKFS support

2013-09-24 Thread Jean-Christophe PLAGNIOL-VILLARD
On 09:32 Tue 24 Sep , Sascha Hauer wrote: > Some typos inside > > On Sat, Sep 21, 2013 at 04:54:16PM +0200, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > Simple update file format developped for Somfy, tools and library are > > s/developped/developed/ > > &g

Re: [PATCH 1/2 v2] filetype: add Binary PacKage BPK type

2013-09-24 Thread Jean-Christophe PLAGNIOL-VILLARD
On 09:34 Tue 24 Sep , Sascha Hauer wrote: > On Sat, Sep 21, 2013 at 04:54:15PM +0200, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > > Signed-off-by: Fargier Sylvain > > --- > > common/filetype.c | 3 +++ > &

Re: [PATCH v2] bootm: update os_entry from uimage

2013-09-23 Thread Jean-Christophe PLAGNIOL-VILLARD
On 11:13 Mon 23 Sep , Sascha Hauer wrote: > On Mon, Sep 23, 2013 at 10:16:00AM +0200, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > On 17:20 Sat 21 Sep , Jean-Christophe PLAGNIOL-VILLARD wrote: > > > if not uimage set 0 by default > > > > > > toda

Re: [PATCH v2] bootm: update os_entry from uimage

2013-09-23 Thread Jean-Christophe PLAGNIOL-VILLARD
On 17:20 Sat 21 Sep , Jean-Christophe PLAGNIOL-VILLARD wrote: > if not uimage set 0 by default > > today we do not see the issue as the kernel entry point is the same as the > load_addr but on other binary its not necessary the case > > as today we ignore the entry point

Re: [PATCH v2] bootm: update os_entry from uimage

2013-09-23 Thread Jean-Christophe PLAGNIOL-VILLARD
On 10:07 Mon 23 Sep , Jean-Christophe PLAGNIOL-VILLARD wrote: > On 08:33 Mon 23 Sep , Sascha Hauer wrote: > > On Mon, Sep 23, 2013 at 06:40:25AM +0200, Jean-Christophe PLAGNIOL-VILLARD > > wrote: > > > On 20:17 Sun 22 Sep , Sascha Hauer wrote: > > > &g

Re: [PATCH v2] bootm: update os_entry from uimage

2013-09-23 Thread Jean-Christophe PLAGNIOL-VILLARD
On 08:33 Mon 23 Sep , Sascha Hauer wrote: > On Mon, Sep 23, 2013 at 06:40:25AM +0200, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > On 20:17 Sun 22 Sep , Sascha Hauer wrote: > > > common/bootm.c | 2 ++ > > > 1 file changed, 2 insertions(+) > > &g

Re: [PATCH 1/4] misc: add bootcount framework

2013-09-23 Thread Jean-Christophe PLAGNIOL-VILLARD
On 09:33 Mon 23 Sep , Sascha Hauer wrote: > On Sat, Sep 21, 2013 at 08:46:04AM +0200, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > The bootcount is always how many time the system start. > > To determine since when, this will depend on the driver implementation > > a

[PATCH 1/1] console_simple: fix: set f_active

2013-09-23 Thread Jean-Christophe PLAGNIOL-VILLARD
so generic code can check if the console is enabled and now we can use loadb & loadxy Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/console_simple.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/console_simple.c b/common/console_simple.c index e82d9cb..0f8

Re: [PATCH v2] bootm: update os_entry from uimage

2013-09-22 Thread Jean-Christophe PLAGNIOL-VILLARD
On 20:17 Sun 22 Sep , Sascha Hauer wrote: > On Sat, Sep 21, 2013 at 05:20:29PM +0200, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > if not uimage set 0 by default > > > > today we do not see the issue as the kernel entry point is the same as the > > load_ad

Re: [PATCH 2/3] animeo_ip: ensure the phy is reset correctly

2013-09-22 Thread Jean-Christophe PLAGNIOL-VILLARD
On 07:47 Fri 20 Sep , Jean-Christophe PLAGNIOL-VILLARD wrote: > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > --- > arch/arm/boards/animeo_ip/init.c | 38 +- > 1 file changed, 37 insertions(+), 1 deletion(-) > > diff --git a/arch/ar

[PATCH 1/2] console_simple: set baudrate at register

2013-09-21 Thread Jean-Christophe PLAGNIOL-VILLARD
as the console is always enable Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/console_simple.c | 5 + 1 file changed, 5 insertions(+) diff --git a/common/console_simple.c b/common/console_simple.c index 5c80dcd..e1d4c85 100644 --- a/common/console_simple.c +++ b/common

[PATCH 2/2] serial: do not set default baudrate at init

2013-09-21 Thread Jean-Christophe PLAGNIOL-VILLARD
this will be done at activation Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- drivers/serial/amba-pl011.c | 4 drivers/serial/atmel.c | 2 -- drivers/serial/serial_auart.c| 1 - drivers/serial/serial_clps711x.c | 3 --- drivers/serial/serial_imx.c | 1

[PATCH 2/2 v3] versatilepb: enable qemu fixup

2013-09-21 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/boards/versatile/versatilepb.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/arm/boards/versatile/versatilepb.c b/arch/arm/boards/versatile/versatilepb.c index ebf3695..3df59ba 100644 --- a/arch/arm

[PATCH 1/2 v3] smc91111: add fixup for qemu phy support

2013-09-21 Thread Jean-Christophe PLAGNIOL-VILLARD
dev->init = smc91c111_init_dev; diff --git a/include/net/smc9.h b/include/net/smc9.h new file mode 100644 index 000..0b2d49b --- /dev/null +++ b/include/net/smc9.h @@ -0,0 +1,14 @@ +/* + * Copyright (C) 2013 Jean-Christophe PLAGNIOL-VILLARD + * + * Under GPLv2 only + */ + +#if

Re: [PATCH 2/2] versatilepb: force net a 100Mpps

2013-09-21 Thread Jean-Christophe PLAGNIOL-VILLARD
On 09:01 Fri 20 Sep , Sascha Hauer wrote: > On Thu, Sep 19, 2013 at 01:21:07PM +0200, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > On 07:50 Thu 19 Sep , Jean-Christophe PLAGNIOL-VILLARD wrote: > > > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > > >

[PATCH v2] bootm: update os_entry from uimage

2013-09-21 Thread Jean-Christophe PLAGNIOL-VILLARD
if not uimage set 0 by default today we do not see the issue as the kernel entry point is the same as the load_addr but on other binary its not necessary the case as today we ignore the entry point set in the uimage and just assume it's the same as the load_addr Signed-off-by: Jean-Chris

[PATCH 1/2 v2] filetype: add Binary PacKage BPK type

2013-09-21 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Signed-off-by: Fargier Sylvain --- common/filetype.c | 3 +++ include/filetype.h | 1 + 2 files changed, 4 insertions(+) diff --git a/common/filetype.c b/common/filetype.c index 59ea25a..ef4452d 100644 --- a/common/filetype.c +++ b/common

[PATCH 2/2 v2] fs: add BPKFS support

2013-09-21 Thread Jean-Christophe PLAGNIOL-VILLARD
-rwxrwxrwx 4 bootloader_version -rwxrwxrwx 8 bootloader_version.crc -rwxrwxrwx 4 unknown_1234567g -rwxrwxrwx 8 unknown_1234567g.crc Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Signed-off-by: Fargier Sylvain --- fs/Kconfig | 6 + fs/Makefile | 1 + fs

[PATCH 1/1] lzo: update to lzo-2013

2013-09-21 Thread Jean-Christophe PLAGNIOL-VILLARD
take from linux next-20130227 same version as v3.11 before -rwxr-xr-x 1 root root 123001 Feb 28 01:04 build/highbank/arch/arm/pbl/zbarebox.bin after -rwxr-xr-x 1 root root 16 Feb 28 01:02 build/highbank/arch/arm/pbl/zbarebox.bin smaller and faster Signed-off-by: Jean-Christophe

Re: [PATCH 1/2] filetype: add arm u-boot support

2013-09-20 Thread Jean-Christophe PLAGNIOL-VILLARD
On 13:56 Fri 20 Sep , Sascha Hauer wrote: > On Fri, Sep 20, 2013 at 10:02:57AM +0200, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > On 08:29 Fri 20 Sep , Sascha Hauer wrote: > > > On Thu, Sep 19, 2013 at 01:56:38PM +0200, Jean-Christophe > > > PLAGNIOL-VILLA

[PATCH 4/4] animeo_ip: add bootcount support

2013-09-20 Thread Jean-Christophe PLAGNIOL-VILLARD
As we use a backup register with a backup battery, the boot count is since ever. when updating to defaultenv-2 we will use it to decide what to boot Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/boards/animeo_ip/init.c | 2 ++ arch/arm/configs/animeo_ip_defconfig | 2 ++ 2

[PATCH 3/4] bootcount: add somfy bootcount support

2013-09-20 Thread Jean-Christophe PLAGNIOL-VILLARD
we support different boot mode - normal - normal_forced - update - rescue - usb - network - test each of them need to be checked this will allow to decide what is the next boot mode during the boot sequence Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- drivers/misc/bootcount

[PATCH 1/4] misc: add bootcount framework

2013-09-20 Thread Jean-Christophe PLAGNIOL-VILLARD
The bootcount is always how many time the system start. To determine since when, this will depend on the driver implementation and your hardware feature. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- drivers/misc/Kconfig| 2 ++ drivers/misc/Makefile | 1 + drivers

[PATCH 2/4] bootcount: add simple register support

2013-09-20 Thread Jean-Christophe PLAGNIOL-VILLARD
use a register to store the boot count if 2 ressources: one for magic, one for value otherwise 16 upper bit for magic 16 lower for value Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- drivers/misc/bootcount/Kconfig| 7 +++ drivers/misc/bootcount/Makefile | 1 + drivers/misc

[PATCH 0/4 v2] introduce bootcount support

2013-09-20 Thread Jean-Christophe PLAGNIOL-VILLARD
bootcount support (2013-09-21 14:38:41 +0800) Jean-Christophe PLAGNIOL-VILLARD (4): misc: add bootcount framework bootcount: add simple register support bootcount: add somfy bootcount support animeo_ip: add

Re: [PATCH 1/2] filetype: add arm u-boot support

2013-09-20 Thread Jean-Christophe PLAGNIOL-VILLARD
On 08:29 Fri 20 Sep , Sascha Hauer wrote: > On Thu, Sep 19, 2013 at 01:56:38PM +0200, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > On 09:00 Wed 18 Sep , Sascha Hauer wrote: > > > On Tue, Sep 17, 2013 at 09:52:18AM +0200, Jean-Christophe > > > PLAGNIOL-VIL

Re: [PATCH 1/3] misc: add bootcount framework

2013-09-20 Thread Jean-Christophe PLAGNIOL-VILLARD
On 09:23 Fri 20 Sep , Sascha Hauer wrote: > On Fri, Sep 20, 2013 at 06:46:15AM +0200, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > > --- > > drivers/misc/Kconfig | 3 +++ > > drivers/misc/Makefi

Re: [PATCH 1/1] bootm: update os_entry from uimage

2013-09-20 Thread Jean-Christophe PLAGNIOL-VILLARD
On 09:06 Fri 20 Sep , Sascha Hauer wrote: > On Fri, Sep 20, 2013 at 07:06:24AM +0200, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > if not uimage set 0 by default > > Can you elaborate more what this patch does and in which situations it > helps? today we do not see th

Re: [PATCH 1/3] introduce helper to generate mac address with OUI

2013-09-20 Thread Jean-Christophe PLAGNIOL-VILLARD
On 09:04 Fri 20 Sep , Sascha Hauer wrote: > On Fri, Sep 20, 2013 at 07:47:43AM +0200, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > use random mac address with fixed OUI provided > > > > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > > --- > &g

[PATCH 3/3] animeo_ip: retrieve the mac from the macb and set private mac to asix

2013-09-19 Thread Jean-Christophe PLAGNIOL-VILLARD
if the macb's mac is not a valid public mac set a private with "smf" as OUI as the mac address might be set by the previous bootloader set a private with "smf" as OUI for asix Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/boa

[PATCH 1/3] introduce helper to generate mac address with OUI

2013-09-19 Thread Jean-Christophe PLAGNIOL-VILLARD
use random mac address with fixed OUI provided Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- include/local_mac_address.h | 40 1 file changed, 40 insertions(+) create mode 100644 include/local_mac_address.h diff --git a/include

[PATCH 2/3] animeo_ip: ensure the phy is reset correctly

2013-09-19 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/boards/animeo_ip/init.c | 38 +- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/arch/arm/boards/animeo_ip/init.c b/arch/arm/boards/animeo_ip/init.c index 5419ddb..65fc0e6 100644 --- a

[PATCH 0/3 v2] Animeo IP: macb support improvement

2013-09-19 Thread Jean-Christophe PLAGNIOL-VILLARD
h changes up to 994c17ca145407c6a0edae4caf096e4dcdde1535: animeo_ip: retrieve the mac from the macb and set private mac to asix (2013-09-20 13:44:30 +0800) ---- Jean-Christophe PLAGNIOL-VILLARD (3): introduce helper to generate mac address with OUI animeo_ip: en

[PATCH 3/3] animeo_ip: retrieve the mac from the macb and set private mac to asix

2013-09-19 Thread Jean-Christophe PLAGNIOL-VILLARD
if the macb's mac is not a valid public mac set a private with "smf" as OUI as the mac address might be set by the previous bootloader set a private with "smf" as OUI for asix Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/boa

[PATCH 1/3] introduce helper to generate mac address with OUI

2013-09-19 Thread Jean-Christophe PLAGNIOL-VILLARD
use random mac address with fixed OUI provided Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- include/local_mac_address.h | 40 1 file changed, 40 insertions(+) create mode 100644 include/local_mac_address.h diff --git a/include

[PATCH 2/3] animeo_ip: ensure the phy is reset correctly

2013-09-19 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/boards/animeo_ip/init.c | 38 +- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/arch/arm/boards/animeo_ip/init.c b/arch/arm/boards/animeo_ip/init.c index e99acd0..c98493f 100644 --- a

[PATCH 0/3] Animeo IP: macb support improvement

2013-09-19 Thread Jean-Christophe PLAGNIOL-VILLARD
to asix (2013-09-20 13:31:14 +0800) ---- Jean-Christophe PLAGNIOL-VILLARD (3): introduce helper to generate mac address with OUI animeo_ip: ensure the phy is reset correctly animeo_ip: retrieve the mac from the macb and

[PATCH 1/1] animeo_ip: set uSD port devname to microsd

2013-09-19 Thread Jean-Christophe PLAGNIOL-VILLARD
so we can always found it and not confuse it with a usb stick device Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/boards/animeo_ip/init.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boards/animeo_ip/init.c b/arch/arm/boards/animeo_ip/init.c index 5419ddb

[PATCH 1/1] bootm: update os_entry from uimage

2013-09-19 Thread Jean-Christophe PLAGNIOL-VILLARD
if not uimage set 0 by default Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- commands/bootm.c | 1 + common/bootm.c | 15 ++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/commands/bootm.c b/commands/bootm.c index a4004df..7acf341 100644 --- a/commands

[PATCH 1/3] misc: add bootcount framework

2013-09-19 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- drivers/misc/Kconfig | 3 +++ drivers/misc/Makefile| 1 + drivers/misc/bootcount.c | 24 include/bootcount.h | 21 + 4 files changed, 49 insertions(+) create mode 100644 drivers/misc

[PATCH 3/3] animeo_ip: add bootcount support

2013-09-19 Thread Jean-Christophe PLAGNIOL-VILLARD
when updating to defaultenv-2 we will use it to decide what to boot Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/boards/animeo_ip/init.c | 2 ++ arch/arm/configs/animeo_ip_defconfig | 2 ++ 2 files changed, 4 insertions(+) diff --git a/arch/arm/boards/animeo_ip/init.c b

[PATCH 2/3] misc: add somfy bootcount support

2013-09-19 Thread Jean-Christophe PLAGNIOL-VILLARD
we support different boot mode - normal - normal_forced - update - rescue - usb - network - test each of them need to be checked this will allow to decide what is the next boot mode during the boot sequence Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- drivers/misc/Kconfig

[PATCH 0/3] introduce bootcount support

2013-09-19 Thread Jean-Christophe PLAGNIOL-VILLARD
) Jean-Christophe PLAGNIOL-VILLARD (3): misc: add bootcount framework misc: add somfy bootcount support animeo_ip: add bootcount support arch/arm/boards/animeo_ip/init.c | 2 ++ arch/arm/configs/animeo_ip_defconfig | 2 ++ drivers/misc/Kconfig

[PATCH 1/1] console: drop f_caps and check the function pointer getc/putc instead

2013-09-19 Thread Jean-Christophe PLAGNIOL-VILLARD
None of the driver make the difference between STDOUT and STDERR. So we just need to check if putc or getc are filled in the console_device save 32 bytes on versatilepb Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/sandbox/board/console.c | 5 - arch/sandbox

[PATCH 1/1] animeo_ip: the env in nand is u-boot env not a barebox one

2013-09-19 Thread Jean-Christophe PLAGNIOL-VILLARD
on animeo ip we use a RO barebox env we will add later it's support Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/boards/animeo_ip/env/config | 2 +- arch/arm/boards/animeo_ip/init.c | 6 -- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/arm/b

[PATCH 2/5] console: introduce console_get_by_dev

2013-09-19 Thread Jean-Christophe PLAGNIOL-VILLARD
so we can get console by it's device Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/console_common.c | 13 + include/console.h | 2 ++ 2 files changed, 15 insertions(+) diff --git a/common/console_common.c b/common/console_common.c index d139d1a..24aa63e 1

[PATCH 5/5] Animeo IP: add rs485 crossing detection support

2013-09-19 Thread Jean-Christophe PLAGNIOL-VILLARD
this will be used to force the update or the start test mode Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/boards/animeo_ip/init.c | 88 ++-- arch/arm/configs/animeo_ip_defconfig | 1 - 2 files changed, 83 insertions(+), 6 deletions(-) diff

[PATCH 4/5] atmel_serial: add rs485 support

2013-09-19 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- drivers/serial/atmel.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/drivers/serial/atmel.c b/drivers/serial/atmel.c index 89c141e..40945c9 100644 --- a/drivers/serial/atmel.c +++ b/drivers/serial/atmel.c

[PATCH 3/5] console: introduce new callback set_mode

2013-09-19 Thread Jean-Christophe PLAGNIOL-VILLARD
so we can set the port in rs485 mode Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- include/console.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/console.h b/include/console.h index 355e259..ef6e193 100644 --- a/include/console.h +++ b/include/console.h @@ -28,6

[PATCH 1/5] shutdown: add board call back

2013-09-19 Thread Jean-Christophe PLAGNIOL-VILLARD
so if we need to do something switch in the board we can fill this function pointer (as example on Animeo IP shutdown some rs232 & rs485) Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/startup.c | 4 include/common.h | 1 + 2 files changed, 5 insertions(+) diff --git a/co

[PATCH 0/5] introduce basic rs485 support

2013-09-19 Thread Jean-Christophe PLAGNIOL-VILLARD
support (2013-09-19 21:15:50 +0800) Jean-Christophe PLAGNIOL-VILLARD (5): shutdown: add board call back console: introduce console_get_by_dev console: introduce new callback set_mode atmel_serial: add rs485

[PATCH 1/1] Animeo IP: add usb host support

2013-09-19 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/boards/animeo_ip/init.c | 16 arch/arm/configs/animeo_ip_defconfig | 5 + 2 files changed, 21 insertions(+) diff --git a/arch/arm/boards/animeo_ip/init.c b/arch/arm/boards/animeo_ip/init.c index 56b8df2

[PATCH 1/1 V2] command: crc: add -V option to check the crc store in a file

2013-09-19 Thread Jean-Christophe PLAGNIOL-VILLARD
the format is %08x Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- v2: improve help description Best Regards, J. commands/crc.c | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/commands/crc.c b/commands/crc.c index a0071b0..ee8dacf 100644

Re: [PATCH 1/2] filetype: add arm u-boot support

2013-09-19 Thread Jean-Christophe PLAGNIOL-VILLARD
On 09:00 Wed 18 Sep , Sascha Hauer wrote: > On Tue, Sep 17, 2013 at 09:52:18AM +0200, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > > --- > > common/filetype.c | 3 +++ > > include/filetype.h | 1 + >

Re: [PATCH 2/2] bootm: add u-boot support

2013-09-19 Thread Jean-Christophe PLAGNIOL-VILLARD
On 09:03 Wed 18 Sep , Sascha Hauer wrote: > On Tue, Sep 17, 2013 at 09:52:19AM +0200, Jean-Christophe PLAGNIOL-VILLARD > wrote: > > Simply do the same as barebox and hope for the best as u-boot does not > > handle > > runtime address detection for boot quite often. It

[PATCH 1/1] smc91111: add fixup for qemu phy support

2013-09-19 Thread Jean-Christophe PLAGNIOL-VILLARD
as today qemu does not support phy, it will return always 0x0 to any read on the mii bus. So the phy_id is 0 and the link is donw. To have the norwork running on versatilpb & other qenu board for the link up at 100Mbps. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- drivers/net/smc911

Re: [PATCH 2/2] versatilepb: force net a 100Mpps

2013-09-19 Thread Jean-Christophe PLAGNIOL-VILLARD
On 07:50 Thu 19 Sep , Jean-Christophe PLAGNIOL-VILLARD wrote: > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD ignore this one it'a handle already at driver level Best Regards, J. > --- > arch/arm/boards/versatile/versatilepb.c | 5 - > 1 file changed, 4 insertio

[PATCH 2/2] versatilepb: force net a 100Mpps

2013-09-18 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/boards/versatile/versatilepb.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/boards/versatile/versatilepb.c b/arch/arm/boards/versatile/versatilepb.c index 2eb7473..fa0585d 100644 --- a/arch/arm

[PATCH 1/1] smc91111: add phy flags support

2013-09-18 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- drivers/net/smc9.c | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/drivers/net/smc9.c b/drivers/net/smc9.c index 48183dd..8c7a343 100644 --- a/drivers/net/smc9.c +++ b/drivers/net

[PATCH 1/2] filetype: add Somfy BPK2 type

2013-09-17 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/filetype.c | 3 +++ include/filetype.h | 1 + 2 files changed, 4 insertions(+) diff --git a/common/filetype.c b/common/filetype.c index f986ea4..e07b65a 100644 --- a/common/filetype.c +++ b/common/filetype.c @@ -51,6 +51,7 @@ static

[PATCH 2/2] fs: add Somfy BPK2 support

2013-09-17 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- fs/Kconfig | 4 + fs/Makefile | 1 + fs/somfy_bpk2.c | 357 +++ include/somfy_bpk2.h | 59 + 4 files changed, 421 insertions(+) create mode 100644 fs

Re: [PATCH 08/11] ARM: socfpga: Add FPGA programming command

2013-09-17 Thread Jean-Christophe PLAGNIOL-VILLARD
On 10:48 Mon 16 Sep , Sascha Hauer wrote: > This adds a simple socfpga specific 'fpga' command to load a firmware > to the FPGA. For the moment this is enough, but should we get more > FPGA support it might be a good idea to introduce some generic framework > and command. I do not like command

Re: [PATCH 07/11] ARM: Add Altera SoCFPGA support

2013-09-17 Thread Jean-Christophe PLAGNIOL-VILLARD
> +static int socfpga_env_init(void) > +{ > + struct stat s; > + char *diskdev, *partname; > + int ret; > + > + diskdev = "mmc0"; > + > + device_detect_by_name(diskdev); > + > + partname = asprintf("/dev/%s.1", diskdev); > + > + ret = stat(partname, &s); > + > + if (

Re: [PATCH 09/11] ARM: SoCFPGA: Add Terasic SoCkit board support

2013-09-17 Thread Jean-Christophe PLAGNIOL-VILLARD
On 10:48 Mon 16 Sep , Sascha Hauer wrote: > Signed-off-by: Sascha Hauer > --- > arch/arm/boards/Makefile | 1 + > arch/arm/boards/terasic-sockit/Makefile| 2 + > arch/arm/boards/terasic-sockit/board.c | 37 > arch/arm/boards/terasic-

[PATCH 1/1] command: crc: add -V option to check the crc store in a file

2013-09-17 Thread Jean-Christophe PLAGNIOL-VILLARD
the format is %08x Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- commands/crc.c | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/commands/crc.c b/commands/crc.c index a0071b0..b7416e1 100644 --- a/commands/crc.c +++ b/commands/crc.c @@ -82,6 +82,19

[PATCH 2/2] bootm: add u-boot support

2013-09-17 Thread Jean-Christophe PLAGNIOL-VILLARD
Simply do the same as barebox and hope for the best as u-boot does not handle runtime address detection for boot quite often. It does only execpt you to choose as compiling time. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/lib/bootm.c | 13 + 1 file changed, 13

[PATCH 1/2] filetype: add arm u-boot support

2013-09-17 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/filetype.c | 3 +++ include/filetype.h | 1 + 2 files changed, 4 insertions(+) diff --git a/common/filetype.c b/common/filetype.c index 7507d85..59ea25a 100644 --- a/common/filetype.c +++ b/common/filetype.c @@ -35,6 +35,7 @@ static

[PATCH 1/1] atmel_mci: add devname pdata support

2013-09-17 Thread Jean-Christophe PLAGNIOL-VILLARD
so we can specify the devname in the board Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/mach-at91/include/mach/board.h | 1 + drivers/mci/atmel_mci.c | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm/mach-at91/include/mach/board.h b/arch/arm/mach

[PATCH 1/1] process_escape_sequence: add support to \$?

2013-09-17 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/hush.c | 6 ++ common/parser.c | 9 + include/shell.h | 12 lib/process_escape_sequence.c | 7 +++ 4 files changed, 34 insertions(+) create mode 100644 include

[PATCH 1/1] animeo_ip: fix macb pin mux and set phy interface as MII

2013-09-17 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/boards/animeo_ip/init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boards/animeo_ip/init.c b/arch/arm/boards/animeo_ip/init.c index 06d542e..56b8df2 100644 --- a/arch/arm/boards/animeo_ip/init.c +++ b/arch/arm

[PATCH 1/1] Fix lseek on fat filesystems.

2013-09-17 Thread Jean-Christophe PLAGNIOL-VILLARD
From: Fargier Sylvain FILE object was not updated properly when seeking. Signed-off-by: Fargier Sylvain Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- fs/fat/fat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/fat/fat.c b/fs/fat/fat.c index 871fe4b..15879c4 100644 --- a/fs/fat

[PATCH 1/1] at91: add irq fixup

2013-09-16 Thread Jean-Christophe PLAGNIOL-VILLARD
Some of the irq can still be on after a reset or power on as the IP are powered by the backup power. This could lead to an interrupt dead lock when the kernel boot. So disable them before booting. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Cc: Nicolas Ferre --- arch/arm/mach-at91/Makefile

[PATCH 1/1] command: ubiattach: add option to pass VID offset

2013-09-16 Thread Jean-Christophe PLAGNIOL-VILLARD
use the same option as linux -O as example due to a bug in already deployed kernel we must for the VID offset at 512 even it should be at 256 Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- commands/ubi.c | 20 1 file changed, 16 insertions(+), 4 deletions(-) diff

[PATCH 1/5] globalvar: add globalvar_add_simple_int/bool/enum/ip support

2013-09-16 Thread Jean-Christophe PLAGNIOL-VILLARD
so we can types var Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- common/globalvar.c | 2 +- include/globalvar.h | 83 + 2 files changed, 84 insertions(+), 1 deletion(-) diff --git a/common/globalvar.c b/common/globalvar.c index

[PATCH 4/5] login/passwd: add default password support

2013-09-16 Thread Jean-Christophe PLAGNIOL-VILLARD
even if the env is broken you will have a password Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- commands/passwd.c | 8 ++--- common/Kconfig | 5 +++ common/Makefile| 20 common/password.c | 94 ++ include

[PATCH 0/5 v3] defaultenv-2: add login support

2013-09-16 Thread Jean-Christophe PLAGNIOL-VILLARD
login support (2013-09-17 01:01:08 +0800) Jean-Christophe PLAGNIOL-VILLARD (5): globalvar: add globalvar_add_simple_int/bool/enum/ip support login: add globalvar timeout support login: disable input console if

[PATCH 3/5] login: disable input console if password wrong

2013-09-16 Thread Jean-Christophe PLAGNIOL-VILLARD
so we guarantee that barebox is secured again user interaction Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- commands/login.c| 6 +- common/console.c| 6 ++ common/console_common.c | 33 + common/console_simple.c | 9

[PATCH 2/5] login: add globalvar timeout support

2013-09-16 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- commands/login.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/commands/login.c b/commands/login.c index fb6bb35..485def2 100644 --- a/commands/login.c +++ b/commands/login.c @@ -20,6 +20,10 @@ #include

<    1   2   3   4   5   6   7   8   9   10   >