[ECOS] Adder II (MPC852T), issue while migrating to 32MB memory

Andre-John Mas ajmas@sympatico.ca
Wed Jul 12 19:41:00 GMT 2006


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



More information about the Ecos-discuss mailing list