Re: [PATCH 1/2] cfa-10036: Use the second MMC partition to store the environment

2013-02-14 Thread Juergen Beisert
Maxime Ripard wrote: Since the only storage medium on the cfa-10036 is the MMC card, we need to have a registered environment partition on it if we want to be able to modify at runtime. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com ---

[PATCH] arm/i.M23/chumbyfalconwing: just fix a typo

2013-02-14 Thread Juergen Beisert
diff --git a/arch/arm/boards/chumby_falconwing/falconwing.c b/arch/arm/boards/chumby_falconwing/falconwing.c index 0818666..a8fe00c 100644 --- a/arch/arm/boards/chumby_falconwing/falconwing.c +++ b/arch/arm/boards/chumby_falconwing/falconwing.c @@ -274,7 +274,7 @@

Re: [PATCH v2 1/2] Introduce device_platform_driver() macro

2013-02-14 Thread Sascha Hauer
On Tue, Feb 12, 2013 at 10:08:56PM +0400, Alexander Shiyan wrote: device_platform_driver() - Helper macro for drivers that don't do anything special in module registration. This eliminates a lot of boilerplate. Driver registration will called on device_initcall. Signed-off-by: Alexander

[PATCH v2] arm/i.M23/chumbyfalconwing: just fix a typo

2013-02-14 Thread Juergen Beisert
Juergen Beisert wrote: [...] if (rc != 0) printf(Cannot create the 'env0' persistant environment storage (%d)\n, rc); ___^ Arrghh, still two 'a' left. :( diff --git a/arch/arm/boards/chumby_falconwing/falconwing.c

[PATCH] USB i.MX: Add i.MX6 HSIC support

2013-02-14 Thread Sascha Hauer
The following adds USB HSIC support for i.MX6. The special thing about HSIC on i.MX is that we have to configure a pullup on the Strobe line *after* the USB port is initialized, so the bulk of this series deals with adding post init hooks to the imx-usb-misc and ehci driver. Sascha

[PATCH 2/5] USB chipidea i.MX: Fix PTS mask for HSIC

2013-02-14 Thread Sascha Hauer
bit25 is part of the PTS bits, so mask it out before rewriting it. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/usb/imx/chipidea-imx.c |2 +- include/usb/chipidea-imx.h |1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH 1/5] ARM i.MX6: Fix HSIC pad definitions

2013-02-14 Thread Sascha Hauer
Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- arch/arm/mach-imx/include/mach/iomux-mx6.h | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/arch/arm/mach-imx/include/mach/iomux-mx6.h b/arch/arm/mach-imx/include/mach/iomux-mx6.h index

[PATCH 5/5] USB i.MX6: Add HSIC support

2013-02-14 Thread Sascha Hauer
HSIC needs some special setup for i.MX6. Most ugly detail is that the HSIC needs help of the IOMUX to configure a pullup on the strobe line. This has to be done after the ehci controller has started. Fortunately there is only one muxing possibility for the HSIC ports on i.MX6, so we can simply

[PATCH 4/5] USB i.MX chipidea: implement post init support

2013-02-14 Thread Sascha Hauer
Some controllers need an init hook after the USB controller is started, so implement the post init hook for i.MX. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/usb/imx/chipidea-imx.c | 43 ++- drivers/usb/imx/imx-usb-misc.c | 63

[PATCH 3/5] USB ehci: Add platform specific init calls

2013-02-14 Thread Sascha Hauer
Some USB cores need a platform specific init hook, add it to the ehci driver. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/usb/host/ehci-hcd.c | 14 ++ include/usb/ehci.h |5 + 2 files changed, 19 insertions(+) diff --git

[PATCH] USB i.MX: Add chipidea gadget support

2013-02-14 Thread Sascha Hauer
This adds USB gadget support to the i.MX chipidea driver. Basically we have to add a register function to the fsl udc driver and call this from the chipidea driver if device mode is selected. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- drivers/usb/gadget/fsl_udc.c | 11 +--

[PATCH] ARM pbl: move piggydata before bss

