All of lore.kernel.org
 help / color / mirror / Atom feed
* u-boot factory reset
@ 2020-04-06 11:11 Damien LEFEVRE
  0 siblings, 0 replies; only message in thread
From: Damien LEFEVRE @ 2020-04-06 11:11 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 875 bytes --]

Hi,

First time customizing u-boot, forgive my basic question.

To implement a factory reset, my initramfs expects a ‘factoryreset’ kernel
parameter to format an overlay FS partition before mounting it.

The target machine is a Tegra TX2.

I’m able to use the Volume Up button for factory reset, which is gpio-313 .
When starting the board if I press the button say 5s, I’d like to add the
‘factoryreset’ parameter to the boot parameters

I think I could use this syntax @uboot_var('factoryreset') in the
KERNEL_ROOTSPEC variable and have the variable set either to '' or
'factoryreset'

Maybe, I should append distro_bootcmd to add the gpio pin reading to
set factoryreset variable before proceeding with the boot sequence.

But how can I add the variable and have it set if the if the gpio pin is at
a certain state?

Thanks,

-Damien

[-- Attachment #2: Type: text/html, Size: 1447 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-04-06 11:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-06 11:11 u-boot factory reset Damien LEFEVRE

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.