public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* Re: [ECOS] arm evaluator e7t hangs when executing example progs/tests
@ 2003-04-14 21:37 Matt Kober
  2003-04-15  7:54 ` Chris Garry
  2003-04-15 18:37 ` [ECOS] arm evaluator e7t hangs when executing example progs/tests Jonathan Larmour
  0 siblings, 2 replies; 18+ messages in thread
From: Matt Kober @ 2003-04-14 21:37 UTC (permalink / raw)
  To: JonathanLarmour; +Cc: ecos-discuss

as soon as i import the ecm file that loads the flashdriver and the zlib package the build 
fails due to a invalid undefined reference to `_flash_info'

i unloaded the the zlib and flash package and the build succeeds. also downloading 
and running redboot is no problem, but when i want to debug the hello world example, gdb 
just displays 'continuing' even though i have assertions and tracing enabled. 
isn't it sufficient to use the template in conjunction the ecm file to build a valid image ? 
did i totally miss something ?  here are my build results.

arm-elf-gcc -mcpu=arm7tdmi -mno-short-load-words -Wl,--gc-sections -Wl,-static -g -nostdlib -L/ecos-d/workdir \
/redboot/redboot_e7t_install/lib -Ttarget.ld -o /ecos-d/workdir/redboot/redboot_e7t_install/bin/redboot.elf  \
/ecos-d/workdir/redboot/redboot_e7t_install/lib/version.o
make[1]: Leaving directory `/ecos-d/workdir/redboot/redboot_e7t_build/redboot/v2_0b1'
/ecos-d/workdir/redboot/redboot_e7t_install/lib/libtarget.a(redboot_main.o): In function `do_reset':
make: Leaving directory `/ecos-d/workdir/redboot/redboot_e7t_build'
/ecos-d/cygwin/opt/ecos/ecos-2.0b1/packages/redboot/v2_0b1/src/main.c:149: undefined reference to `_flash_info'
collect2: ld returned 1 exit status
make[1]: *** [/ecos-d/workdir/redboot/redboot_e7t_install/bin/redboot.elf] Error 1
make: *** [build] Error 2       

thanks,

Matt
______________________________________________________________________________
UNICEF bittet um Spenden fur die Kinder im Irak! Hier online an
UNICEF spenden: https://spenden.web.de/unicef/special/?mc=021101


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

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [ECOS] arm evaluator e7t hangs when executing example progs/tests
  2003-04-14 21:37 [ECOS] arm evaluator e7t hangs when executing example progs/tests Matt Kober
@ 2003-04-15  7:54 ` Chris Garry
  2003-04-15 10:36   ` [ECOS] vectors.s Rupesh S
  2003-04-15 18:37 ` [ECOS] arm evaluator e7t hangs when executing example progs/tests Jonathan Larmour
  1 sibling, 1 reply; 18+ messages in thread
From: Chris Garry @ 2003-04-15  7:54 UTC (permalink / raw)
  To: Matt Kober; +Cc: ecos-discuss

----- Original Message ----- 
From: "Matt Kober" <mattkober@web.de>
To: "JonathanLarmour" <jifl@eCosCentric.com>
Cc: <ecos-discuss@sources.redhat.com>
Sent: Monday, April 14, 2003 10:37 PM
Subject: Re: [ECOS] arm evaluator e7t hangs when executing example progs/tests


> as soon as i import the ecm file that loads the flashdriver and the zlib package the build 
> fails due to a invalid undefined reference to `_flash_info'

Are you loading the correct ecm file?  The flashdriver is not loaded with the ecm file I use.
( ecos-2.0b1/packages/hal/arm/e7t/v2_0b1/misc/redboot_ROM.ecm )

> 
> i unloaded the the zlib and flash package and the build succeeds. also downloading 
> and running redboot is no problem, but when i want to debug the hello world example, gdb 
> just displays 'continuing' even though i have assertions and tracing enabled. 
> isn't it sufficient to use the template in conjunction the ecm file to build a valid image ? 
> did i totally miss something ?  here are my build results.
> 

Selecting the E7T/Redboot template and importing the ecm file should be sufficient to build
a valid image.  It works on my system anyway!

> arm-elf-gcc -mcpu=arm7tdmi -mno-short-load-words -Wl,--gc-sections -Wl,-static -g -nostdlib -L/ecos-d/workdir \
> /redboot/redboot_e7t_install/lib -Ttarget.ld -o /ecos-d/workdir/redboot/redboot_e7t_install/bin/redboot.elf  \
> /ecos-d/workdir/redboot/redboot_e7t_install/lib/version.o
> make[1]: Leaving directory `/ecos-d/workdir/redboot/redboot_e7t_build/redboot/v2_0b1'
> /ecos-d/workdir/redboot/redboot_e7t_install/lib/libtarget.a(redboot_main.o): In function `do_reset':
> make: Leaving directory `/ecos-d/workdir/redboot/redboot_e7t_build'
> /ecos-d/cygwin/opt/ecos/ecos-2.0b1/packages/redboot/v2_0b1/src/main.c:149: undefined reference to `_flash_info'
> collect2: ld returned 1 exit status
> make[1]: *** [/ecos-d/workdir/redboot/redboot_e7t_install/bin/redboot.elf] Error 1
> make: *** [build] Error 2       
> 
> thanks,
> 
> Matt
> 

Chris

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

^ permalink raw reply	[flat|nested] 18+ messages in thread

* [ECOS] vectors.s
  2003-04-15  7:54 ` Chris Garry
