Re: [U-Boot] [PATCH] x86: galileo: Define mac addresses for the on-chip ethernet ports

2015-04-21 Thread Joe Hershberger
Hi Bin Meng,

On Tue, Apr 21, 2015 at 8:54 AM, Simon Glass s...@chromium.org wrote:
 Hi Bin,

 On 20 April 2015 at 23:05, Bin Meng bmeng...@gmail.com wrote:
 Not like other x86 chipset, there is no EEPROM for the ethernet
 controller on the Intel Quark SoC to retreive the mac address
 after power up. With pre-defined mac addresses, U-Boot boots up
 and will not show Error: dwmac.90006000 address not set message.

 Signed-off-by: Bin Meng bmeng...@gmail.com
 ---

  include/configs/galileo.h | 2 ++
  1 file changed, 2 insertions(+)

 diff --git a/include/configs/galileo.h b/include/configs/galileo.h
 index d4d0eb3..961d087 100644
 --- a/include/configs/galileo.h
 +++ b/include/configs/galileo.h
 @@ -62,6 +62,8 @@
  #define CONFIG_DESIGNWARE_ETH
  #define CONFIG_DW_ALTDESCRIPTOR
  #define CONFIG_PHYLIB
 +#define CONFIG_ETHADDR 00:02:b3:00:00:00
 +#define CONFIG_ETH1ADDR00:02:b3:00:00:01

 I recall this coming up before with another board - we are not
 supposed to set a default MAC address since it may create inexplicable
 conflicts on the network if an org two boards on the same network one
 day. Can you just set an environment variable?

Simon is correct here. You should simply set it in your environment on
your board. Another option that we tend to frown on, but is allowed,
is to call net_random_ethaddr() from your board init.

-Joe
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH] x86: galileo: Define mac addresses for the on-chip ethernet ports

2015-04-21 Thread Simon Glass
Hi Bin,

On 20 April 2015 at 23:05, Bin Meng bmeng...@gmail.com wrote:
 Not like other x86 chipset, there is no EEPROM for the ethernet
 controller on the Intel Quark SoC to retreive the mac address
 after power up. With pre-defined mac addresses, U-Boot boots up
 and will not show Error: dwmac.90006000 address not set message.

 Signed-off-by: Bin Meng bmeng...@gmail.com
 ---

  include/configs/galileo.h | 2 ++
  1 file changed, 2 insertions(+)

 diff --git a/include/configs/galileo.h b/include/configs/galileo.h
 index d4d0eb3..961d087 100644
 --- a/include/configs/galileo.h
 +++ b/include/configs/galileo.h
 @@ -62,6 +62,8 @@
  #define CONFIG_DESIGNWARE_ETH
  #define CONFIG_DW_ALTDESCRIPTOR
  #define CONFIG_PHYLIB
 +#define CONFIG_ETHADDR 00:02:b3:00:00:00
 +#define CONFIG_ETH1ADDR00:02:b3:00:00:01

I recall this coming up before with another board - we are not
supposed to set a default MAC address since it may create inexplicable
conflicts on the network if an org two boards on the same network one
day. Can you just set an environment variable?


  /* Environment configuration */
  #define CONFIG_ENV_SECT_SIZE   0x1000
 --
 1.8.2.1


Regards,
Simon
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH] x86: galileo: Define mac addresses for the on-chip ethernet ports

2015-04-21 Thread Bin Meng
Hi Simon,

On Tue, Apr 21, 2015 at 9:54 PM, Simon Glass s...@chromium.org wrote:
 Hi Bin,

 On 20 April 2015 at 23:05, Bin Meng bmeng...@gmail.com wrote:
 Not like other x86 chipset, there is no EEPROM for the ethernet
 controller on the Intel Quark SoC to retreive the mac address
 after power up. With pre-defined mac addresses, U-Boot boots up
 and will not show Error: dwmac.90006000 address not set message.

 Signed-off-by: Bin Meng bmeng...@gmail.com
 ---

  include/configs/galileo.h | 2 ++
  1 file changed, 2 insertions(+)

 diff --git a/include/configs/galileo.h b/include/configs/galileo.h
 index d4d0eb3..961d087 100644
 --- a/include/configs/galileo.h
 +++ b/include/configs/galileo.h
 @@ -62,6 +62,8 @@
  #define CONFIG_DESIGNWARE_ETH
  #define CONFIG_DW_ALTDESCRIPTOR
  #define CONFIG_PHYLIB
 +#define CONFIG_ETHADDR 00:02:b3:00:00:00
 +#define CONFIG_ETH1ADDR00:02:b3:00:00:01

 I recall this coming up before with another board - we are not
 supposed to set a default MAC address since it may create inexplicable
 conflicts on the network if an org two boards on the same network one
 day. Can you just set an environment variable?

Yes, I can. But I see lots of boards already use CONFIG_ETHADDR in
their board configuration files, so I assume this is allowed.

Regards,
Bin
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH] x86: galileo: Define mac addresses for the on-chip ethernet ports

2015-04-21 Thread Joe Hershberger
Hi Bin,

On Tue, Apr 21, 2015 at 7:20 PM, Bin Meng bmeng...@gmail.com wrote:
 Hi Joe,

 On Wed, Apr 22, 2015 at 3:41 AM, Joe Hershberger
 joe.hershber...@gmail.com wrote:
 Hi Bin Meng,

 On Tue, Apr 21, 2015 at 8:54 AM, Simon Glass s...@chromium.org wrote:
 Hi Bin,

 On 20 April 2015 at 23:05, Bin Meng bmeng...@gmail.com wrote:
 Not like other x86 chipset, there is no EEPROM for the ethernet
 controller on the Intel Quark SoC to retreive the mac address
 after power up. With pre-defined mac addresses, U-Boot boots up
 and will not show Error: dwmac.90006000 address not set message.

 Signed-off-by: Bin Meng bmeng...@gmail.com
 ---

  include/configs/galileo.h | 2 ++
  1 file changed, 2 insertions(+)

 diff --git a/include/configs/galileo.h b/include/configs/galileo.h
 index d4d0eb3..961d087 100644
 --- a/include/configs/galileo.h
 +++ b/include/configs/galileo.h
 @@ -62,6 +62,8 @@
  #define CONFIG_DESIGNWARE_ETH
  #define CONFIG_DW_ALTDESCRIPTOR
  #define CONFIG_PHYLIB
 +#define CONFIG_ETHADDR 00:02:b3:00:00:00
 +#define CONFIG_ETH1ADDR00:02:b3:00:00:01

 I recall this coming up before with another board - we are not
 supposed to set a default MAC address since it may create inexplicable
 conflicts on the network if an org two boards on the same network one
 day. Can you just set an environment variable?

 There are lots of boards which have CONFIG_ETHADDR defined in the
 board configuration files. Do you think we need cleam them up?

I think it would be great if the board maintainers cleaned these up.
This is a common way to get into trouble.

 include/configs/blackstamp.h:81:/* #define CONFIG_ETHADDR
  02:80:ad:20:31:b8 */
 include/configs/grsim.h:254:#define CONFIG_ETHADDR   00:00:7a:cc:00:12
 include/configs/bct-brettl2.h:77:/* #define CONFIG_ETHADDR
 02:80:ad:20:31:e8 */
 include/configs/bf533-stamp.h:72:/* #define CONFIG_ETHADDR
 02:80:ad:20:31:b8 */
 include/configs/stxgp3.h:16: * search for
 CONFIG_ETHADDR,CONFIG_SERVERIP,etc in this file
 include/configs/stxgp3.h:348:#define CONFIG_ETHADDR
 00:e0:0c:07:9b:8a
 include/configs/cobra5272.h:177:#define CONFIG_ETHADDR
 00:00:00:00:00:09/* default ethernet MAC addr. */
 include/configs/pb1x00.h:34:#define CONFIG_ETHADDR
 DE:AD:BE:EF:01:01/* Ethernet address */
 include/configs/M54418TWR.h:116:#define CONFIG_ETHADDR
 00:e0:0c:bc:e5:60
 include/configs/dbau1x00.h:40:#define CONFIG_ETHADDR
 DE:AD:BE:EF:01:01/* Ethernet address */
 include/configs/bf561-acvilon.h:96:/* #define CONFIG_ETHADDR
  02:80:ad:20:31:e8 */
 include/configs/galileo.h:65:#define CONFIG_ETHADDR
 00:02:b3:00:00:00
 include/configs/cm-bf527.h:87:/* #define CONFIG_ETHADDR 02:80:ad:20:31:e8 */
 include/configs/M5329EVB.h:91:# define CONFIG_ETHADDR   00:e0:0c:bc:e5:60
 include/configs/sbc8641d.h:17: * search for CONFIG_ETHADDR,
 CONFIG_SERVERIP, etc in this file.
 include/configs/sbc8641d.h:533:#define CONFIG_ETHADDR   02:E0:0C:00:00:01
 include/configs/bf527-ezkit.h:87:/* #define CONFIG_ETHADDR
 02:80:ad:20:31:e8 */
 include/configs/MPC8541CDS.h:421:#define CONFIG_ETHADDR   00:E0:0C:00:00:FD
 include/configs/bf537-stamp.h:69:/* #define CONFIG_ETHADDR
 02:80:ad:20:31:e8 */
 include/configs/zeus.h:299:#define CONFIG_ETHADDR
 50:00:00:00:06:00
 include/configs/br4.h:73:/* #define CONFIG_ETHADDR  5c:38:1a:80:a7:00 */
 include/configs/M5373EVB.h:91:# define CONFIG_ETHADDR   00:e0:0c:bc:e5:60
 include/configs/MPC8641HPCN.h:13: * search for CONFIG_ETHADDR,
 CONFIG_SERVERIP, etc in this file.
 include/configs/MPC8641HPCN.h:683:#define CONFIG_ETHADDR
 00:E0:0C:00:00:01
 include/configs/MPC8560ADS.h:15: * search for CONFIG_ETHADDR,
 CONFIG_SERVERIP, etc in this file.
 include/configs/MPC8560ADS.h:450:#define CONFIG_ETHADDR   00:E0:0C:00:00:FD
 include/configs/M5272C3.h:93:#  define CONFIG_ETHADDR   00:e0:0c:bc:e5:60
 include/configs/gr_xc3s_1500.h:231:#define CONFIG_ETHADDR   00:00:7a:cc:00:12
 include/configs/MPC8568MDS.h:441:#define CONFIG_ETHADDR   00:E0:0C:00:00:FD
 include/configs/bf537-pnav.h:69:/* #define CONFIG_ETHADDR
 02:80:ad:24:21:18 */
 include/configs/M54455EVB.h:86:#define CONFIG_ETHADDR
  00:e0:0c:bc:e5:60
 include/configs/blackvme.h:90:/* # define CONFIG_ETHADDR
 ff:ee:dd:cc:bb:aa */
 include/configs/MPC8548CDS.h:546:#define CONFIG_ETHADDR  00:E0:0C:00:00:FD
 include/configs/stxssa.h:16: * search for
 CONFIG_ETHADDR,CONFIG_SERVERIP,etc in this file
 include/configs/stxssa.h:383:#define CONFIG_ETHADDR  00:e0:0c:07:9b:8a
 include/configs/grsim_leon2.h:252:#define CONFIG_ETHADDR   00:00:7a:cc:00:12
 include/configs/M5235EVB.h:98:# define CONFIG_ETHADDR   00:e0:0c:bc:e5:60
 include/configs/tcm-bf518.h:70:/* #define CONFIG_ETHADDR
 02:80:ad:20:31:e8 */
 include/configs/sbc405.h:105:#define CONFIG_ETHADDR
 DE:AD:BE:EF:01:01   /* Ethernet address */
 include/configs/microblaze-generic.h:353:#defineCONFIG_ETHADDR
  00:E0:0C:00:00:FD
 include/configs/uniphier.h:212:#define CONFIG_ETHADDR
  

Re: [U-Boot] [PATCH] x86: galileo: Define mac addresses for the on-chip ethernet ports

2015-04-21 Thread Bin Meng
Hi Joe,

On Wed, Apr 22, 2015 at 8:26 AM, Joe Hershberger
joe.hershber...@gmail.com wrote:
 Hi Bin,

 On Tue, Apr 21, 2015 at 7:20 PM, Bin Meng bmeng...@gmail.com wrote:
 Hi Joe,

 On Wed, Apr 22, 2015 at 3:41 AM, Joe Hershberger
 joe.hershber...@gmail.com wrote:
 Hi Bin Meng,

 On Tue, Apr 21, 2015 at 8:54 AM, Simon Glass s...@chromium.org wrote:
 Hi Bin,

 On 20 April 2015 at 23:05, Bin Meng bmeng...@gmail.com wrote:
 Not like other x86 chipset, there is no EEPROM for the ethernet
 controller on the Intel Quark SoC to retreive the mac address
 after power up. With pre-defined mac addresses, U-Boot boots up
 and will not show Error: dwmac.90006000 address not set message.

 Signed-off-by: Bin Meng bmeng...@gmail.com
 ---

  include/configs/galileo.h | 2 ++
  1 file changed, 2 insertions(+)

 diff --git a/include/configs/galileo.h b/include/configs/galileo.h
 index d4d0eb3..961d087 100644
 --- a/include/configs/galileo.h
 +++ b/include/configs/galileo.h
 @@ -62,6 +62,8 @@
  #define CONFIG_DESIGNWARE_ETH
  #define CONFIG_DW_ALTDESCRIPTOR
  #define CONFIG_PHYLIB
 +#define CONFIG_ETHADDR 00:02:b3:00:00:00
 +#define CONFIG_ETH1ADDR00:02:b3:00:00:01

 I recall this coming up before with another board - we are not
 supposed to set a default MAC address since it may create inexplicable
 conflicts on the network if an org two boards on the same network one
 day. Can you just set an environment variable?

 There are lots of boards which have CONFIG_ETHADDR defined in the
 board configuration files. Do you think we need cleam them up?

 I think it would be great if the board maintainers cleaned these up.
 This is a common way to get into trouble.

Yep, and I think removing the CONFIG_ETHADDR from board configuration
files is safe. Someone could clean this up in a batch.

 include/configs/blackstamp.h:81:/* #define CONFIG_ETHADDR
  02:80:ad:20:31:b8 */
 include/configs/grsim.h:254:#define CONFIG_ETHADDR   00:00:7a:cc:00:12
 include/configs/bct-brettl2.h:77:/* #define CONFIG_ETHADDR
 02:80:ad:20:31:e8 */
 include/configs/bf533-stamp.h:72:/* #define CONFIG_ETHADDR
 02:80:ad:20:31:b8 */
 include/configs/stxgp3.h:16: * search for
 CONFIG_ETHADDR,CONFIG_SERVERIP,etc in this file
 include/configs/stxgp3.h:348:#define CONFIG_ETHADDR
 00:e0:0c:07:9b:8a
 include/configs/cobra5272.h:177:#define CONFIG_ETHADDR
 00:00:00:00:00:09/* default ethernet MAC addr. */
 include/configs/pb1x00.h:34:#define CONFIG_ETHADDR
 DE:AD:BE:EF:01:01/* Ethernet address */
 include/configs/M54418TWR.h:116:#define CONFIG_ETHADDR
 00:e0:0c:bc:e5:60
 include/configs/dbau1x00.h:40:#define CONFIG_ETHADDR
 DE:AD:BE:EF:01:01/* Ethernet address */
 include/configs/bf561-acvilon.h:96:/* #define CONFIG_ETHADDR
  02:80:ad:20:31:e8 */
 include/configs/galileo.h:65:#define CONFIG_ETHADDR
 00:02:b3:00:00:00
 include/configs/cm-bf527.h:87:/* #define CONFIG_ETHADDR 02:80:ad:20:31:e8 */
 include/configs/M5329EVB.h:91:# define CONFIG_ETHADDR   00:e0:0c:bc:e5:60
 include/configs/sbc8641d.h:17: * search for CONFIG_ETHADDR,
 CONFIG_SERVERIP, etc in this file.
 include/configs/sbc8641d.h:533:#define CONFIG_ETHADDR   02:E0:0C:00:00:01
 include/configs/bf527-ezkit.h:87:/* #define CONFIG_ETHADDR
 02:80:ad:20:31:e8 */
 include/configs/MPC8541CDS.h:421:#define CONFIG_ETHADDR   00:E0:0C:00:00:FD
 include/configs/bf537-stamp.h:69:/* #define CONFIG_ETHADDR
 02:80:ad:20:31:e8 */
 include/configs/zeus.h:299:#define CONFIG_ETHADDR
 50:00:00:00:06:00
 include/configs/br4.h:73:/* #define CONFIG_ETHADDR  5c:38:1a:80:a7:00 */
 include/configs/M5373EVB.h:91:# define CONFIG_ETHADDR   00:e0:0c:bc:e5:60
 include/configs/MPC8641HPCN.h:13: * search for CONFIG_ETHADDR,
 CONFIG_SERVERIP, etc in this file.
 include/configs/MPC8641HPCN.h:683:#define CONFIG_ETHADDR
 00:E0:0C:00:00:01
 include/configs/MPC8560ADS.h:15: * search for CONFIG_ETHADDR,
 CONFIG_SERVERIP, etc in this file.
 include/configs/MPC8560ADS.h:450:#define CONFIG_ETHADDR   00:E0:0C:00:00:FD
 include/configs/M5272C3.h:93:#  define CONFIG_ETHADDR   00:e0:0c:bc:e5:60
 include/configs/gr_xc3s_1500.h:231:#define CONFIG_ETHADDR   00:00:7a:cc:00:12
 include/configs/MPC8568MDS.h:441:#define CONFIG_ETHADDR   00:E0:0C:00:00:FD
 include/configs/bf537-pnav.h:69:/* #define CONFIG_ETHADDR
 02:80:ad:24:21:18 */
 include/configs/M54455EVB.h:86:#define CONFIG_ETHADDR
  00:e0:0c:bc:e5:60
 include/configs/blackvme.h:90:/* # define CONFIG_ETHADDR
 ff:ee:dd:cc:bb:aa */
 include/configs/MPC8548CDS.h:546:#define CONFIG_ETHADDR  00:E0:0C:00:00:FD
 include/configs/stxssa.h:16: * search for
 CONFIG_ETHADDR,CONFIG_SERVERIP,etc in this file
 include/configs/stxssa.h:383:#define CONFIG_ETHADDR  00:e0:0c:07:9b:8a
 include/configs/grsim_leon2.h:252:#define CONFIG_ETHADDR   00:00:7a:cc:00:12
 include/configs/M5235EVB.h:98:# define CONFIG_ETHADDR   00:e0:0c:bc:e5:60
 include/configs/tcm-bf518.h:70:/* #define CONFIG_ETHADDR
 02:80:ad:20:31:e8 */
 include/configs/sbc405.h:105:#define 

Re: [U-Boot] [PATCH] x86: galileo: Define mac addresses for the on-chip ethernet ports

2015-04-21 Thread Bin Meng
Hi Joe,

On Wed, Apr 22, 2015 at 3:41 AM, Joe Hershberger
joe.hershber...@gmail.com wrote:
 Hi Bin Meng,

 On Tue, Apr 21, 2015 at 8:54 AM, Simon Glass s...@chromium.org wrote:
 Hi Bin,

 On 20 April 2015 at 23:05, Bin Meng bmeng...@gmail.com wrote:
 Not like other x86 chipset, there is no EEPROM for the ethernet
 controller on the Intel Quark SoC to retreive the mac address
 after power up. With pre-defined mac addresses, U-Boot boots up
 and will not show Error: dwmac.90006000 address not set message.

 Signed-off-by: Bin Meng bmeng...@gmail.com
 ---

  include/configs/galileo.h | 2 ++
  1 file changed, 2 insertions(+)

 diff --git a/include/configs/galileo.h b/include/configs/galileo.h
 index d4d0eb3..961d087 100644
 --- a/include/configs/galileo.h
 +++ b/include/configs/galileo.h
 @@ -62,6 +62,8 @@
  #define CONFIG_DESIGNWARE_ETH
  #define CONFIG_DW_ALTDESCRIPTOR
  #define CONFIG_PHYLIB
 +#define CONFIG_ETHADDR 00:02:b3:00:00:00
 +#define CONFIG_ETH1ADDR00:02:b3:00:00:01

 I recall this coming up before with another board - we are not
 supposed to set a default MAC address since it may create inexplicable
 conflicts on the network if an org two boards on the same network one
 day. Can you just set an environment variable?

There are lots of boards which have CONFIG_ETHADDR defined in the
board configuration files. Do you think we need cleam them up?

include/configs/blackstamp.h:81:/* #define CONFIG_ETHADDR
 02:80:ad:20:31:b8 */
include/configs/grsim.h:254:#define CONFIG_ETHADDR   00:00:7a:cc:00:12
include/configs/bct-brettl2.h:77:/* #define CONFIG_ETHADDR
02:80:ad:20:31:e8 */
include/configs/bf533-stamp.h:72:/* #define CONFIG_ETHADDR
02:80:ad:20:31:b8 */
include/configs/stxgp3.h:16: * search for
CONFIG_ETHADDR,CONFIG_SERVERIP,etc in this file
include/configs/stxgp3.h:348:#define CONFIG_ETHADDR
00:e0:0c:07:9b:8a
include/configs/cobra5272.h:177:#define CONFIG_ETHADDR
00:00:00:00:00:09/* default ethernet MAC addr. */
include/configs/pb1x00.h:34:#define CONFIG_ETHADDR
DE:AD:BE:EF:01:01/* Ethernet address */
include/configs/M54418TWR.h:116:#define CONFIG_ETHADDR
00:e0:0c:bc:e5:60
include/configs/dbau1x00.h:40:#define CONFIG_ETHADDR
DE:AD:BE:EF:01:01/* Ethernet address */
include/configs/bf561-acvilon.h:96:/* #define CONFIG_ETHADDR
 02:80:ad:20:31:e8 */
include/configs/galileo.h:65:#define CONFIG_ETHADDR
00:02:b3:00:00:00
include/configs/cm-bf527.h:87:/* #define CONFIG_ETHADDR 02:80:ad:20:31:e8 */
include/configs/M5329EVB.h:91:# define CONFIG_ETHADDR   00:e0:0c:bc:e5:60
include/configs/sbc8641d.h:17: * search for CONFIG_ETHADDR,
CONFIG_SERVERIP, etc in this file.
include/configs/sbc8641d.h:533:#define CONFIG_ETHADDR   02:E0:0C:00:00:01
include/configs/bf527-ezkit.h:87:/* #define CONFIG_ETHADDR
02:80:ad:20:31:e8 */
include/configs/MPC8541CDS.h:421:#define CONFIG_ETHADDR   00:E0:0C:00:00:FD
include/configs/bf537-stamp.h:69:/* #define CONFIG_ETHADDR
02:80:ad:20:31:e8 */
include/configs/zeus.h:299:#define CONFIG_ETHADDR
50:00:00:00:06:00
include/configs/br4.h:73:/* #define CONFIG_ETHADDR  5c:38:1a:80:a7:00 */
include/configs/M5373EVB.h:91:# define CONFIG_ETHADDR   00:e0:0c:bc:e5:60
include/configs/MPC8641HPCN.h:13: * search for CONFIG_ETHADDR,
CONFIG_SERVERIP, etc in this file.
include/configs/MPC8641HPCN.h:683:#define CONFIG_ETHADDR
00:E0:0C:00:00:01
include/configs/MPC8560ADS.h:15: * search for CONFIG_ETHADDR,
CONFIG_SERVERIP, etc in this file.
include/configs/MPC8560ADS.h:450:#define CONFIG_ETHADDR   00:E0:0C:00:00:FD
include/configs/M5272C3.h:93:#  define CONFIG_ETHADDR   00:e0:0c:bc:e5:60
include/configs/gr_xc3s_1500.h:231:#define CONFIG_ETHADDR   00:00:7a:cc:00:12
include/configs/MPC8568MDS.h:441:#define CONFIG_ETHADDR   00:E0:0C:00:00:FD
include/configs/bf537-pnav.h:69:/* #define CONFIG_ETHADDR
02:80:ad:24:21:18 */
include/configs/M54455EVB.h:86:#define CONFIG_ETHADDR
 00:e0:0c:bc:e5:60
include/configs/blackvme.h:90:/* # define CONFIG_ETHADDR
ff:ee:dd:cc:bb:aa */
include/configs/MPC8548CDS.h:546:#define CONFIG_ETHADDR  00:E0:0C:00:00:FD
include/configs/stxssa.h:16: * search for
CONFIG_ETHADDR,CONFIG_SERVERIP,etc in this file
include/configs/stxssa.h:383:#define CONFIG_ETHADDR  00:e0:0c:07:9b:8a
include/configs/grsim_leon2.h:252:#define CONFIG_ETHADDR   00:00:7a:cc:00:12
include/configs/M5235EVB.h:98:# define CONFIG_ETHADDR   00:e0:0c:bc:e5:60
include/configs/tcm-bf518.h:70:/* #define CONFIG_ETHADDR
02:80:ad:20:31:e8 */
include/configs/sbc405.h:105:#define CONFIG_ETHADDR
DE:AD:BE:EF:01:01   /* Ethernet address */
include/configs/microblaze-generic.h:353:#defineCONFIG_ETHADDR
 00:E0:0C:00:00:FD
include/configs/uniphier.h:212:#define CONFIG_ETHADDR
 00:21:83:24:00:00
include/configs/bf538f-ezkit.h:67:/* #define CONFIG_ETHADDR
02:80:ad:20:31:e8 */
include/configs/M5208EVBE.h:77:#define CONFIG_ETHADDR
00:e0:0c:bc:e5:60
include/configs/cm-bf561.h:71:/* #define CONFIG_ETHADDR 02:80:ad:20:31:cf */

[U-Boot] [PATCH] x86: galileo: Define mac addresses for the on-chip ethernet ports

2015-04-20 Thread Bin Meng
Not like other x86 chipset, there is no EEPROM for the ethernet
controller on the Intel Quark SoC to retreive the mac address
after power up. With pre-defined mac addresses, U-Boot boots up
and will not show Error: dwmac.90006000 address not set message.

Signed-off-by: Bin Meng bmeng...@gmail.com
---

 include/configs/galileo.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/configs/galileo.h b/include/configs/galileo.h
index d4d0eb3..961d087 100644
--- a/include/configs/galileo.h
+++ b/include/configs/galileo.h
@@ -62,6 +62,8 @@
 #define CONFIG_DESIGNWARE_ETH
 #define CONFIG_DW_ALTDESCRIPTOR
 #define CONFIG_PHYLIB
+#define CONFIG_ETHADDR 00:02:b3:00:00:00
+#define CONFIG_ETH1ADDR00:02:b3:00:00:01
 
 /* Environment configuration */
 #define CONFIG_ENV_SECT_SIZE   0x1000
-- 
1.8.2.1

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot