From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11809 invoked by alias); 28 Jan 2008 16:08:01 -0000 Received: (qmail 11719 invoked by uid 22791); 28 Jan 2008 16:08:00 -0000 X-Spam-Check-By: sourceware.org Received: from mail.gmx.net (HELO mail.gmx.net) (213.165.64.20) by sourceware.org (qpsmtpd/0.31) with SMTP; Mon, 28 Jan 2008 16:07:41 +0000 Received: (qmail 2637 invoked by uid 0); 28 Jan 2008 16:07:38 -0000 Received: from 128.131.86.182 by www002.gmx.net with HTTP; Mon, 28 Jan 2008 17:07:38 +0100 (CET) Content-Type: text/plain; charset="us-ascii" Date: Mon, 28 Jan 2008 16:08:00 -0000 From: "Alois Z." Message-ID: <20080128160738.64350@gmx.net> MIME-Version: 1.0 To: ecos-discuss@sources.redhat.com X-Authenticated: #979605 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) Content-Transfer-Encoding: 7bit X-GMX-UID: 8sqoc1ZeTiE+YOaTaWRwp7B9ZUVSRBcM X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] RAM Images on AT91SAM7s256 X-SW-Source: 2008-01/txt/msg00190.txt.bz2 Hi, I currently working with a AT91SAM7s256 based board. For debugging and testing I like to devlop RAM only images. As the existing eCos support for this platform has only definitions for rom images I tried to use the existing files for ram linker file definitions. After looking through several ldi files and googling around I'm not quite shure if made the right placement for the 'SECTION_rom_vectors' and the 'SECTION_fixed_vectors' sections. Currently my ram.ldi looks like: MEMORY { ram : ORIGIN = 0x00200000, LENGTH = 0x10000 } SECTIONS { SECTIONS_BEGIN SECTION_rom_vectors (ram, 0x00200000, LMA_EQ_VMA) SECTION_fixed_vectors (ram, ALIGN (0x1), LMA_EQ_VMA) SECTION_text (ram, ALIGN (0x1), LMA_EQ_VMA) SECTION_fini (ram, ALIGN (0x4), LMA_EQ_VMA) SECTION_rodata (ram, ALIGN (0x4), LMA_EQ_VMA) SECTION_rodata1 (ram, ALIGN (0x4), LMA_EQ_VMA) SECTION_fixup (ram, ALIGN (0x4), LMA_EQ_VMA) SECTION_gcc_except_table (ram, ALIGN (0x4), LMA_EQ_VMA) SECTION_data (ram, ALIGN (0x4), FOLLOWING (.gcc_except_table)) SECTION_bss (ram, ALIGN (0x4), LMA_EQ_VMA) CYG_LABEL_DEFN(__heap1) = ALIGN (0x8); SECTIONS_END } the original rom.ldi has been: MEMORY { ram : ORIGIN = 0x00200000, LENGTH = 0x10000 rom : ORIGIN = 0x00100000, LENGTH = 0x40000 } SECTIONS { SECTIONS_BEGIN CYG_LABEL_DEFN(__reserved_bootmon) = 0x00000000; . = CYG_LABEL_DEFN(__reserved_bootmon) + 0x01000; SECTION_rom_vectors (rom, CYGNUM_HAL_ARM_AT91_IMAGE_ADDRESS, LMA_EQ_VMA) SECTION_text (rom, ALIGN (0x1), 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 (ram, 0x00200040, LMA_EQ_VMA) SECTION_data (ram, ALIGN (0x4), FOLLOWING (.gcc_except_table)) SECTION_bss (ram, ALIGN (0x4), LMA_EQ_VMA) CYG_LABEL_DEFN(__heap1) = ALIGN (0x8); SECTIONS_END } Did I made a correct placement or not? Thanks in advance, Alois -- GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS. Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss