[U-Boot] [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.
Signed-off-by: Prabhakar Kushwaha prabhakar@freescale.com --- include/configs/ls2085a_common.h | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/include/configs/ls2085a_common.h b/include/configs/ls2085a_common.h index 1ec95d2..edd434a 100644 --- a/include/configs/ls2085a_common.h +++ b/include/configs/ls2085a_common.h @@ -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 *

Hi,
On Tue, Oct 6, 2015 at 8:43 PM, Prabhakar Kushwaha prabhakar@freescale.com wrote:
Add support of setting RANDOM MAC address if env variable not available.
Signed-off-by: Prabhakar Kushwaha prabhakar@freescale.com
include/configs/ls2085a_common.h | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/include/configs/ls2085a_common.h b/include/configs/ls2085a_common.h index 1ec95d2..edd434a 100644 --- a/include/configs/ls2085a_common.h +++ b/include/configs/ls2085a_common.h @@ -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?
/*
- Carve out a DDR region which will not be used by u-boot/Linux
--
Regards, Bin

Regards, Prabhakar
-----Original Message----- From: Bin Meng [mailto:bmeng.cn@gmail.com] Sent: Wednesday, October 07, 2015 1:56 PM To: Kushwaha Prabhakar-B32579 prabhakar@freescale.com Cc: U-Boot Mailing List u-boot@lists.denx.de; Sun York-R58495 yorksun@freescale.com Subject: Re: [U-Boot] [PATCH 2/2] armv8: ls2085a: Add support of random MAC address for QDS and RDB
Hi,
On Tue, Oct 6, 2015 at 8:43 PM, Prabhakar Kushwaha prabhakar@freescale.com wrote:
Add support of setting RANDOM MAC address if env variable not available.
Signed-off-by: Prabhakar Kushwaha prabhakar@freescale.com
include/configs/ls2085a_common.h | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/include/configs/ls2085a_common.h b/include/configs/ls2085a_common.h index 1ec95d2..edd434a 100644 --- a/include/configs/ls2085a_common.h +++ b/include/configs/ls2085a_common.h @@ -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?
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

On Wed, Oct 7, 2015 at 5:08 PM, Kushwaha Prabhakar prabhakar@freescale.com wrote:
Regards, Prabhakar
-----Original Message----- From: Bin Meng [mailto:bmeng.cn@gmail.com] Sent: Wednesday, October 07, 2015 1:56 PM To: Kushwaha Prabhakar-B32579 prabhakar@freescale.com Cc: U-Boot Mailing List u-boot@lists.denx.de; Sun York-R58495 yorksun@freescale.com Subject: Re: [U-Boot] [PATCH 2/2] armv8: ls2085a: Add support of random MAC address for QDS and RDB
Hi,
On Tue, Oct 6, 2015 at 8:43 PM, Prabhakar Kushwaha prabhakar@freescale.com wrote:
Add support of setting RANDOM MAC address if env variable not available.
Signed-off-by: Prabhakar Kushwaha prabhakar@freescale.com
include/configs/ls2085a_common.h | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/include/configs/ls2085a_common.h b/include/configs/ls2085a_common.h index 1ec95d2..edd434a 100644 --- a/include/configs/ls2085a_common.h +++ b/include/configs/ls2085a_common.h @@ -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?
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/
--prabhakar
Regards, Bin
participants (3)
-
Bin Meng
-
Kushwaha Prabhakar
-
Prabhakar Kushwaha