ls1021a-iot Ethernet Switches not WORKING!!

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

ls1021a-iot Ethernet Switches not WORKING!!

696 Views
shimsangwon
Contributor I

Hello.

I am currently using the ls1021a-iot board. The switch can not be set after installing the Linux kernel provided by nxp on the board.

What I use is

https://www.nxp.com/support/developer-resources/reference-designs/qoriq-ls1021a-iot-gateway-referenc...

'LEDE', OpenWRT, and the Linux SDK Source ISO (REV0.1).

The Ethernet switch did not work with all three versions.

The second and third kernels build the Linux SDK Source ISO (REV 0.1) with fsl-image-rds, fsl-image-core.

The following is the contents of U-Boot and Ethernet contents set in Ethtool.

U-Boot 2016.092.0 + g8b03761 (Aug 31 2017 - 23:45:56 -0700)

CPU: Freescale LayerScape LS1021, Version: 2.0, (0x87001120)
Clock Configuration:
   
CPU0 (ARMV7): 1000 MHz,
   
Bus: 300 MHz, DDR: 800 MHz (1600 MT / s data rate),
Reset Configuration Word (RCW):
   
00000000: 0608000a 00000000 00000000 00000000
   
00000010: 20000000 08407900 60025a00 21046000
   
00000020: 00000000 00000000 00000000 20038000
   
00000030: 20024800 881b1340 00000000 00000000
Model: LS1021A IOT Board
Board: LS1021AIOT
CPLD: V15.15
I2C: ready
DRAM: 1 GiB
Using SERDES1 Protocol: 32 (0x20)
MMC: FSL_SDHC: 0
EEPROM: Read failed.
In: serial
Out: serial
Err: serial
SATA link 0 timeout.
AHCI 0001.0300 1 slots 1 ports? Gbps 0x1 impl SATA mode
flags: 64bit ncq pm clo only pmp fbss pio slum part ccc
Found 0 device (s).
SCSI: Net: eTSEC1 is in sgmii mode.
eTSEC2 is in sgmii mode.
PCIe0: pcie @ 3400000 Root Complex: no link
PCIe1: pcie @ 3500000 Root Complex: no link
eTSEC1, eTSEC2 [PRIME]

/ * ETSEC3 is not set here. Is there anything that does not matter?
   
I have eTSEC3 set up for other users. * /



eth0 Link encap: Ethernet HWaddr 00: e0: 0c: bc: e5: 60
   
UP BROADCAST MULTICAST MTU: 1500 Metric: 1
   
RX packets: 0 errors: 0 dropped: 0 overruns: 0 frame: 0
eth1      Link encap:Ethernet  HWaddr 00:e0:0c:bc:e5:61
          inet addr:192.168.1.235  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::2e0:cff:febc:e561/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:94001 errors:0 dropped:0 overruns:0 frame:0
          TX packets:49100 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:12102282 (11.5 MiB)  TX bytes:8548601 (8.1 MiB)
          Base address:0xa000
eth2      Link encap:Ethernet  HWaddr 00:e0:0c:bc:e5:62
          inet6 addr: fe80::2e0:cff:febc:e562/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4771 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:1629594 (1.5 MiB)
          Base address:0xe000
Settings for eth0:
        Supported ports: [ MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Advertised pause frame use: No
        Advertised auto-negotiation: Yes
        Speed: 10Mb/s
        Duplex: Half
        Port: MII
        PHYAD: 1
        Transceiver: external
        Auto-negotiation: on
        Supports Wake-on: g
        Wake-on: d
        Current message level: 0x0000003f (63)
                               drv probe link timer ifdown ifup
        Link detected: no
Settings for eth1:
        Supported ports: [ MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Advertised pause frame use: No
        Advertised auto-negotiation: Yes
        Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                             100baseT/Half 100baseT/Full
                                             1000baseT/Full
        Link partner advertised pause frame use: Symmetric Receive-only
        Link partner advertised auto-negotiation: Yes
        Speed: 100Mb/s
        Duplex: Full
        Port: MII
        PHYAD: 3
        Transceiver: external
        Auto-negotiation: on
        Supports Wake-on: g
        Wake-on: d
        Current message level: 0x0000003f (63)
                               drv probe link timer ifdown ifup
        Link detected: yes
Settings for eth2:
        Supported ports: [ MII ]
        Supported link modes:   1000baseT/Full
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: Yes
        Advertised link modes:  1000baseT/Full
        Advertised pause frame use: No
        Advertised auto-negotiation: Yes
        Link partner advertised link modes:  1000baseT/Full
        Link partner advertised pause frame use: No
        Link partner advertised auto-negotiation: No
        Speed: 1000Mb/s
        Duplex: Full
        Port: MII
        PHYAD: 0
        Transceiver: external
        Auto-negotiation: on
        Supports Wake-on: g
        Wake-on: d
        Current message level: 0x0000003f (63)
                               drv probe link timer ifdown ifup
        Link detected: yes
Here is what I would like to ask you.
1. eth2 is an Ethernet Switch, so how do you check the ip list connected to eth2?

2. eth2 is linked, but you can actually connect to eth2 and try to ping or connect with ip. Is there a way to set it up separately?

I have built it into a document and tried to use eth0 and eth2 with br-lan. But it was not all.

I have tried to solve the problem for a long time, but it is not done and I need help.

Thank you in advance.
Labels (1)
0 Kudos
1 Reply

465 Views
alexander_yakov
NXP Employee
NXP Employee

Sorry for delayed response.

You said:

"/ * ETSEC3 is not set here. Is there anything that does not matter?
   
I have eTSEC3 set up for other users. * /

According to board schematic, L2 switch is connected to ETSEC3, so using ETSEC3 for other purposes is not possible.


Have a great day,
Alexander
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos