From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26475 invoked by alias); 12 Jul 2006 19:41:04 -0000 Received: (qmail 26451 invoked by uid 22791); 12 Jul 2006 19:41:03 -0000 X-Spam-Check-By: sourceware.org Received: from tomts25.bellnexxia.net (HELO tomts25-srv.bellnexxia.net) (209.226.175.188) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 12 Jul 2006 19:41:02 +0000 Received: from smtp1.sympatico.ca ([209.226.175.146]) by tomts25-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with SMTP id <20060712194059.IVAK1747.tomts25-srv.bellnexxia.net@smtp1.sympatico.ca> for ; Wed, 12 Jul 2006 15:40:59 -0400 X-Mailer: Openwave WebEngine, version 2.8.11 (webedge20-101-194-20030622) From: Andre-John Mas Reply-To: ajmas@bigfoot.com To: Date: Wed, 12 Jul 2006 19:41:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Message-Id: <20060712194059.IVAK1747.tomts25-srv.bellnexxia.net@smtp1.sympatico.ca> X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] Adder II (MPC852T), issue while migrating to 32MB memory X-SW-Source: 2006-07/txt/msg00077.txt.bz2 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