Re: [U-Boot] using a GPIO to toggle tftp boot mode

2011-07-04 Thread Chris Gray
simple & genius.  thanks!

On Sun, Jul 3, 2011 at 11:12 PM, Albert ARIBAUD
wrote:

> 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.
>
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] using a GPIO to toggle tftp boot mode

2011-07-03 Thread Chris Gray
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)?

thanks!
-CG
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot