This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: problem with RedBoot boot sript - problem resolved (mymistake, sorry)
- From: Vladimir Sterjantov <vfs at tersy dot ru>
- To: "'ecos-discuss at sources dot redhat dot com'" <ecos-discuss at sources dot redhat dot com>
- Date: Sat, 28 Sep 2002 12:12:49 +0400
- Subject: Re: [ECOS] problem with RedBoot boot sript - problem resolved (mymistake, sorry)
- Organization: Tersy Ltd.
- References: <3D945807.5030700@tersy.ru>
- Reply-to: vfs at tersy dot ru
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