Re: [PATCH] arm: write image checksums into the barebox header

2013-04-17 Thread Sascha Hauer
On Wed, Apr 17, 2013 at 03:18:00PM +0200, Jan Luebbe wrote: > Signed-off-by: Jan Luebbe > --- > Makefile | 2 +- > arch/arm/include/asm/barebox-arm-head.h| 2 + > arch/arm/mach-at91/include/mach/barebox-arm-head.h | 2 + > include/filety

Re: [PATCH] am33xx: add defines for GPIOs

2013-04-17 Thread Sascha Hauer
On Wed, Apr 17, 2013 at 07:12:49PM +0200, Jan Luebbe wrote: > Signed-off-by: Jan Luebbe Applied, thanks Sascha > --- > arch/arm/mach-omap/include/mach/am33xx-clock.h |2 ++ > arch/arm/mach-omap/include/mach/am33xx-silicon.h |6 ++ > 2 files changed, 8 insertions(+) > > diff --gi

Re: [PATCH] am33xx-clock: configure PLLs based on oscillator frequency

2013-04-17 Thread Sascha Hauer
On Wed, Apr 17, 2013 at 03:17:11PM +0200, Jan Luebbe wrote: > Signed-off-by: Jan Luebbe This patch deserves a bit more description why it does what it does and also that it includes no functional change. > --- > arch/arm/mach-omap/include/mach/am33xx-clock.h | 15 +-- > 1 file chang

Re: [PATCH] arm: omap: am33xx: store boot source info from ROM loader

2013-04-17 Thread Sascha Hauer
On Wed, Apr 17, 2013 at 03:16:25PM +0200, Jan Luebbe wrote: > The ROM loader passes the address of a buffer to the MLO in > register 0. Store this data so we can find the boot source later. > > Signed-off-by: Jan Luebbe Applied, thanks Sascha > --- > arch/arm/boards/beaglebone/lowlevel.c

Re: [PATCH] omap4 regression: set correct boot source

2013-04-17 Thread Sascha Hauer
On Tue, Apr 16, 2013 at 11:32:01PM +0200, Vicente Bergas wrote: > > Signed-off-by: Vicente Bergas Folded into the original patch breaking it. Sascha > --- > arch/arm/mach-omap/omap4_generic.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/arch/arm/mach-omap/om

Re: [PATCH] Remove unimplemented usb_driver_unregister declaration

2013-04-17 Thread Sascha Hauer
On Tue, Apr 16, 2013 at 09:36:09PM +0400, Alexander Shiyan wrote: > We do not have usb_driver_unregister function, so remove this declaration. > > Signed-off-by: Alexander Shiyan Applied, thanks Sascha > --- > include/usb/usb.h | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/include/

[PATCH] mx6-sabrelite: Setup CCM_CCOSR register

2013-04-17 Thread Fabio Estevam
From: Fabio Estevam Setup CCM_CCOSR register to provide a CKO1 clock frequency of 16.5 MHz. CKO1 drives sgtl5000 codec clock on mx6qsabrelite and doing this setup in the bootloader will allow us to remove a lot of code in arch/arm/mach-imx/mach-imx6q.c from the mainline kernel. Signed-off-by

[PATCH] defaultenv-2: init: display prompt after running /env/init/*

2013-04-17 Thread Jan Luebbe
This allows init scripts to print messages to the console without messing up the timeout prompt. Signed-off-by: Jan Luebbe --- defaultenv-2/base/bin/init | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/defaultenv-2/base/bin/init b/defaultenv-2/base/bin/init ind

[PATCH] am33xx: add defines for GPIOs

2013-04-17 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- arch/arm/mach-omap/include/mach/am33xx-clock.h |2 ++ arch/arm/mach-omap/include/mach/am33xx-silicon.h |6 ++ 2 files changed, 8 insertions(+) diff --git a/arch/arm/mach-omap/include/mach/am33xx-clock.h b/arch/arm/mach-omap/include/mach/am33xx-clock.h

[PATCH] arm: write image checksums into the barebox header

2013-04-17 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- Makefile | 2 +- arch/arm/include/asm/barebox-arm-head.h| 2 + arch/arm/mach-at91/include/mach/barebox-arm-head.h | 2 + include/filetype.h | 4 +- scripts/.gitignore

[PATCH] am33xx-clock: configure PLLs based on oscillator frequency

2013-04-17 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- arch/arm/mach-omap/include/mach/am33xx-clock.h | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/arch/arm/mach-omap/include/mach/am33xx-clock.h b/arch/arm/mach-omap/include/mach/am33xx-clock.h index 39c107f..f496756 100644 --- a/ar

[PATCH] arm: omap: am33xx: store boot source info from ROM loader

2013-04-17 Thread Jan Luebbe
The ROM loader passes the address of a buffer to the MLO in register 0. Store this data so we can find the boot source later. Signed-off-by: Jan Luebbe --- arch/arm/boards/beaglebone/lowlevel.c| 4 +++- arch/arm/mach-omap/Makefile | 2 +- arch/arm/mach-omap/am3

[PATCH] environment: support redundant environments

2013-04-17 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- arch/arm/mach-omap/omap_generic.c | 14 +++-- commands/loadenv.c| 23 ++--- commands/saveenv.c| 42 --- common/environment.c | 7 ++- common/startup.c

Re: Boot from SD fail after 2013.02

2013-04-17 Thread Sascha Hauer
On Wed, Apr 17, 2013 at 04:19:32PM +0400, Alexander Shiyan wrote: > > On Wed, Apr 17, 2013 at 03:40:29PM +0400, Alexander Shiyan wrote: > > > > On Wed, Apr 17, 2013 at 12:40:21PM +0400, Alexander Shiyan wrote: > > > > > Hello. > > > > > > > > > > I found strange problem with boot from SD after 20

Re[2]: Boot from SD fail after 2013.02

2013-04-17 Thread Alexander Shiyan
> On Wed, Apr 17, 2013 at 03:40:29PM +0400, Alexander Shiyan wrote: > > > On Wed, Apr 17, 2013 at 12:40:21PM +0400, Alexander Shiyan wrote: > > > > Hello. > > > > > > > > I found strange problem with boot from SD after 2013.02 release. > > > > Using a git-bisect I found problem start point, so: >

Re: Boot from SD fail after 2013.02

2013-04-17 Thread Sascha Hauer
On Wed, Apr 17, 2013 at 03:40:29PM +0400, Alexander Shiyan wrote: > > On Wed, Apr 17, 2013 at 12:40:21PM +0400, Alexander Shiyan wrote: > > > Hello. > > > > > > I found strange problem with boot from SD after 2013.02 release. > > > Using a git-bisect I found problem start point, so: > > > > > >

Re[2]: Boot from SD fail after 2013.02

2013-04-17 Thread Alexander Shiyan
> On Wed, Apr 17, 2013 at 12:40:21PM +0400, Alexander Shiyan wrote: > > Hello. > > > > I found strange problem with boot from SD after 2013.02 release. > > Using a git-bisect I found problem start point, so: > > > > 8e19ee94ab7aea50635845de31daef1b593e1205 is the first bad commit > > commit 8e19

[PATCH 1/2] defaultenv-2: Fix verbose booting

2013-04-17 Thread Sascha Hauer
During option parsing we use the variable BOOT_BOOTMOPTS, all other scripts use BOOT_BOOTM_OPTS though. Fix this by using the same variable everywhere. Signed-off-by: Sascha Hauer --- defaultenv-2/base/bin/boot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/defaultenv-2/base

[PATCH 2/2] defaultenv-2: net: use oftree when existing

2013-04-17 Thread Sascha Hauer
For booting with devicetree we had to adjust /env/boot/net manually. Instead, test if a devicetree exists and if yes, use it. This makes for a better default. Signed-off-by: Sascha Hauer --- defaultenv-2/base/boot/net | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/defa

[PATCH 2/7] memory commands: move memory_display to separate file

2013-04-17 Thread Sascha Hauer
memory_display is a function which should generally be available. Currently it depends on memory command support being compiled in, so move the function to a separate file. Signed-off-by: Sascha Hauer --- commands/mem.c | 68 - common/Make

[PATCH 6/7] memory commands: separate into one file per command

2013-04-17 Thread Sascha Hauer
Normally in commands we have one file per command which is named like the command itself. The memory commands are an exception to this. This patch changes this by separating the memory commands. This also has the effect that the memory commands can now be selected individually. Along the way we add

[PATCH 7/7] Add memory modify command (mm)

2013-04-17 Thread Sascha Hauer
As of now we have no way to manipulate individual bits of registers on the command line. This introduces a memory modify command which allows this. It has the syntax: mm [OPTIONS] With [OPTIONS] being the usual memory command options (-b, -w, -l, -d ). Signed-off-by: Sascha Hauer --- comman

[PATCH 5/7] memory commands: make rw_buf global

2013-04-17 Thread Sascha Hauer
The rw_buf is used by several memory commands. Make it global since we want to split the memory commands into separate files. Also rename it to mem_rw_buf. Signed-off-by: Sascha Hauer --- commands/mem.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/comman

[PATCH 1/7] memory commands: export common functions

2013-04-17 Thread Sascha Hauer
The memory commands all use open_and_lseek and mem_parse_options. Export them to be able to split the memory commands into separate files. Signed-off-by: Sascha Hauer --- commands/mem.c | 8 ++-- include/common.h | 4 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/com

[PATCH 4/7] memory commands: cleanup initialization

2013-04-17 Thread Sascha Hauer
- return -ENOMEM instead of -1 - return the result of platform_driver_register Signed-off-by: Sascha Hauer --- commands/mem.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/commands/mem.c b/commands/mem.c index d48f92e..5bef3f7 100644 --- a/commands/mem.c +++ b/c

[PATCH] memory commands

2013-04-17 Thread Sascha Hauer
This series contains some cleanups for the memory commands and a new memory command: mm. 'mm' allows to manipulate registers bitwise. Sascha Sascha Hauer (7): memory commands: export common functions memory commands: mov

[PATCH 3/7] Use a common define for RW_BUF_SIZE

2013-04-17 Thread Sascha Hauer
Signed-off-by: Sascha Hauer --- commands/mem.c | 1 - include/common.h | 1 + lib/copy_file.c | 2 -- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/commands/mem.c b/commands/mem.c index a4a1658..d48f92e 100644 --- a/commands/mem.c +++ b/commands/mem.c @@ -39,7 +39,6 @@ #define

Re: Boot from SD fail after 2013.02

2013-04-17 Thread Sascha Hauer
On Wed, Apr 17, 2013 at 12:40:21PM +0400, Alexander Shiyan wrote: > Hello. > > I found strange problem with boot from SD after 2013.02 release. > Using a git-bisect I found problem start point, so: > > 8e19ee94ab7aea50635845de31daef1b593e1205 is the first bad commit > commit 8e19ee94ab7aea506358

Re: [PATCH] omap4 regression: set correct boot source

2013-04-17 Thread Jan Lübbe
On Tue, 2013-04-16 at 23:32 +0200, Vicente Bergas wrote: > Signed-off-by: Vicente Bergas > --- > arch/arm/mach-omap/omap4_generic.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/arch/arm/mach-omap/omap4_generic.c > b/arch/arm/mach-omap/omap4_generic.c > index b3