From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11161 invoked by alias); 5 Jul 2005 12:44:09 -0000 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 Received: (qmail 11139 invoked by uid 22791); 5 Jul 2005 12:44:04 -0000 Received: from otoro.itis.ethz.ch (HELO otoro.itis.ethz.ch) (129.132.24.2) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 05 Jul 2005 12:44:04 +0000 Received: from localhost (localhost [127.0.0.1]) by otoro.itis.ethz.ch (Postfix) with ESMTP id 1C7E05B384; Tue, 5 Jul 2005 14:44:01 +0200 (MEST) Received: from otoro.itis.ethz.ch ([127.0.0.1]) by localhost (otoro [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 24852-01; Tue, 5 Jul 2005 14:44:01 +0200 (MEST) Received: from cadpad (itis-speag-094-dhcp.itis.ethz.ch [129.132.24.94]) by otoro.itis.ethz.ch (Postfix) with SMTP id 9AC485B381; Tue, 5 Jul 2005 14:44:00 +0200 (MEST) Message-ID: <00e801c5815f$360b17a0$5e188481@cadpad> Reply-To: "oliver munz @ s p e a g" From: "oliver munz @ s p e a g" To: , Date: Tue, 05 Jul 2005 12:44:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 0527-0, 04.07.2005), Outbound message X-Antivirus-Status: Clean Subject: [ECOS] Re: Subject: [ECOS] memory layout tool X-SW-Source: 2005-07/txt/msg00046.txt.bz2 Hi 1. At startup the vectors should be in ROM and start from 0 (If Your ROM isn't defined from 0 then it has to be mirrored in the range of 0, and later replaced with a RAM-region, after RAM-initalizing) 2. This mean that the ROM-data don't will be moved in to a RAM-region. http://www.ecoscentric.com/ecospro/doc/html/user-guide/modifying-the-memory-layout.html 3. Most SECTIONS come from the GCC... The real linker-srcript is ...\lib\target.ld in Your eCos-include-dir after building the eCos-libray. The .data section has to be copied from ROM to RAM before the C-code starts (variable initialisation). The .bss section has to be cleared... http://gcc.gnu.org/onlinedocs/gcc-3.4.4/gcc/Variable-Attributes.html#index-g_t_0040code_007bsection_007d-variable-attribute-1671 http://gcc.gnu.org/onlinedocs/ http://www.embedded.com/2000/0002/0002feat2.htm Try to modify first an ROM.ldi of a silminar layout and .h. You only have to edit Memory Startingpoint and size in *.ldi and *.h. Then build a image - redboot or what ever and look at the generated code... Use: arm-elf-objdump -d -h -S Your_image.elf > Your_image.disass Greatings Oli -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss