public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Gary Thomas <gary@mlbassoc.com>
To: xiaolu zhao <deerxiaolu@gmail.com>
Cc: jiang jet <jetjiang@hotmail.com>,  ecos-discuss@ecos.sourceware.org
Subject: Re: [ECOS] how to booting the redboot on VMware
Date: Thu, 24 May 2007 23:20:00 -0000	[thread overview]
Message-ID: <465590D3.2050607@mlbassoc.com> (raw)
In-Reply-To: <b48951870705240530n3bd6dda0wba7c05974a0430ee@mail.gmail.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

xiaolu zhao wrote:
> Thank you for your anwser.
> 
> Maybe I will ask a silly question. In a normal C program, the
> execution of the program start from the beginning of the main
> function. In the folder  "\packages\kernel\v2_0\tests" i saw there are
> some test files. ( I don't know if all these files can be used as
> individual application examples ?). In these files, I can not see the
> main( ) functions. They only have cyg_start( ). So I am confused where
> the application program start from, if they have no main( ) functions.
> And who invoke the cyg_start( )function?
> 
> Can you help me with these questions? Thank you so much!!

The eCos documentation is your friend - all of this is explained there.
  http://ecos.sourceware.org/docs-latest/

eCos provides very complete control over how the application starts.
cyg_start() is the actual starting point for application code.  It
normally calls cyg_user_start(), then starts the scheduler.  The default
version of cyg_user_start() will create a thread environment for running
'main()'.

Look at the examples to see different ways of handling this.  Having
your application start as 'main()' is the simplest, but certainly not
the only choice.

Also, eCos 2.0 is terribly old.  Given that you are just starting out,
it would be wise to work with the latest (CVS) code.
  http://ecos.sourceware.org/anoncvs.html

> 
> On 5/23/07, jiang jet <jetjiang@hotmail.com> wrote:
>>
>>
>>
>> >From: "xiaolu zhao" <deerxiaolu@gmail.com>
>> >To: "jiang jet" <jetjiang@hotmail.com>
>> >CC: ecos-discuss@ecos.sourceware.org
>> >Subject: Re: [ECOS] how to booting the redboot on VMware
>> >Date: Tue, 22 May 2007 22:58:17 +0200
>> >
>> >Thank you for your advice.  Currently I used a software which can
>> >provide virtual serial port. Thus the Host can communicate with
>> >VMware
>> >and I can run the hello world on the virtual machine through the
>> >serial port.
>> >
>> welcome
>> >Can I ask you one more question?
>> >
>> >Because I just start to learn the software development on a RTOS, so
>> >I
>> >have no idea about what is the application software on a RTOS looks
>> >like. I only have some experience  in embedded software development
>> >without a RTOS. Do you know where I can find some application
>> >example
>> >on eCos or any other RTOS(more complicated than the examples in the
>> >ecos source code)?
>> >
>> in ecos there is no very strict distinction between app and
>> kernel...actually the distinction between os and app in embedded
>> system is
>> not as obivious as in other enviorment
>> I don't know what kind of app you are looking for, maybe minigui is a
>> good
>> choice for u , however, i think ecos itself is really worth studying
>> intensively
>> >
>> >
>> >
>> >
>> >
>> >On 5/21/07, jiang jet <jetjiang@hotmail.com> wrote:
>> >>
>> >>
>> >>
>> >> >From: "xiaolu zhao" <deerxiaolu@gmail.com>
>> >> >To: ecos-discuss@ecos.sourceware.org
>> >> >Subject: [ECOS] how to booting the redboot on VMware
>> >> >Date: Sun, 20 May 2007 00:24:08 +0200
>> >> >
>> >> >Hi,
>> >> >I want to try the application examples in the 12th chapter of
>> >> >"Embedded software development with eCOS". I want to use a
>> >>virtual
>> >> >machine on VMware software as my target. I already successfully
>> >> >install redboot in a virtual machine and see the RedBoot prompt.
>> >> >
>> >> >But when I try to booting redboot, in the step 10 and 11 which
>> >>tests
>> >> >if the host and target connetec well. I found I the host and
>> >>target
>> >> >are not connected.
>> >> >
>> >>you have boot the system up..could u please post the booting info?
>> >>or you can check what ur static ip address is?
>> >>or can u make sure the vmware is connected with host pc correctly?
>> >>or the ethernet cards that contains a controller supported by ecos?
>> >> >I used my notebook as the host. And I tried the HyperTerminal on
>> >>the
>> >> >host to connect the target. Becuase the notebook has no serail
>> >>port,
>> >> >so I choose  TCP/IP instead of serial port. And I use the IP
>> >>address
>> >> >of the redboot image as the "host address". But the redboot can
>> >>not
>> >> >be
>> >> >conneted. Is there something wrong of my operation?
>> >> >
>> >> >Do you ever meet this problem? And would you like to give some
>> >> >advice
>> >> >how to solve it?
>> >> >
>> >> >Thank you so much in advance!


- --
- ------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
- ------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFGVZDTmaKbSsQGV8ARAtYhAJ0Q6+IciMA6gkXSf98vFl0DCh1yvQCfcpwx
M+qHalj+a2cZN4EjNei5zdE=
=4Z2e
-----END PGP SIGNATURE-----

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

  reply	other threads:[~2007-05-24 13:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-20 15:57 xiaolu zhao
2007-05-20 16:52 ` [ECOS]: Free BSD stack - Alok Singh
     [not found] ` <BAY137-F12CDC5DCEA82FB525CC6C9DF300@phx.gbl>
2007-05-22 21:43   ` [ECOS] how to booting the redboot on VMware xiaolu zhao
2007-05-23  1:36     ` jiang jet
2007-05-24 13:19       ` xiaolu zhao
2007-05-24 23:20         ` Gary Thomas [this message]
2007-05-25 17:30           ` xiaolu zhao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=465590D3.2050607@mlbassoc.com \
    --to=gary@mlbassoc.com \
    --cc=deerxiaolu@gmail.com \
    --cc=ecos-discuss@ecos.sourceware.org \
    --cc=jetjiang@hotmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).