public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Interrupt-free scheduler
@ 2005-04-04  5:50 Erik Christiansen
  2005-04-04 15:58 ` Nick Garnett
  0 siblings, 1 reply; 7+ messages in thread
From: Erik Christiansen @ 2005-04-04  5:50 UTC (permalink / raw)
  To: ecos-discuss

Needing the scheduler to be interrupt unaware, I'm trying to configure
ecos without interrupts. The cdl_component CYGPKG_HAL_COMMON_INTERRUPTS
is documented as being "dummy". Maybe it is still possible to use it to
configure without interrupt components, somehow?

While I'm still digging in the doco, I can't help wondering if just
commenting out that part of the .ecc file is legitimate?

Erik

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

* Re: [ECOS] Interrupt-free scheduler
  2005-04-04  5:50 [ECOS] Interrupt-free scheduler Erik Christiansen
@ 2005-04-04 15:58 ` Nick Garnett
  2005-04-04 20:13   ` [ECOS] simple hello world on i386 target Gonçalo Antunes
  2005-04-05  9:20   ` [ECOS] Interrupt-free scheduler Erik Christiansen
  0 siblings, 2 replies; 7+ messages in thread
From: Nick Garnett @ 2005-04-04 15:58 UTC (permalink / raw)
  To: Erik Christiansen; +Cc: ecos-discuss

Erik Christiansen <erik@dd.nec.com.au> writes:

> Needing the scheduler to be interrupt unaware, I'm trying to configure
> ecos without interrupts. The cdl_component CYGPKG_HAL_COMMON_INTERRUPTS
> is documented as being "dummy". Maybe it is still possible to use it to
> configure without interrupt components, somehow?
> 
> While I'm still digging in the doco, I can't help wondering if just
> commenting out that part of the .ecc file is legitimate?

What exactly are you trying to do? If you don't have any interrupting
devices, then eCos will run just fine. Some things, like timers, will
not work, but presumably you have already allowed for that.

-- 
Nick Garnett                                     eCos Kernel Architect
http://www.ecoscentric.com                The eCos and RedBoot experts


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

* [ECOS] simple hello world on i386 target
  2005-04-04 15:58 ` Nick Garnett
@ 2005-04-04 20:13   ` Gonçalo Antunes
  2005-04-04 20:18     ` Gary Thomas
  2005-04-05  9:20   ` [ECOS] Interrupt-free scheduler Erik Christiansen
  1 sibling, 1 reply; 7+ messages in thread
From: Gonçalo Antunes @ 2005-04-04 20:13 UTC (permalink / raw)
  To: ecos-discuss

Hello again!

I configured the eCos installation with the "i386PC target" template, put
the Startup Type to FLOPPY and
built it.
I wrote a simple hello world program, compiled it ok and then make the
i386-elf-objcopy -O binary hello hello.bin
and then:
dd conv=sync if=hello.bin of=/dev/fd0
for it to run booting from the floppy disk...

The program is a simple thread in a loop that prints out "Hello World"...
It should boot up and start printing "HelloWorld"... but it doesn't!
After booting nothing is on the screen... just the cursor blinking...
I launch the threan on the cyg_user_start... I think I am doing everything
by the book...but it does not work.

can you help me?


Thank you.

Gonçalo Antunes.




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

* Re: [ECOS] simple hello world on i386 target
  2005-04-04 20:13   ` [ECOS] simple hello world on i386 target Gonçalo Antunes
@ 2005-04-04 20:18     ` Gary Thomas
  2005-04-04 21:03       ` Gonçalo Antunes
  2005-04-04 23:41       ` Gonçalo Antunes
  0 siblings, 2 replies; 7+ messages in thread
From: Gary Thomas @ 2005-04-04 20:18 UTC (permalink / raw)
  To: Gonçalo Antunes; +Cc: eCos Discussion

On Mon, 2005-04-04 at 21:13 +0100, Gonçalo Antunes wrote:
> Hello again!
> 
> I configured the eCos installation with the "i386PC target" template, put
> the Startup Type to FLOPPY and
> built it.
> I wrote a simple hello world program, compiled it ok and then make the
> i386-elf-objcopy -O binary hello hello.bin
> and then:
> dd conv=sync if=hello.bin of=/dev/fd0
> for it to run booting from the floppy disk...
> 
> The program is a simple thread in a loop that prints out "Hello World"...
> It should boot up and start printing "HelloWorld"... but it doesn't!
> After booting nothing is on the screen... just the cursor blinking...
> I launch the threan on the cyg_user_start... I think I am doing everything
> by the book...but it does not work.
> 
> can you help me?

Did you configure it to use the screen as it's debug I/O device?
Note that the default is to use COM1 (the first serial port) since
it is more common to have only serial connections than VGA screens
for truly embedded systems.

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


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

* Re: [ECOS] simple hello world on i386 target
  2005-04-04 20:18     ` Gary Thomas
@ 2005-04-04 21:03       ` Gonçalo Antunes
  2005-04-04 23:41       ` Gonçalo Antunes
  1 sibling, 0 replies; 7+ messages in thread
From: Gonçalo Antunes @ 2005-04-04 21:03 UTC (permalink / raw)
  To: Gary Thomas; +Cc: eCos Discussion

Hi.

I guess I missed that config....
I will check it and then if I have any trouble I'll get to you again.

Thanks again!

Gonçalo Antunes.

----- Original Message ----- 
From: "Gary Thomas" <gary@mlbassoc.com>
To: "Gonçalo Antunes" <gmma@gmma.net>
Cc: "eCos Discussion" <ecos-discuss@ecos.sourceware.org>
Sent: Monday, April 04, 2005 9:17 PM
Subject: Re: [ECOS] simple hello world on i386 target


> On Mon, 2005-04-04 at 21:13 +0100, Gonçalo Antunes wrote:
>> Hello again!
>>
>> I configured the eCos installation with the "i386PC target" template, put
>> the Startup Type to FLOPPY and
>> built it.
>> I wrote a simple hello world program, compiled it ok and then make the
>> i386-elf-objcopy -O binary hello hello.bin
>> and then:
>> dd conv=sync if=hello.bin of=/dev/fd0
>> for it to run booting from the floppy disk...
>>
>> The program is a simple thread in a loop that prints out "Hello World"...
>> It should boot up and start printing "HelloWorld"... but it doesn't!
>> After booting nothing is on the screen... just the cursor blinking...
>> I launch the threan on the cyg_user_start... I think I am doing 
>> everything
>> by the book...but it does not work.
>>
>> can you help me?
>
> Did you configure it to use the screen as it's debug I/O device?
> Note that the default is to use COM1 (the first serial port) since
> it is more common to have only serial connections than VGA screens
> for truly embedded systems.
>
> -- 
> ------------------------------------------------------------
> Gary Thomas                 |  Consulting for the
> MLB Associates              |    Embedded world
> ------------------------------------------------------------
>
>
> -- 
> 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] 7+ messages in thread

* Re: [ECOS] simple hello world on i386 target
  2005-04-04 20:18     ` Gary Thomas
  2005-04-04 21:03       ` Gonçalo Antunes
@ 2005-04-04 23:41       ` Gonçalo Antunes
  1 sibling, 0 replies; 7+ messages in thread
From: Gonçalo Antunes @ 2005-04-04 23:41 UTC (permalink / raw)
  To: Gary Thomas; +Cc: eCos Discussion

About this last problem:
it's solved!!

Thank you again, Gary Thomas.

----- Original Message ----- 
From: "Gary Thomas" <gary@mlbassoc.com>
To: "Gonçalo Antunes" <gmma@gmma.net>
Cc: "eCos Discussion" <ecos-discuss@ecos.sourceware.org>
Sent: Monday, April 04, 2005 9:17 PM
Subject: Re: [ECOS] simple hello world on i386 target


> On Mon, 2005-04-04 at 21:13 +0100, Gonçalo Antunes wrote:
>> Hello again!
>>
>> I configured the eCos installation with the "i386PC target" template, put
>> the Startup Type to FLOPPY and
>> built it.
>> I wrote a simple hello world program, compiled it ok and then make the
>> i386-elf-objcopy -O binary hello hello.bin
>> and then:
>> dd conv=sync if=hello.bin of=/dev/fd0
>> for it to run booting from the floppy disk...
>>
>> The program is a simple thread in a loop that prints out "Hello World"...
>> It should boot up and start printing "HelloWorld"... but it doesn't!
>> After booting nothing is on the screen... just the cursor blinking...
>> I launch the threan on the cyg_user_start... I think I am doing 
>> everything
>> by the book...but it does not work.
>>
>> can you help me?
>
> Did you configure it to use the screen as it's debug I/O device?
> Note that the default is to use COM1 (the first serial port) since
> it is more common to have only serial connections than VGA screens
> for truly embedded systems.
>
> -- 
> ------------------------------------------------------------
> Gary Thomas                 |  Consulting for the
> MLB Associates              |    Embedded world
> ------------------------------------------------------------
>
>
> -- 
> 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] 7+ messages in thread

* Re: [ECOS] Interrupt-free scheduler
  2005-04-04 15:58 ` Nick Garnett
  2005-04-04 20:13   ` [ECOS] simple hello world on i386 target Gonçalo Antunes
@ 2005-04-05  9:20   ` Erik Christiansen
  1 sibling, 0 replies; 7+ messages in thread
From: Erik Christiansen @ 2005-04-05  9:20 UTC (permalink / raw)
  To: Nick Garnett; +Cc: ecos-discuss

On Mon, Apr 04, 2005 at 04:57:45PM +0100, Nick Garnett wrote:
> What exactly are you trying to do? If you don't have any interrupting
> devices, then eCos will run just fine.

The task is to provide a uitron API to an existing PPC850 card, which
does have interrupting devices. The original OS knows nothing about
interrupts. Our ISRs handle all that. If eCos were to fiddle with
interrupts, we couldn't just leave the ISRs in place, as part of the
port.

Fortunately, I've now learned enough about enabling and disabling
components in a .ecc file to disable everything that smells of
interrupts, and resolve the conflicts. Hopefully eCos will now be
unaware of interrupts.

> Some things, like timers, will not work, but presumably you have
> already allowed for that.

Oh yes, the timers. It took several cycles to resolve those conflicts,
but with persistence, they're gone too. The application provides timers
from a task. As a first cut, I'm kinda hoping to re-use that as is.
Although a bit weird, it works like a bought one.

Reconfiguring eCos is faster and more robust than recoding all the timer
stuff in the application. (You wouldn't want to know the proposed
schedule for this. But then, you've probably been there, at least once. ;)

Things are now fine up to cyg_user_start(), running on the target. (Just
turning on a few LEDs.) Next step is a thread or two, but I'll have to
translate the examples to uitron API first.

Erik


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

end of thread, other threads:[~2005-04-05  9:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-04  5:50 [ECOS] Interrupt-free scheduler Erik Christiansen
2005-04-04 15:58 ` Nick Garnett
2005-04-04 20:13   ` [ECOS] simple hello world on i386 target Gonçalo Antunes
2005-04-04 20:18     ` Gary Thomas
2005-04-04 21:03       ` Gonçalo Antunes
2005-04-04 23:41       ` Gonçalo Antunes
2005-04-05  9:20   ` [ECOS] Interrupt-free scheduler Erik Christiansen

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