* [ECOS] How to modifiy the hal_platform_setup.h
@ 2008-11-06 15:48 Zaahir
2008-11-06 16:05 ` Andrew Lunn
0 siblings, 1 reply; 2+ messages in thread
From: Zaahir @ 2008-11-06 15:48 UTC (permalink / raw)
To: ecos-discuss
Hello,
I am new to RedBoot.
Don't know is this the right place to post my quries.
Still......
I am using customised iMx27ADS board.
1> I want to modifiy platform_setup.h is this the right place
packages/hal/arm/mx27/ads/current/include/hal_platform_setup.h
2> I had commented some of the functions in this file , compiled &
downloaded the elf file to target.
using Jtag OPENiceEDS.
I got the commented functions still there. Than I compiled the
complete blank file with same name.
Checked through Jtag in Debug view window got same functions getting
executed (mentioned below with address)
A7F00108 reset_vector
.
.
A7F00118 init_aipi_start
.
.
A7F00160 init_max_start
.
.
A7F0018C init_drive_str
.
.
A7F001B0 init_cs4_start
All this funtions in the above address came from ../../platform_setup.h
file or else where?
How to modify platform_setup.h file?
Please help !!!!!
Thanks & regards,
Zaahir Khan
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ECOS] How to modifiy the hal_platform_setup.h
2008-11-06 15:48 [ECOS] How to modifiy the hal_platform_setup.h Zaahir
@ 2008-11-06 16:05 ` Andrew Lunn
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Lunn @ 2008-11-06 16:05 UTC (permalink / raw)
To: Zaahir; +Cc: ecos-discuss
On Thu, Nov 06, 2008 at 05:37:29PM +0530, Zaahir wrote:
> Hello,
>
> I am new to RedBoot.
>
> Don't know is this the right place to post my quries.
>
> Still......
>
> I am using customised iMx27ADS board.
>
> 1> I want to modifiy platform_setup.h is this the right place
>
> packages/hal/arm/mx27/ads/current/include/hal_platform_setup.h
>
> 2> I had commented some of the functions in this file , compiled &
> downloaded the elf file to target.
>
> using Jtag OPENiceEDS.
>
> I got the commented functions still there. Than I compiled the
> complete blank file with same name.
>
> Checked through Jtag in Debug view window got same functions getting
> executed (mentioned below with address)
>
> A7F00108 reset_vector
> .
> .
> A7F00118 init_aipi_start
> .
> .
> A7F00160 init_max_start
> .
> .
> A7F0018C init_drive_str
> .
> .
> A7F001B0 init_cs4_start
>
>
> All this funtions in the above address came from ../../platform_setup.h
> file or else where?
> How to modify platform_setup.h file?
This is a known problem. platform_setup.h gets pulled into the
vectors.S file. However this is a special file. The code in this file
has to be at the beginning of the image. All the other code gets put
into a library and is then linked to the image. The header file
dependency checking works OK for the library, but not for
vectors.S. So your vectors.s was not recompiled.
rm insall/lib/vectors*
and then rebuild.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-11-06 12:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-06 15:48 [ECOS] How to modifiy the hal_platform_setup.h Zaahir
2008-11-06 16:05 ` Andrew Lunn
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).