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: problem with RedBoot boot sript - problem resolved (mymistake, sorry)


It's important to select I/O channel:
cdl_option CYGDAT_REDBOOT_DEFAULT_BOOT_SCRIPT {
   user_value 1 "\"load -r -v -b 0x108000 ecos.bin; channel 2; go\n\""
}
Now output goes to target display.


Vladimir Sterjantov wrote:

on PC i386 I use boot script option:

cdl_option CYGDAT_REDBOOT_DEFAULT_BOOT_SCRIPT {
user_value 1 "\"load -r -v -b 0x108000 ecos.bin;go\n\""
}

, RedBoot loads file ecos.bin by TFTP, then executes "go", and hangs

But when I use option:
user_value 1 "\"load -r -v -b 0x108000 ecos.bin\n\""

, RedBoot loads file, then gives me prompt, then I type "go", and program starts to execute normally.

ecos.bin - it's simply hello-world example.
ecos sources from CVS snapshot, 29 aug 2002.

I checked, that RedBoot's function do_go from main.c actually calls (*fun)();
, but hangs.

What happens? Why application hangs? Please advance me.
Thanks.

--
--
Vladimir Sterjantov
Tersy Ltd., Sarov, Russia,
tel. (83130) 45828
mailto:vfs@tersy.ru



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