[U-Boot] [RFC] bootm: Add sub commands
Wolfgang Denk
wd at denx.de
Mon Sep 22 23:09:15 CEST 2008
Dear Kumar Gala,
In message <CF82B92D-9821-495A-AA5A-192B83C8619E at kernel.crashing.org> you wrote:
>
> >> + if (!images.valid) {
> >> + printf("Need to call %s start first\n", argv[0]);
> >> + return 1;
> >> + }
> >
> > We should probably set up a small state machine.
>
> A small state machine for what?
Well, we have states - here you code that a certain operation is not
allowed unless something else has been done before. SImilar
dependencies may follow - after uncompressing and loading the kernel
image it might for example be not allowed any more to turn on
interrupts, etc. Of course we can handle all this in a maze of
conditional statements. Or we could use a small state machine.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Conscious is when you are aware of something, and conscience is when
you wish you weren't.
More information about the U-Boot
mailing list