This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: loading ecos application on Redboot via GDB
- From: Nick Garnett <nickg at redhat dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: 25 Jan 2002 14:33:47 +0000
- Subject: Re: [ECOS] loading ecos application on Redboot via GDB
- Newsgroups: cygnus.sourceware.ecos.d
- Organization: Red Hat UK
- References: <20020125125553.1385.qmail@mailweb31.rediffmail.com>
"satish s mantri" <satish_mantri@rediffmail.com> writes:
> Thanks for the support.
> As per your instruction i have done the following
>
> 1.we booted our i386(Target) with RedBoot.
>
> 2.Our host was on Linux.
>
> 3.We run GDB on the Host with following commands
>
> i)cd BASE_DIR/install/tests/kernel/v1_3_1/tests
> ii) i386-elf-gdb -nw thread_gdb
> iii) set remotebaud 38400
> iv) target remote /dev/ttyS1
> Got the response as
> Remote debugging using /dev/ttyS1
> 0x7f38 in ?? ( )
> at/opt/ecos/ecos-1.3.1/packages/hal/i386/pc/v1_3_1/src/hal_startup.c : 104
> 104 }
> v) load
> Got the response as
> loading section .text, size 0x6db4 lma 0x10000
> Ignoring packet error, continuing......
> Ignoring packet error, continuing......
> Ignoring packet error, continuing......
>
> Note: We are using ecos version 1.3.1 So we dont have prebuilt in th BASE_DIR.
> So we have given the path for cd BASE_DIR/install/tests/kernel/v1_3_1/tests
> We are having the prebuilt in the component repository and not in Build/install tree.
This is your problem, RedBoot is not compatible with 1.3.1. In porting
redboot we had to move the load address for eCos apps from 0x10000 to
above the 1MB level. RedBoot uses all of the memory below 0xa0000, so
loading your app overwrites RedBoot, and it crashes.
Two options are available:
1. Move to using the anoncvs version of eCos.
2. Change the load address of eCos in the .ldi file to 0x100000. But I
am not at all confident that even this would let eCos run properly.
I would *strongly* recommended you choose option 1.
--
Nick Garnett, eCos Kernel Architect
Red Hat, Cambridge, UK