This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Could you help me?(about run app on pc target)


Hi,

Firs of all, let me say I'm working under Linux and I'm not very
acquainted to Cygwin; anyway it should be almost the same.

Second, probably you already know that, but just to be sure: you must
use a NULL-MODEM serial cable, otherwise it won't work.

gu xm wrote:

>Mr. Marco Brambilla,
>    I read your mail in ecos mail list. And I know you
>have run app in i386 pc target successfully. Could you
>give me some instructions?
>
>Now I can boot my target pc using redboot. And I can
>connect the target by gdb. But when I execute load
>command(under cygwin gdb) it show following errors:
>
>Ignoring packet error,continuing...
>......
>
The following is the sequence of commands I typed to run my application
after I compiled it :

in the redboot shell :
channel -1 /* this command tells redboot to use as default input channel
the first channel wich recieves an input,
so after this don't type anything here. As the first char is sent on the
serial, this becomes the default input
channel and the keyboard is disabled*/

in the linux terminal (on the host machine) :

i386-elf-gdb -nw helloWorld

gdb> set remotebaud 38400
gdb> target remote /dev/ttyS0 (the 1st serial port under linux - COM1
under win)
/* Some info are printed by gdb */
gdb> load
/*some other info, showing a sort of progress indicator of the upload
process*/
gdb> continue
/* it should be printed in the gdb (host machine) shell :*/
hello World !

NOTE: in eCos there is no program termination, so the program should
stay like this forever !
you must press ctrl-C to terminate program execution and return to gdb.

>
>
>You run load under redboot,but how can redboot find
>HelloWorld image?
>
I mailed the same question to the eCos mailing list and I was answered
to type:

Redboot> load -m disk hda1:helloWorld
/* I suppose under linux the directory structure should be supported,
under Cygwin, well, I really don't know*/

>
>
>Is there anything I haven't noticed yet? I can't
>resolve this problem for many days!
>
>Thank you for your help!
>
>guxm
>
>_________________________________________________________
>Do You Yahoo!? 
>2002年世界杯群雄鏖战 雅虎中国聚焦日韩
>http://cn.fifaworldcup.yahoo.com/
>



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]