public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Adder II (MPC852T), issue while migrating to 32MB memory
@ 2006-07-12 19:41 Andre-John Mas
  2006-07-12 21:02 ` Gary Thomas
  2006-07-12 21:03 ` Gary Thomas
  0 siblings, 2 replies; 3+ messages in thread
From: Andre-John Mas @ 2006-07-12 19:41 UTC (permalink / raw)
  To: ecos-discuss

Hi,

We have an Adder II (MPC852T) board and are in the process of upgrading from 16MB memory to 32MB memory, using a single chip. 

Running our 16MB aware RedBoot on this new setup we had no issues. Now we modified the files in:

   \packages\hal\powerpc\adder\v2_0_51\include\pkgconf\

such that values 'CYGMEM_REGION_ram_SIZE' (in .h files) and 'MEMORY/ram' (in .ldi files) now have the value 0x1800000. In adder.S the 'onboard  DRAM' section is:

        /* ONBOARD DRAM */
        lwi     r3,0x00000081   # 32-bit, UPMA
        lwi     r5,0xFF000E00
        stw     r3,BR1(r4)
        stw     r5,OR1(r4)

Installing the RedBoot and restarting we now get the following displayed:

+$T0b40:fe015518;01:000051a4;

looking in the redboot.elf I see that it falls in the following block:

    if ( correction + 2*(unsigned)MALLOC_ALIGNMENT > (unsigned) size )
fe0154f0:	38 09 00 10 	addi    r0,r9,16
fe0154f4:	7f 80 28 40 	cmplw   cr7,r0,r5
fe0154f8:	40 9d 00 10 	ble-    cr7,fe015508 <_ZN35Cyg_Mempool_dlmalloc_ImplementationC1EPhij+0x60>
        // help catch errors. Don't fail now.
        arenabase = NULL; 
fe0154fc:	38 00 00 00 	li      r0,0
fe015500:	90 03 00 00 	stw     r0,0(r3)
fe015504:	4e 80 00 20 	blr
    else {
        top = (mchunkptr)(base + correction);
fe015508:	7d 24 4a 14 	add     r9,r4,r9
fe01550c:	91 23 00 10 	stw     r9,16(r3)
        set_head(top, arenasize | PREV_INUSE);
fe015510:	80 03 00 04 	lwz     r0,4(r3)
fe015514:	60 00 00 01 	ori     r0,r0,1
fe015518:	90 09 00 04 	stw     r0,4(r9)
fe01551c:	4e 80 00 20 	blr

fe015520 <_ZN35Cyg_Mempool_dlmalloc_Implementation9try_allocEi>:
    }
}

Does anyone have any ideas what I might be missing?

Andre



-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ECOS] Adder II (MPC852T), issue while migrating to 32MB memory
  2006-07-12 19:41 [ECOS] Adder II (MPC852T), issue while migrating to 32MB memory Andre-John Mas
@ 2006-07-12 21:02 ` Gary Thomas
  2006-07-12 21:03 ` Gary Thomas
  1 sibling, 0 replies; 3+ messages in thread
From: Gary Thomas @ 2006-07-12 21:02 UTC (permalink / raw)
  To: ajmas; +Cc: ecos-discuss

Andre-John Mas wrote:
> Hi,
> 
> We have an Adder II (MPC852T) board and are in the process of upgrading from 16MB memory to 32MB memory, using a single chip. 
> 
> Running our 16MB aware RedBoot on this new setup we had no issues. Now we modified the files in:
> 
>    \packages\hal\powerpc\adder\v2_0_51\include\pkgconf\
> 
> such that values 'CYGMEM_REGION_ram_SIZE' (in .h files) and 'MEMORY/ram' (in .ldi files) now have the value 0x1800000. In adder.S the 'onboard  DRAM' section is:
> 
>         /* ONBOARD DRAM */
>         lwi     r3,0x00000081   # 32-bit, UPMA
>         lwi     r5,0xFF000E00
                      -should be-
                      0xFE000E00

You need to change this - it adjusts the size of CS1 (the DRAM)

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ECOS] Adder II (MPC852T), issue while migrating to 32MB memory
  2006-07-12 19:41 [ECOS] Adder II (MPC852T), issue while migrating to 32MB memory Andre-John Mas
  2006-07-12 21:02 ` Gary Thomas
@ 2006-07-12 21:03 ` Gary Thomas
  1 sibling, 0 replies; 3+ messages in thread
From: Gary Thomas @ 2006-07-12 21:03 UTC (permalink / raw)
  To: ajmas; +Cc: ecos-discuss

Andre-John Mas wrote:
> Hi,
> 
> We have an Adder II (MPC852T) board and are in the process of upgrading from 16MB memory to 32MB memory, using a single chip. 
> 
> Running our 16MB aware RedBoot on this new setup we had no issues. Now we modified the files in:
> 
>    \packages\hal\powerpc\adder\v2_0_51\include\pkgconf\
> 
> such that values 'CYGMEM_REGION_ram_SIZE' (in .h files) and 'MEMORY/ram' (in .ldi files) now 
> have the value 0x1800000. In adder.S the 'onboard  DRAM' section is:

Why not 0x2000000?  (32MB)

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-07-12 21:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-12 19:41 [ECOS] Adder II (MPC852T), issue while migrating to 32MB memory Andre-John Mas
2006-07-12 21:02 ` Gary Thomas
2006-07-12 21:03 ` Gary Thomas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).