Igor Pecovnik 40c19e536e Fix random MAC on Orangepi 5 series
We don't want that MAC address is changed on every reboot
2024-02-24 23:23:00 +01:00

33 lines
933 B
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Igor <igor@armbian.com>
Date: Sat, 24 Feb 2024 21:50:04 +0000
Subject: Do not change MAC address randomly
Signed-off-by: Igor <igor@armbian.com>
---
common/fdt_support.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/common/fdt_support.c b/common/fdt_support.c
index e72aaf04e0..fa3d3e7af2 100644
--- a/common/fdt_support.c
+++ b/common/fdt_support.c
@@ -703,12 +703,12 @@ void fdt_fixup_ethernet(void *fdt)
tmp = (*end) ? end + 1 : end;
}
do_fixup_by_path(fdt, path, "mac-address",
&mac_addr, 6, 0);
- //do_fixup_by_path(fdt, path, "local-mac-address",
- // &mac_addr, 6, 1);
+ do_fixup_by_path(fdt, path, "local-mac-address",
+ &mac_addr, 6, 1);
}
}
}
/* Resize the fdt to its actual size + a bit of padding */
--
Created with Armbian build tools https://github.com/armbian/build