* [U-Boot] using a GPIO to toggle tftp boot mode
@ 2011-07-04 5:50 Chris Gray
2011-07-04 6:12 ` Albert ARIBAUD
0 siblings, 1 reply; 3+ messages in thread
From: Chris Gray @ 2011-07-04 5:50 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] using a GPIO to toggle tftp boot mode
2011-07-04 5:50 [U-Boot] using a GPIO to toggle tftp boot mode Chris Gray
@ 2011-07-04 6:12 ` Albert ARIBAUD
2011-07-04 16:19 ` Chris Gray
0 siblings, 1 reply; 3+ messages in thread
From: Albert ARIBAUD @ 2011-07-04 6:12 UTC (permalink / raw)
To: u-boot
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] using a GPIO to toggle tftp boot mode
2011-07-04 6:12 ` Albert ARIBAUD
@ 2011-07-04 16:19 ` Chris Gray
0 siblings, 0 replies; 3+ messages in thread
From: Chris Gray @ 2011-07-04 16:19 UTC (permalink / raw)
To: u-boot
simple & genius. thanks!
On Sun, Jul 3, 2011 at 11:12 PM, Albert ARIBAUD
<albert.u.boot@aribaud.net>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.
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-07-04 16:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-04 5:50 [U-Boot] using a GPIO to toggle tftp boot mode Chris Gray
2011-07-04 6:12 ` Albert ARIBAUD
2011-07-04 16:19 ` Chris Gray
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox