public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Adding Hardware packages
@ 2000-07-28 15:32 Fabrice Gautier
  0 siblings, 0 replies; 6+ messages in thread
From: Fabrice Gautier @ 2000-07-28 15:32 UTC (permalink / raw)
  To: Ecos-List (E-mail)

Hi,

When I try to add the PCI package to a default i386-PC configuration the
config tools complains.

Why can't I add this package? Or How do I add this package? 
Do i have to redefine a template?

Thanks you

A+
-- 
Fabrice Gautier
fabrice_gautier@sdesigns.com 

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

* Re: [ECOS] Adding Hardware packages
  2000-07-28 18:06 Fabrice Gautier
  2000-07-31  3:45 ` Nick Garnett
@ 2000-07-31 11:19 ` Bart Veer
  1 sibling, 0 replies; 6+ messages in thread
From: Bart Veer @ 2000-07-31 11:19 UTC (permalink / raw)
  To: Fabrice_Gautier; +Cc: ecos-discuss

>>>>> "Fabrice" == Fabrice Gautier <Fabrice_Gautier@sdesigns.com> writes:

    >> -----Original Message-----
    >> From: Jonathan Larmour [ mailto:jlarmour@redhat.co.uk ]
    >> Subject: Re: [ECOS] Adding Hardware packages
    >> 
    >> Fabrice Gautier wrote:
    >> > 
    >> > Well, it seems that I can include the PCI package creating a
    >> > new template.
    >> > 
    >> > But anyway, it seems there is no support for PCI on i386 PC
    >> > target.
    >> 
    >> That's why the configuration tools wouldn't let you do it!

    Fabrice> In fact the configuration tools let me do it as soon as i
    Fabrice> create another template!

    Fabrice> It would be logical if the configuration tool raised a
    Fabrice> conflict. But in my case it just complained that the PCI
    Fabrice> package was an "Hardware Package". But I can't see where
    Fabrice> this package is declared as "Hardware", while it seems
    Fabrice> that all the hardware specific part is done in the target
    Fabrice> packages.

All the hardware packages are part of the target definition, which
currently lives in the ecos.db file together with outline details of
each package such as whether or not it is hardware-specific. When you
select a target you get all the HAL and device driver packages
appropriate to that target (although certain devices may be disabled
by default). Next you specify a particular template, e.g. uitron,
indicating roughly the kind of application you intend to develop.

Hardware packages such as PCI or ethernet do not belong in a template,
because it would mean that a given template could only be applied to
one or a small number of targets. Hence the configuration tools will
issue warnings if a template does contain a hardware package. Only a
warning, not an error, because from time to time it can be useful to
bend or break the rules during development. Possibly there should be
additional constraints, e.g. the PCI package could insist at the CDL
level that a platform HAL provide appropriate macros. That is a
trade-off between finding problems at configuration time vs. compile
time. 

If you were to add PC PCI support then you should update the "pc"
target entry in the ecos.db file and cause the PCI package to be added
automatically. Arguably at this stage it would be necessary to define
a number of different "pc" targets to cope with e.g. old ISA-only
machines.

Bart

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

* Re: [ECOS] Adding Hardware packages
  2000-07-28 18:06 Fabrice Gautier
@ 2000-07-31  3:45 ` Nick Garnett
  2000-07-31 11:19 ` Bart Veer
  1 sibling, 0 replies; 6+ messages in thread
From: Nick Garnett @ 2000-07-31  3:45 UTC (permalink / raw)
  To: ecos-discuss

Fabrice Gautier <Fabrice_Gautier@sdesigns.com> writes:

> > Not by Red Hat - there was a lot of demand for the PC target 
> > and Patrick did a great job by doing the initial port, but
> > alas no-one  appears to be developing it more (or paying for
> > it to be developed more either!).
> 
> Too bad :-)
> 
> The reason may be because i386 is not the final target, but rather a
> developement target.
> 

However, it should not be very hard to get this support working
yourself. Most of the PCI support is target-independent, all you need
to do it to write the HAL_PCI_* macros to access the physical
hardware. My recollection of this is that the config space is accessed
via a pair of IO ports and the memory aperture is at a fixed
location. You'll need to find some docs on this to be sure, though.


-- 
Nick Garnett, eCos Kernel Architect
Red Hat, Cambridge, UK

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

* RE: [ECOS] Adding Hardware packages
@ 2000-07-28 18:06 Fabrice Gautier
  2000-07-31  3:45 ` Nick Garnett
  2000-07-31 11:19 ` Bart Veer
  0 siblings, 2 replies; 6+ messages in thread
From: Fabrice Gautier @ 2000-07-28 18:06 UTC (permalink / raw)
  To: 'Jonathan Larmour', Fabrice Gautier; +Cc: Ecos-List (E-mail)

> -----Original Message-----
> From: Jonathan Larmour [ mailto:jlarmour@redhat.co.uk ]
> Subject: Re: [ECOS] Adding Hardware packages
> 
> Fabrice Gautier wrote:
> > 
> > Well, it seems that I can include the PCI package creating 
> a new template.
> > 
> > But anyway, it seems there is no support for PCI on i386 PC target.
> 
> That's why the configuration tools wouldn't let you do it!

In fact the configuration tools let me do it as soon as i create another
template!

It would be logical if the configuration tool raised a conflict. But in my
case it just complained that the PCI package was an "Hardware Package". But
I can't see where this package is declared as "Hardware", while it seems
that all the hardware specific part is done in the target packages.

The ethernet package has a more logical comportement I think. I can include
it but it complains for conflicts.
 
> > Is there any work underway for this?
> 
> Not by Red Hat - there was a lot of demand for the PC target 
> and Patrick did a great job by doing the initial port, but
> alas no-one  appears to be developing it more (or paying for
> it to be developed more either!).

Too bad :-)

The reason may be because i386 is not the final target, but rather a
developement target.

A+

-- 
Fabrice Gautier
fabrice_gautier@sdesigns.com 

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

* Re: [ECOS] Adding Hardware packages
  2000-07-28 17:04 Fabrice Gautier
@ 2000-07-28 17:53 ` Jonathan Larmour
  0 siblings, 0 replies; 6+ messages in thread
From: Jonathan Larmour @ 2000-07-28 17:53 UTC (permalink / raw)
  To: Fabrice Gautier; +Cc: Ecos-List (E-mail)

Fabrice Gautier wrote:
> 
> Well, it seems that I can include the PCI package creating a new template.
> 
> But anyway, it seems there is no support for PCI on i386 PC target.

That's why the configuration tools wouldn't let you do it!

> Is there any work underway for this?

Not by Red Hat - there was a lot of demand for the PC target and Patrick
did a great job by doing the initial port, but alas no-one appears to be
developing it more (or paying for it to be developed more either!).

Jifl
-- 
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS  Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow."  ||  These opinions are all my own fault

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

* RE: [ECOS] Adding Hardware packages
@ 2000-07-28 17:04 Fabrice Gautier
  2000-07-28 17:53 ` Jonathan Larmour
  0 siblings, 1 reply; 6+ messages in thread
From: Fabrice Gautier @ 2000-07-28 17:04 UTC (permalink / raw)
  To: Ecos-List (E-mail)

Well, it seems that I can include the PCI package creating a new template.

But anyway, it seems there is no support for PCI on i386 PC target.
Is there any work underway for this?


Thanks.


> -----Original Message-----
> From: Fabrice Gautier [ mailto:Fabrice_Gautier@sdesigns.com ]
> Sent: Friday, July 28, 2000 3:31 PM
> To: Ecos-List (E-mail)
> Subject: [ECOS] Adding Hardware packages
> 
> 
> Hi,
> 
> When I try to add the PCI package to a default i386-PC 
> configuration the
> config tools complains.
> 
> Why can't I add this package? Or How do I add this package? 
> Do i have to redefine a template?
> 
> Thanks you
> 
> A+
> -- 
> Fabrice Gautier
> fabrice_gautier@sdesigns.com 
> 

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

end of thread, other threads:[~2000-07-31 11:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-28 15:32 [ECOS] Adding Hardware packages Fabrice Gautier
2000-07-28 17:04 Fabrice Gautier
2000-07-28 17:53 ` Jonathan Larmour
2000-07-28 18:06 Fabrice Gautier
2000-07-31  3:45 ` Nick Garnett
2000-07-31 11:19 ` Bart Veer

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