]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
VxWorks: fixup MAC address for VxWorks
authorMiao Yan <yanmiaobest@gmail.com>
Wed, 2 Dec 2015 07:39:01 +0000 (23:39 -0800)
committerTom Rini <trini@konsulko.com>
Sat, 12 Dec 2015 20:56:08 +0000 (15:56 -0500)
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>
common/bootm_os.c

index 72477f0b810b154c58fb7e581e89c905cc95cd06..cb83f4a9bd33f8fbb0c8877114c26cd5fd95d302 100644 (file)
@@ -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");