ls1028A how to enable eno3

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

ls1028A how to enable eno3

跳至解决方案
2,250 次查看
Dmitriy_emb
Contributor I

Hello.

I would like to enable eno3 interface.

According to manual:

Connected internally (MAC to MAC) to swp5. This is used to carry switch controlled traffic between the switch and the Linux bridge. This interface is present if bit 851 is set in RCW.

How do I count 851 bit? How to change it inside rcw_1500.rcw file?

I see a string ENETC_RCW=3. Is it connected to 851 bit?

Thank you.

 

 

 

0 项奖励
回复
1 解答
2,240 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to file rcw/ls1028asi/ls1028a.rcwi, ENETC_RCW is RCW[857:850].

So in ls1028ardb/R_SQPH_0x85be/rcw_1500.rcw, configuring ENETC_RCW as 3 means configuring RCW[851] as 1.

在原帖中查看解决方案

0 项奖励
回复
6 回复数
2,241 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to file rcw/ls1028asi/ls1028a.rcwi, ENETC_RCW is RCW[857:850].

So in ls1028ardb/R_SQPH_0x85be/rcw_1500.rcw, configuring ENETC_RCW as 3 means configuring RCW[851] as 1.

0 项奖励
回复
2,233 次查看
Dmitriy_emb
Contributor I

Thank you for information, this is useful for me.
But I have additional question.
Now Ethernet cable is connected to the SWP0 connector.
By default, I can use it by commands:

ifconfig eno2 up
ifconfig swp0 up
ifconfig swp4 up
dhclient swp0

After these operations, I have the Internet.
But I would like to use eno3 interface.

For this purpose, I modified fsl-ls1028a.dtsi device-tree file.
Please take a look to the attached diff file.

After it, I can't connect to the Internet via both interfaces:

ifconfig eno2 up
ifconfig swp0 up
ifconfig swp4 up
dhclient swp0
As a result - no IP address

ifconfig eno3 up
ifconfig swp0 up
ifconfig swp5 up
dhclient swp0
As a result - no IP address

What is my mistake?

0 项奖励
回复
2,194 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Please create a new thread for your new question.

0 项奖励
回复
2,188 次查看
Dmitriy_emb
Contributor I

Good! Now I investigate it.

0 项奖励
回复
1,324 次查看
xinliwang
Contributor III

Hi, @Dmitriy_emb 

Did you figure out how to use both eno3 and eno2 at the same time?

thank you 

0 项奖励
回复
1,300 次查看
Dmitriy_emb
Contributor I
Hello.
Sorry, but I don't remember. I worked with this board only for introducing. And these interfaces was not my main goal.
0 项奖励
回复