[meta-ti] [PATCH] Do not use fixed MAC address in dts file
Tudor Florea
tudor.florea at enea.com
Mon Dec 2 06:33:06 PST 2013
Do not use fixed MAC address in dts file to avoid duplicate MAC
address in the same LAN segment
Signed-off-by: Tudor Florea <tudor.florea at enea.com>
---
.../avoid_duplicate_mac_addr.patch | 30 ++++++++++++++++++++
recipes-kernel/linux/linux-keystone_3.8.4.bb | 1 +
2 files changed, 31 insertions(+)
create mode 100644 recipes-kernel/linux/linux-keystone-3.8.4/avoid_duplicate_mac_addr.patch
diff --git a/recipes-kernel/linux/linux-keystone-3.8.4/avoid_duplicate_mac_addr.patch b/recipes-kernel/linux/linux-keystone-3.8.4/avoid_duplicate_mac_addr.patch
new file mode 100644
index 0000000..d29b76c
--- /dev/null
+++ b/recipes-kernel/linux/linux-keystone-3.8.4/avoid_duplicate_mac_addr.patch
@@ -0,0 +1,30 @@
+diff --git a/arch/arm/boot/dts/k2hk-evm.dts b/arch/arm/boot/dts/k2hk-evm.dts
+index 50e7fe6..ae46287 100644
+--- a/arch/arm/boot/dts/k2hk-evm.dts
++++ b/arch/arm/boot/dts/k2hk-evm.dts
+@@ -2462,7 +2462,7 @@
+ rx-channel = "netrx1";
+ rx-queue-depth = <128 128 0 0>;
+ rx-buffer-size = <1500 4096 0 0>;
+ efuse-mac = <0>;
+- local-mac-address = [02 18 31 7e 3e 6f];
++ /*local-mac-address = [02 18 31 7e 3e 6f]; */
+ };
+ };
+
+@@ -2721,13 +2721,13 @@
+ rx-channel = "xgerx0";
+ rx-queue-depth = <128 0 0 0>;
+ rx-buffer-size = <1500 0 0 0>;
+- local-mac-address = [02 18 31 7e 3e 5e]; /*+++FIXME*/
++ /* local-mac-address = [02 18 31 7e 3e 5e]; */
+ };
+ interface-1 {
+ rx-channel = "xgerx1";
+ rx-queue-depth = <128 128 0 0>;
+ rx-buffer-size = <1500 4096 0 0>;
+- local-mac-address = [02 18 31 7e 3e 5f]; /*+++FIXME*/
++ /* local-mac-address = [02 18 31 7e 3e 5f]; */
+ };
+ };
+
diff --git a/recipes-kernel/linux/linux-keystone_3.8.4.bb b/recipes-kernel/linux/linux-keystone_3.8.4.bb
index 709ef8f..17c3b1b 100644
--- a/recipes-kernel/linux/linux-keystone_3.8.4.bb
+++ b/recipes-kernel/linux/linux-keystone_3.8.4.bb
@@ -26,4 +26,5 @@ PR = "${MACHINE_KERNEL_PR}"
SRC_URI = "git://arago-project.org/git/projects/linux-keystone.git;protocol=git;branch=${BRANCH}\
file://defconfig\
file://libtraceevent-Remove-hard-coded-include-to-usr-local-include-in-Makefile.patch\
+ file://avoid_duplicate_mac_addr.patch\
"
--
1.7.10.4
More information about the meta-ti
mailing list