2013-02-14 Thread Sascha Hauer
This decreases the pbl image size by the size of the bss segment. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- arch/arm/pbl/zbarebox.lds.S | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/pbl/zbarebox.lds.S b/arch/arm/pbl/zbarebox.lds.S index

Re: [PATCH] Add warning above get_ram_size

2013-02-14 Thread Maxime Ripard
Hi Sascha, Le 13/02/2013 18:16, Sascha Hauer a écrit : Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- common/memsize.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/common/memsize.c b/common/memsize.c index d149e41..ef6381b 100644 --- a/common/memsize.c +++

Re: [PATCH] cfa10036: Retrieve the RAM size at runtime

2013-02-14 Thread Maxime Ripard
Hi Jean-Christophe, Le 13/02/2013 18:09, Jean-Christophe PLAGNIOL-VILLARD a écrit : On 17:50 Wed 13 Feb , Maxime Ripard wrote: The cfa-10036 comes in two flavours, with either 128MB or 256MB of RAM on it. Since it's not stored anywhere, we need to runtime detect it, thanks to the

[PATCH] Add missing SZ_xx defines

2013-02-14 Thread Alexander Shiyan
Signed-off-by: Alexander Shiyan shc_w...@mail.ru --- include/sizes.h | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/include/sizes.h b/include/sizes.h index c47f906..321d40c 100644 --- a/include/sizes.h +++ b/include/sizes.h @@ -17,7 +17,19 @@ #define

Re: [PATCH 1/2] cfa-10036: Use the second MMC partition to store the environment

2013-02-14 Thread Eric Bénard
Le Thu, 14 Feb 2013 11:10:54 +0100, Maxime Ripard maxime.rip...@free-electrons.com a écrit : Hi Juergen, Le 14/02/2013 09:16, Juergen Beisert a écrit : Maxime Ripard wrote: Since the only storage medium on the cfa-10036 is the MMC card, we need to have a registered environment partition

Re: [PATCH] ARM pbl: move piggydata before bss

2013-02-14 Thread Sascha Hauer
On Thu, Feb 14, 2013 at 11:06:13AM +0100, Alexander Aring wrote: Hi Sascha, i am a little bit confused. I add in commit 43afe67390697041d1d16d4e5c934d2bfa831399 the data section, but I forgot to change this linker script file. Does it work now? Yes, it works. It seems that pbl

Re: [PATCH] Add warning above get_ram_size

2013-02-14 Thread Sascha Hauer
On Thu, Feb 14, 2013 at 10:40:38AM +0100, Maxime Ripard wrote: Hi Sascha, Le 13/02/2013 18:16, Sascha Hauer a écrit : Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- common/memsize.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/common/memsize.c

[PATCH 3/3] falconwing: switch to generic peristent env

2013-02-14 Thread Eric Bénard
Signed-off-by: Eric Bénard e...@eukrea.com --- arch/arm/boards/chumby_falconwing/falconwing.c | 38 +- 1 file changed, 1 insertion(+), 37 deletions(-) diff --git a/arch/arm/boards/chumby_falconwing/falconwing.c b/arch/arm/boards/chumby_falconwing/falconwing.c index

[PATCH 1/3] env: add register_persistent_environment

2013-02-14 Thread Eric Bénard
- heavily copied from register_persistant_environment which was Signed-off-by: Juergen Beisert j...@pengutronix.de Signed-off-by: Eric Bénard e...@eukrea.com --- common/environment.c | 40 include/environment.h | 1 + 2 files changed, 41 insertions(+)

[PATCH 2/3] imx23-olinuxino: swith to generic peristent env

2013-02-14 Thread Eric Bénard
Signed-off-by: Eric Bénard e...@eukrea.com --- arch/arm/boards/imx233-olinuxino/imx23-olinuxino.c | 44 +- 1 file changed, 2 insertions(+), 42 deletions(-) diff --git a/arch/arm/boards/imx233-olinuxino/imx23-olinuxino.c b/arch/arm/boards/imx233-olinuxino/imx23-olinuxino.c

Re: [PATCH 0/2] Summary of last patches submitted

2013-02-14 Thread Sascha Hauer
On Tue, Feb 12, 2013 at 12:04:57AM +0100, Vicente Bergas wrote: Here are the last two patches I've submitted. The first is a straightforward solution to a regression. The second was first intended to provide devicetree support for booting an omap4 based tablet. I've achieved booting it

[PATCH 1/4] fs: fix return type of read

2013-02-14 Thread Alexander Aring
Use ssize_t instead of int. Similar write function which uses ssize_t as return type, too. Signed-off-by: Alexander Aring alex.ar...@gmail.com --- fs/fs.c | 2 +- include/fs.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/fs.c b/fs/fs.c index f840516..48d1c89

[PATCH 2/4] fs: add pread and pwrite functions

2013-02-14 Thread Alexander Aring
Add pread and pwrite functions. These functions setting file pointer to a given offset with lseek and call read or write afterwards. Signed-off-by: Alexander Aring alex.ar...@gmail.com --- fs/fs.c | 28 include/fs.h | 2 ++ 2 files changed, 30 insertions(+)

[PATCH 3/4] nandtest: use new pread and pwrite functions

2013-02-14 Thread Alexander Aring
Signed-off-by: Alexander Aring alex.ar...@gmail.com --- commands/nandtest.c | 36 ++-- 1 file changed, 6 insertions(+), 30 deletions(-) diff --git a/commands/nandtest.c b/commands/nandtest.c index f08f8eb..4e6024b 100644 --- a/commands/nandtest.c +++

[PATCH v2] falconwing: switch to generic peristent env

2013-02-14 Thread Eric Bénard
Signed-off-by: Eric Bénard e...@eukrea.com --- v2: fix typo on persistent arch/arm/boards/chumby_falconwing/falconwing.c | 38 +- 1 file changed, 1 insertion(+), 37 deletions(-) diff --git a/arch/arm/boards/chumby_falconwing/falconwing.c

Re: [PATCH] ARM pbl: move piggydata before bss

2013-02-14 Thread Jean-Christophe PLAGNIOL-VILLARD
On 10:12 Thu 14 Feb , Sascha Hauer wrote: This decreases the pbl image size by the size of the bss segment. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- arch/arm/pbl/zbarebox.lds.S | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git

Re: [PATCH 0/6 v3] arm: add Calxeda Highbank support

2013-02-14 Thread Sascha Hauer
On Wed, Feb 13, 2013 at 11:02:49AM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: Hi, v3: reset: add missing wfi gpio: move probe to board add oftree probe support v2: fix cc tag so Rob can receive the patch add oftree support to xgmac

[PATCH v3] falconwing: switch to generic peristent env

2013-02-14 Thread Eric Bénard
Signed-off-by: Eric Bénard e...@eukrea.com --- v3: also fix the typo in the printf v2: fix typo in persistent arch/arm/boards/chumby_falconwing/falconwing.c | 40 ++ 1 file changed, 2 insertions(+), 38 deletions(-) diff --git

Re: [PATCH] Add warning above get_ram_size

2013-02-14 Thread Maxime Ripard
Hi Sascha, Le 14/02/2013 12:35, Sascha Hauer a écrit : On Thu, Feb 14, 2013 at 10:40:38AM +0100, Maxime Ripard wrote: Hi Sascha, Le 13/02/2013 18:16, Sascha Hauer a écrit : Signed-off-by: Sascha Hauer s.ha...@pengutronix.de --- common/memsize.c |3 +++ 1 file changed, 3 insertions(+)

[PATCH 0/5] add EFI GUID Partition Table support

2013-02-14 Thread Jean-Christophe PLAGNIOL-VILLARD
HI, this add the support of the EFI GPT and named partition The following changes since commit a40e76cebcbe8b025bafdefdc6e27b7553209ed7: Add warning above get_ram_size (2013-02-13 18:14:38 +0100) are available in the git repository at: git://git.jcrosoft.org/barebox.git

