[ECOS] Question about
Steven_cheng
05071@alphanetworks.com
Fri Jul 1 08:24:00 GMT 2005
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
More information about the Ecos-discuss
mailing list