[U-Boot] using a GPIO to toggle tftp boot mode
Albert ARIBAUD
albert.u.boot at aribaud.net
Mon Jul 4 08:12:05 CEST 2011
Hi Chris,
Le 04/07/2011 07:50, Chris Gray a écrit :
> I'm hoping to come up with a way to configure a recovery mechanism using
> uboot. the idea is if the main OS image needs to be reflashed, or for
> recovery options.
>
> what are my options for configuring uboot to use a different set of
> configuration options based on the state of a GPIO line (button)?
The cleanest and simplest course would be to use script commands to set
up GPIO if it is not already done by the U-Boot code, and set the
bootcmd variable to test the GPIO port value on boot and run an internal
or tftp boot accordingly. You may want to make sure your board has the
HUSH command line interpreter enabled.
> thanks!
np.
> -CG
Amicalement,
--
Albert.
More information about the U-Boot
mailing list