[PATCH 1/5] linux/types: import __aligned_x64 from the kernel

2013-02-14 Thread Jean-Christophe PLAGNIOL-VILLARD
need it by upcoming EFI GPT support Cc: Rob Herring rob.herr...@calxeda.com Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- include/linux/types.h | 13 + 1 file changed, 13 insertions(+) diff --git a/include/linux/types.h b/include/linux/types.h index

[PATCH 2/5] filetype: add GPT support

2013-02-14 Thread Jean-Christophe PLAGNIOL-VILLARD
GPT need to be check before MBR Cc: Rob Herring rob.herr...@calxeda.com Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- common/filetype.c |4 include/filetype.h |1 + 2 files changed, 5 insertions(+) diff --git a/common/filetype.c b/common/filetype.c

[PATCH 3/5] partitons: add framework

2013-02-14 Thread Jean-Christophe PLAGNIOL-VILLARD
so we can support multiple format use filetpye to detect the parser to use Cc: Rob Herring rob.herr...@calxeda.com Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- common/Kconfig | 14 + common/Makefile|2 +- common/partitions.c

[PATCH 4/5] disk: introduce partition name

2013-02-14 Thread Jean-Christophe PLAGNIOL-VILLARD
so we can register partion with name as present in EFI GPT Cc: Rob Herring rob.herr...@calxeda.com Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- common/partitions.c| 51 ++-- common/partitions/parser.h |2 ++ 2

Re: [PATCH 1/1] commands/ubi.c: Add support for VID header offset in ubiattach

2013-02-14 Thread Jan Lübbe
On Mon, 2013-02-11 at 16:21 +0100, Sascha Hauer wrote: I'm interested in this patch once it's clear that this option is needed. Right now I think that the work is better invested in making this option unneeded. Jan, do you have insights why this is needed? Linux with current mainline + pending

Re: [PATCH 2/5] filetype: add GPT support

2013-02-14 Thread Sascha Hauer
On Thu, Feb 14, 2013 at 04:52:24PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: GPT need to be check before MBR Cc: Rob Herring rob.herr...@calxeda.com Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- common/filetype.c |4 include/filetype.h |1 +

Re: [PATCH 2/5] filetype: add GPT support

2013-02-14 Thread Jean-Christophe PLAGNIOL-VILLARD
On 17:36 Thu 14 Feb , Sascha Hauer wrote: On Thu, Feb 14, 2013 at 04:52:24PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: GPT need to be check before MBR Cc: Rob Herring rob.herr...@calxeda.com Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com ---

Re: [PATCH 2/5] filetype: add GPT support

2013-02-14 Thread Johannes Stezenbach
On Thu, Feb 14, 2013 at 05:53:23PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: On 17:36 Thu 14 Feb , Sascha Hauer wrote: On Thu, Feb 14, 2013 at 04:52:24PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: GPT need to be check before MBR Cc: Rob Herring rob.herr...@calxeda.com

Environment changes lead to weird boot behaviour

2013-02-14 Thread Christian Kapeller
Hi, I try to investigate a situation where barebox (v2013.02.0 + board patches) fails to boot the linux kernel on my karo-tx53 based board. The problem may well be introduced by myself, but after a few days of investigation is still fail to grasp the problem's root. Depending on whether files

Re: [PATCH] Add warning above get_ram_size

2013-02-14 Thread Sascha Hauer
On Thu, Feb 14, 2013 at 02:59:48PM +0100, Maxime Ripard wrote: Hi Sascha, Le 14/02/2013 12:35, Sascha Hauer a écrit : On Thu, Feb 14, 2013 at 10:40:38AM +0100, Maxime Ripard wrote: Hi Sascha, Le 13/02/2013 18:16, Sascha Hauer a écrit : Signed-off-by: Sascha Hauer

Re: [PATCH 2/5] filetype: add GPT support

2013-02-14 Thread Sascha Hauer
On Thu, Feb 14, 2013 at 06:05:07PM +0100, Johannes Stezenbach wrote: On Thu, Feb 14, 2013 at 05:53:23PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: On 17:36 Thu 14 Feb , Sascha Hauer wrote: On Thu, Feb 14, 2013 at 04:52:24PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: GPT

Re: [PATCH 1/3] env: add register_persistent_environment

2013-02-14 Thread Sascha Hauer
On Thu, Feb 14, 2013 at 12:56:49PM +0100, Eric Bénard wrote: - heavily copied from register_persistant_environment which was Signed-off-by: Juergen Beisert j...@pengutronix.de Signed-off-by: Eric Bénard e...@eukrea.com --- common/environment.c | 40

Re: [PATCH 3/5] partitons: add framework

2013-02-14 Thread Sascha Hauer
On Thu, Feb 14, 2013 at 04:52:25PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: so we can support multiple format use filetpye to detect the parser to use Cc: Rob Herring rob.herr...@calxeda.com Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- common/Kconfig

Re: [PATCH 2/4] fs: add pread and pwrite functions

2013-02-14 Thread Sascha Hauer
On Thu, Feb 14, 2013 at 02:08:29PM +0100, Alexander Aring wrote: Add pread and pwrite functions. These functions setting file pointer to a given offset with lseek and call read or write afterwards. Signed-off-by: Alexander Aring alex.ar...@gmail.com --- fs/fs.c | 28

Re: [PATCH 4/5] disk: introduce partition name

2013-02-14 Thread Jean-Christophe PLAGNIOL-VILLARD
On 21:51 Thu 14 Feb , Sascha Hauer wrote: On Thu, Feb 14, 2013 at 04:52:26PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: so we can register partion with name as present in EFI GPT Cc: Rob Herring rob.herr...@calxeda.com Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD

[PATCH 0/5] add EFI GUID Partition Table support

2013-02-14 Thread Jean-Christophe PLAGNIOL-VILLARD
HI, v2: fix memory leak filetype: full check part name: comment efi: make gpt primary and alternate check optional this add the support of the EFI GPT and named partition The following changes since commit

[PATCH 4/5] disk: introduce partition name

2013-02-14 Thread Jean-Christophe PLAGNIOL-VILLARD
so we can register partion with name as present in EFI GPT Cc: Rob Herring rob.herr...@calxeda.com Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- common/partitions.c| 54 ++-- common/partitions/parser.h |2 ++ 2

[PATCH 2/5] filetype: add GPT support

2013-02-14 Thread Jean-Christophe PLAGNIOL-VILLARD
GPT need to be check before MBR Cc: Rob Herring rob.herr...@calxeda.com Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- common/filetype.c | 47 +++ include/filetype.h |1 + 2 files changed, 48 insertions(+) diff --git

[PATCH 1/5] linux/types: import __aligned_x64 from the kernel

2013-02-14 Thread Jean-Christophe PLAGNIOL-VILLARD
need it by upcoming EFI GPT support Cc: Rob Herring rob.herr...@calxeda.com Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com --- include/linux/types.h | 13 + 1 file changed, 13 insertions(+) diff --git a/include/linux/types.h b/include/linux/types.h index

Re: [PATCH 2/5] filetype: add GPT support

2013-02-14 Thread Johannes Stezenbach
On Thu, Feb 14, 2013 at 11:08:55PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: On 20:17 Thu 14 Feb , Sascha Hauer wrote: On Thu, Feb 14, 2013 at 06:05:07PM +0100, Johannes Stezenbach wrote: On Thu, Feb 14, 2013 at 05:53:23PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: On

Re: [PATCH 2/5] filetype: add GPT support

2013-02-14 Thread Johannes Stezenbach
On Thu, Feb 14, 2013 at 11:44:30PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: +#define MBR_OSTYPE_EFI_GPT 0xee + +static inline int pmbr_part_valid(const uint8_t *buf) +{ + if (buf[MBR_PART_sys_ind] == MBR_OSTYPE_EFI_GPT + get_unaligned_le32(buf[MBR_PART_start_sect])