This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Is there any way to branch in Boot Script
- From: "ariga masahiro" <ariga at link-lab dot co dot jp>
- To: <ecos-discuss at ecos dot sourceware dot org>
- Date: Tue, 17 Jul 2007 16:37:33 +0900
- Subject: [ECOS] Is there any way to branch in Boot Script
Hi,Everyone,
I beseech you to help me out of next predicament.
What I want to do is this:
In RedBoot Boot Script,read Target Board DIPSW-settled value,
and compare already-written value in a certain address.
(for example,use mcmp command)
If same, continue next Boot Script command.
If differs,quit Boot Script and return to RedBoot's prompt.
My questions are:
1.Is there any way to know mcmp result(that is ,succeeded or errored).
Preferably in RedBoot Boot Script.
2.Is there any way to use branching statement(like,if-else),
in RedBoot Boot Script
3.Is there any way to realize above-mentioned "what I want to do".
Please enlighten me,I am willing to accept any hints.
Masahiro Ariga
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss