mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
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>
This commit is contained in:
parent
665624149a
commit
b3b522f247
1 changed files with 2 additions and 0 deletions
|
|
@ -288,6 +288,8 @@ void do_bootvx_fdt(bootm_headers_t *images)
|
||||||
if (ret)
|
if (ret)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
fdt_fixup_ethernet(*of_flat_tree);
|
||||||
|
|
||||||
ret = fdt_add_subnode(*of_flat_tree, 0, "chosen");
|
ret = fdt_add_subnode(*of_flat_tree, 0, "chosen");
|
||||||
if ((ret >= 0 || ret == -FDT_ERR_EXISTS)) {
|
if ((ret >= 0 || ret == -FDT_ERR_EXISTS)) {
|
||||||
bootline = getenv("bootargs");
|
bootline = getenv("bootargs");
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue