public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Starting with eCos : i386 target and hello application
@ 2012-03-30 14:19 f.carrai
  2012-04-05 16:24 ` Fabrizio Carrai
  0 siblings, 1 reply; 3+ messages in thread
From: f.carrai @ 2012-03-30 14:19 UTC (permalink / raw)
  To: ecos-discuss

Hello everybody,

this is my first question to the list. I’m not able to run the ‘hello’ 
application sampled in Ecos v3.0. I’m working with a standard i386 PC as 
target 
on which I successfully installed GRUB and REDBOOT. When Redboot starts it 
shows:

Platform: PC (I386)
RAM: 0x00100000-0x040F0000 [0x00195130-0x01000000]

I built eCos using the “i386 PC target with RTL8139 ethernet” template and 
then the hello application from the examples.
When I try to download via TFTP the ‘hello’ image, I got “Can’t load ELF File 
– program headers out of order”.
While investigating, I realized the start address of the Redboot and of Hello 
are the same : 0x0108000.

Here I’m confused. May I load the hello code everywhere in the available RAM ?
Just to try, I loaded the image at 0x0208000 and the expected “Raw file 
loaded…:” show up.
But when I gave the GO command nothing happened. 

Before to continue, am I doing right ?

Thanks in advance.

Fab

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

* Re: [ECOS] Starting with eCos : i386 target and hello application
  2012-03-30 14:19 [ECOS] Starting with eCos : i386 target and hello application f.carrai
@ 2012-04-05 16:24 ` Fabrizio Carrai
  2012-04-05 19:29   ` [ECOS] " John Dallaway
  0 siblings, 1 reply; 3+ messages in thread
From: Fabrizio Carrai @ 2012-04-05 16:24 UTC (permalink / raw)
  To: ecos-discuss

Ok, I solved the problem. When we develop an application that have to
be loaded by Redboot that, in turn, has been loaded by GRUB, it is
necessary to select the "Load into higher memory (2MB)"
(CYGHWR_HAL_I386_PC_LOAD_HIGH macro name) option under "i386 PC
target" in the eCos configuration tool.

The option sets the application entry point to 0x208000, above the
Redboot area (info on the memory left free by Redboot are displayed at
the boot).

Bye!
F.

Il 30 marzo 2012 16:18, f.carrai@libero.it <f.carrai@libero.it> ha scritto:
> Hello everybody,
>
> this is my first question to the list. I’m not able to run the ‘hello’
> application sampled in Ecos v3.0. I’m working with a standard i386 PC as
> target
> on which I successfully installed GRUB and REDBOOT. When Redboot starts it
> shows:
>
> Platform: PC (I386)
> RAM: 0x00100000-0x040F0000 [0x00195130-0x01000000]
>
> I built eCos using the “i386 PC target with RTL8139 ethernet” template and
> then the hello application from the examples.
> When I try to download via TFTP the ‘hello’ image, I got “Can’t load ELF
> File
> – program headers out of order”.
> While investigating, I realized the start address of the Redboot and of
> Hello
> are the same : 0x0108000.
>
> Here I’m confused. May I load the hello code everywhere in the available
> RAM ?
> Just to try, I loaded the image at 0x0208000 and the expected “Raw file
> loaded…:” show up.
> But when I gave the GO command nothing happened.
>
> Before to continue, am I doing right ?
>
> Thanks in advance.
>
> Fab
>
> --
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
>

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

* [ECOS] Re: Starting with eCos : i386 target and hello application
  2012-04-05 16:24 ` Fabrizio Carrai
@ 2012-04-05 19:29   ` John Dallaway
  0 siblings, 0 replies; 3+ messages in thread
From: John Dallaway @ 2012-04-05 19:29 UTC (permalink / raw)
  To: Fabrizio Carrai; +Cc: ecos-discuss

Fabrizio

Fabrizio Carrai wrote:

> Ok, I solved the problem. When we develop an application that have to
> be loaded by Redboot that, in turn, has been loaded by GRUB, it is
> necessary to select the "Load into higher memory (2MB)"
> (CYGHWR_HAL_I386_PC_LOAD_HIGH macro name) option under "i386 PC
> target" in the eCos configuration tool.
> 
> The option sets the application entry point to 0x208000, above the
> Redboot area (info on the memory left free by Redboot are displayed at
> the boot).

Thank you for taking the trouble to report the solution back to this
list. It looks like the RedBoot documentation for i386 PC needs updating
for GRUB startup and a note about configuring RAM startup applications
with CYGHWR_HAL_I386_PC_LOAD_HIGH for use with RedBoot built for GRUB
startup could be added at the same time.

Any volunteers?

John Dallaway
eCos maintainer
http://www.dallaway.org.uk/john

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

end of thread, other threads:[~2012-04-05 19:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-30 14:19 [ECOS] Starting with eCos : i386 target and hello application f.carrai
2012-04-05 16:24 ` Fabrizio Carrai
2012-04-05 19:29   ` [ECOS] " John Dallaway

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).