@ 2003-04-15 10:36   ` Rupesh S
  2003-04-15 11:46     ` Mark Salter
  0 siblings, 1 reply; 18+ messages in thread
From: Rupesh S @ 2003-04-15 10:36 UTC (permalink / raw)
  To: ecos-discuss

Hi,

Can anybody tell me what does the macro "FUNC_START" represent in the
architecture specific assembly files.



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

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [ECOS] vectors.s
  2003-04-15 10:36   ` [ECOS] vectors.s Rupesh S
@ 2003-04-15 11:46     ` Mark Salter
  2003-04-16  3:46       ` Rupesh S
  0 siblings, 1 reply; 18+ messages in thread
From: Mark Salter @ 2003-04-15 11:46 UTC (permalink / raw)
  To: rupeshs; +Cc: ecos-discuss

>>>>> Rupesh S writes:

> Hi,
> Can anybody tell me what does the macro "FUNC_START" represent in the
> architecture specific assembly files.

It is a convenience macro used to declare the start of assembly language
functions.

--Mark

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

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [ECOS] arm evaluator e7t hangs when executing example progs/tests
  2003-04-14 21:37 [ECOS] arm evaluator e7t hangs when executing example progs/tests Matt Kober
  2003-04-15  7:54 ` Chris Garry
@ 2003-04-15 18:37 ` Jonathan Larmour
  1 sibling, 0 replies; 18+ messages in thread
From: Jonathan Larmour @ 2003-04-15 18:37 UTC (permalink / raw)
  To: Matt Kober; +Cc: ecos-discuss

Matt Kober wrote:
> as soon as i import the ecm file that loads the flashdriver and the zlib package the build 
> fails due to a invalid undefined reference to `_flash_info'

My .ecm file doesn't load a flash driver.

