From mboxrd@z Thu Jan 1 00:00:00 1970 From: elison.niven at gmail.com Date: Thu, 1 Sep 2011 19:30:03 +0530 Subject: [U-Boot] Generating random numbers In-Reply-To: <20110831191553.D109E18C46FA@gemini.denx.de> References: <20110830195552.B7B8518C46FE@gemini.denx.de> <20110831191553.D109E18C46FA@gemini.denx.de> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Sep 1, 2011 at 12:45 AM, Wolfgang Denk wrote: > Dear "elison.niven at gmail.com", > > In message you wrote: >> >> How am I supposed to set the real MAC in the environment? Build >> separate images for each board? I do not want that. > > Not that is finally a good question, and one where answering makes > sense again. > > There are many ways, depending on how you organized the production > and/or testing of your boards. > > Of course, you can also pre-program your flashes before even fitting > the chips on the boards. There are programmers that support auto- > incrementing serial numbers or automatic insertion of data blocks > retrieved from some sort of production database. Yes, this is what I am looking into. Seems the most fitting in my case. > There is a zillion of methods to do what you want, you just have to > pick one that fits your board and your productions and test > environment best. ?And any of these is way better than using random > MAC addresses. > Thanks a lot ! Thanks, Elison