Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] uboot tools: fw_setenv can break environment/cause bricks
@ 2019-06-15 11:43 Daniel Palmer
  2019-06-16  6:59 ` Thomas Petazzoni
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Palmer @ 2019-06-15 11:43 UTC (permalink / raw)
  To: buildroot

Hi all,

I just noticed this and couldn't find any other reports of it.

If you enable BR2_PACKAGE_UBOOT_TOOLS_FWPRINTENV you get fw_printenv
and fw_setenv built for the target but they are built with a u-boot
configuration that isn't for the target as it uses it's own copy of
the source and not the one configured in the bootloader section.

That works in most cases but if you have uninitialised or broken
environment fw_setenv will write what it thinks is the default
environment with a bootcmd that tries to boot via bootp with an NFS
root which will probably brick many targets.

I'm think if u-boot is enabled in the bootloader section there should
probably be an option there to install those tools configured for the
target that blocks the uboot tools package.

Cheers,

Daniel

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

end of thread, other threads:[~2019-06-16 12:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-15 11:43 [Buildroot] uboot tools: fw_setenv can break environment/cause bricks Daniel Palmer
2019-06-16  6:59 ` Thomas Petazzoni
2019-06-16 12:31   ` Pierre-Jean Texier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox