From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28856 invoked by alias); 1 Jul 2005 08:24:46 -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 28831 invoked by uid 22791); 1 Jul 2005 08:24:38 -0000 Received: from smtpr6.alphanetworks.com (HELO smtpr6.alphanetworks.com) (210.202.42.130) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 01 Jul 2005 08:24:38 +0000 Received: from stevencheng ([10.50.71.1]) by smtpr6.alphanetworks.com (Lotus Domino Release 6.5) with SMTP id 2005070116242541-670 ; Fri, 1 Jul 2005 16:24:25 +0800 Message-ID: <01b601c57e16$764830b0$016ffea9@stevencheng> From: "Steven_cheng" <05071@alphanetworks.com> To: Date: Fri, 01 Jul 2005 08:24:00 -0000 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="big5" Subject: [ECOS] Question about X-SW-Source: 2005-07/txt/msg00010.txt.bz2 Hi All, The following table is the environement. =============================================================== Platform : PowerPC 8245 CPU clock : 300 MHz ( modify include\pkgconf\hal_powerpc_csb281.h by hard-code 333 -> 300 ) RAM clock : 133 MHz ( modify include\pkgconf\hal_powerpc_csb281.h by hard-code 83 -> 133 ) ROM (AMD AM29LV 040B ) : 512K base= 0xfff00000 size= 0x80000 RAM : 256M base= 0x00000000 size= 0x10000000 Template: Cogent PowerPC 8245 Package : Redboot Startup type : ROMRAM =============================================================== /////////////////////// The content of xxx_romram.ldi /////////////////////// MEMORY { ram : ORIGIN = 0, LENGTH = 0x10000000 } SECTIONS { SECTIONS_BEGIN SECTION_vectors (ram, 0, LMA_EQ_VMA) SECTION_text (ram, 0x3400, LMA_EQ_VMA) SECTION_fini (ram, ALIGN (0x4), LMA_EQ_VMA) SECTION_rodata1 (ram, ALIGN (0x8), LMA_EQ_VMA) SECTION_rodata (ram, ALIGN (0x8), LMA_EQ_VMA) SECTION_fixup (ram, ALIGN (0x4), LMA_EQ_VMA) SECTION_gcc_except_table (ram, ALIGN (0x1), LMA_EQ_VMA) SECTION_data (ram, ALIGN (0x8), LMA_EQ_VMA) SECTION_sbss (ram, ALIGN (0x4), LMA_EQ_VMA) SECTION_bss (ram, ALIGN (0x10), LMA_EQ_VMA) CYG_LABEL_DEFN(__heap1) = ALIGN (0x8); SECTIONS_END } /////////////////////// The content of xxx_romram.h /////////////////////// #define CYGMEM_REGION_ram (0) #define CYGMEM_REGION_ram_SIZE (0x10000000) #define CYGMEM_REGION_ram_ATTR (CYGMEM_REGION_ATTR_R | CYGMEM_REGION_ATTR_W) #ifndef __ASSEMBLER__ extern char CYG_LABEL_NAME (__heap1) []; #endif #define CYGMEM_SECTION_heap1 (CYG_LABEL_NAME (__heap1)) #define CYGMEM_SECTION_heap1_SIZE (0x10000000 - (size_t) CYG_LABEL_NAME (__heap1)) /////////////////////// The content of xxx_romram.mlt /////////////////////// version 0 region ram 0 10000000 0 ! section vectors 0 1 0 1 1 0 1 0 0 0 ! section text 0 1 0 1 1 1 1 1 3400 3400 fini fini ! section fini 0 4 0 1 0 1 0 1 rodata1 rodata1 ! section rodata1 0 8 0 1 0 1 0 1 rodata rodata ! section rodata 0 8 0 1 0 1 0 1 fixup fixup ! section fixup 0 4 0 1 0 1 0 1 gcc_except_table gcc_except_table ! section gcc_except_table 0 1 0 1 0 1 0 1 data data ! section data 0 8 0 1 0 1 0 1 sbss sbss ! section sbss 0 4 0 1 0 1 0 1 bss bss ! section bss 0 10 0 1 0 1 0 1 heap1 heap1 ! section heap1 0 8 0 0 0 0 0 0 ! //////////////////// My questions ////////////////////////////////// In the current state, the console port can not show any information. Q1. In the template (Cogent PowerPC 8245), it uses Intel Strata Flash, but we use the different flash (AMD AM29LV 040B). If the flash is only read for RedBoot bootup, do we need change the flash type (ADM -> Intel) ?? Q2. For the environment, are the files (xxx_romram.ldi /xxx_romram.h /xxx_romram.mlt ) configured correct ?? Thanks in advance. Steven Cheng -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss