Re: [PATCH] ARM: Fix relocation if image end past uncompressed kernel end

2011-04-28 Thread Tony Lindgren
* Tony Lindgren [110427 23:35]: > * Nicolas Pitre [110428 01:12]: > > On Wed, 27 Apr 2011, Tony Lindgren wrote: > > > > > * Tony Lindgren [110427 05:44]: > > > > We can't overwrite the running code when relocating only a small amount, > > > > say 0x100 or so. > > > > > > > > There's no need to

Re: [PATCH] ARM: Fix relocation if image end past uncompressed kernel end

2011-04-27 Thread Tony Lindgren
* Nicolas Pitre [110428 01:12]: > On Wed, 27 Apr 2011, Tony Lindgren wrote: > > > * Tony Lindgren [110427 05:44]: > > > We can't overwrite the running code when relocating only a small amount, > > > say 0x100 or so. > > > > > > There's no need to relocate all the way past the compressed kernel,

Re: [PATCH] ARM: Fix relocation if image end past uncompressed kernel end

2011-04-27 Thread Nicolas Pitre
On Wed, 27 Apr 2011, Tony Lindgren wrote: > * Tony Lindgren [110427 05:44]: > > We can't overwrite the running code when relocating only a small amount, > > say 0x100 or so. > > > > There's no need to relocate all the way past the compressed kernel, > > we just need to relocate past the size of

Re: [PATCH] ARM: Fix relocation if image end past uncompressed kernel end

2011-04-27 Thread Tony Lindgren
* Tony Lindgren [110427 05:44]: > * Nicolas Pitre [110421 06:18]: > > On Thu, 21 Apr 2011, Tony Lindgren wrote: > > > > > Otherwise we end up overwriting ourselves. This fixes booting > > > on n900 after commit 6d7d0ae51574943bf571d269da3243257a2d15db > > > (ARM: 6750/1: improvements to compress

Re: [PATCH] ARM: Fix relocation if image end past uncompressed kernel end

2011-04-27 Thread Tony Lindgren
* Nicolas Pitre [110421 06:18]: > On Thu, 21 Apr 2011, Tony Lindgren wrote: > > > Otherwise we end up overwriting ourselves. This fixes booting > > on n900 after commit 6d7d0ae51574943bf571d269da3243257a2d15db > > (ARM: 6750/1: improvements to compressed/head.S). > > > > Signed-off-by: Tony Lind

Re: [PATCH] ARM: Fix relocation if image end past uncompressed kernel end

2011-04-26 Thread Tony Lindgren
* Nicolas Pitre [110422 17:08]: > On Thu, 21 Apr 2011, Tony Lindgren wrote: > > > * Nicolas Pitre [110421 20:20]: > > > I found the bugger. The problem was a bad stack alignment. > > > > .. as this patch won't solve the n900 booting problem with zImage. > > With LZMA I'm still also getting "LZ

Re: [PATCH] ARM: Fix relocation if image end past uncompressed kernel end

2011-04-22 Thread Nicolas Pitre
On Thu, 21 Apr 2011, Tony Lindgren wrote: > * Nicolas Pitre [110421 20:20]: > > I found the bugger. The problem was a bad stack alignment. > > .. as this patch won't solve the n900 booting problem with zImage. > With LZMA I'm still also getting "LZMA data is corrupt". Hmmm.. Is it possibl

Re: [PATCH] ARM: Fix relocation if image end past uncompressed kernel end

2011-04-21 Thread Tony Lindgren
* Nicolas Pitre [110421 20:20]: > On Thu, 21 Apr 2011, Nicolas Pitre wrote: > > > On Thu, 21 Apr 2011, Nicolas Pitre wrote: > > > > > On Thu, 21 Apr 2011, Tony Lindgren wrote: > > > > > > > Otherwise we end up overwriting ourselves. This fixes booting > > > > on n900 after commit 6d7d0ae5157494

Re: [PATCH] ARM: Fix relocation if image end past uncompressed kernel end

2011-04-21 Thread Tony Lindgren
* Nicolas Pitre [110421 16:18]: > On Thu, 21 Apr 2011, Tony Lindgren wrote: > > > Otherwise we end up overwriting ourselves. This fixes booting > > on n900 after commit 6d7d0ae51574943bf571d269da3243257a2d15db > > (ARM: 6750/1: improvements to compressed/head.S). > > > > Signed-off-by: Tony Lind

Re: [PATCH] ARM: Fix relocation if image end past uncompressed kernel end

2011-04-21 Thread Shawn Guo
On Fri, Apr 22, 2011 at 01:19:14PM +0800, Shawn Guo wrote: > > - >8 > > > > From: Nicolas Pitre > > > > ARM: zImage: make sure the stack is 64-bit aligned > > > > With ARMv5+ and EABI, the compiler expects a 64-bit aligned stack so > > instructions like STRD and LDRD can be used. Without t

Re: [PATCH] ARM: Fix relocation if image end past uncompressed kernel end

2011-04-21 Thread Shawn Guo
On Thu, Apr 21, 2011 at 11:23:22PM -0400, Nicolas Pitre wrote: > On Thu, 21 Apr 2011, Nicolas Pitre wrote: > > > On Thu, 21 Apr 2011, Nicolas Pitre wrote: > > > > > On Thu, 21 Apr 2011, Tony Lindgren wrote: > > > > > > > Otherwise we end up overwriting ourselves. This fixes booting > > > > on n9

Re: [PATCH] ARM: Fix relocation if image end past uncompressed kernel end

2011-04-21 Thread Nicolas Pitre
On Thu, 21 Apr 2011, Nicolas Pitre wrote: > On Thu, 21 Apr 2011, Nicolas Pitre wrote: > > > On Thu, 21 Apr 2011, Tony Lindgren wrote: > > > > > Otherwise we end up overwriting ourselves. This fixes booting > > > on n900 after commit 6d7d0ae51574943bf571d269da3243257a2d15db > > > (ARM: 6750/1: im

Re: [PATCH] ARM: Fix relocation if image end past uncompressed kernel end

2011-04-21 Thread Nicolas Pitre
On Thu, 21 Apr 2011, Nicolas Pitre wrote: > On Thu, 21 Apr 2011, Tony Lindgren wrote: > > > Otherwise we end up overwriting ourselves. This fixes booting > > on n900 after commit 6d7d0ae51574943bf571d269da3243257a2d15db > > (ARM: 6750/1: improvements to compressed/head.S). > > > > Signed-off-by:

Re: [PATCH] ARM: Fix relocation if image end past uncompressed kernel end

2011-04-21 Thread Nicolas Pitre
On Thu, 21 Apr 2011, Tony Lindgren wrote: > Otherwise we end up overwriting ourselves. This fixes booting > on n900 after commit 6d7d0ae51574943bf571d269da3243257a2d15db > (ARM: 6750/1: improvements to compressed/head.S). > > Signed-off-by: Tony Lindgren I don't understand why this is needed.

[PATCH] ARM: Fix relocation if image end past uncompressed kernel end

2011-04-21 Thread Tony Lindgren
Otherwise we end up overwriting ourselves. This fixes booting on n900 after commit 6d7d0ae51574943bf571d269da3243257a2d15db (ARM: 6750/1: improvements to compressed/head.S). Signed-off-by: Tony Lindgren --- a/arch/arm/boot/compressed/head.S +++ b/arch/arm/boot/compressed/head.S @@ -282,6 +282,7