public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] IMM base for MPC8xx based Targets
@ 2002-06-27 12:37 Wolfgang Heppner
  2002-06-27 13:08 ` Gary Thomas
  2002-06-27 18:43 ` Gary Thomas
  0 siblings, 2 replies; 3+ messages in thread
From: Wolfgang Heppner @ 2002-06-27 12:37 UTC (permalink / raw)
  To: ecos-discuss

Hi,

i am porting my application from eCos 1.3.1 to the current CVS-Version.
I am using a MPC8xx based board and derived my platform hal from the
mbx-hal.

I noticed that some init-functions failed, because the definition of the
IMM baseaddress (CYGARC_REG_IMM_BASE in
packages/hal/powerpc/mpc8xx/current/include/var_regs.h) has changed (my
platform still uses 0xff000000 as IMM base)! As a workaround i had to
change the variant hal.

The location of the internal memorymap is platform dependend (it can be
configured in hardware during power-up). 
Therefore there should be a way to set the IMM baseaddress in the
platform hal (not in the variant hal) or even better - it should be
configurable. Or did i miss anything?

Thanks
Wolfgang


-- 
Wolfgang Heppner

High Speed Kamerasysteme  - Abt. Bildsensorik (ESY-B)
High Speed Camera Systems - Dept. Electronic Imaging (ESY-B)

Fraunhofer                            
Institut Integrierte Schaltungen
Angewandte Elektronik

Am Wolfsmantel 33 
91058 Erlangen       
(Germany)

Tel:   +49 (0) 9131 776 528
Fax:   +49 (0) 9131 776 598

email: hep@iis.fhg.de
web:   http://www.iis.fhg.de

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

* Re: [ECOS] IMM base for MPC8xx based Targets
  2002-06-27 12:37 [ECOS] IMM base for MPC8xx based Targets Wolfgang Heppner
@ 2002-06-27 13:08 ` Gary Thomas
  2002-06-27 18:43 ` Gary Thomas
  1 sibling, 0 replies; 3+ messages in thread
From: Gary Thomas @ 2002-06-27 13:08 UTC (permalink / raw)
  To: Wolfgang Heppner; +Cc: eCos Discussion

On Thu, 2002-06-27 at 09:40, Wolfgang Heppner wrote:
> Hi,
> 
> i am porting my application from eCos 1.3.1 to the current CVS-Version.
> I am using a MPC8xx based board and derived my platform hal from the
> mbx-hal.
> 
> I noticed that some init-functions failed, because the definition of the
> IMM baseaddress (CYGARC_REG_IMM_BASE in
> packages/hal/powerpc/mpc8xx/current/include/var_regs.h) has changed (my
> platform still uses 0xff000000 as IMM base)! As a workaround i had to
> change the variant hal.
> 
> The location of the internal memorymap is platform dependend (it can be
> configured in hardware during power-up). 
> Therefore there should be a way to set the IMM baseaddress in the
> platform hal (not in the variant hal) or even better - it should be
> configurable. Or did i miss anything?

No, this is something I noticed before, but since we mostly use RedBoot
as our platform startup (hence we control the value of IMM_BASE), such
configurability seems to have been left out.

The best way to fix this would be for the variant HAl (var_regs.h) to
allow for a platform file (plf_regs.h) which could provide overrides.
That would require updating all of the MPC8xx based platforms.


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

* Re: [ECOS] IMM base for MPC8xx based Targets
  2002-06-27 12:37 [ECOS] IMM base for MPC8xx based Targets Wolfgang Heppner
  2002-06-27 13:08 ` Gary Thomas
@ 2002-06-27 18:43 ` Gary Thomas
  1 sibling, 0 replies; 3+ messages in thread
From: Gary Thomas @ 2002-06-27 18:43 UTC (permalink / raw)
  To: Wolfgang Heppner; +Cc: eCos Discussion

On Thu, 2002-06-27 at 09:40, Wolfgang Heppner wrote:
> Hi,
> 
> i am porting my application from eCos 1.3.1 to the current CVS-Version.
> I am using a MPC8xx based board and derived my platform hal from the
> mbx-hal.
> 
> I noticed that some init-functions failed, because the definition of the
> IMM baseaddress (CYGARC_REG_IMM_BASE in
> packages/hal/powerpc/mpc8xx/current/include/var_regs.h) has changed (my
> platform still uses 0xff000000 as IMM base)! As a workaround i had to
> change the variant hal.
> 
> The location of the internal memorymap is platform dependend (it can be
> configured in hardware during power-up). 
> Therefore there should be a way to set the IMM baseaddress in the
> platform hal (not in the variant hal) or even better - it should be
> configurable. Or did i miss anything?
>

Note: I've just applied a patch to the 8xx (variant & platforms) for 
this.  You can get it by updating from CVS.


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

end of thread, other threads:[~2002-06-27 20:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-27 12:37 [ECOS] IMM base for MPC8xx based Targets Wolfgang Heppner
2002-06-27 13:08 ` Gary Thomas
2002-06-27 18:43 ` Gary Thomas

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