How to enable eth1 get IP automatically when kernel startup?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to enable eth1 get IP automatically when kernel startup?

1,642件の閲覧回数
liuyonggang
Contributor III

Environment: Yocto

Platform: Imx8qxp

OS: Linux

Version: 4.14.98

There are two Ethernets (eth0&eth1) on my board.I have forbidden busybox first.eth0 can gets IP automatically when kernel startup.But eth1 cann't gets IP automatically when kernel startup.secondly,I have masked "obj-$(CONFIG_IP_PNP) += ipconfig.o" . But eth0 still can gets IP automatically when kernel startup.

I can't find config IP corresponding code.Can someone tell me which file?

BRs

Johnny

ラベル(1)
タグ(1)
0 件の賞賛
返信
4 返答(返信)

1,520件の閲覧回数
joanxie
NXP TechSupport
NXP TechSupport

maybe you can refer to the document as below:

https://community.nxp.com/docs/DOC-344765 

0 件の賞賛
返信

1,520件の閲覧回数
liuyonggang
Contributor III

Hi Xie,

   I can't open the link which you provide. Can you send the document to me?My E-mail:liuyg13530885230@163.com.

Tks!

BRs!

Johnny!

0 件の賞賛
返信

1,520件の閲覧回数
joanxie
NXP TechSupport
NXP TechSupport

this document is about that  RMII PHY is NXP TJA1101, it output 50MHz REF_CLK to i.MX8QXP. what's your design? you use your own board or just imx8qxp board with base board? how about your dual ethernet?

0 件の賞賛
返信

1,520件の閲覧回数
liuyonggang
Contributor III

Hi Xie,

   My board is ES1.The two RGMII PHY chips are Marvell_88Q2110。I have already find where can enable eth0&eth1 to get IP

automatically.It in systemd/systemd/50-wired.network file.The content of the file is as followings:

[Match]
Name=eth0

[Network]
DHCP=ipv4

and I modify "Name=eth0" to "Name=eth*" .It can be okay.

Thanks all the same.

BRs

Johnny

0 件の賞賛
返信