From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26267 invoked by alias); 10 Apr 2002 20:51:03 -0000 Mailing-List: contact ecos-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@sources.redhat.com Received: (qmail 26257 invoked from network); 10 Apr 2002 20:51:02 -0000 Received: from unknown (HELO executor.cambridge.redhat.com) (195.224.55.237) by sources.redhat.com with SMTP; 10 Apr 2002 20:51:02 -0000 Received: from redhat.com (murgh.cambridge.redhat.com [172.16.18.70]) by executor.cambridge.redhat.com (Postfix) with ESMTP id A9B26ABAF8; Wed, 10 Apr 2002 21:51:01 +0100 (BST) Message-ID: <3CB4A5B5.A359057B@redhat.com> Date: Wed, 10 Apr 2002 13:51:00 -0000 From: Jonathan Larmour Organization: Red Hat UK Ltd. X-Accept-Language: en MIME-Version: 1.0 To: "Agarwal, Lomesh" Cc: eCos Discuss References: <01BDB7EEF8D4D3119D95009027AE999512F65F0A@FMSMSX33> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [ECOS] Memory layout X-SW-Source: 2002-04/txt/msg00191.txt.bz2 "Agarwal, Lomesh" wrote: > > I want to burn RedBoot in a flash. I should use "ROM" start type. Right? Yes. > On my platform during boot Flash is aliased at 0 and after unaliasing flash > my DRAM is at 0 address. I have modified the rom.ldi file as follows: > > MEMORY > { > ram : ORIGIN = 0xA0000000, LENGTH = 0x2000000 > rom : ORIGIN = 0x00000000, LENGTH = 0x800000 > } No, the memory layout should reflect the addresses after unaliasing or MMU mapping. And it's up to the very initial startup code to set up the unaliasing/remapping without relying on linker defined symbols or relocations to do it. Jifl -- Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062 Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss