public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Nick Garnett <nickg@ecoscentric.com>
To: Muna Hummady <muna_hummady@yahoo.com>
Cc: vibra <vibra@263.sina.com>, ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] RE: Re:Re: connect eCos to RedBoot
Date: Wed, 11 Aug 2004 08:55:00 -0000	[thread overview]
Message-ID: <m3r7qe5a1h.fsf@xl5.calivar.com> (raw)
In-Reply-To: <20040810170441.37236.qmail@web53708.mail.yahoo.com>

Muna Hummady <muna_hummady@yahoo.com> writes:

> --- vibra <vibra@263.sina.com> wrote:
> 
> > > 1- I'm building the example program image on
> > floppy
> > > disk and trying to load it from RedBoot and
> > running it
> > > using 
> > > 
> > > load -m  disk basic1.bin
> > > 
> > > or 
> > > 
> > > load
> > > 
> > > or
> > > 
> > > load basic1.bin
> > > 
> > > I'm failed to loading it . Could you tell me how?
> > You must make sure that the network connection of
> > your Redboot has been configure correctly.  
> > Anyway, you can also choose gdb to upload the bin
> > via serial.
> >  
> > > 2-have you debug any example program using gdb by
> > > connecting the host target to RedBoot via serial?
> > > 
> > > I could'nt do that.
> > > 
> > > If so, Could tell me how?
> > Start the i386-elf-gdb, then
> > gdb>set remotebaud 38400 (set serial baudrate)
> > gdb>target remote /dev/ttyS0 (use COM1 connect to
> > target)
> > gdb>load hello  (load elf-format object)
> > 
> > Good luck!
> > 
> > 
> >
> ===================================================================
> > hello
> sorry for re-asking you but there is something
> missing.
> 
> 1- I want to connect eCos to RedBoot via serial.
>    When I'm trying to use the GDB as you said in   
> point(2) the is done but When I'm trying to run it
> using (continue), the redboot is halted and then I
> could do nothing than restart it.

As has been said before, try running some of the standard tests and
check that they work before running your own programs. Nobody else has
these problems so it is either in your program or in the hardware of
your target. Why don't you try building and running the tm_basic
kernel test program and post the output from the GDB session here.

> 
> In addition, I found that I have a problem that I must
> enable (CYGPKG_IO_SERIAL_DEVICES).
> When trying to enable it using
>      ecosconfig add CYGPKG_IO_SERIAL_DEVICES
> told me that it is'nt package

I don't know where you got this package name from, the correct name is
CYGPKG_IO_SERIAL.
>            
>  2- I want to try build the program image on floppy
> using commands you tell me before. I'm booting RedBoot
> from floppy to RAM and then released the RedBoot
> floppy and put the floppy that have the program image 
> (basic.bin) file. Then, I'm trying to load it using
> 
> redboot> load -m disk redboot.bin
> or
> redboot> load
> or else
> but I coudn't.
> Please tell me is my way true and what is the wrong in
> it? And What is the solution?

That will not work, there is currently no support in RedBoot for
loading files from floppy. They must either be downloaded via the
serial line or fetched from a TFTP server.

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

  reply	other threads:[~2004-08-11  8:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20040810011148.4590.qmail@sina.com>
2004-08-10 17:04 ` Muna Hummady
2004-08-11  8:55   ` Nick Garnett [this message]
2004-08-11 12:28     ` Muna Hummady
2004-08-11 13:46       ` Nick Garnett

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=m3r7qe5a1h.fsf@xl5.calivar.com \
    --to=nickg@ecoscentric.com \
    --cc=ecos-discuss@sources.redhat.com \
    --cc=muna_hummady@yahoo.com \
    --cc=vibra@263.sina.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).