public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* RE: [ECOS] eliminating redboot by including 'platform_setup' in default image?
@ 2006-02-23  9:39 vijay.peshkar
  2006-02-23 10:19 ` Andrew Lunn
  0 siblings, 1 reply; 5+ messages in thread
From: vijay.peshkar @ 2006-02-23  9:39 UTC (permalink / raw)
  To: andrew; +Cc: ecos-discuss

Andrew,

Tried that. But then it had used flash addresses to run platform_setup
And executing this code by downloading failed.
Also, I do not have any tool to flash the image to flash(am using
multi-ice 
and axd debugger). Any pointers?.
Finally it would not be a good idea to do bsp porting by flashing the
test images?.


Regards,
Vijay
 
 
------------------------
Vijay Kumar .P
Wipro Technologies,
Tel: 30295119
------------------------


-----Original Message-----
From: Andrew Lunn [mailto:andrew@lunn.ch] 
Sent: Thursday, February 23, 2006 1:32 PM
To: Vijay Kumar Peshkar (WT01 - Semiconductors IP Solutions)
Cc: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] eliminating redboot by including 'platform_setup' in
default image?


On Thu, Feb 23, 2006 at 10:54:35AM +0530, vijay.peshkar@wipro.com wrote:
> Friends,
> 
> Am trying to eliminate redboot in my BSP for ixp425.
> Plan to include the minimal boot code(PLATFORM_SETUP)
> into my vector.S for this purpose.

The correct way to do this is simply build you application with ROM
startup. No need to modify anything else.

        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] 5+ messages in thread

* Re: [ECOS] eliminating redboot by including 'platform_setup' in default image?
  2006-02-23  9:39 [ECOS] eliminating redboot by including 'platform_setup' in default image? vijay.peshkar
@ 2006-02-23 10:19 ` Andrew Lunn
  0 siblings, 0 replies; 5+ messages in thread
From: Andrew Lunn @ 2006-02-23 10:19 UTC (permalink / raw)
  To: vijay.peshkar; +Cc: ecos-discuss

On Thu, Feb 23, 2006 at 02:19:34PM +0530, vijay.peshkar@wipro.com wrote:
> Andrew,
> 
> Tried that. But then it had used flash addresses to run platform_setup
> And executing this code by downloading failed.

Yes, this is what you would expect. It is a ROM image after all!

> Also, I do not have any tool to flash the image to flash(am using
> multi-ice 

Then i suggest you do get a flash programmer. 

You have the normal chicken/egg problem. In order to get software into
the flash you need software running on the board. In order to get
software running on the board you need something in flash. Using a
flash programmer side steps this problem.

The other option is to get your multi-ice to setup the RAM in the same
way that a ROM application does when it starts up. You then need a RAM
application with built in stubs and you might have something that
runs.

> Finally it would not be a good idea to do bsp porting by flashing the
> test images?.

Why not? A lot will depend on how fast your flash programmer is. If it
takes 20 minutes than no, it is probably not practical. If it takes 1
minute than it is not a problem.

I've helped with a port to the AT91SAM7S which i flashed every image.

        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] 5+ messages in thread

* RE: [ECOS] eliminating redboot by including 'platform_setup' in default image?
@ 2006-02-23 10:47 vijay.peshkar
  0 siblings, 0 replies; 5+ messages in thread
From: vijay.peshkar @ 2006-02-23 10:47 UTC (permalink / raw)
  To: andrew; +Cc: ecos-discuss

Andrew,

Thanks for the response.
$> Tried that. But then it had used flash addresses to run 
$platform_setup 
$> And executing this code by downloading failed.
$
$Yes, this is what you would expect. It is a ROM image after all!

:-(

$
$> Also, I do not have any tool to flash the image to flash(am using 
$> multi-ice
$
$Then i suggest you do get a flash programmer. 
$

Any pointers on the flash programmer that can be used for 
ixp425 with strataflash?. 

$You have the normal chicken/egg problem. In order to get 
$software into the flash you need software running on the 
$board. In order to get software running on the board you need 
$something in flash. Using a flash programmer side steps this problem.
$
$The other option is to get your multi-ice to setup the RAM in 
$the same way that a ROM application does when it starts up. 
$You then need a RAM application with built in stubs and you 
$might have something that runs.

The multi-ice does not come with a user friendly front end for doing
this.
I have tried configuring it for clock trigger etc., that's all.
But then I will still have to know on the 'things to do' or
'things redboot does' in ixp425 intialization sequence to move it to
Multi-ice. The 'Intel Xscale IXP42X developers manual' and 
'intel-xscale-core-developers-manual' am refering right now does not
have any specifics on bootup.

$> Finally it would not be a good idea to do bsp porting by 
$flashing the 
$> test images?.
$
$Why not? A lot will depend on how fast your flash programmer 
$is. If it takes 20 minutes than no, it is probably not 
$practical. If it takes 1 minute than it is not a problem.

Yeah. You are right. 
$
$I've helped with a port to the AT91SAM7S which i flashed every image.
$
$        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] 5+ messages in thread

* Re: [ECOS] eliminating redboot by including 'platform_setup' in default image?
  2006-02-23  5:28 vijay.peshkar
@ 2006-02-23  8:39 ` Andrew Lunn
  0 siblings, 0 replies; 5+ messages in thread
From: Andrew Lunn @ 2006-02-23  8:39 UTC (permalink / raw)
  To: vijay.peshkar; +Cc: ecos-discuss

On Thu, Feb 23, 2006 at 10:54:35AM +0530, vijay.peshkar@wipro.com wrote:
> Friends,
> 
> Am trying to eliminate redboot in my BSP for ixp425.
> Plan to include the minimal boot code(PLATFORM_SETUP) 
> into my vector.S for this purpose.

The correct way to do this is simply build you application with ROM
startup. No need to modify anything else.

        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] 5+ messages in thread

* [ECOS] eliminating redboot by including 'platform_setup' in default image?
@ 2006-02-23  5:28 vijay.peshkar
  2006-02-23  8:39 ` Andrew Lunn
  0 siblings, 1 reply; 5+ messages in thread
From: vijay.peshkar @ 2006-02-23  5:28 UTC (permalink / raw)
  To: ecos-discuss

Friends,

Am trying to eliminate redboot in my BSP for ixp425.
Plan to include the minimal boot code(PLATFORM_SETUP) 
into my vector.S for this purpose.

Now, including all of the _platform_setup1 is creating 
problems as the code for building 'mmu tables' into 
ram(0x4000 to 0x8000) is overwriting my image and hence 
my execution gets aborted.
Tried reloacting my image by redefining start location 
in target.ld as 0x10000 instead of 0x0000. But this did 
not change anything. Am still seeing the aborts.

Couple of questions...
1.Now, if the 'default' image building thru configtool 
generates target.ld with ram start as 0x0000, doesn't 
it mean run time the default image does not need the 
above mentioned 'mmu tables' and 'section mapping'?. 
2.But then when do we set the sp set to proper value?. 

Regards,
Vijay


------------------------
Vijay Kumar .P
Wipro Technologies,
Tel: 30295119
------------------------

--
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] 5+ messages in thread

end of thread, other threads:[~2006-02-23  9:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-23  9:39 [ECOS] eliminating redboot by including 'platform_setup' in default image? vijay.peshkar
2006-02-23 10:19 ` Andrew Lunn
  -- strict thread matches above, loose matches on Subject: below --
2006-02-23 10:47 vijay.peshkar
2006-02-23  5:28 vijay.peshkar
2006-02-23  8:39 ` 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).