From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Warren Date: Fri, 23 Oct 2009 09:58:09 -0700 Subject: [U-Boot] setting u-boot params based on serial number In-Reply-To: References: Message-ID: <4AE1E0A1.7040900@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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