Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] uboot tools: fw_setenv can break environment/cause bricks
Date: Sun, 16 Jun 2019 08:59:40 +0200	[thread overview]
Message-ID: <20190616085940.56230607@windsurf> (raw)
In-Reply-To: <CAFr9PXmhFW_8QLF8noyyNxJkLe-UzAR9Sq9dkkPpReFN3jzaSQ@mail.gmail.com>

Hello,

On Sat, 15 Jun 2019 20:43:44 +0900
Daniel Palmer <daniel@0x0f.com> wrote:

> 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.

I'm adding Pierre-Jean in Cc, as he has been posting patches related
exactly to this not long ago, if I remember correctly.

Best regards,

Thomas Petazzoni
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

  reply	other threads:[~2019-06-16  6:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-15 11:43 [Buildroot] uboot tools: fw_setenv can break environment/cause bricks Daniel Palmer
2019-06-16  6:59 ` Thomas Petazzoni [this message]
2019-06-16 12:31   ` Pierre-Jean Texier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190616085940.56230607@windsurf \
    --to=thomas.petazzoni@bootlin.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox