public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Thomas Heller <theller@ctypes.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] Getting started with uboot
Date: Wed, 04 Aug 2010 20:47:09 +0200	[thread overview]
Message-ID: <i3ccjf$a05$1@dough.gmane.org> (raw)

Where does uboot store the environment variables?

I have my tx25 board booting correctly from uboot when
entering interactive commands:

> U-Boot 2010.06 (Aug 02 2010 - 19:53:42)
> 
> CPU:   Freescale i.MX25 at 399 MHz
> 
> DRAM:  32 MiB
> NAND:  128 MiB
> *** Warning - bad CRC or NAND, using default environment
> 
> In:    serial
> Out:   serial
> Err:   serial
> Net:   FEC_MXC
> Hit any key to stop autoboot:  0
> => setenv bootcmd
> => nand read 0x80108000 0x02040000 0x00260000
> 
> NAND read: device 0 offset 0x2040000, size 0x260000
>  2490368 bytes read: OK
> =>
> 
> NAND read: device 0 offset 0x2040000, size 0x260000
>  2490368 bytes read: OK
> => bootm 0x80108000
> ## Booting kernel from Legacy Image at 80108000 ...
>    Image Name:   Linux-2.6.31
>    Image Type:   ARM Linux Kernel Image (uncompressed)
>    Data Size:    1517328 Bytes = 1.4 MiB
>    Load Address: 80008000
>    Entry Point:  80008000
>    Verifying Checksum ... OK
>    Loading Kernel Image ... OK
> OK
> 
> Starting kernel ...
> 
> Uncompressing Linux.................................................................................................... done, booting the kernel.

But when I call 'saveenv' then it doesn't boot any longer;
it seems that 'saveenv' overwrites parts of the root file system.

So, my question is: where does uboot save the environment?

-- 
Thanks,
Thomas

             reply	other threads:[~2010-08-04 18:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-04 18:47 Thomas Heller [this message]
2010-08-04 19:26 ` [U-Boot] Getting started with uboot Elie De Brauwer
2010-08-04 19:36 ` Wolfgang Denk
2010-08-04 20:08   ` Thomas Heller
2010-08-04 20:43     ` Wolfgang Denk
2010-08-05 14:13       ` Thomas Heller
2010-08-05 14:34         ` Elie De Brauwer
2010-08-05 16:31           ` Thomas Heller
2010-08-05 18:20         ` 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='i3ccjf$a05$1@dough.gmane.org' \
    --to=theller@ctypes.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox