public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Ladislav Michl <Ladislav.Michl@seznam.cz>
To: u-boot@lists.denx.de
Subject: [U-Boot] How to use multiple env variables.
Date: Thu, 28 Jan 2010 18:11:40 +0100	[thread overview]
Message-ID: <20100128171140.GA2502@localhost.localdomain> (raw)
In-Reply-To: <006201caa031$81daeb10$a5206c6b@semco>

On Thu, Jan 28, 2010 at 09:19:37PM +0530, Shashi Kumar M.S wrote:
> Where should this variable swapos should be.

Both 'ospart' and 'swapos' are ordinary u-boot environment variables.

> 1. should this "swapos" be in one of the separate partition of the nand  
> flash so that can be set by the kernel.

Kernel itself doesn't keep any concept of envinronment variables, however
MTD drivers live in kernel space and are used by fw_setenv (see
u-boot/tools/env/README) program to alter envinroment variables stored
in flash.

> 2. or is it a u-boot environment variable set by the kernel (reading the  
> u-boot env from the kernel and updating the "swapos" env) after the
> copy of new kernel and ramdisk done.

Sorry, I cannot parse that.

Basic idea is just to write new kernel and rootfs and execute
$ fw_setenv swapos yes
then reboot board and U-Boot scripts I described earlier do the rest.

Best regards,
	ladis

  reply	other threads:[~2010-01-28 17:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-28  7:00 [U-Boot] How to use multiple env variables Shashi Kumar M.S
2010-01-28  9:43 ` Ladislav Michl
2010-01-28 15:49   ` Shashi Kumar M.S
2010-01-28 17:11     ` Ladislav Michl [this message]
2010-01-28  9:44 ` Wolfgang Denk

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=20100128171140.GA2502@localhost.localdomain \
    --to=ladislav.michl@seznam.cz \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox