From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9038 invoked by alias); 10 Apr 2002 22:31:59 -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 9030 invoked from network); 10 Apr 2002 22:31:56 -0000 Received: from unknown (HELO hermes.fm.intel.com) (192.55.52.18) by sources.redhat.com with SMTP; 10 Apr 2002 22:31:56 -0000 Received: from petasus.fm.intel.com (petasus.fm.intel.com [10.1.192.37]) by hermes.fm.intel.com (8.11.6/8.11.6/d: outer.mc,v 1.38 2002/04/09 21:20:23 root Exp $) with ESMTP id g3AMVnn23173 for ; Wed, 10 Apr 2002 22:31:49 GMT Received: from fmsmsxvs042.fm.intel.com (fmsmsxv042-1.fm.intel.com [132.233.48.110]) by petasus.fm.intel.com (8.11.6/8.11.6/d: inner.mc,v 1.15 2002/04/01 17:51:48 root Exp $) with SMTP id g3AMT2X29000 for ; Wed, 10 Apr 2002 22:29:02 GMT Received: from fmsmsx29.FM.INTEL.COM ([132.233.42.29]) by fmsmsxvs042.fm.intel.com (NAVGW 2.5.1.16) with SMTP id M2002041015342105540 ; Wed, 10 Apr 2002 15:34:21 -0700 Received: by fmsmsx29.fm.intel.com with Internet Mail Service (5.5.2653.19) id <2LKBW54B>; Wed, 10 Apr 2002 15:30:26 -0700 Message-ID: <01BDB7EEF8D4D3119D95009027AE999512F65F2E@FMSMSX33> From: "Agarwal, Lomesh" To: "'Jonathan Larmour'" Cc: eCos Discuss Date: Wed, 10 Apr 2002 15:31:00 -0000 MIME-Version: 1.0 Content-Type: text/plain Subject: RE: [ECOS] Memory layout X-SW-Source: 2002-04/txt/msg00205.txt.bz2 During startup my flash is at 0 then I unalias it. After unaliasing flash sits at 0xc4000000 and RAM sits at 0. What about this: MEMORY { ram : ORIGIN = 0x00000000, LENGTH = 0x10000000 rom : ORIGIN = 0xc4000000, LENGTH = 0x01000000 } SECTIONS { SECTIONS_BEGIN SECTION_rom_vectors (ram, 0x00000000, LMA_EQ_VMA) // vector page gets remapped from ROM to RAM SECTION_text (ram, 0x00002000, LMA_EQ_VMA) SECTION_fini (rom, ALIGN (0x4), LMA_EQ_VMA) SECTION_rodata (rom, ALIGN (0x4), LMA_EQ_VMA) SECTION_rodata1 (rom, ALIGN (0x4), LMA_EQ_VMA) SECTION_fixup (rom, ALIGN (0x4), LMA_EQ_VMA) SECTION_gcc_except_table (rom, ALIGN (0x4), LMA_EQ_VMA) SECTION_fixed_vectors (rom, 0x20, LMA_EQ_VMA) SECTION_data (ram, 0xA000, FOLLOWING (.gcc_except_table)) SECTION_bss (ram, ALIGN (0x4), LMA_EQ_VMA) CYG_LABEL_DEFN(__heap1) = ALIGN (0x8); // CYG_LABEL_DEFN(__pci_window) = 0xf00000; . = CYG_LABEL_DEFN(__pci_window) + 0x100000; SECTIONS_END } -----Original Message----- From: Jonathan Larmour [mailto:jlarmour@redhat.com] Sent: Wednesday, April 10, 2002 3:22 PM To: Agarwal, Lomesh Cc: eCos Discuss Subject: Re: [ECOS] Memory layout "Agarwal, Lomesh" wrote: > > Actually I copied and pasted the wrong file. > My rom.ldi file is as follows: > MEMORY > { > ram : ORIGIN = 0x00000000, LENGTH = 0x10000000 > rom : ORIGIN = 0x00000000, LENGTH = 0x01000000 > } These shouldn't overlap. The comments I wrote before about using the unaliased addresses still holds, so almost certainly your ROM address above should be different and your platform start up code needs to be appropriately written to do the unaliasing/remapping. 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