LS1028ARDB openIL swp0 to swp3 are not enabled

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

LS1028ARDB openIL swp0 to swp3 are not enabled

1,414 Views
baiyu
Contributor I

Dear Experts

We just configuring LS1028ARDB, but the switch funtion seems can't be used. 

We build the boot file following by OpenIL 1.8, it's described in the manual as below:

pastedImage_1.png

my question is how to enalbe the SWP0 to SWP3 and let it have switch funtion.

Thanks a lot.

Labels (1)
0 Kudos
5 Replies

1,364 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello yu bai,

Please refer to the attached script and following log.

root@ls1028ardb:~# bash +x enetc_switch_cpu_port_with_bridge_without_ns.sh
[ 80.835482] Generic PHY fixed-0:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=fixed-0:00, irq=POLL)
[ 80.848035] fsl_enetc 0000:00:00.2 eno2: Link is Up - 1Gbps/Full - flow control off
[ 80.853915] 8021q: adding VLAN 0 to HW filter on device eno2
[ 80.861591] IPv6: ADDRCONF(NETDEV_CHANGE): eno2: link becomes ready
adding swp0 to brigde ..
[ 80.870017] br0: port 1(swp0) entered blocking state
[ 80.875243] br0: port 1(swp0) entered disabled state
[ 80.880412] device swp0 entered promiscuous mode
[ 80.887588] device eno2 entered promiscuous mode
[ 80.892291] mscc_felix 0000:00:00.5 swp0: configuring for inband/qsgmii link mode
[ 80.900709] 8021q: adding VLAN 0 to HW filter on device swp0
adding swp1 to brigde ..
[ 80.908929] br0: port 2(swp1) entered blocking state
[ 80.914148] br0: port 2(swp1) entered disabled state
[ 80.919292] device swp1 entered promiscuous mode
[ 80.926568] mscc_felix 0000:00:00.5 swp1: configuring for inband/qsgmii link mode
[ 80.935042] 8021q: adding VLAN 0 to HW filter on device swp1
adding swp2 to brigde ..
[ 80.943303] br0: port 3(swp2) entered blocking state
[ 80.948474] br0: port 3(swp2) entered disabled state
[ 80.953683] device swp2 entered promiscuous mode
[ 80.960817] mscc_felix 0000:00:00.5 swp2: configuring for inband/qsgmii link mode
[ 80.969180] 8021q: adding VLAN 0 to HW filter on device swp2
adding swp3 to brigde ..
[ 80.977378] br0: port 4(swp3) entered blocking state
[ 80.982636] br0: port 4(swp3) entered disabled state
[ 80.987869] device swp3 entered promiscuous mode
[ 80.995206] mscc_felix 0000:00:00.5 swp3: configuring for inband/qsgmii link mode
[ 81.003611] 8021q: adding VLAN 0 to HW filter on device swp3
6: swp0@eno2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 master br0 state disabled priority 32 cost 100
7: swp1@eno2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 master br0 state disabled priority 32 cost 100
8: swp2@eno2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 master br0 state disabled priority 32 cost 100
9: swp3@eno2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 master br0 state disabled priority 32 cost 100
root@ls1028ardb:~# echo $?
0
root@ls1028ardb:~# ifconfig br0 100.1.1.29
root@ls1028ardb:~# echo $?
0
root@ls1028ardb:~# [ 89.099647] mscc_felix 0000:00:00.5 swp0: Link is Up - 1Gbps/Full - flow control off
[ 89.107550] IPv6: ADDRCONF(NETDEV_CHANGE): swp0: link becomes ready
[ 89.114066] br0: port 1(swp0) entered blocking state
[ 89.119115] br0: port 1(swp0) entered forwarding state
ping 100.1.1.1 -s 1 -c 5

Thanks,

Yiping

0 Kudos

1,364 Views
baiyu
Contributor I

Hi, Yiping

where can i find the attached script?

how it work? directly input the commands into the openil prompt?

Thanks a lot.

0 Kudos

1,364 Views
yipingwang
NXP TechSupport
NXP TechSupport

You could copy the script to the target board and execute it directly.

0 Kudos

1,364 Views
baiyu
Contributor I

   Hi, Yipng

As copy the script to the board. Something still looks strange.

1. the bridge can be create successfully, but the MAC addr of swp0 to swp3 still the same.

pastedImage_1.png

2. when set ip addr for bridge or swp0...3, the pc can not ping the port sucessfully.

pastedImage_2.png

3. the lookup table result as below:

pastedImage_3.png

pastedImage_4.png

Thanks a lot.

0 Kudos

1,363 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to the attached "simple switch configuration without bridge" script and the test log from the testing team.

0 Kudos