yocto linux support for second ethernet port on I.MX8 MEK board

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

yocto linux support for second ethernet port on I.MX8 MEK board

Jump to solution
1,640 Views
edouard_charvet
Contributor III
Hello, We want to use the second ethernet port of the I.MX8, which is available on the back connector of the I.MX8 MEK board using a custom design board. Our understanding is that we need to add a PHY. We would like to use the DP83867. I'm wondering how this will then work with linux. I have very little experience with Linux drivers. I'm using the yocto linux provided by NXP (branch imx-linux-zeus - imx-5.4.70-2.3.1) and I'm wondering if it will support this PHY or not ? If it does not, which PHY are supported (we may consider using another one then...) ? If it does, what do I need to do in Linux to get the 2nd connection active then ? Thanks,
0 Kudos
Reply
1 Solution
1,629 Views
igorpadykov
NXP Employee
NXP Employee

Hi Edouard

 

for second ethernet port one can try enet accessory cards (like IMX-RMII-BRPHY with TJA1100) described on

https://www.nxp.com/design/development-boards/i-mx-evaluation-and-development-boards/i-mx-8-series-a...

 

for software use fsl-imx8qxp-mek-enet2-tja1100.dts

https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/imx8qxp-mek-...

Default nxp bsps do not support DP83867, one will have to port it, use its driver

https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/net/phy/dp83867.c?h=imx_5.4.70_2.3...

 

Best regards
igor

View solution in original post

0 Kudos
Reply
3 Replies
1,630 Views
igorpadykov
NXP Employee
NXP Employee

Hi Edouard

 

for second ethernet port one can try enet accessory cards (like IMX-RMII-BRPHY with TJA1100) described on

https://www.nxp.com/design/development-boards/i-mx-evaluation-and-development-boards/i-mx-8-series-a...

 

for software use fsl-imx8qxp-mek-enet2-tja1100.dts

https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/imx8qxp-mek-...

Default nxp bsps do not support DP83867, one will have to port it, use its driver

https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/net/phy/dp83867.c?h=imx_5.4.70_2.3...

 

Best regards
igor

0 Kudos
Reply
1,613 Views
edouard_charvet
Contributor III

@igorpadykov : thanks for the answer. Can you be a bit more explicit with what I need to do to "port" the DP83867 driver you provided in the link ? Is this a complex task ? I could rebuild the yocto distribution that is mentioned in my initial post. How do I add the driver to this ? Do I need to create a new yocto recipe; or add it to an existing recipe ? How do I "plug" it into the kernel ? Is there some files from the filesystem to modify ? I know very little about drivers in Linux... Any examples or guided walkthrough would be greatly appreciated...

Thanks for your help.

0 Kudos
Reply
1,610 Views
igorpadykov
NXP Employee
NXP Employee

Hi Edouard

 

regarding porting new driver, unfortunately it is not simple task. NXP has special

service for help with porting new drivers: https://contact.nxp.com/new-prof-svcs-sw-tech

As general documentation one can refer to  i.MX Porting Guide

 

Best regards
igor

0 Kudos
Reply