Re: /dev/disk0 vs /dev/mmc0

2013-10-03 Thread Jean-Christophe PLAGNIOL-VILLARD
On 17:17 Thu 03 Oct , David Jander wrote: > > Hi all, > > I am following barebox git closely and noticed a change recently: Device names > for MMC (MCI) and USB mass-storage devices have changed to the > generic "/dev/diskX". Earlier an MMC device was named "/dev/mmc0". > Unfortunately this c

/dev/disk0 vs /dev/mmc0

2013-10-03 Thread David Jander
Hi all, I am following barebox git closely and noticed a change recently: Device names for MMC (MCI) and USB mass-storage devices have changed to the generic "/dev/diskX". Earlier an MMC device was named "/dev/mmc0". Unfortunately this change breaks my /env/bin/init script and I don't know how to

[PATCH 2/2] fs: add BPKFS support

2013-10-03 Thread Jean-Christophe PLAGNIOL-VILLARD
Simple update file format developed for Somfy, tools and library are available under LGPLv2 (https://www.gitorious.org/libbpk). This format in the v1.0 allow you to store 6 types a binary stream for a unique hardware id: - bootloader - bootloader_version - description.gz - kernel - rootfs -

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

2013-10-03 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..8cdf827 100644 --- a/common/filetype.c +++ b/common/filetype.c @@ -50,6 +50,7 @@ static con

[PATCH 0/2 v2] add bpkfs support

2013-10-03 Thread Jean-Christophe PLAGNIOL-VILLARD
Hi, v2 update comment and fix comment typo and rebase next The following changes since commit 705dbd7c795bbdfb448e1d0ace89d98cbceaaec1: Merge branch 'for-next/tegra' into next (2013-10-02 11:07:14 +0200) are available in the git repository at: git://git.jcrosoft.org/barebo

[PATCH 1/1] macb: add support to read the mac address from register

2013-10-03 Thread Jean-Christophe PLAGNIOL-VILLARD
check the 4 mac address register and return at the first valid Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- drivers/net/macb.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/net/macb.c b/drivers/net/macb.c index b1f544b..d8523ce 100644 --- a/drivers/ne

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

2013-10-03 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- drivers/serial/amba-pl011.c | 39 ++- 1 file changed, 30 insertions(+), 9 deletions(-) diff --git a/drivers/serial/amba-pl011.c b/drivers/serial/amba-pl011.c index fc7723e..b7e01dd 100644 --- a/drivers/serial

[PATCH 5/8] console: console_get_by_name pass flags

2013-10-03 Thread Jean-Christophe PLAGNIOL-VILLARD
this will allow to get console by name and specific feature we use CONSOLE_STDIN to check input support and CONSOLE_STDOUT for output support at driver level this will also allow to use non active console for loadxy as example Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- commands/loadxy.

[PATCH 4/8] loadxy: use console_open/close

2013-10-03 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 b90d2fd..7cefba4 100644 --- a/commands/loadxy.c +++ b

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

2013-10-03 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- drivers/serial/atmel.c | 55 +- 1 file changed, 41 insertions(+), 14 deletions(-) diff --git a/drivers/serial/atmel.c b/drivers/serial/atmel.c index c2a5d33..a1eb4cb 100644 --- a/drivers/serial/at

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

2013-10-03 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 6/8] animeo_ip: update to use console_open/close for rs485 crossed detection

2013-10-03 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 3/8] console: introduce startup and shutdown

2013-10-03 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 | 35 +++ common/console_simple.c | 3 +++ include/console.h

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

2013-10-03 Thread Jean-Christophe PLAGNIOL-VILLARD
rename it to console_get_first_active 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 0/8 v2] more serial cleanup

2013-10-03 Thread Jean-Christophe PLAGNIOL-VILLARD
Hi, v2: function rename and rebase over next Today we have a wired implemntation of the console which mix serial and others. Today on serial we init and start the port at probe time. Which is wrong as we need to start the port only if used by barebox. So l