From: trh178 <todd.haldeman@legrand.us>
To: u-boot@lists.denx.de
Subject: [U-Boot] Building U-Boot image with predefined environment
Date: Thu, 5 Jul 2012 06:14:06 -0700 (PDT) [thread overview]
Message-ID: <34116429.post@talk.nabble.com> (raw)
I am taking over a project originally done by somebody else and not
documented at all. I am not very familiar with U-Boot in general, so I am
effectively starting from scratch.
My current issue is this: I have a U-Boot image that I can load onto my
board that, upon start, says it is autobooting and then immediately prompts
the user for 'ethaddr'. After you give it an ethaddr, it will get an IP via
dhcp and, using tftp, get the rest of the environment/kernel/filesystem from
a local server. I cannot use this image anymore though. I had to make a
slight change to the config file for U-Boot.
I have successfully rebuilt U-boot and flashed it onto the board. When it
boots now though, it says it will autoboot in 3 seconds (instead of 1
previously), and then it fails autoboot because of a bad magic number and
drops me into the UBoot> prompt. It does not prompt me for an 'ethaddr'.
This leads me to believe that the previous image was built with a very basic
predefined environment (e.g. 'do this if you dont have an ethaddr set, or
else if you do then get an ip via dhcp, etc...). I know that after I get an
IP address the board uses tftp to load the full environment because, along
with a kernel.img and a filesystem.img, there is also a bootscript.img on
the tftp server.
My lack of knowledge led me to only one solution. The first image that works
right now must have been built with a basic environment script included? Is
this possible? and if so, how do I do this? It seems like if I can get my
NEW image to act as the old one on startup, then once it HAS an ip address,
the full environment can be loaded via tftp like before.
Thanks ahead of time for the help,
--
View this message in context: http://old.nabble.com/Building-U-Boot-image-with-predefined-environment-tp34116429p34116429.html
Sent from the Uboot - Users mailing list archive at Nabble.com.
reply other threads:[~2012-07-05 13:14 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=34116429.post@talk.nabble.com \
--to=todd.haldeman@legrand.us \
--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