Dual ethernet interfaces on Zephyr OS ?
I have got one I.MXRT1062 board with 2 ethernet port on it.
And I checked the I.MXRT1062 EVK BSP and it only support one ETH port.
Is there anything (docs or code) I can refer to , so I can add dual ethernet interfaces with tcp-ip stack to this board?
Hi,toggle quoted messageShow quoted text
there exists NET_DEVICE_INIT_INSTANCE() macro (in include/net/net_if.h)
that can be used for this purpose. You would need to edit the ethernet
driver and call that macro with suitable parameters.
You could also create ETH_NET_DEVICE_INIT_INSTANCE() (it does not
exists yet) from ETH_NET_DEVICE_INIT() (in include/net/ethernet.h) and
add instance support to that.
On Tue, 2019-09-10 at 19:16 +0800, "Explorer wrote: