This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: ROMRAM


I think that the firest thing which happens is the chip select setup.
There may well be a problem with how your chip selects are being configured.

Why is your flash mapped up to FA000000 ?

That is probably around the place the MPC852 wants to put it's internal
memory map -
Perhaps you could locate your flash elsewhere.

-----Original Message-----
From: ecos-discuss-owner@ecos.sourceware.org
[mailto:ecos-discuss-owner@ecos.sourceware.org] On Behalf Of jasmine kohli
Sent: Friday, 23 July 2004 2:04 AM
To: ecos-discuss@sources.redhat.com
Subject: [ECOS]ROMRAM


hi all,
i am trying to bring redboot to my board which has
MPC852T as the processor.
 
i have 32 MB Flash with 64 MB SDRAM.
i have Flash mapped 0xFA000000 and SDRAM mapped at
0x00000000
 
i have the following content in my
mlt_powerpc_myboard_romram.h
#ifndef __ASSEMBLER__
#include <cyg/infra/cyg_type.h>
#include <stddef.h>
#endif
#define CYGMEM_REGION_ram (0)
#define CYGMEM_REGION_ram_SIZE (0x4000000)
#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))
CYG_LABEL_NAME (__heap1))
#define CYGMEM_SECTION_heap1_SIZE (0x4000000 -
(size_t) CYG_LABEL_NAME (__heap1))
 
 
and i have the following in
mlt_powerpc_myboard_romram.ldi file
#include <cyg/infra/cyg_type.inc>
MEMORY
{
    ram : ORIGIN = 0, LENGTH = 0x4000000
}
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
}

 
and the following in mlt_powerpc_myboard_romram.mlt
file
version 0
region ram 0 4000000 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 !

now to the problem--- :( when i start redboot and step
trace through the code, it starts at
0xfa000100 and then straight jumps to 0x00003400 and
hangs.
does anyone have a clue on why this happens.
 
another question that i wanted to ask was do we have
to edit only the mlt_.h and mlt_.ldi file or do we
need to edit the .mlt file as well ,because its
difficult to editr the .mlt file on a linux system.
 
and what are the major differences between all types
of startup -ROM,RAM,ROMRAM

a thank u to all ....
regards,
jasmine

 


		
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]