From: Ben Warren <biggerbadderben@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] setting u-boot params based on serial number
Date: Fri, 23 Oct 2009 09:58:09 -0700 [thread overview]
Message-ID: <4AE1E0A1.7040900@gmail.com> (raw)
In-Reply-To: <memo.20091023175206.2092W@postmaster+dexdyne.com.cix.co.uk>
David Collier wrote:
> This may be bloody obvious to most of you, but I'm still learning.
>
> I have a batch of boards in production.
>
> say serial numbers 1 to 50
>
> I want to set the 2 mac address, and the ip address so that the last few
> digits match the serial number.
>
> can I do this easily with some sort of u-boot script? Or can I run an app
> I write myself in C or whatever, and get it to do setenv commands?
>
>
Yes
> AVR32, if it matters
>
>
It shouldn't. You can do this any number of ways, but if it was me I'd
script it off-target. I'm a big fan of Python, so tend to use pexpect
for this sort of thing.
> TVM
>
> David Collier
>
regards,
Ben
next prev parent reply other threads:[~2009-10-23 16:58 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-23 16:52 [U-Boot] setting u-boot params based on serial number David Collier
2009-10-23 16:58 ` Ben Warren [this message]
2009-10-23 18:03 ` Wolfgang Denk
2009-10-23 20:13 ` David Collier
2009-10-23 20:38 ` David Collier
2009-10-23 21:05 ` Wolfgang Denk
2009-10-23 21:04 ` Wolfgang Denk
2009-10-26 10:36 ` David Collier
2009-10-26 12:01 ` Wolfgang Denk
2009-10-26 13:29 ` David Collier
2009-10-26 14:12 ` 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=4AE1E0A1.7040900@gmail.com \
--to=biggerbadderben@gmail.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.