Re: [U-Boot] Generating random numbers

2011-09-01 Thread elison.ni...@gmail.com
On Thu, Sep 1, 2011 at 12:45 AM, Wolfgang Denk wrote: > Dear "elison.ni...@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 wher

Re: [U-Boot] Generating random numbers

2011-08-31 Thread Mike Frysinger
some Blackfin boards use the flash method Wolfgang mentioned: the last sector of flash has the MAC address programmed into it at the factory other boards have the MAC burned into OTP that is inside the processor ... again, done at the factory -mike signature.asc Description: This is a digitall

Re: [U-Boot] Generating random numbers

2011-08-31 Thread Wolfgang Denk
Dear "elison.ni...@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 y

Re: [U-Boot] Generating random numbers

2011-08-31 Thread elison.ni...@gmail.com
Tue Aug 30 23:48:41, Albert ARIBAUD albert.u.boot at aribaud.net wrote: > This differs from your use case which apparently is "use a random MAC so > that with some yet-undefined mechanism we can ask for a real MAC because > we don't want to set the real MAC in the environment" -- to me it looks > n

Re: [U-Boot] Generating random numbers

2011-08-30 Thread Albert ARIBAUD
Le 30/08/2011 22:10, elison.ni...@gmail.com a écrit : > On Wed, Aug 31, 2011 at 1:25 AM, Wolfgang Denk wrote: > >> Dear "elison.ni...@gmail.com", >> >> In message> tyeytt4m+54y_qovck7vdqy_ssoktrdjbpf8+pq0-yc...@mail.gmail.com> you wrote: >>> >>> I am trying to random my mac in u-boot on AT91RM920

Re: [U-Boot] Generating random numbers

2011-08-30 Thread elison.ni...@gmail.com
On Wed, Aug 31, 2011 at 1:25 AM, Wolfgang Denk wrote: This approach is inherently wrong, and I'm actually happy if you > find it difficult to implement. Otherwise we would probably have > rejected your code when you submit the patches. > > Why does arch/blackfin/include/asm/net.h have bfin_gen_r

Re: [U-Boot] Generating random numbers

2011-08-30 Thread elison.ni...@gmail.com
On Wed, Aug 31, 2011 at 1:25 AM, Wolfgang Denk wrote: > Dear "elison.ni...@gmail.com", > > In message tyeytt4m+54y_qovck7vdqy_ssoktrdjbpf8+pq0-yc...@mail.gmail.com> you wrote: > > > > I am trying to random my mac in u-boot on AT91RM9200 and AT91SAM9G45 > > processor. > > This approach is inheren

Re: [U-Boot] Generating random numbers

2011-08-30 Thread Wolfgang Denk
Dear "elison.ni...@gmail.com", In message you wrote: > > I am trying to random my mac in u-boot on AT91RM9200 and AT91SAM9G45 > processor. This approach is inherently wrong, and I'm actually happy if you find it difficult to implement. Otherwise we would probably have rejected your code when y

[U-Boot] Generating random numbers

2011-08-28 Thread elison.ni...@gmail.com
Hi, I am trying to random my mac in u-boot on AT91RM9200 and AT91SAM9G45 processor. My purpose is that before a MAC is assigned to the board at production, the board should use a random MAC address (and random IP) and also that it shouldn't conflict with other devices on the same network. In lib_