All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] interaction between CONFIG_CMD_SAVEENV and CONFIG_BOOTCOMMAND
@ 2016-09-14 14:46 Nicolas le bayon
  2016-09-14 15:00 ` Wolfgang Denk
  0 siblings, 1 reply; 5+ messages in thread
From: Nicolas le bayon @ 2016-09-14 14:46 UTC (permalink / raw)
  To: u-boot

Hi

Let me firstly explain my need. We use U-boot as a primary bootloader, with
a bootcmd which loads and executes a script on one external device (SD ou
USB). This script will continue the boot process (launch a kernel for
example). The corresponding bootcmd defined in CONFIG_BOOTCOMMAND does this
load/execute operation.

Of course, the user will be able to modify the content of the script, to
fit with their needs. But on our side, provider of this primary bootloader,
we want to be sure that the environment of this u-boot won't be changed by
the user, so that we want to disable all access to "saveenv" command.

That's why we configure: #undef CONFIG_CMD_SAVEENV

With this modifications, saveenv command is not available in the u-boot
commands, that's nice. But bootcmd is empty. It's like there was an
interaction between both settings, maybe the saveenv primitive is necessary
one time to construct the environment content.

How could we do to have a well-constructed and not updatable env content?

Thanls in advance for your answers
Best Regards
Nicolas

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-09-15  7:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-14 14:46 [U-Boot] interaction between CONFIG_CMD_SAVEENV and CONFIG_BOOTCOMMAND Nicolas le bayon
2016-09-14 15:00 ` Wolfgang Denk
2016-09-14 16:43   ` Nicolas le bayon
2016-09-14 18:38     ` Wolfgang Denk
2016-09-15  7:56       ` Nicolas le bayon

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.