Re: [U-Boot] [RFC][PATCH v2 17/19] arm cp15: setup mmu and enable dcache

2010-08-11 Thread Wolfgang Denk
Dear Ben Gardiner, In message you wrote: > On Wed, Aug 11, 2010 at 9:31 AM, Ben Gardiner > wrote: > > On Wed, Aug 11, 2010 at 1:56 AM, Heiko Schocher wrote: > >> Can you try > >> > >> http://git.denx.de/?p=u-boot/u-boot-testing.git;a=shortlog;h=refs/heads/arm-reloc-and-cache-support > > This i

Re: [U-Boot] [RFC][PATCH v2 17/19] arm cp15: setup mmu and enable dcache

2010-08-11 Thread Heiko Schocher
Hello Ben, Ben Gardiner wrote: > On Wed, Aug 11, 2010 at 9:31 AM, Ben Gardiner > wrote: >> On Wed, Aug 11, 2010 at 1:56 AM, Heiko Schocher wrote: >>> Can you try >>> >>> http://git.denx.de/?p=u-boot/u-boot-testing.git;a=shortlog;h=refs/heads/arm-reloc-and-cache-support > > This is the commit fr

Re: [U-Boot] [RFC][PATCH v2 17/19] arm cp15: setup mmu and enable dcache

2010-08-11 Thread Ben Gardiner
On Wed, Aug 11, 2010 at 9:31 AM, Ben Gardiner wrote: > On Wed, Aug 11, 2010 at 1:56 AM, Heiko Schocher wrote: >> Can you try >> >> http://git.denx.de/?p=u-boot/u-boot-testing.git;a=shortlog;h=refs/heads/arm-reloc-and-cache-support This is the commit from which I was working -- there have been no

Re: [U-Boot] [RFC][PATCH v2 17/19] arm cp15: setup mmu and enable dcache

2010-08-11 Thread Ben Gardiner
Hello Heiko, On Wed, Aug 11, 2010 at 1:56 AM, Heiko Schocher wrote: > Hello Ben, > > Thanks for trying this patches! My pleasure! Thank you for doing the hard work. > Ben Gardiner wrote: >> On Fri, Aug 6, 2010 at 12:44 PM, Ben Gardiner >> wrote: >> I did get an openocd debugger going with uboo

Re: [U-Boot] [RFC][PATCH v2 17/19] arm cp15: setup mmu and enable dcache

2010-08-10 Thread Heiko Schocher
Hello Ben, Thanks for trying this patches! Ben Gardiner wrote: > On Fri, Aug 6, 2010 at 12:44 PM, Ben Gardiner > wrote: >> On Fri, Aug 6, 2010 at 12:32 PM, Reinhard Meyer >> wrote: >>> The value loaded into SP is IN the location at PC+808... look there. About in 0xc1080078+0x0328 give or t

Re: [U-Boot] [RFC][PATCH v2 17/19] arm cp15: setup mmu and enable dcache

2010-08-10 Thread Ben Gardiner
On Fri, Aug 6, 2010 at 12:44 PM, Ben Gardiner wrote: > On Fri, Aug 6, 2010 at 12:32 PM, Reinhard Meyer > wrote: >> The value loaded into SP is IN the location at PC+808... look there. >>> >>> About in 0xc1080078+0x0328 give or take a word. >>> >> >> And well, the location is mentioned right behin

Re: [U-Boot] [RFC][PATCH v2 17/19] arm cp15: setup mmu and enable dcache

2010-08-06 Thread Ben Gardiner
On Fri, Aug 6, 2010 at 12:32 PM, Reinhard Meyer wrote: > The value loaded into SP is IN the location at PC+808... look there. >> >> About in 0xc1080078+0x0328 give or take a word. >> > > And well, the location is mentioned right behind the ; > > c1080078:       e59fd328        ldr     sp, [pc, #80

Re: [U-Boot] [RFC][PATCH v2 17/19] arm cp15: setup mmu and enable dcache

2010-08-06 Thread Reinhard Meyer
The value loaded into SP is IN the location at PC+808... look there. > About in 0xc1080078+0x0328 give or take a word. > And well, the location is mentioned right behind the ; c1080078: e59fd328ldr sp, [pc, #808] ; c10803a8 Reinhard _

Re: [U-Boot] [RFC][PATCH v2 17/19] arm cp15: setup mmu and enable dcache

2010-08-06 Thread Reinhard Meyer
Ben Gardiner wrote: > But I think that the value loaded to sp is still wrong because of the > restrictions on immediate arguments in ARM instructions. > > with (0x8000 + 128*1024 -16): > --- > c1080078 : > c1080078: e59fd328ldr sp, [pc, #808] ; c10803a8 > c108007c: e3a

Re: [U-Boot] [RFC][PATCH v2 17/19] arm cp15: setup mmu and enable dcache

2010-08-06 Thread Ben Gardiner
Hi Wolfgang, On Fri, Aug 6, 2010 at 11:46 AM, Wolfgang Denk wrote: > Dear Ben Gardiner, > > In message you > wrote: >> >> First, for the 'shared ram' region which is 1...@0x8000 I tried: >> #define CONFIG_SYS_INIT_SP_ADDR (0x8000 + 128*1024 -1) > > The "-1" is probably a bad idea, as yo

Re: [U-Boot] [RFC][PATCH v2 17/19] arm cp15: setup mmu and enable dcache

2010-08-06 Thread Wolfgang Denk
Dear Ben Gardiner, In message you wrote: > > First, for the 'shared ram' region which is 1...@0x8000 I tried: > #define CONFIG_SYS_INIT_SP_ADDR (0x8000 + 128*1024 -1) The "-1" is probably a bad idea, as your stack will point to an odd address then. Try and make this "-8" instead. Or "-1

Re: [U-Boot] [RFC][PATCH v2 17/19] arm cp15: setup mmu and enable dcache

2010-08-06 Thread Ben Gardiner
On Fri, Aug 6, 2010 at 1:29 AM, Heiko Schocher wrote: > Hello Ben, > > Ben Gardiner wrote: >> I'm sorry I don't have more details than that, it is serial-console >> connected only and there is no jtag debugger setup here (yet). > > I think you must debug this ... > >> I'm not sure if the board was

Re: [U-Boot] [RFC][PATCH v2 17/19] arm cp15: setup mmu and enable dcache

2010-08-05 Thread Heiko Schocher
Hello Ben, Ben Gardiner wrote: > On Tue, Aug 3, 2010 at 6:16 AM, Heiko Schocher wrote: >> This has been tested on at91sam9263 and STN8815. >> Again, I didn't check if it has bad effects >> on non-arm926 cores. >> >> Initially I had a "done" bit to only set up page tables >> at the beginning. Howe

Re: [U-Boot] [RFC][PATCH v2 17/19] arm cp15: setup mmu and enable dcache

2010-08-05 Thread Ben Gardiner
On Tue, Aug 3, 2010 at 6:16 AM, Heiko Schocher wrote: > This has been tested on at91sam9263 and STN8815. > Again, I didn't check if it has bad effects > on non-arm926 cores. > > Initially I had a "done" bit to only set up page tables > at the beginning. However, since the aligmnent requirement > w

[U-Boot] [RFC][PATCH v2 17/19] arm cp15: setup mmu and enable dcache

2010-08-03 Thread Heiko Schocher
This has been tested on at91sam9263 and STN8815. Again, I didn't check if it has bad effects on non-arm926 cores. Initially I had a "done" bit to only set up page tables at the beginning. However, since the aligmnent requirement was for the whole object file, this extra integer tool 16kB in BSS, s