public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Andre-John Mas <ajmas@sympatico.ca>
To: <ecos-discuss@ecos.sourceware.org>
Subject: [ECOS] Adder II (MPC852T), issue while migrating to 32MB memory
Date: Wed, 12 Jul 2006 19:41:00 -0000	[thread overview]
Message-ID: <20060712194059.IVAK1747.tomts25-srv.bellnexxia.net@smtp1.sympatico.ca> (raw)

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

             reply	other threads:[~2006-07-12 19:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-12 19:41 Andre-John Mas [this message]
2006-07-12 21:02 ` Gary Thomas
2006-07-12 21:03 ` Gary Thomas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060712194059.IVAK1747.tomts25-srv.bellnexxia.net@smtp1.sympatico.ca \
    --to=ajmas@sympatico.ca \
    --cc=ajmas@bigfoot.com \
    --cc=ecos-discuss@ecos.sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).