Ethernet setup on LS1028ARDB

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

Ethernet setup on LS1028ARDB

跳至解决方案
1,225 次查看
noahw
Contributor III

I am trying to set up ethernet interface on LS1028ARDB as well. I run your shell script from https://community.nxp.com/t5/Layerscape/Switch-Setup-on-LS1028ARDB/m-p/2061701?attachment-id=18222 to bring the interfaces up, then follow the next steps. I do see the lines:

mscc_felix 0000:00:00.5 swp0: Link is Up -- 1Gbps/Full - flow control rx/tx

IPv6: ADDRCONF(NETDEV_CHANGE): swp0: link becomes ready

 

However, when I try ping -c 5 -s 1 100.1.1.1, the ping fails and I get Destination Host Unreachable.

my output of `ip a` shows:

eno2: <BROADCAST,MULTICAST,UP,LOWER_UP> with no ip address, and

swp0@eno2: <BROADCAST,MULTICAST,UP,LOWER_UP> with ip address 100.1.1.29

 

Any ideas?

0 项奖励
回复
1 解答
1,161 次查看
noahw
Contributor III

Figured this out, I needed to run 

dhclient eno0

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,170 次查看
yipingwang
NXP TechSupport
NXP TechSupport

1. Please check Kernel configuration file whether the following Kernel options are enabled.

~# zcat /proc/config.gz | grep CONFIG_MSCC_OCELOT_SWITCH
CONFIG_MSCC_OCELOT_SWITCH=y
~# zcat /proc/config.gz | grep CONFIG_NET_DSA_MSCC_FELIX
CONFIG_NET_DSA_MSCC_FELIX=y
~# zcat /proc/config.gz | grep CONFIG_FSL_ENETC_MDIO
CONFIG_FSL_ENETC_MDIO=y

Example – Single port configuration of the Felix DSA switch driver:
#!/bin/bash
#
# configure external switch interfaces
ip addr add 192.168.0.1/24 dev swp0
ip addr add 192.168.1.1/24 dev swp1
ip addr add 192.168.1.1/24 dev swp2
ip addr add 192.168.1.1/24 dev swp3
# master interface to be brought up first
ip link set eno2 up
# bring up the slave interfaces
ip link set swp0 up
ip link set swp1 up
ip link set swp2 up
ip link set swp3 up

Please refer to "8.6.3.3.4 Bridge mode" and "8.6.3.3.5 Gateway mode" in LSDK 21.08 user manual to configure switch ports in other mode.

0 项奖励
回复
1,162 次查看
noahw
Contributor III

Figured this out, I needed to run 

dhclient eno0

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2071472%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ELS1028ARDB%20%E4%B8%8A%E7%9A%84%E4%BB%A5%E5%A4%AA%E7%BD%91%E8%AE%BE%E7%BD%AE%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2071472%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%88%91%E4%B9%9F%E6%AD%A3%E5%9C%A8%E5%B0%9D%E8%AF%95%E5%9C%A8%20LS1028ARDB%20%E4%B8%8A%E8%AE%BE%E7%BD%AE%E4%BB%A5%E5%A4%AA%E7%BD%91%E6%8E%A5%E5%8F%A3%E3%80%82%E6%88%91%E4%BB%8E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FLayerscape%2FSwitch-Setup-on-LS1028ARDB%2Fm-p%2F2061701%3Fattachment-id%3D18222%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FLayerscape%2FSwitch-Setup-on-LS1028ARDB%2Fmp%2F2061701%3Fattachment-id%3D18222%3C%2FA%3E%E8%BF%90%E8%A1%8C%E6%82%A8%E7%9A%84%20shell%20%E8%84%9A%E6%9C%AC%E6%9D%A5%E5%90%AF%E5%8A%A8%E6%8E%A5%E5%8F%A3%EF%BC%8C%E7%84%B6%E5%90%8E%E6%8C%89%E7%85%A7%E4%BB%A5%E4%B8%8B%E6%AD%A5%E9%AA%A4%E6%93%8D%E4%BD%9C%E3%80%82%E6%88%91%E7%A1%AE%E5%AE%9E%E7%9C%8B%E5%88%B0%E4%BA%86%E4%BB%A5%E4%B8%8B%E5%87%A0%E8%A1%8C%EF%BC%9A%3C%2FP%3E%3CP%3Emscc_felix%200000%3A00%3A00.5%20swp0%EF%BC%9A%E9%93%BE%E8%B7%AF%E5%B7%B2%E5%90%AF%E5%8A%A8%20--%201Gbps%2F%E6%BB%A1%E9%80%9F%20-%20%E6%B5%81%E9%87%8F%E6%8E%A7%E5%88%B6%20rx%2Ftx%3C%2FP%3E%3CP%3EIPv6%EF%BC%9AADDRCONF%EF%BC%88NETDEV_CHANGE%EF%BC%89%EF%BC%9Aswp0%EF%BC%9A%E9%93%BE%E8%B7%AF%E5%87%86%E5%A4%87%E5%B0%B1%E7%BB%AA%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%E4%BD%86%E6%98%AF%EF%BC%8C%E5%BD%93%E6%88%91%E5%B0%9D%E8%AF%95%20ping%20-c%205%20-s%201%20100.1.1.1%20%E6%97%B6%EF%BC%8Cping%20%E5%A4%B1%E8%B4%A5%EF%BC%8C%E5%B9%B6%E6%98%BE%E7%A4%BA%E2%80%9C%E7%9B%AE%E6%A0%87%E4%B8%BB%E6%9C%BA%E4%B8%8D%E5%8F%AF%E8%BE%BE%E2%80%9D%E3%80%82%3C%2FP%3E%3CP%3E%E6%88%91%E7%9A%84%E2%80%9Cip%20a%E2%80%9D%E8%BE%93%E5%87%BA%E6%98%BE%E7%A4%BA%EF%BC%9A%3C%2FP%3E%3CP%3Eeno2%EF%BC%9A%3CBROADCAST%3E%20%E6%B2%A1%E6%9C%89%20IP%20%E5%9C%B0%E5%9D%80%EF%BC%8C%E5%B9%B6%E4%B8%94%3C%2FBROADCAST%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22mailto%3Aswp0%40eno2%3A%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Eswp0%40eno2%3A%3C%2FA%3E%20%3CBROADCAST%3E%20IP%E5%9C%B0%E5%9D%80%E4%B8%BA100.1.1.29%3C%2FBROADCAST%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%E6%82%A8%E6%9C%89%E4%BB%80%E4%B9%88%E6%83%B3%E6%B3%95%E5%90%97%EF%BC%9F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2076518%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9ALS1028ARDB%20%E4%B8%8A%E7%9A%84%E4%BB%A5%E5%A4%AA%E7%BD%91%E8%AE%BE%E7%BD%AE%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2076518%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%83%B3%E9%80%9A%E4%BA%86%E8%BF%99%E4%B8%80%E7%82%B9%EF%BC%8C%E6%88%91%E9%9C%80%E8%A6%81%E8%B7%91%3C%2FP%3E%3CP%3Edhclient%20eno0%3C%2FP%3E%3C%2FLINGO-BODY%3E