From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21688 invoked by alias); 1 Jul 2005 04:36:56 -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 21680 invoked by uid 22791); 1 Jul 2005 04:36:52 -0000 Received: from 202.54.90.7.ill-bgl.static.vsnl.net.in (HELO asuka.sanyo.co.in) (202.54.90.7) by sourceware.org (qpsmtpd/0.30-dev) with SMTP; Fri, 01 Jul 2005 04:36:52 +0000 Received: from blrexsr1.slti.sanyo.co.in ([10.230.49.142]) by asuka.sanyo.co.in (SMSSMTP 4.0.0.59) with SMTP id M2005070110115202623 for ; Fri, 01 Jul 2005 10:11:53 +0600 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Fri, 01 Jul 2005 04:36:00 -0000 Message-ID: From: "Harsha D" To: Subject: [ECOS] Redboot :: __startup_stack X-SW-Source: 2005-07/txt/msg00002.txt.bz2 Hi =20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Porting : Redboot=09 Platform : ARM922T based board source base : based on Excalibur package =20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Memory layout is=20 -------------------------- SRAM(32KB) 0x00000000 - 0x00008000=09 RAM(32MB) 0x20000000 - 0x02000000 =20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D My ram ldi file --------------------- MEMORY { ram : ORIGIN =3D 0x20000000, LENGTH =3D 0x02000000 } =20 SECTIONS { SECTIONS_BEGIN SECTION_fixed_vectors (ram, 0x20000020, LMA_EQ_VMA) SECTION_rom_vectors (ram, 0x20300000, LMA_EQ_VMA) SECTION_text (ram, ALIGN (0x4), 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), LMA_EQ_VMA) SECTION_bss (ram, ALIGN (0x4), LMA_EQ_VMA) CYG_LABEL_DEFN(__heap1) =3D ALIGN (0x8); SECTIONS_END } =20 [ I am loading redboot at 0x20300000] =20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D What i am trying to do... ----------------------------------- Trying to execute the redboot (ram version). I am using another small boo= tstrap program to=20 initialize/setup the platform. This at present i am not doing in Redboot,= and plan to transfer in the ROM version of Redboot. =20 I want to run Redboot =3D> get messages on hyperterminal, able to connect = from gdb and flash writing =20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Problem ------------ =20 The redboot.bin is executing but "+T050f....." message appears on=20 hypterterminal. When i traced i found that it is pointing to the=20 __startup_stack. When i disassemble ... =20 =20 20300378 <.__GDB_stack>: 20300378: 2030ca70 eorcss ip, r0, r0, ror sl =20 2030037c <.__startup_stack>: 2030037c: 2030da70 eorcss sp, r0, r0, ror sl =20 20300380 <.__exception_stack>: 20300380: 2030b9f0 ldrcssh fp, [r0], -r0 =20 20300384 <.__undef_exception_stack>: 20300384: 2030ba70 eorcss fp, r0, r0, ror sl I am not able to find what is the error here. Googling told me that=20 fixed_vectors should be at 0x20(???) which is not the case for me.=20=20 Will it cause any problems ? If yes then how should i have my memory layo= ut. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =20 Warm regards harsha =20 =20 =20 =20 =20 -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss