Skip to contentSkip to conversation

armv8: ls2085a: Add support of random MAC address for QDS and RDB

PATCH New Prabhakar Kushwaha 2 participants 4 messages Oct 6, 2015 – Oct 7, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 armv8: ls2085a: Add support of random MAC address for QDS and RDB

Add support of setting RANDOM MAC address if env variable not available.

---
 include/configs/ls2085a_common.h | 4 ++++
 1 file changed, 4 insertions(+)
include/configs/ls2085a_common.h +4 -0
index 1ec95d2..edd434a 100644
@@ -173,6 +173,10 @@ unsigned long long get_qixis_addr(void);
 #define CONFIG_SYS_LS_MC_AIOP_IMG_MAX_LENGTH	0x200000
 #define CONFIG_SYS_LS_MC_DRAM_AIOP_IMG_OFFSET	0x07000000
 
+/* Add Random lib for random MAC address */
+#define CONFIG_LIB_RAND
+#define CONFIG_NET_RANDOM_ETHADDR
+
 /*
  * Carve out a DDR region which will not be used by u-boot/Linux
  *
Signature · 1 line
1.9.1
#1 lore raw

PATCH 2/2 armv8: ls2085a: Add support of random MAC address for QDS and RDB

Hi,

Quoted 12 lines · Prabhakar Kushwaha

Add support of setting RANDOM MAC address if env variable not available.

---
 include/configs/ls2085a_common.h | 4 ++++
 1 file changed, 4 insertions(+)
include/configs/ls2085a_common.h +0 -0
index 1ec95d2..edd434a 100644

include/configs/ls2085a_common.h unsigned long long get_qixis_addr(void); · line 179

Quoted 7 lines
include/configs/ls2085a_common.h +4 -0
@@ -173,6 +173,10 @@ unsigned long long get_qixis_addr(void);
 #define CONFIG_SYS_LS_MC_AIOP_IMG_MAX_LENGTH   0x200000
 #define CONFIG_SYS_LS_MC_DRAM_AIOP_IMG_OFFSET  0x07000000
 
+/* Add Random lib for random MAC address */
+#define CONFIG_LIB_RAND
+#define CONFIG_NET_RANDOM_ETHADDR
+

Can you please add such in the boards' defconfig files instead?

include/configs/ls2085a_common.h unsigned long long get_qixis_addr(void);

Quoted 4 lines
include/configs/ls2085a_common.h +0 -1
 /*
  * Carve out a DDR region which will not be used by u-boot/Linux
  *
--

Regards,
Bin

#2 lore raw

PATCH 2/2 armv8: ls2085a: Add support of random MAC address for QDS and RDB

Regards,
Prabhakar

Quoted 29 lines

-----Original Message-----
From: Bin Meng [mailto:bmeng.cn at gmail.com]
Sent: Wednesday, October 07, 2015 1:56 PM
To: Kushwaha Prabhakar-B32579 <[email protected]>
Cc: U-Boot Mailing List <[email protected]>; Sun York-R58495 <[email protected]>
Subject: Re: [U-Boot] [PATCH 2/2] armv8: ls2085a: Add support of random MAC address for QDS and RDB

Hi,

Quoted 16 lines · Prabhakar Kushwaha

Add support of setting RANDOM MAC address if env variable not available.

---
 include/configs/ls2085a_common.h | 4 ++++
 1 file changed, 4 insertions(+)
include/configs/ls2085a_common.h +0 -0
index 1ec95d2..edd434a 100644
@@ -173,6 +173,10 @@ unsigned long long get_qixis_addr(void);
 #define CONFIG_SYS_LS_MC_AIOP_IMG_MAX_LENGTH   0x200000
 #define CONFIG_SYS_LS_MC_DRAM_AIOP_IMG_OFFSET  0x07000000
 
Quoted 7 lines

include/configs/ls2085a_common.h unsigned long long get_qixis_addr(void); · line 176

Quoted 1 line
include/configs/ls2085a_common.h +1 -0
+/* Add Random lib for random MAC address */ #define

CONFIG_LIB_RAND

include/configs/ls2085a_common.h unsigned long long get_qixis_addr(void); · line 179

Quoted 2 lines
include/configs/ls2085a_common.h +2 -0
+#define CONFIG_NET_RANDOM_ETHADDR
+

Can you please add such in the boards' defconfig files instead?

Ls2085a_common.h is included by boards'd defconfig i.e. ls2085aqds.h and ls2085rdb.h. As this piece is common so added in ls2085a_common.h

--prabhakar

#3 lore raw

PATCH 2/2 armv8: ls2085a: Add support of random MAC address for QDS and RDB

Quoted 36 lines · Kushwaha Prabhakar

Regards,
Prabhakar

Quoted 31 lines

-----Original Message-----
From: Bin Meng [mailto:bmeng.cn at gmail.com]
Sent: Wednesday, October 07, 2015 1:56 PM
To: Kushwaha Prabhakar-B32579 <[email protected]>
Cc: U-Boot Mailing List <[email protected]>; Sun York-R58495 <[email protected]>
Subject: Re: [U-Boot] [PATCH 2/2] armv8: ls2085a: Add support of random MAC address for QDS and RDB

Hi,

Quoted 13 lines · Prabhakar Kushwaha

Add support of setting RANDOM MAC address if env variable not available.

---
 include/configs/ls2085a_common.h | 4 ++++
 1 file changed, 4 insertions(+)
include/configs/ls2085a_common.h +0 -0
index 1ec95d2..edd434a 100644

include/configs/ls2085a_common.h unsigned long long get_qixis_addr(void); · line 176

Quoted 4 lines
include/configs/ls2085a_common.h +1 -0
@@ -173,6 +173,10 @@ unsigned long long get_qixis_addr(void);
 #define CONFIG_SYS_LS_MC_AIOP_IMG_MAX_LENGTH   0x200000
 #define CONFIG_SYS_LS_MC_DRAM_AIOP_IMG_OFFSET  0x07000000
 
+/* Add Random lib for random MAC address */ #define

CONFIG_LIB_RAND

Quoted 8 lines
Quoted 5 lines

include/configs/ls2085a_common.h unsigned long long get_qixis_addr(void); · line 179

Quoted 2 lines
include/configs/ls2085a_common.h +2 -0
+#define CONFIG_NET_RANDOM_ETHADDR
+

Can you please add such in the boards' defconfig files instead?

Ls2085a_common.h is included by boards'd defconfig i.e. ls2085aqds.h and ls2085rdb.h. As this piece is common so added in ls2085a_common.h

I mean defconfig files in configs/, not include/configs/

Quoted 3 lines

--prabhakar

Regards,
Bin