bootvx_fdt: fix missing 'fdt_fixup_ethernet(...)' on vxWorks boot
PATCH v3 1/1 bootvx_fdt: fix missing 'fdt_fixup_ethernet(...)' on vxWorks boot
Before commit 26d6119 (fdt: Move fdt_fixup_ethernet to a common place) the fdt_fixup_ethernet(...) was called during do_bootvx_fdt(...).
Afterwards the only (common) place for this fixup is during image_setup_libfdt(...) and this is only called, at least on ARM platform, from image_setup_linux(...).
All this ends up in the fact, that the fdt_fixup_ethernet(...) is only called on booting a linux image and not on booting a vxWorks image.
We fix this with adding the fdt_fixup_ethernet(...) call again to do_bootvx_fdt(...)
---
Changes in v3:
- cosmetic changes (coding style)
Changes in v2:
- restore original behaviour from b3b522f247d3f19c4f2309ab0e6a02b3dd82de45 with moving the fdt_fixup_ethernet(...) call after boot_relocate_fdt(...)
common/bootm_os.c | 3 +++ 1 file changed, 3 insertions(+)
common/bootm_os.c +3 -0
@@ -276,6 +276,9 @@ void do_bootvx_fdt(bootm_headers_t *images)if (ret)return ; +/* Update ethernet nodes */ +fdt_fixup_ethernet (*of_flat_tree); + ret =fdt_add_subnode (*of_flat_tree,0 ,"chosen" );if ((ret >=0 || ret == -FDT_ERR_EXISTS )) { bootline =env_get ("bootargs" );
Signature · 1 line
2.7.4
PATCH v3 1/1 bootvx_fdt: fix missing 'fdt_fixup_ethernet(...)' on vxWorks boot
Quoted 20 lines · Hannes Schmelzer
Before commit 26d6119 (fdt: Move
fdt_fixup_ethernetto a common place) thefdt_fixup_ethernet(...)was called duringdo_bootvx_fdt(...).Afterwards the only (common) place for this fixup is during
image_setup_libfdt(...)and this is only called, at least on ARM platform, fromimage_setup_linux(...).All this ends up in the fact, that the
fdt_fixup_ethernet(...)is only called on booting a linux image and not on booting a vxWorks image.We fix this with adding the
fdt_fixup_ethernet(...)call again todo_bootvx_fdt(...)Signed-off-by Hannes Schmelzer <[email protected]>---
Changes in v3:
- cosmetic changes (coding style)
Quoted 8 lines
Changes in v2:
- restore original behaviour fromb3b522f247d3f19c4f2309ab0e6a02b3dd82de45with moving thefdt_fixup_ethernet(...)call afterboot_relocate_fdt(...)common/bootm_os.c | 3 +++ 1 file changed, 3 insertions(+)
PATCH v3 1/1 bootvx_fdt: fix missing 'fdt_fixup_ethernet(...)' on vxWorks boot
In reply to Hannes SchmelzerQuoted 7 lines · Hannes Schmelzer
Before commit 26d6119 (fdt: Move
fdt_fixup_ethernetto a common place) thefdt_fixup_ethernet(...)was called duringdo_bootvx_fdt(...).Afterwards the only (common) place for this fixup is during
image_setup_libfdt(...)and this is only called, at least on ARM platform, fromimage_setup_linux(...).
Quoted 8 lines
All this ends up in the fact, that the
fdt_fixup_ethernet(...)is only called on booting a linux image and not on booting a vxWorks image.We fix this with adding the
fdt_fixup_ethernet(...)call again todo_bootvx_fdt(...)Signed-off-by Hannes Schmelzer <[email protected]>Reviewed-by Bin Meng <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170828/7c925acb/attachment.sig>