Commit b3b522f247d3f19c4f2309ab0e6a02b3dd82de45

Authored by Miao Yan
Committed by Tom Rini
1 parent 665624149a

VxWorks: fixup MAC address for VxWorks

VxWorks 7 kernels retrieve 'local-mac-addr' from dtb and use
that for NIC MAC address. As a result, when booting the same
kernel image on multiple boards, there will be address
conflicts.

So fixup MAC address when booting VxWorks 7 kernels

Signed-off-by: Miao Yan <yanmiaobest@gmail.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

... ... @@ -288,6 +288,8 @@
288 288 if (ret)
289 289 return;
290 290  
  291 + fdt_fixup_ethernet(*of_flat_tree);
  292 +
291 293 ret = fdt_add_subnode(*of_flat_tree, 0, "chosen");
292 294 if ((ret >= 0 || ret == -FDT_ERR_EXISTS)) {
293 295 bootline = getenv("bootargs");