From: Andrew Zhukov <zhukov@tst.spb.su>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Wrong location of environment. Copy environment, substitute variables?
Date: 07 Jul 2006 17:02:23 +0300 [thread overview]
Message-ID: <1152280943.19463.49.camel@localhost.localdomain> (raw)
I have at91rm9200dk with SPI DataFlash only (without Flash), u-boot
1.1.4, kernel 2.6.10.
I'd like the kernel to use u-boot's "bootargs" as cmdline. To use
u-boot's data the kernel should know its absolute locations...
I see the kernel expects environment at TEXT_BASE + 0x100 (that's
20000100), but u-boot places environment at 21ede00c (result of function
env_get_addr(0)). I believe the last will move if I edit smth in u-boot.
Summary: in function do_bootm (where u-boot starts loading the kernel),
I should copy the whole environment to the area starting from location
20000100.
Is this right way?
Trouble: bootm doesn't substitute variables (${ipaddr} ${serverip}
etc.). I should copy-substitute. There should be a function for
substitution - does anybody know?
Regards
Andrew
next reply other threads:[~2006-07-07 14:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-07 14:02 Andrew Zhukov [this message]
2006-07-07 14:13 ` [U-Boot-Users] Wrong location of environment. Copy environment, substitute variables? Anders Larsen
2006-07-08 10:40 ` 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=1152280943.19463.49.camel@localhost.localdomain \
--to=zhukov@tst.spb.su \
--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