All of lore.kernel.org
 help / color / mirror / Atom feed
From: B.R. Oake <broake@openmailbox.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] u-boot on raspberry pi with fw_printenv/fw_setenv
Date: Tue, 06 Jan 2015 17:01:14 +0000	[thread overview]
Message-ID: <54AC14DA.3000006@openmailbox.org> (raw)
In-Reply-To: <20150106120848.GH5040@waldemar-brodkorb.de>

On 06/01/15 12:08, Waldemar Brodkorb wrote:
> I am looking for a way to change u-boot environment from Linux
> on a Raspberry PI. I have fw_printenv/fw_setenv, but I have no clue
> how the config file looks like, when using uboot.env as a file on
> the first vfat partition. I am not sure, but it looks like there
> is no code to use fw_printenv/fw_setenv with files.

Hi Waldemar,

fw_printenv and fw_setenv can act on an ordinary file instead of a
device if you want; their config file is normally /etc/fw_env.config .
So for example, first you could create an empty 16K file uboot.env:

dd if=/dev/zero of=uboot.env bs=1K count=16

then you could configure fw_printenv and fw_setenv to act upon that
file by putting the following line in /etc/fw_env.config:

uboot.env 0x0000 0x4000 0x4000

I hope that helps,
B.R.

  reply	other threads:[~2015-01-06 17:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-06 12:08 [U-Boot] u-boot on raspberry pi with fw_printenv/fw_setenv Waldemar Brodkorb
2015-01-06 17:01 ` B.R. Oake [this message]
2015-01-07 17:12   ` B.R. Oake
     [not found] ` <54AC14A6.2090102@openmailbox.org>
2015-01-07 12:17   ` Waldemar Brodkorb
2015-01-07 16:52     ` B.R. Oake

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=54AC14DA.3000006@openmailbox.org \
    --to=broake@openmailbox.org \
    --cc=u-boot@lists.denx.de \
    /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 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.