diff options
author | Miao Yan <yanmiaobest@gmail.com> | 2015-12-01 23:39:01 -0800 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-12-12 15:56:08 -0500 |
commit | b3b522f247d3f19c4f2309ab0e6a02b3dd82de45 (patch) | |
tree | 6fcdf0f3b12fd3dba64b78a7968b9037bb49e71a /common/bootm_os.c | |
parent | 665624149a55f43e25e13ea50bd0015c31e6c6bb (diff) |
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>
Diffstat (limited to 'common/bootm_os.c')
-rw-r--r-- | common/bootm_os.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/bootm_os.c b/common/bootm_os.c index 72477f0b81..cb83f4a9bd 100644 --- a/common/bootm_os.c +++ b/common/bootm_os.c @@ -288,6 +288,8 @@ void do_bootvx_fdt(bootm_headers_t *images) if (ret) return; + fdt_fixup_ethernet(*of_flat_tree); + ret = fdt_add_subnode(*of_flat_tree, 0, "chosen"); if ((ret >= 0 || ret == -FDT_ERR_EXISTS)) { bootline = getenv("bootargs"); |