From: Thomas Heller <theller@ctypes.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] Getting started with uboot
Date: Wed, 04 Aug 2010 22:08:14 +0200 [thread overview]
Message-ID: <i3chbe$ta2$1@dough.gmane.org> (raw)
In-Reply-To: <20100804193629.DDD33CDE29A@gemini.denx.de>
Wolfgang Denk schrieb:
> Dear Thomas Heller,
>
> In message <i3ccjf$a05$1@dough.gmane.org> you wrote:
>> Where does uboot store the environment variables?
>>
>> I have my tx25 board booting correctly from uboot when
>> entering interactive commands:
>
> Check the board config file:
>
> include/configs/tx25.h:
> 33
> 34 #define CONFIG_SYS_MONITOR_LEN (256 << 10) /* 256 kB for U-Boot */
> 35
> ...
>
> 102 #define CONFIG_ENV_IS_IN_NAND
> 103 #define CONFIG_ENV_OFFSET CONFIG_SYS_MONITOR_LEN
> 104 #define CONFIG_ENV_SIZE (128 * 1024) /* 128 kB NAND block size */
> 105 #define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
>
>
>> > => nand read 0x80108000 0x02040000 0x00260000
>> >
>> > NAND read: device 0 offset 0x2040000, size 0x260000
>> > 2490368 bytes read: OK
>
> 0x02040000 is more than 32 MiB, i. e. far, far away from the
> envrionment.
Yes, but this is the kernel partition. The rootfs starts at a lower address.
And actually this is the problem: I put uboot into the RedBoot flash
partition, which is only 0x40000 in size (256 kB), but uboot apparently
needs much more.
Which raises the question: why is the environment so large? Wouldn't a
few kB be enough (4kB, 16kB for example)?
Thanks, also to Elie, for the quick answers. I'll get it to work now.
Thomas
next prev parent reply other threads:[~2010-08-04 20:08 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-04 18:47 [U-Boot] Getting started with uboot Thomas Heller
2010-08-04 19:26 ` Elie De Brauwer
2010-08-04 19:36 ` Wolfgang Denk
2010-08-04 20:08 ` Thomas Heller [this message]
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='i3chbe$ta2$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