Re: [U-Boot] How to random my mac in u-boot

2010-02-17 Thread Aras Vaichas
On 9 February 2010 17:29, Wolfgang Denk wrote: > In general, such a solution is not needed at all. When you can > automate writes to an EEPROM, you can do the same for writes to flash > memory (which is what I pointed out in my posting refering to the > tqm8xx boards). True, but not for our case.

Re: [U-Boot] How to random my mac in u-boot

2010-02-08 Thread Wolfgang Denk
Dear Peter Pan, please read http://www.netmeister.org/news/learn2quote.html Do not top post / full quote. In message <48abf2c21002081620j32c09d82qf61e55bc5426e...@mail.gmail.com> you wrote: > Thank you very much for your advice. That's a very nice approach. > We will try this in our next versio

Re: [U-Boot] How to random my mac in u-boot

2010-02-08 Thread Peter Pan
Thank you very much for your advice. That's a very nice approach. We will try this in our next version. 2010/2/9 Aras Vaichas : >>> There are many ways to install a MAC into your hardware -without >>> hard-conding one into your image code. >>> Because of the quantity of the boards comparing w

Re: [U-Boot] How to random my mac in u-boot

2010-02-08 Thread Aras Vaichas
>> There are many ways to install a MAC into your hardware -without >> hard-conding one into your image code. >> >>> Because of the quantity of the boards comparing with the number of workers, >>> we can not set the MAC address by hand. So what I means is to make the Our Linux devices all have an

Re: [U-Boot] How to random my mac in u-boot

2010-02-08 Thread Peter Pan
Thank you very much. I will check their approach. 2010/2/8 Wolfgang Denk : > Dear Peter Pan, > > In message <48abf2c21002080330k285f07b2y8b55f978a28cd...@mail.gmail.com> you > wrote: >> I understand what your mean. But we need to setup the boards' information >> including the MAC address through

Re: [U-Boot] How to random my mac in u-boot

2010-02-08 Thread Wolfgang Denk
Dear Peter Pan, In message <48abf2c21002080330k285f07b2y8b55f978a28cd...@mail.gmail.com> you wrote: > I understand what your mean. But we need to setup the boards' information > including the MAC address through ethernet. With the same MAC address, > only one board can be configured at a time, wh

Re: [U-Boot] How to random my mac in u-boot

2010-02-08 Thread Peter Pan
I understand what your mean. But we need to setup the boards' information including the MAC address through ethernet. With the same MAC address, only one board can be configured at a time, which is not efficient enough. Because of the quantity of the boards comparing with the number of workers, we

Re: [U-Boot] How to random my mac in u-boot

2010-02-07 Thread Wolfgang Denk
Dear Peter Pan, In message <48abf2c21002072147t7e67ba44i4298b39acc5d7...@mail.gmail.com> you wrote: > Recently, we had a issue that we need to start more than one board at > a time. The problem > we are facing is that every board is using the same u-boot, which > makes them all have the > same ma

[U-Boot] How to random my mac in u-boot

2010-02-07 Thread Peter Pan
Recently, we had a issue that we need to start more than one board at a time. The problem we are facing is that every board is using the same u-boot, which makes them all have the same mac address. Firstly, I think I can gives out a random MAC as we need, but I can not find any rand() or srand() f