Jifl
-- 
eCosCentric    http://www.eCosCentric.com/    The eCos and RedBoot experts
--[ "You can complain because roses have thorns, or you ]--
--[  can rejoice because thorns have roses." -Lincoln   ]-- Opinions==mine


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

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [ECOS] vectors.s
  2003-04-15 11:46     ` Mark Salter
@ 2003-04-16  3:46       ` Rupesh S
  2003-04-16  6:57         ` Andrew Lunn
  0 siblings, 1 reply; 18+ messages in thread
From: Rupesh S @ 2003-04-16  3:46 UTC (permalink / raw)
  To: Mark Salter; +Cc: ecos-discuss

Hi,

In the dissambled code for vectors.s, at the label, "_reset_platform", I
find an instruction, " bra 8000000e".
Unfortunately, I could not find any code attched at that address.It looked
important to me since the reset_platform is the place where the reset vector
code jumps to..,
Can anyone tell me where the branching happens ?
Rupesh

----- Original Message -----
From: "Mark Salter" <msalter@redhat.com>
To: <rupeshs@myw.ltindia.com>
Cc: <ecos-discuss@sources.redhat.com>
Sent: Tuesday, April 15, 2003 4:46 AM
Subject: Re: [ECOS] vectors.s


> >>>>> Rupesh S writes:
>
> > Hi,
> > Can anybody tell me what does the macro "FUNC_START" represent in the
> > architecture specific assembly files.
>
> It is a convenience macro used to declare the start of assembly language
> functions.
>
> --Mark
>
> --
> Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
> and search the list archive: http://sources.redhat.com/ml/ecos-discuss
>


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

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [ECOS] vectors.s
  2003-04-16  3:46       ` Rupesh S
@ 2003-04-16  6:57         ` Andrew Lunn
  2003-04-16  7:58           ` Rupesh S
  0 siblings, 1 reply; 18+ messages in thread
From: Andrew Lunn @ 2003-04-16  6:57 UTC (permalink / raw)
  To: Rupesh S; +Cc: ecos-discuss

On Wed, Apr 16, 2003 at 09:23:11AM -0700, Rupesh S wrote:
> Hi,
> 
> In the dissambled code for vectors.s, at the label, "_reset_platform", I
> find an instruction, " bra 8000000e".
> Unfortunately, I could not find any code attched at that address.It looked
> important to me since the reset_platform is the place where the reset vector
> code jumps to..,
> Can anyone tell me where the branching happens ?
> Rupesh

I don't know your hardware platform, but my guess is your flash is
mapped into memory twice. Once at 0x0, and a second time at
0x800000000. The mapping at 0x0 is used to boot time. It will then
jump into the high memory version and then unmap the low version.

     Andrew

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

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [ECOS] vectors.s
  2003-04-16  6:57         ` Andrew Lunn
@ 2003-04-16  7:58           ` Rupesh S
  2003-04-16  8:00             ` Andrew Lunn
  0 siblings, 1 reply; 18+ messages in thread
From: Rupesh S @ 2003-04-16  7:58 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: ecos-discuss

My architecture is sh3 processor ,7729.
As you said, Flash is mapped at 0x0 & 0x80000000.
But what I don't understand is that, when it jumps to the High memory,
(0x8000000e in my case), shouldn't there  be some or the other pice of code
attached there,
But I'm not seeing any instruction placed at that address.


----- Original Message -----
From: "Andrew Lunn" <andrew.lunn@ascom.ch>
To: "Rupesh S" <rupeshs@myw.ltindia.com>
Cc: <ecos-discuss@sources.redhat.com>
Sent: Tuesday, April 15, 2003 11:56 PM
Subject: Re: [ECOS] vectors.s


> On Wed, Apr 16, 2003 at 09:23:11AM -0700, Rupesh S wrote:
> > Hi,
> >
> > In the dissambled code for vectors.s, at the label, "_reset_platform", I
> > find an instruction, " bra 8000000e".
> > Unfortunately, I could not find any code attched at that address.It
looked
> > important to me since the reset_platform is the place where the reset
vector
> > code jumps to..,
> > Can anyone tell me where the branching happens ?
> > Rupesh
>
> I don't know your hardware platform, but my guess is your flash is
> mapped into memory twice. Once at 0x0, and a second time at
> 0x800000000. The mapping at 0x0 is used to boot time. It will then
> jump into the high memory version and then unmap the low version.
>
>      Andrew
>
> --
> Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
> and search the list archive: http://sources.redhat.com/ml/ecos-discuss
>


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

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [ECOS] vectors.s
  2003-04-16  7:58           ` Rupesh S
@ 2003-04-16  8:00             ` Andrew Lunn
  2003-04-16  8:52               ` Rupesh S
  0 siblings, 1 reply; 18+ messages in thread
From: Andrew Lunn @ 2003-04-16  8:00 UTC (permalink / raw)
  To: Rupesh S; +Cc: ecos-discuss

On Mon, Apr 16, 2001 at 01:35:26PM -0700, Rupesh S wrote:
> My architecture is sh3 processor ,7729.
> As you said, Flash is mapped at 0x0 & 0x80000000.
> But what I don't understand is that, when it jumps to the High memory,
> (0x8000000e in my case), shouldn't there  be some or the other pice of code
> attached there,
> But I'm not seeing any instruction placed at that address.

How are you looking?

    Andrew

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

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [ECOS] vectors.s
  2003-04-16  8:00             ` Andrew Lunn
@ 2003-04-16  8:52               ` Rupesh S
  2003-04-16  8:57                 ` Andrew Lunn
  0 siblings, 1 reply; 18+ messages in thread
From: Rupesh S @ 2003-04-16  8:52 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: ecos-discuss

I looked in the dissambled code generated using sh-elf-objdump,

----- Original Message -----
From: "Andrew Lunn" <andrew.lunn@ascom.ch>
To: "Rupesh S" <rupeshs@myw.ltindia.com>
Cc: <ecos-discuss@sources.redhat.com>
Sent: Wednesday, April 16, 2003 1:00 AM
Subject: Re: [ECOS] vectors.s


> On Mon, Apr 16, 2001 at 01:35:26PM -0700, Rupesh S wrote:
> > My architecture is sh3 processor ,7729.
> > As you said, Flash is mapped at 0x0 & 0x80000000.
> > But what I don't understand is that, when it jumps to the High memory,
> > (0x8000000e in my case), shouldn't there  be some or the other pice of
code
> > attached there,
> > But I'm not seeing any instruction placed at that address.
>
> How are you looking?
>
>     Andrew


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

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [ECOS] vectors.s
  2003-04-16  8:52               ` Rupesh S
@ 2003-04-16  8:57                 ` Andrew Lunn
  2003-04-16  9:15                   ` Rupesh S
  0 siblings, 1 reply; 18+ messages in thread
From: Andrew Lunn @ 2003-04-16  8:57 UTC (permalink / raw)
  To: Rupesh S; +Cc: ecos-discuss

On Mon, Apr 16, 2001 at 02:28:21PM -0700, Rupesh S wrote:
> I looked in the dissambled code generated using sh-elf-objdump,

The code will be position independent. It might looked to be linked to
run at 0x0, but since its position independent, it will run OK at the
flash high address 0x80000000.

      Andrew
 
> ----- Original Message -----
> From: "Andrew Lunn" <andrew.lunn@ascom.ch>
> To: "Rupesh S" <rupeshs@myw.ltindia.com>
> Cc: <ecos-discuss@sources.redhat.com>
> Sent: Wednesday, April 16, 2003 1:00 AM
> Subject: Re: [ECOS] vectors.s
> 
> 
> > On Mon, Apr 16, 2001 at 01:35:26PM -0700, Rupesh S wrote:
> > > My architecture is sh3 processor ,7729.
> > > As you said, Flash is mapped at 0x0 & 0x80000000.
> > > But what I don't understand is that, when it jumps to the High memory,
> > > (0x8000000e in my case), shouldn't there  be some or the other pice of
> code
> > > attached there,
> > > But I'm not seeing any instruction placed at that address.
> >
> > How are you looking?
> >
> >     Andrew
> 

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

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [ECOS] vectors.s
  2003-04-16  8:57                 ` Andrew Lunn
@ 2003-04-16  9:15                   ` Rupesh S
  2003-04-16 12:52                     ` Gary D. Thomas
  2003-04-16 21:37                     ` Jonathan Larmour
  0 siblings, 2 replies; 18+ messages in thread
From: Rupesh S @ 2003-04-16  9:15 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: ecos-discuss

I din't feel that the code is linked for Position independency, 'coz the
jump and bra instructions in the dissambled code seems to have 4 byte full
address operands.

----- Original Message -----
From: "Andrew Lunn" <andrew.lunn@ascom.ch>
To: "Rupesh S" <rupeshs@myw.ltindia.com>
Cc: <ecos-discuss@sources.redhat.com>
Sent: Wednesday, April 16, 2003 1:56 AM
Subject: Re: [ECOS] vectors.s


> On Mon, Apr 16, 2001 at 02:28:21PM -0700, Rupesh S wrote:
> > I looked in the dissambled code generated using sh-elf-objdump,
>
> The code will be position independent. It might looked to be linked to
> run at 0x0, but since its position independent, it will run OK at the
> flash high address 0x80000000.
>
>       Andrew
>
> > ----- Original Message -----
> > From: "Andrew Lunn" <andrew.lunn@ascom.ch>
> > To: "Rupesh S" <rupeshs@myw.ltindia.com>
> > Cc: <ecos-discuss@sources.redhat.com>
> > Sent: Wednesday, April 16, 2003 1:00 AM
> > Subject: Re: [ECOS] vectors.s
> >
> >
> > > On Mon, Apr 16, 2001 at 01:35:26PM -0700, Rupesh S wrote:
> > > > My architecture is sh3 processor ,7729.
> > > > As you said, Flash is mapped at 0x0 & 0x80000000.
> > > > But what I don't understand is that, when it jumps to the High
memory,
> > > > (0x8000000e in my case), shouldn't there  be some or the other pice
of
> > code
> > > > attached there,
> > > > But I'm not seeing any instruction placed at that address.
> > >
> > > How are you looking?
> > >
> > >     Andrew
> >


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

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [ECOS] vectors.s
  2003-04-16  9:15                   ` Rupesh S
@ 2003-04-16 12:52                     ` Gary D. Thomas
  2003-04-16 21:37                     ` Jonathan Larmour
  1 sibling, 0 replies; 18+ messages in thread
From: Gary D. Thomas @ 2003-04-16 12:52 UTC (permalink / raw)
  To: Rupesh S; +Cc: Andrew Lunn, eCos Discussion

On Mon, 2001-04-16 at 15:51, Rupesh S wrote:
> I din't feel that the code is linked for Position independency, 'coz the
> jump and bra instructions in the dissambled code seems to have 4 byte full
> address operands.
> 

IIRC on that hardware, the upper bits control cacheability of
the memory region.  0x0XXXXXXX can be cached, 0x8XXXXXXX cannot.

> ----- Original Message -----
> From: "Andrew Lunn" <andrew.lunn@ascom.ch>
> To: "Rupesh S" <rupeshs@myw.ltindia.com>
> Cc: <ecos-discuss@sources.redhat.com>
> Sent: Wednesday, April 16, 2003 1:56 AM
> Subject: Re: [ECOS] vectors.s
> 
> 
> > On Mon, Apr 16, 2001 at 02:28:21PM -0700, Rupesh S wrote:
> > > I looked in the dissambled code generated using sh-elf-objdump,
> >
> > The code will be position independent. It might looked to be linked to
> > run at 0x0, but since its position independent, it will run OK at the
> > flash high address 0x80000000.
> >
> >       Andrew
> >
> > > ----- Original Message -----
> > > From: "Andrew Lunn" <andrew.lunn@ascom.ch>
> > > To: "Rupesh S" <rupeshs@myw.ltindia.com>
> > > Cc: <ecos-discuss@sources.redhat.com>
> > > Sent: Wednesday, April 16, 2003 1:00 AM
> > > Subject: Re: [ECOS] vectors.s
> > >
> > >
> > > > On Mon, Apr 16, 2001 at 01:35:26PM -0700, Rupesh S wrote:
> > > > > My architecture is sh3 processor ,7729.
> > > > > As you said, Flash is mapped at 0x0 & 0x80000000.
> > > > > But what I don't understand is that, when it jumps to the High
> memory,
> > > > > (0x8000000e in my case), shouldn't there  be some or the other pice
> of
> > > code
> > > > > attached there,
> > > > > But I'm not seeing any instruction placed at that address.
> > > >
> > > > How are you looking?
> > > >
> > > >     Andrew
> > >
> 
> 
> -- 
> Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
> and search the list archive: http://sources.redhat.com/ml/ecos-discuss

-- 
.--------------------------------------------------------.
|       Mind: Embedded Linux and eCos Development        |
|--------------------------------------------------------|
| Gary Thomas              email:  gary.thomas@mind.be   |
| Mind ( http://mind.be )  tel:    +1 (970) 229-1963     |
| gpg: http://www.chez-thomas.org/gary/gpg_key.asc       |
'--------------------------------------------------------'


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

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [ECOS] vectors.s
  2003-04-16  9:15                   ` Rupesh S
  2003-04-16 12:52                     ` Gary D. Thomas
@ 2003-04-16 21:37                     ` Jonathan Larmour
  2003-04-17  6:48                       ` Rupesh S
  2003-04-17 13:29                       ` Rupesh S
  1 sibling, 2 replies; 18+ messages in thread
From: Jonathan Larmour @ 2003-04-16 21:37 UTC (permalink / raw)
  To: Rupesh S; +Cc: Andrew Lunn, ecos-discuss

Rupesh S wrote:
> I din't feel that the code is linked for Position independency, 'coz the
> jump and bra instructions in the dissambled code seems to have 4 byte full
> address operands.


Looking at the memory layout of the SE77x9 HAL, it should be linked to run 
at 0x80000000 anyway, not 0x0.

I suggest you look at and read the comments in 
hal/sh/arch/current/include/hal_var_bank.inc. From that file it seems that 
what is at _reset_platform is data, not code. Although presumably due to 
some fluke of opcodes, it looks like one. Instead it looks like it's 
jumping to the umapped shadow address of the function __reset_platform 
(note the underscores) which is defined in vectors.S.

HTH,

Jifl

> ----- Original Message -----
> From: "Andrew Lunn" <andrew.lunn@ascom.ch>
> To: "Rupesh S" <rupeshs@myw.ltindia.com>
> Cc: <ecos-discuss@sources.redhat.com>
> Sent: Wednesday, April 16, 2003 1:56 AM
> Subject: Re: [ECOS] vectors.s
> 
> 
> 
>>On Mon, Apr 16, 2001 at 02:28:21PM -0700, Rupesh S wrote:
>>
>>>I looked in the dissambled code generated using sh-elf-objdump,
>>
>>The code will be position independent. It might looked to be linked to
>>run at 0x0, but since its position independent, it will run OK at the
>>flash high address 0x80000000.
>>
>>      Andrew
>>
>>
>>>----- Original Message -----
>>>From: "Andrew Lunn" <andrew.lunn@ascom.ch>
>>>To: "Rupesh S" <rupeshs@myw.ltindia.com>
>>>Cc: <ecos-discuss@sources.redhat.com>
>>>Sent: Wednesday, April 16, 2003 1:00 AM
>>>Subject: Re: [ECOS] vectors.s
>>>
>>>
>>>
>>>>On Mon, Apr 16, 2001 at 01:35:26PM -0700, Rupesh S wrote:
>>>>
>>>>>My architecture is sh3 processor ,7729.
>>>>>As you said, Flash is mapped at 0x0 & 0x80000000.
>>>>>But what I don't understand is that, when it jumps to the High
> 
> memory,
> 
>>>>>(0x8000000e in my case), shouldn't there  be some or the other pice
> 
> of
> 
>>>code
>>>
>>>>>attached there,
>>>>>But I'm not seeing any instruction placed at that address.
>>>>
>>>>How are you looking?
>>>>
>>>>    Andrew
>>>
> 
> 


-- 
eCosCentric    http://www.eCosCentric.com/    The eCos and RedBoot experts
--[ "You can complain because roses have thorns, or you ]--
--[  can rejoice because thorns have roses." -Lincoln   ]-- Opinions==mine


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

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [ECOS] vectors.s
  2003-04-16 21:37                     ` Jonathan Larmour
@ 2003-04-17  6:48                       ` Rupesh S
  2003-04-17 13:29                       ` Rupesh S
  1 sibling, 0 replies; 18+ messages in thread
From: Rupesh S @ 2003-04-17  6:48 UTC (permalink / raw)
  To: Jonathan Larmour; +Cc: Andrew Lunn, ecos-discuss

thanx for the info...
As u said, the content of _reset_platform is data (the address of
__reset_platform , which is in vectors.S , and does the hardware inits...).
May be the dissambler would have interpreted the address as a match of the
bra instruction. I was reading that fluke code.
Good leason not to rely on the disassembled code....!!!

I have yet another doubt regarding the same...
if the startup is ROM , then the data there is address of
__reset_platform+0x20000000, why is it done like that...??


----- Original Message -----
From: "Jonathan Larmour" <jifl@eCosCentric.com>
To: "Rupesh S" <rupeshs@myw.ltindia.com>
Cc: "Andrew Lunn" <andrew.lunn@ascom.ch>; <ecos-discuss@sources.redhat.com>
Sent: Wednesday, April 16, 2003 2:37 PM
Subject: Re: [ECOS] vectors.s


> Rupesh S wrote:
> > I din't feel that the code is linked for Position independency, 'coz the
> > jump and bra instructions in the dissambled code seems to have 4 byte
full
> > address operands.
>
>
> Looking at the memory layout of the SE77x9 HAL, it should be linked to run
> at 0x80000000 anyway, not 0x0.
>
> I suggest you look at and read the comments in
> hal/sh/arch/current/include/hal_var_bank.inc. From that file it seems that
> what is at _reset_platform is data, not code. Although presumably due to
> some fluke of opcodes, it looks like one. Instead it looks like it's
> jumping to the umapped shadow address of the function __reset_platform
> (note the underscores) which is defined in vectors.S.
>
> HTH,
>
> Jifl
>
> > ----- Original Message -----
> > From: "Andrew Lunn" <andrew.lunn@ascom.ch>
> > To: "Rupesh S" <rupeshs@myw.ltindia.com>
> > Cc: <ecos-discuss@sources.redhat.com>
> > Sent: Wednesday, April 16, 2003 1:56 AM
> > Subject: Re: [ECOS] vectors.s
> >
> >
> >
> >>On Mon, Apr 16, 2001 at 02:28:21PM -0700, Rupesh S wrote:
> >>
> >>>I looked in the dissambled code generated using sh-elf-objdump,
> >>
> >>The code will be position independent. It might looked to be linked to
> >>run at 0x0, but since its position independent, it will run OK at the
> >>flash high address 0x80000000.
> >>
> >>      Andrew
> >>
> >>
> >>>----- Original Message -----
> >>>From: "Andrew Lunn" <andrew.lunn@ascom.ch>
> >>>To: "Rupesh S" <rupeshs@myw.ltindia.com>
> >>>Cc: <ecos-discuss@sources.redhat.com>
> >>>Sent: Wednesday, April 16, 2003 1:00 AM
> >>>Subject: Re: [ECOS] vectors.s
> >>>
> >>>
> >>>
> >>>>On Mon, Apr 16, 2001 at 01:35:26PM -0700, Rupesh S wrote:
> >>>>
> >>>>>My architecture is sh3 processor ,7729.
> >>>>>As you said, Flash is mapped at 0x0 & 0x80000000.
> >>>>>But what I don't understand is that, when it jumps to the High
> >
> > memory,
> >
> >>>>>(0x8000000e in my case), shouldn't there  be some or the other pice
> >
> > of
> >
> >>>code
> >>>
> >>>>>attached there,
> >>>>>But I'm not seeing any instruction placed at that address.
> >>>>
> >>>>How are you looking?
> >>>>
> >>>>    Andrew
> >>>
> >
> >
>
>
> --
> eCosCentric    http://www.eCosCentric.com/    The eCos and RedBoot experts
> --[ "You can complain because roses have thorns, or you ]--
> --[  can rejoice because thorns have roses." -Lincoln   ]-- Opinions==mine
>
>
> --
> Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
> and search the list archive: http://sources.redhat.com/ml/ecos-discuss
>


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

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [ECOS] vectors.s
  2003-04-16 21:37                     ` Jonathan Larmour
  2003-04-17  6:48                       ` Rupesh S
@ 2003-04-17 13:29                       ` Rupesh S
  2003-04-17 13:53                         ` Jonathan Larmour
  1 sibling, 1 reply; 18+ messages in thread
From: Rupesh S @ 2003-04-17 13:29 UTC (permalink / raw)
  To: Jonathan Larmour; +Cc: Andrew Lunn, ecos-discuss

thanx for the info...
As u said, the content of _reset_platform is data (the address of
__reset_platform , which is in vectors.S , and does the hardware inits...).
May be the dissambler would have interpreted the address as a match of the
bra instruction. I was reading that fluke code.
Good leason not to rely on the disassembled code....!!!

I have yet another doubt regarding the same...
if the startup is ROM , then the data there is address of
__reset_platform+0x20000000, why is it done like that...??


----- Original Message -----
From: "Jonathan Larmour" <jifl@eCosCentric.com>
To: "Rupesh S" <rupeshs@myw.ltindia.com>
Cc: "Andrew Lunn" <andrew.lunn@ascom.ch>; <ecos-discuss@sources.redhat.com>
Sent: Wednesday, April 16, 2003 2:37 PM
Subject: Re: [ECOS] vectors.s


> Rupesh S wrote:
> > I din't feel that the code is linked for Position independency, 'coz the
> > jump and bra instructions in the dissambled code seems to have 4 byte
full
> > address operands.
>
>
> Looking at the memory layout of the SE77x9 HAL, it should be linked to run
> at 0x80000000 anyway, not 0x0.
>
> I suggest you look at and read the comments in
> hal/sh/arch/current/include/hal_var_bank.inc. From that file it seems that
> what is at _reset_platform is data, not code. Although presumably due to
> some fluke of opcodes, it looks like one. Instead it looks like it's
> jumping to the umapped shadow address of the function __reset_platform
> (note the underscores) which is defined in vectors.S.
>
> HTH,
>
> Jifl
>
> > ----- Original Message -----
> > From: "Andrew Lunn" <andrew.lunn@ascom.ch>
> > To: "Rupesh S" <rupeshs@myw.ltindia.com>
> > Cc: <ecos-discuss@sources.redhat.com>
> > Sent: Wednesday, April 16, 2003 1:56 AM
> > Subject: Re: [ECOS] vectors.s
> >
> >
> >
> >>On Mon, Apr 16, 2001 at 02:28:21PM -0700, Rupesh S wrote:
> >>
> >>>I looked in the dissambled code generated using sh-elf-objdump,
> >>
> >>The code will be position independent. It might looked to be linked to
> >>run at 0x0, but since its position independent, it will run OK at the
> >>flash high address 0x80000000.
> >>
> >>      Andrew
> >>
> >>
> >>>----- Original Message -----
> >>>From: "Andrew Lunn" <andrew.lunn@ascom.ch>
> >>>To: "Rupesh S" <rupeshs@myw.ltindia.com>
> >>>Cc: <ecos-discuss@sources.redhat.com>
> >>>Sent: Wednesday, April 16, 2003 1:00 AM
> >>>Subject: Re: [ECOS] vectors.s
> >>>
> >>>
> >>>
> >>>>On Mon, Apr 16, 2001 at 01:35:26PM -0700, Rupesh S wrote:
> >>>>
> >>>>>My architecture is sh3 processor ,7729.
> >>>>>As you said, Flash is mapped at 0x0 & 0x80000000.
> >>>>>But what I don't understand is that, when it jumps to the High
> >
> > memory,
> >
> >>>>>(0x8000000e in my case), shouldn't there  be some or the other pice
> >
> > of
> >
> >>>code
> >>>
> >>>>>attached there,
> >>>>>But I'm not seeing any instruction placed at that address.
> >>>>
> >>>>How are you looking?
> >>>>
> >>>>    Andrew
> >>>
> >
> >
>
>
> --
> eCosCentric    http://www.eCosCentric.com/    The eCos and RedBoot experts
> --[ "You can complain because roses have thorns, or you ]--
> --[  can rejoice because thorns have roses." -Lincoln   ]-- Opinions==mine
>


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

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [ECOS] vectors.s
  2003-04-17 13:29                       ` Rupesh S
@ 2003-04-17 13:53                         ` Jonathan Larmour
  2003-04-18  6:25                           ` Rupesh S
  0 siblings, 1 reply; 18+ messages in thread
From: Jonathan Larmour @ 2003-04-17 13:53 UTC (permalink / raw)
  To: Rupesh S; +Cc: Andrew Lunn, ecos-discuss

Rupesh S wrote:
> thanx for the info...
> As u said, the content of _reset_platform is data (the address of
> __reset_platform , which is in vectors.S , and does the hardware inits...).
> May be the dissambler would have interpreted the address as a match of the
> bra instruction. I was reading that fluke code.
> Good leason not to rely on the disassembled code....!!!
> 
> I have yet another doubt regarding the same...
> if the startup is ROM , then the data there is address of
> __reset_platform+0x20000000, why is it done like that...??

 From the comments I guess 0x80000000 is the address the app is linked at 
to run, but in fact is a mapped (and maybe also cached region), but the 
mappings haven't been set up yet, whereas 0xa0000000 will work regardless. 
Maybe :-). I'm sure an SH3 CPU manual should help.... go to the SuperH site.

Jifl
-- 
eCosCentric    http://www.eCosCentric.com/    The eCos and RedBoot experts
--[ "You can complain because roses have thorns, or you ]--
--[  can rejoice because thorns have roses." -Lincoln   ]-- Opinions==mine


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

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [ECOS] vectors.s
  2003-04-17 13:53                         ` Jonathan Larmour
@ 2003-04-18  6:25                           ` Rupesh S
  0 siblings, 0 replies; 18+ messages in thread
From: Rupesh S @ 2003-04-18  6:25 UTC (permalink / raw)
  To: Jonathan Larmour; +Cc: Andrew Lunn, ecos-discuss

thanks for the clue...

the board flash is mapped for 0x8000000, and the mapping is done at an
initialization code for chip select registers which is apart from the RESET.
The reset vector for SH3 is hooked at 0xA0000000, and the code is linked at
0x80000000. So changing the PC with a value other than 0xA0xxxxxx, would not
provide the appropriate chip selects untill the chipselect registers are
initialized.....

I find that the MMU initializations are commented off.
Out of curiosity ,,,Is it not feasible to handle the MMU related stuff at
the bootloader level ??
Rupesh

----- Original Message -----
From: "Jonathan Larmour" <jifl@eCosCentric.com>
To: "Rupesh S" <rupeshs@myw.ltindia.com>
Cc: "Andrew Lunn" <andrew.lunn@ascom.ch>; <ecos-discuss@sources.redhat.com>
Sent: Thursday, April 17, 2003 6:53 AM
Subject: Re: [ECOS] vectors.s


> Rupesh S wrote:
> > thanx for the info...
> > As u said, the content of _reset_platform is data (the address of
> > __reset_platform , which is in vectors.S , and does the hardware
inits...).
> > May be the dissambler would have interpreted the address as a match of
the
> > bra instruction. I was reading that fluke code.
> > Good leason not to rely on the disassembled code....!!!
> >
> > I have yet another doubt regarding the same...
> > if the startup is ROM , then the data there is address of
> > __reset_platform+0x20000000, why is it done like that...??
>
>  From the comments I guess 0x80000000 is the address the app is linked at
> to run, but in fact is a mapped (and maybe also cached region), but the
> mappings haven't been set up yet, whereas 0xa0000000 will work regardless.
> Maybe :-). I'm sure an SH3 CPU manual should help.... go to the SuperH
site.
>
> Jifl
> --
> eCosCentric    http://www.eCosCentric.com/    The eCos and RedBoot experts
> --[ "You can complain because roses have thorns, or you ]--
> --[  can rejoice because thorns have roses." -Lincoln   ]-- Opinions==mine
>
>
> --
> Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
> and search the list archive: http://sources.redhat.com/ml/ecos-discuss
>


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

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2003-04-18  5:14 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-14 21:37 [ECOS] arm evaluator e7t hangs when executing example progs/tests Matt Kober
2003-04-15  7:54 ` Chris Garry
2003-04-15 10:36   ` [ECOS] vectors.s Rupesh S
2003-04-15 11:46     ` Mark Salter
2003-04-16  3:46       ` Rupesh S
2003-04-16  6:57         ` Andrew Lunn
2003-04-16  7:58           ` Rupesh S
2003-04-16  8:00             ` Andrew Lunn
2003-04-16  8:52               ` Rupesh S
2003-04-16  8:57                 ` Andrew Lunn
2003-04-16  9:15                   ` Rupesh S
2003-04-16 12:52                     ` Gary D. Thomas
2003-04-16 21:37                     ` Jonathan Larmour
2003-04-17  6:48                       ` Rupesh S
2003-04-17 13:29                       ` Rupesh S
2003-04-17 13:53                         ` Jonathan Larmour
2003-04-18  6:25                           ` Rupesh S
2003-04-15 18:37 ` [ECOS] arm evaluator e7t hangs when executing example progs/tests Jonathan Larmour

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).