bridge interface not working on LS1028A RDB

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

bridge interface not working on LS1028A RDB

2,107 Views
jjc1
Contributor II

Ping on bridge interface is not working. Below are my logs.

U-Boot 2018.03-00139-ge124969f47-dirty (Dec 20 2018 - 15:22:43 +0530)

Clock Configuration:
       CPU0(A72):1300 MHz  CPU1(A72):1300 MHz  
       Bus:      400  MHz  DDR:      1600 MT/s
Reset Configuration Word (RCW):
       00000000: 34004010 00000030 00000000 00000000
       00000010: 00000000 008f0000 0030c000 00000000
       00000020: 006031a0 00002580 00000000 00003296
       00000030: 00000000 00000010 00000000 00000000
       00000040: 00000000 00000000 00000000 00000000
       00000050: 00000000 00000000 00000000 00000000
       00000060: 00000000 00000000 2006705a 00000000
       00000070: bb580000 00000000
Model: NXP Layerscape 1028a RDB Board
Board: LS1028AE Rev1.0-RDB, Version: A, boot from NOR
FPGA: v6 (RELEASED: RDB_2018_1206_2148)
SERDES1 Reference : Clock1 = 100.00MHz Clock2 = 100.00MHz
I2C:   ready
DRAM:  Initializing DDR....
Detected UDIMM Fixed DDR on board
3.9 GiB
DDR    3.9 GiB (DDR4, 32-bit, CL=11, ECC on)
PPA Firmware: Version LSDK-18.09
Using SERDES1 Protocol: 47960 (0xbb58)
PCIe0: pcie@3400000 Root Complex: no link
PCIe1: pcie@3500000 Root Complex: no link
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from SPI Flash... SF: Detected mt35xu02g with page size 256 Bytes, erase size 128 KiB, total 2 GiB
OK
In:    serial
Out:   serial
Err:   serial
Net:   eth0: enetc#0
Warning: enetc#1 (eth1) using random MAC address - fe:ec:e4:6e:d5:b0
, eth1: enetc#1, eth2: enetc#2, eth3: netc_mdio
MDIO MUX: no MDIO MUX node
Hit any key to stop autoboot:  0
=> set bootargs console=ttyS0,115200 root=/dev/ram0 earlycon=uart8250,mmio,0x21c0500 ramdisk_size=0x2000000 default_hugepagesz=2m hugepagesz=2m
 hugepages=256 video=1920x1080-32@60 cma=256M,mscc_felix.pair_eth=eth1
=> boot
Trying load from SD ..
SF: Detected mt35xu02g with page size 256 Bytes, erase size 128 KiB, total 2 GiB
device 0 offset 0x900000, size 0x20000
SF: 131072 bytes @ 0x900000 Read: OK
Loading hdp firmware from 0x00000000a0000000 offset 0x0000000000002000
Loading hdp firmware Complete
Device: FSL_SDHC
Manufacturer ID: 3
OEM: 5344
Name: SS16G
Bus Speed: 50000000
Mode : SD High Speed (50MHz)
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 14.8 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes

MMC read: dev # 0, block # 32768, count 102400 ... 102400 blocks read: OK
Wrong Image Format for bootm command
ERROR: can't get kernel image!
Trying load from EMMC ..
SF: Detected mt35xu02g with page size 256 Bytes, erase size 128 KiB, total 2 GiB
device 0 offset 0x900000, size 0x20000
SF: 131072 bytes @ 0x900000 Read: OK
Loading hdp firmware from 0x00000000a0000000 offset 0x0000000000002000
Loading hdp firmware Complete
Device: FSL_SDHC
Manufacturer ID: 3
OEM: 5344
Name: SS16G
Bus Speed: 50000000
Mode : SD High Speed (50MHz)
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 14.8 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes
switch to partitions #0, OK
mmc1(part 0) is current device

MMC read: dev # 1, block # 32768, count 102400 ... 102400 blocks read: OK
## Loading kernel from FIT Image at a0000000 ...
   Using 'config@1' configuration
   Trying 'kernel@1' kernel subimage
     Description:  ARM64 Linux kernel
     Type:         Kernel Image
     Compression:  uncompressed
     Data Start:   0xa00000dc
     Data Size:    22508032 Bytes = 21.5 MiB
     Architecture: AArch64
     OS:           Linux
     Load Address: 0x80080000
     Entry Point:  0x80080000
   Verifying Hash Integrity ... OK
## Loading ramdisk from FIT Image at a0000000 ...
   Using 'config@1' configuration
   Trying 'ramdisk@1' ramdisk subimage
     Description:  LS1028A Ramdisk
     Type:         RAMDisk Image
     Compression:  uncompressed
     Data Start:   0xa157bf64
     Data Size:    25193503 Bytes = 24 MiB
     Architecture: AArch64
     OS:           Linux
     Load Address: unavailable
     Entry Point:  unavailable
   Verifying Hash Integrity ... OK
## Loading fdt from FIT Image at a0000000 ...
   Using 'config@1' configuration
   Trying 'fdt@1' fdt subimage
     Description:  Flattened Device Tree blob
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0xa1577390
     Data Size:    19274 Bytes = 18.8 KiB
     Architecture: AArch64
     Load Address: 0x90000000
   Verifying Hash Integrity ... OK
   Loading fdt from 0xa1577390 to 0x90000000
   Booting using the fdt blob at 0x90000000
   Loading Kernel Image ... OK
   Using Device Tree in place at 0000000090000000, end 0000000090007b49
configuring ENETC AMQs, MACs..

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.47-51091-g985a1f51c31c (b56421@phoenix7) (gcc version 6.3.1 20170404 (Linaro GCC 6.3-2017.05)) #2 SMP PREEMPT
 Wed Dec 19 11:41:09 IST 2018
[    0.000000] Boot CPU: AArch64 Processor [410fd083]
[    0.000000] Machine model: LS1028A RDB Board
[    0.000000] earlycon: uart8250 at MMIO 0x00000000021c0500 (options '')
[    0.000000] bootconsole [uart8250] enabled
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] cma: Reserved 256 MiB at 0x00000000ebc00000
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000000000000-0x00000020ffffffff]
[    0.000000] NUMA: NODE_DATA [mem 0x20fffd99c0-0x20fffdb17f]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000080000000-0x00000000ffffffff]
[    0.000000]   Normal   [mem 0x0000000100000000-0x00000020ffffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000080000000-0x00000000fbdfffff]
[    0.000000]   node   0: [mem 0x0000002080000000-0x00000020ffffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000020ffffffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv0.2 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] percpu: Embedded 24 pages/cpu @ffff80207ffa4000 s59992 r8192 d30120 u98304
[    0.000000] Detected PIPT I-cache on CPU0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1015296
[    0.000000] Policy zone: Normal
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/ram0 earlycon=uart8250,mmio,0x21c0500 ramdisk_size=0x2000000 default_hugepag
esz=2m hugepagesz=2m hugepages=256 video=1920x1080-32@60 cma=256M,mscc_felix.pair_eth=eth1
[    0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[    0.000000] software IO TLB [mem 0xe7c00000-0xebc00000] (64MB) mapped at [ffff800067c00000-ffff80006bbfffff]
[    0.000000] Memory: 3685064K/4126720K available (13564K kernel code, 1564K rwdata, 5564K rodata, 1216K init, 977K bss, 179512K reserved, 262
144K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     modules : 0xffff000000000000 - 0xffff000008000000   (   128 MB)
[    0.000000]     vmalloc : 0xffff000008000000 - 0xffff7dffbfff0000   (129022 GB)
[    0.000000]       .text : 0xffff000008080000 - 0xffff000008dc0000   ( 13568 KB)
[    0.000000]     .rodata : 0xffff000008dc0000 - 0xffff000009340000   (  5632 KB)
[    0.000000]       .init : 0xffff000009340000 - 0xffff000009470000   (  1216 KB)
[    0.000000]       .data : 0xffff000009470000 - 0xffff0000095f7200   (  1565 KB)
[    0.000000]        .bss : 0xffff0000095f7200 - 0xffff0000096eb7a8   (   978 KB)
[    0.000000]     fixed   : 0xffff7dfffe7f9000 - 0xffff7dfffec00000   (  4124 KB)
[    0.000000]     PCI I/O : 0xffff7dfffee00000 - 0xffff7dffffe00000   (    16 MB)
[    0.000000]     vmemmap : 0xffff7e0000000000 - 0xffff800000000000   (  2048 GB maximum)
[    0.000000]               0xffff7e0000000000 - 0xffff7e0082000000   (  2080 MB actual)
[    0.000000]     memory  : 0xffff800000000000 - 0xffff802080000000   (133120 MB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=2.
[    0.000000]  Tasks RCU enabled.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[    0.000000] GICv3: no VLPI support, no direct LPI support
[    0.000000] ITS [mem 0x06020000-0x0603ffff]
[    0.000000] ITS@0x0000000006020000: allocated 65536 Devices @20fb880000 (flat, esz 8, psz 64K, shr 0)
[    0.000000] ITS: using cache flushing for cmd queue
[    0.000000] GIC: using LPI property table @0x00000020fb830000
[    0.000000] ITS: Allocated 1792 chunks for LPIs
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000006040000
[    0.000000] CPU0: using LPI pending table @0x00000020fb840000
[    0.000000] GIC: using cache flushing for LPI property table
[    0.000000] arch_timer: cp15 timer(s) running at 25.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x5c40939b5, max_idle_ns: 440795202646 ns
[    0.000002] sched_clock: 56 bits at 25MHz, resolution 40ns, wraps every 4398046511100ns
[    0.008354] Console: colour dummy device 80x25
[    0.012876] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=100000)
[    0.023343] pid_max: default: 32768 minimum: 301
[    0.028070] Security Framework initialized
[    0.033829] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
[    0.042013] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
[    0.049183] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes)
[    0.055986] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes)
[    0.079236] ASID allocator initialised with 32768 entries
[    0.084737] Hierarchical SRCU implementation.
[    0.097183] PCI/MSI: /interrupt-controller@6000000/gic-its@6020000 domain created
[    0.104805] Platform MSI: /interrupt-controller@6000000/gic-its@6020000 domain created
[    0.112831] fsl-mc MSI: /interrupt-controller@6000000/gic-its@6020000 domain created
[    0.120891] EFI services will not be available.
[    0.133485] smp: Bringing up secondary CPUs ...
[    0.166198] Detected PIPT I-cache on CPU1
[    0.166216] GICv3: CPU1: found redistributor 1 region 0:0x0000000006060000
[    0.166268] CPU1: using LPI pending table @0x00000020fb3b0000
[    0.166286] CPU1: Booted secondary processor [410fd083]
[    0.166331] smp: Brought up 1 node, 2 CPUs
[    0.192573] SMP: Total of 2 processors activated.
[    0.197328] CPU features: detected feature: GIC system register CPU interface
[    0.204540] CPU features: detected feature: 32-bit EL0 Support
[    0.210432] CPU features: detected feature: Kernel page table isolation (KPTI)
[    0.222661] CPU: All CPU(s) started at EL2
[    0.226804] alternatives: patching kernel code
[    0.231873] devtmpfs: initialized
[    0.236920] random: get_random_u32 called from bucket_table_alloc+0xf8/0x280 with crng_init=0
[    0.245830] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.255698] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.265093] xor: measuring software checksum speed
[    0.309609]    8regs     :  5507.000 MB/sec
[    0.353634]    8regs_prefetch:  4825.000 MB/sec
[    0.397660]    32regs    :  5585.000 MB/sec
[    0.441686]    32regs_prefetch:  5073.000 MB/sec
[    0.446354] xor: using function: 32regs (5585.000 MB/sec)
[    0.451817] pinctrl core: initialized pinctrl subsystem
[    0.457919] DMI not present or invalid.
[    0.462007] NET: Registered protocol family 16
[    0.467781] cpuidle: using governor menu
[    0.472061] vdso: 2 pages (1 code @ ffff000008dc6000, 1 data @ ffff000009475000)
[    0.479556] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.486949] DMA: preallocated 256 KiB pool for atomic allocations
[    0.493382] Serial: AMBA PL011 UART driver
[    0.523059] HugeTLB registered 2.00 MiB page size, pre-allocated 256 pages
[    0.606159] raid6: int64x1  gen()   878 MB/s
[    0.678156] raid6: int64x1  xor()   652 MB/s
[    0.750222] raid6: int64x2  gen()  1357 MB/s
[    0.822229] raid6: int64x2  xor()  1073 MB/s
[    0.894271] raid6: int64x4  gen()  1780 MB/s
[    0.966334] raid6: int64x4  xor()  1133 MB/s
[    1.038721] raid6: int64x8  gen()  1958 MB/s
[    1.111102] raid6: int64x8  xor()  1132 MB/s
[    1.183493] raid6: neonx1   gen()  1674 MB/s
[    1.255869] raid6: neonx1   xor()  1587 MB/s
[    1.328243] raid6: neonx2   gen()  2560 MB/s
[    1.400617] raid6: neonx2   xor()  2182 MB/s
[    1.472987] raid6: neonx4   gen()  3391 MB/s
[    1.545363] raid6: neonx4   xor()  2523 MB/s
[    1.617730] raid6: neonx8   gen()  3120 MB/s
[    1.690103] raid6: neonx8   xor()  2656 MB/s
[    1.694421] raid6: using algorithm neonx4 gen() 3391 MB/s
[    1.699881] raid6: .... xor() 2523 MB/s, rmw enabled
[    1.704903] raid6: using neon recovery algorithm
[    1.709789] ACPI: Interpreter disabled.
[    1.715754] vgaarb: loaded
[    1.718656] SCSI subsystem initialized
[    1.722672] usbcore: registered new interface driver usbfs
[    1.728439] usbcore: registered new interface driver hub
[    1.733860] usbcore: registered new device driver usb
[    1.739185] imx-i2c 2000000.i2c: fsl-scl-gpio not found
[    1.744517] imx-i2c 2000000.i2c: can't get pinctrl, bus recovery not supported
[    1.751935] i2c i2c-0: IMX I2C adapter registered
[    1.756713] i2c i2c-0: can't use DMA, using PIO instead.
[    1.762336] pps_core: LinuxPPS API ver. 1 registered
[    1.767366] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.776614] PTP clock support registered
[    1.780645] EDAC MC: Ver: 3.0.0
[    1.788713] dmi: Firmware registration failed.
[    1.793293] No BMan portals available!
[    1.797372] QMan: Allocated lookup table at ffff00000ae3d000, entry count 65537
[    1.804837] No QMan portals available!
[    1.808727] No USDPAA memory, no 'fsl,usdpaa-mem' in device-tree
[    1.815076] Advanced Linux Sound Architecture Driver Initialized.
[    1.821665] clocksource: Switched to clocksource arch_sys_counter
[    1.827911] VFS: Disk quotas dquot_6.6.0
[    1.831912] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    1.838956] pnp: PnP ACPI: disabled
[    1.845749] NET: Registered protocol family 2
[    1.850515] TCP established hash table entries: 32768 (order: 6, 262144 bytes)
[    1.858053] TCP bind hash table entries: 32768 (order: 7, 524288 bytes)
[    1.865079] TCP: Hash tables configured (established 32768 bind 32768)
[    1.871754] UDP hash table entries: 2048 (order: 4, 65536 bytes)
[    1.877913] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes)
[    1.884582] NET: Registered protocol family 1
[    1.889161] RPC: Registered named UNIX socket transport module.
[    1.895191] RPC: Registered udp transport module.
[    1.899951] RPC: Registered tcp transport module.
[    1.904717] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.911314] Trying to unpack rootfs image as initramfs...
[    1.916991] rootfs image is not initramfs (no cpio magic); looks like an initrd
[    1.962024] Freeing initrd memory: 24600K
[    1.966418] kvm [1]: 8-bit VMID
[    1.970367] kvm [1]: GICv3: no GICV resource entry
[    1.975214] kvm [1]: disabling GICv2 emulation
[    1.979720] kvm [1]: GIC system register CPU interface enabled
[    1.985652] kvm [1]: vgic interrupt IRQ1
[    1.989668] kvm [1]: Hyp mode initialized successfully
[    1.996280] audit: initializing netlink subsys (disabled)
[    2.001796] audit: type=2000 audit(1.920:1): state=initialized audit_enabled=0 res=1
[    2.001911] workingset: timestamp_bits=44 max_order=20 bucket_order=0
[    2.009933] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.014108] NFS: Registering the id_resolver key type
[    2.014119] Key type id_resolver registered
[    2.014120] Key type id_legacy registered
[    2.014126] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    2.014206] fuse init (API version 7.26)
[    2.014295] 9p: Installing v9fs 9p2000 file system support
[    2.015944] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    2.020043] io scheduler noop registered
[    2.020068] io scheduler cfq registered (default)
[    2.020070] io scheduler mq-deadline registered
[    2.020071] io scheduler kyber registered
[    2.023337] Galcore version 6.2.4.163672
[    2.114461] OF: PCI: host bridge /soc/pcie@1f0000000 ranges:
[    2.120226] OF: PCI:   MEM 0x1f8000000..0x1f815ffff -> 0x00000000
[    2.126391] OF: PCI:   MEM 0x1f8160000..0x1f81cffff -> 0x00000000
[    2.132560] OF: PCI:   MEM 0x1f81d0000..0x1f81effff -> 0x00000000
[    2.138728] OF: PCI:   MEM 0x1f81f0000..0x1f820ffff -> 0x00000000
[    2.144898] OF: PCI:   MEM 0x1f8210000..0x1f822ffff -> 0x00000000
[    2.151063] OF: PCI:   MEM 0x1f8230000..0x1f824ffff -> 0x00000000
[    2.157221] OF: PCI:   MEM 0x1fc000000..0x1fc3fffff -> 0x00000000
[    2.163423] pci-host-generic 1f0000000.pcie: ECAM at [mem 0x1f0000000-0x1f00fffff] for [bus 00]
[    2.172308] pci-host-generic 1f0000000.pcie: PCI host bridge to bus 0000:00
[    2.179354] pci_bus 0000:00: root bus resource [bus 00]
[    2.184638] pci_bus 0000:00: root bus resource [mem 0x1f8000000-0x1f815ffff] (bus address [0x00000000-0x0015ffff])
[    2.195108] pci_bus 0000:00: root bus resource [mem 0x1f8160000-0x1f81cffff pref] (bus address [0x00000000-0x0006ffff])
[    2.206017] pci_bus 0000:00: root bus resource [mem 0x1f81d0000-0x1f81effff] (bus address [0x00000000-0x0001ffff])
[    2.216483] pci_bus 0000:00: root bus resource [mem 0x1f81f0000-0x1f820ffff pref] (bus address [0x00000000-0x0001ffff])
[    2.227389] pci_bus 0000:00: root bus resource [mem 0x1f8210000-0x1f822ffff] (bus address [0x00000000-0x0001ffff])
[    2.237856] pci_bus 0000:00: root bus resource [mem 0x1f8230000-0x1f824ffff pref] (bus address [0x00000000-0x0001ffff])
[    2.248760] pci_bus 0000:00: root bus resource [mem 0x1fc000000-0x1fc3fffff] (bus address [0x00000000-0x003fffff])
[    2.259311] pci 0000:00:00.0: VF(n) BAR0 space: [mem 0x1f81d0000-0x1f81effff 64bit] (contains BAR0 for 2 VFs)
[    2.269334] pci 0000:00:00.0: VF(n) BAR2 space: [mem 0x1f81f0000-0x1f820ffff 64bit pref] (contains BAR2 for 2 VFs)
[    2.279969] pci 0000:00:00.1: VF(n) BAR0 space: [mem 0x1f8210000-0x1f822ffff 64bit] (contains BAR0 for 2 VFs)
[    2.289996] pci 0000:00:00.1: VF(n) BAR2 space: [mem 0x1f8230000-0x1f824ffff 64bit pref] (contains BAR2 for 2 VFs)
[    2.301103] /soc/pcie@1f0000000: Invalid msi-map translation - no match for rid 0xf8 on           (null)
[    2.311029] OF: PCI: host bridge /soc/pcie@3400000 ranges:
[    2.316594] OF: PCI:    IO 0x8000010000..0x800001ffff -> 0x00000000
[    2.322939] OF: PCI:   MEM 0x8040000000..0x807fffffff -> 0x40000000
[    2.329378] layerscape-pcie 3400000.pcie: PCI host bridge to bus 0001:00
[    2.336158] pci_bus 0001:00: root bus resource [bus 00-ff]
[    2.341703] pci_bus 0001:00: root bus resource [io  0x0000-0xffff]
[    2.347959] pci_bus 0001:00: root bus resource [mem 0x8040000000-0x807fffffff] (bus address [0x40000000-0x7fffffff])
[    2.358821] pci 0001:00:00.0: BAR 6: assigned [mem 0x8040000000-0x80400007ff pref]
[    2.366490] pci 0001:00:00.0: PCI bridge to [bus 01]
[    2.371637] pcieport 0001:00:00.0: Signaling PME with IRQ 91
[    2.377438] pcieport 0001:00:00.0: AER enabled with IRQ 92
[    2.383146] OF: PCI: host bridge /soc/pcie@3500000 ranges:
[    2.388709] OF: PCI:    IO 0x8800010000..0x880001ffff -> 0x00000000
[    2.395057] OF: PCI:   MEM 0x8840000000..0x887fffffff -> 0x40000000
[    2.401484] layerscape-pcie 3500000.pcie: PCI host bridge to bus 0002:00
[    2.408266] pci_bus 0002:00: root bus resource [bus 00-ff]
[    2.413814] pci_bus 0002:00: root bus resource [io  0x10000-0x1ffff] (bus address [0x0000-0xffff])
[    2.422876] pci_bus 0002:00: root bus resource [mem 0x8840000000-0x887fffffff] (bus address [0x40000000-0x7fffffff])
[    2.433751] pci 0002:00:00.0: BAR 6: assigned [mem 0x8840000000-0x88400007ff pref]
[    2.441416] pci 0002:00:00.0: PCI bridge to [bus 01]
[    2.446548] pcieport 0002:00:00.0: Signaling PME with IRQ 93
[    2.452349] pcieport 0002:00:00.0: AER enabled with IRQ 94
[    2.463766] Freescale LS2 console driver
[    2.467827] fsl-ls2-console: device fsl_mc_console registered
[    2.473692] fsl-ls2-console: device fsl_aiop_console registered
[    2.482080] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    2.489575] console [ttyS0] disabled
[    2.493225] 21c0500.serial: ttyS0 at MMIO 0x21c0500 (irq = 85, base_baud = 12500000) is a 16550A
[    2.502261] console [ttyS0] enabled
[    2.502261] console [ttyS0] enabled
[    2.509278] bootconsole [uart8250] disabled
[    2.509278] bootconsole [uart8250] disabled
[    2.518008] 21c0600.serial: ttyS1 at MMIO 0x21c0600 (irq = 85, base_baud = 12500000) is a 16550A
[    2.527129] SuperH (H)SCI(F) driver initialized
[    2.531864] msm_serial: driver initialized
[    2.536684] arm-smmu 5000000.iommu: probing hardware configuration...
[    2.543158] arm-smmu 5000000.iommu: SMMUv2 with:
[    2.547793] arm-smmu 5000000.iommu:  stage 1 translation
[    2.553125] arm-smmu 5000000.iommu:  stage 2 translation
[    2.558456] arm-smmu 5000000.iommu:  nested translation
[    2.563702] arm-smmu 5000000.iommu:  stream matching with 128 register groups
[    2.570866] arm-smmu 5000000.iommu:  64 context banks (0 stage-2 only)
[    2.577423] arm-smmu 5000000.iommu:  Supported page sizes: 0x61311000
[    2.583888] arm-smmu 5000000.iommu:  Stage-1: 48-bit VA -> 48-bit IPA
[    2.590355] arm-smmu 5000000.iommu:  Stage-2: 48-bit IPA -> 48-bit PA
[    2.597877] [drm] found ARM Mali-DP500 version r1p2
[    2.602911] i.mx8-hdp f1f0000.phy: lane_mapping 0x4e
[    2.607900] i.mx8-hdp f1f0000.phy: edp_link_rate 0x06
[    2.612971] i.mx8-hdp f1f0000.phy: dp_num_lanes 0x04
[    2.618119] [drm] Started firmware!
[    2.621614] [drm] CDN_API_CheckAlive returned ret = 0
[    2.626686] [drm] Firmware version: 23029, Lib version: 20691
[    2.632477] [drm] CDN_API_MainControl_blocking (ret = 0 resp = 1)
[    2.638626] [drm] CDN_API_General_Test_Echo_Ext_blocking (ret = 0 echo_resp = echo test)
[    2.646760] [drm] CDN_API_General_Write_Register_blockin ... setting LANES_CONFIG
[    2.654334] [drm] pixel engine reset
[    2.657934] [drm] CDN_*_Write_Register_blocking ... setting LANES_CONFIG 4e
[    2.666701] [drm] AFE_init
[    2.669423] [drm] deasserted reset
[    2.672918] Wait for A2 ACK
[    2.697279] [drm] AFE_power exit
[    2.700520] [drm] CDN_API_DPTX_SetVideo_blocking (ret = 0)
[    2.706109] mali-dp f080000.display: bound f1f0000.phy (ops imx_hdp_imx_ops)
[    2.713299] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    2.719941] [drm] No driver support for vblank timestamp query.
[    2.725930] [drm] Cannot find any crtc or sizes
[    2.730732] [drm] Initialized mali-dp 1.0.0 20160106 for f080000.display on minor 0
[    2.741930] brd: module loaded
[    2.748245] loop: module loaded
[    2.752368] ahci-qoriq 3200000.sata: AHCI 0001.0301 32 slots 1 ports 6 Gbps 0x1 impl platform mode
[    2.761421] ahci-qoriq 3200000.sata: flags: 64bit ncq sntf pm clo only pmp fbs pio slum part ccc sds apst
[    2.771617] scsi host0: ahci-qoriq
[    2.775264] ata1: SATA max UDMA/133 mmio [mem 0x03200000-0x0320ffff] port 0x100 irq 90
[    2.783951] nxp-fspi 20c0000.flexspi: mt35xu02g (262144 Kbytes)
[    2.791183] libphy: Fixed MDIO Bus: probed
[    2.795633] tun: Universal TUN/TAP device driver, 1.6
[    2.800851] CAN device driver interface
[    2.804846] flexcan 2180000.can: 2180000.can supply xceiver not found, using dummy regulator
[    2.813612] flexcan 2180000.can: device registered (reg_base=ffff00000edb0000, irq=95)
[    2.821619] flexcan 2190000.can: 2190000.can supply xceiver not found, using dummy regulator
[    2.830324] flexcan 2190000.can: device registered (reg_base=ffff00000edd0000, irq=96)
[    2.838705] Freescale FM module, FMD API version 21.1.0
[    2.844024] Freescale FM Ports module
[    2.847702] fsl_mac: fsl_mac: FSL FMan MAC API based driver
[    2.853345] fsl_dpa: FSL DPAA Ethernet driver
[    2.857759] fsl_advanced: FSL DPAA Advanced drivers:
[    2.862744] fsl_proxy: FSL DPAA Proxy initialization driver
[    2.868375] fsl_oh: FSL FMan Offline Parsing port driver
[    2.873839] iommu: Adding device 0000:00:00.0 to group 0
[    2.909681] [drm] HDMI/DP Cable Plug Out
[    2.985679] fsl_enetc 0000:00:00.0: enabling device (0400 -> 0402)
[    2.992080] fsl_enetc 0000:00:00.0: enetc_tsn_init: setup done
[    2.998547] fsl_enetc 0000:00:00.0 eth0: ENETC PF driver v0.8
[    3.004482] iommu: Adding device 0000:00:00.1 to group 1
[    3.009892] fsl_enetc 0000:00:00.1: device is disabled, skipping
[    3.015984] iommu: Adding device 0000:00:00.2 to group 2
[    3.095869] ata1: SATA link down (SStatus 0 SControl 300)
[    3.125676] fsl_enetc 0000:00:00.2: enabling device (0400 -> 0402)
[    3.132074] fsl_enetc 0000:00:00.2: enetc_tsn_init: setup done
[    3.139139] fsl_enetc 0000:00:00.2 eth1: ENETC PF driver v0.8
[    3.145091] iommu: Adding device 0000:00:00.3 to group 3
[    3.150555] libphy: Freescale ENETC MDIO Bus: probed
[    3.157396] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
[    3.164486] e1000: Copyright (c) 1999-2006 Intel Corporation.
[    3.170377] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[    3.176258] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    3.182231] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.4.0-k
[    3.189229] igb: Copyright (c) 2007-2014 Intel Corporation.
[    3.194850] igbvf: Intel(R) Gigabit Virtual Function Network Driver - version 2.4.0-k
[    3.202716] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[    3.208833] sky2: driver version 1.30
[    3.212620] iommu: Adding device 0000:00:00.5 to group 4
[    3.226030] felix_ports_init: port:0 Vitesse VSC8514
[    3.231269] felix_ports_init: port:1 Vitesse VSC8514
[    3.236455] felix_ports_init: port:2 Vitesse VSC8514
[    3.241637] felix_ports_init: port:3 Vitesse VSC8514
[    3.246971] felix_ports_init: port:4 fixed-link
[    3.251753] mscc_felix 0000:00:00.5: Felix Switch Driver - version 0.2 probed
[    3.259533] VFIO - User Level meta-driver version: 0.3
[    3.266053] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.272611] ehci-pci: EHCI PCI platform driver
[    3.277101] ehci-platform: EHCI generic platform driver
[    3.282409] ehci-orion: EHCI orion driver
[    3.286482] ehci-exynos: EHCI EXYNOS driver
[    3.290725] ehci-msm: Qualcomm On-Chip EHCI Host Controller
[    3.296357] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.302568] ohci-pci: OHCI PCI platform driver
[    3.307051] ohci-platform: OHCI generic platform driver
[    3.312346] ohci-exynos: OHCI EXYNOS driver
[    3.316778] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    3.322298] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[    3.340467] xhci-hcd xhci-hcd.0.auto: hcc params 0x0220f66d hci version 0x100 quirks 0x22010810
[    3.349226] xhci-hcd xhci-hcd.0.auto: irq 82, io mem 0x03100000
[    3.355463] hub 1-0:1.0: USB hub found
[    3.359242] hub 1-0:1.0: 1 port detected
[    3.363315] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    3.368831] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[    3.376520] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0  SuperSpeed
[    3.383413] hub 2-0:1.0: USB hub found
[    3.387188] hub 2-0:1.0: 1 port detected
[    3.391341] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    3.396856] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 3
[    3.415015] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220f66d hci version 0x100 quirks 0x22010810
[    3.423772] xhci-hcd xhci-hcd.1.auto: irq 83, io mem 0x03110000
[    3.429965] hub 3-0:1.0: USB hub found
[    3.433742] hub 3-0:1.0: 1 port detected
[    3.437806] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    3.443319] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 4
[    3.451009] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0  SuperSpeed
[    3.457896] hub 4-0:1.0: USB hub found
[    3.461674] hub 4-0:1.0: 1 port detected
[    3.465929] usbcore: registered new interface driver usb-storage
[    3.473144] i2c /dev entries driver
[    3.478241] i2c i2c-0: Added multiplexed i2c bus 1
[    3.483223] i2c i2c-0: Added multiplexed i2c bus 2
[    3.488187] i2c i2c-0: Added multiplexed i2c bus 3
[    3.499652] rtc-pcf2127-i2c 4-0051: rtc core: registered rtc-pcf2127-i2c as rtc0
[    3.507107] i2c i2c-0: Added multiplexed i2c bus 4
[    3.512017] i2c i2c-0: Added multiplexed i2c bus 5
[    3.516918] i2c i2c-0: Added multiplexed i2c bus 6
[    3.521820] i2c i2c-0: Added multiplexed i2c bus 7
[    3.526727] i2c i2c-0: Added multiplexed i2c bus 8
[    3.531540] pca954x 0-0077: registered 8 multiplexed busses for I2C mux pca9547
[    3.538959] IR NEC protocol handler initialized
[    3.543508] IR RC5(x/sz) protocol handler initialized
[    3.548578] IR RC6 protocol handler initialized
[    3.553124] IR JVC protocol handler initialized
[    3.557672] IR Sony protocol handler initialized
[    3.562304] IR SANYO protocol handler initialized
[    3.567027] IR Sharp protocol handler initialized
[    3.571747] IR MCE Keyboard/mouse protocol handler initialized
[    3.577602] IR XMP protocol handler initialized
[    3.583273] qoriq_cpufreq: Freescale QorIQ CPU frequency scaling driver
[    3.590120] sdhci: Secure Digital Host Controller Interface driver
[    3.596327] sdhci: Copyright(c) Pierre Ossman
[    3.600805] Synopsys Designware Multimedia Card Interface Driver
[    3.607198] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.649696] mmc0: SDHCI controller on 2140000.esdhc [2140000.esdhc] using ADMA
[    3.697676] mmc1: SDHCI controller on 2150000.esdhc [2150000.esdhc] using ADMA
[    3.705379] ledtrig-cpu: registered to indicate activity on CPUs
[    3.715584] caam 8000000.crypto: Instantiated RNG4 SH1
[    3.720830] caam 8000000.crypto: device ID = 0x0a12070000000000 (Era 10)
[    3.727597] caam 8000000.crypto: job rings = 3, qi = 0
[    3.733040] iommu: Adding device 8010000.jr to group 5
[    3.738392] caam_jr 8010000.jr: input ring iova = fffffffff000, output ring iova = ffffffffc000
[    3.747235] iommu: Adding device 8020000.jr to group 6
[    3.752625] caam_jr 8020000.jr: input ring iova = fffffffff000, output ring iova = ffffffffc000
[    3.761456] [drm] Cannot find any crtc or sizes
[    3.766114] iommu: Adding device 8030000.jr to group 7
[    3.771496] caam_jr 8030000.jr: input ring iova = fffffffff000, output ring iova = ffffffffc000
[    3.783104] caam algorithms registered in /proc/crypto
[    3.792200] caam_jr 8010000.jr: registering rng-caam
[    3.798207] caam 8000000.crypto: caam pkc algorithms registered in /proc/crypto
[    3.805935] usbcore: registered new interface driver usbhid
[    3.811568] usbhid: USB HID core driver
[    3.816747] No fsl,qman node
[    3.819746] Freescale USDPAA process driver
[    3.823956] fsl-usdpaa: no region found
[    3.827836] Freescale USDPAA process IRQ driver
[    3.833429] mmc0: new ultra high speed SDR50 SDHC card at address aaaa
[    3.835483] sgtl5000 2-000a: sgtl5000 revision 0x11
[    3.839164] sgtl5000 2-000a: Using internal LDO instead of VDDD: check ER1
[    3.852101] mmcblk0: mmc0:aaaa SS16G 14.8 GiB
[    3.857575]  mmcblk0: p1 p2 p3
[    3.865381] random: fast init done
[    3.874264] mmc1: new HS200 MMC card at address 0001
[    3.879456] mmcblk1: mmc1:0001 Q2J55L 7.13 GiB
[    3.884138] Netfilter messages via NETLINK v0.30.
[    3.889099] mmcblk1boot0: mmc1:0001 Q2J55L partition 1 2.00 MiB
[    3.889118] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
[    3.889233] nf_tables: (c) 2007-2009 Patrick McHardy <kaber@trash.net>
[    3.889235] nf_tables_compat: (c) 2012 Pablo Neira Ayuso <pablo@netfilter.org>
[    3.889361] ip_tables: (C) 2000-2006 Netfilter Core Team
[    3.920481] mmcblk1boot1: mmc1:0001 Q2J55L partition 2 2.00 MiB
[    3.926487] Initializing XFRM netlink socket
[    3.926551] mmcblk1rpmb: mmc1:0001 Q2J55L partition 3 4.00 MiB
[    3.936724] NET: Registered protocol family 10
[    3.941880] Segment Routing with IPv6
[    3.945610] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    3.951868] NET: Registered protocol family 17
[    3.956340] NET: Registered protocol family 15
[    3.960819] Bridge firewalling registered
[    3.964851] Ebtables v2.0 registered
[    3.968508] can: controller area network core (rev 20170425 abi 9)
[    3.974744] NET: Registered protocol family 29
[    3.979226] can: raw protocol (rev 20170425)
[    3.983514] can: broadcast manager protocol (rev 20170425 t)
[    3.989198] can: netlink gateway (rev 20170425) max_hops=1
[    3.994768] 8021q: 802.1Q VLAN Support v1.8
[    3.998994] 9pnet: Installing 9P2000 support
[    4.003306] tsn generic netlink module v1 init...
[    4.008052] Key type dns_resolver registered
[    4.012689] registered taskstats version 1
[    4.017098] Btrfs loaded, crc32c=crc32c-generic
[    4.041993] asoc-simple-card sound: sgtl5000 <-> f130000.sai mapping ok
[    4.048651] asoc-simple-card sound: ASoC: no DMI vendor name!
[    4.061338] rtc-pcf2127-i2c 4-0051: setting system clock to 2019-05-08 07:49:36 UTC (1557301776)
[    4.070231] ALSA device list:
[    4.073203]   #0: f130000.sai-sgtl5000
[    4.077148] RAMDISK: gzip image found at block 0
[    5.122877] EXT4-fs (ram0): mounted filesystem without journal. Opts: (null)
[    5.129982] VFS: Mounted root (ext4 filesystem) readonly on device 1:0.
[    5.136854] devtmpfs: mounted
[    5.140502] Freeing unused kernel memory: 1216K
INIT: version 2.88 booting
Starting udev
[    5.247536] udevd[1774]: starting version 182
[    5.838627] EXT4-fs (mmcblk0p2): recovery complete
[    5.843455] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    5.846585] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[    5.864820] EXT4-fs (mmcblk0p3): recovery complete
[    5.869710] EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: (null)
[    5.903981] EXT4-fs (ram0): re-mounted. Opts: (null)
[    5.935103] random: dd: uninitialized urandom read (512 bytes read)
Populating dev cache
Running postinst /etc/rpm-postinsts/100-sysvinit-inittab...
Running postinst /etc/rpm-postinsts/101-inetutils-inetd...
Running postinst /etc/rpm-postinsts/102-inetutils-ftpd...
update-rc.d: /etc/init.d/run-postinsts exists during rc.d purge (continuing)
INIT: Entering runlevel: 5
Configuring network interfaces... done.
Starting system log daemon...0
Starting kernel log daemon...0
Starting internet superserver: xinetd.

QorIQ SDK (FSL Reference Distro) 2.0 ls1028a /dev/ttyS0

After booting up, I have followed the steps in doc Layerscape LS1028A BSP v0.2

4.1.12.3.3.2.1 CPU port with simple bridge configuration and L2 forwarding support

[  318.164252] switch: port 1(eth2) entered blocking state
[  318.169536] switch: port 1(eth2) entered disabled state
[  318.175085] device eth2 entered promiscuous mode
[  318.253798] mscc_felix 0000:00:00.5 eth2: Unsupported PHY speed: 0
[  318.260015] Vitesse VSC8514 1f8100000:10: attached PHY driver [Vitesse VSC8514] (mii_bus:phy_addr=1f8100000:10, irq=POLL)
[  318.271291] switch: port 1(eth2) entered blocking state
[  318.276540] switch: port 1(eth2) entered forwarding state
[  318.282081] 8021q: adding VLAN 0 to HW filter on device eth2
[  318.294202] switch: port 2(eth3) entered blocking state
[  318.299477] switch: port 2(eth3) entered disabled state
[  318.304867] device eth3 entered promiscuous mode
[  318.381796] mscc_felix 0000:00:00.5 eth3: Unsupported PHY speed: 0
[  318.388009] Vitesse VSC8514 1f8100000:11: attached PHY driver [Vitesse VSC8514] (mii_bus:phy_addr=1f8100000:11, irq=POLL)
[  318.399284] switch: port 2(eth3) entered blocking state
[  318.404534] switch: port 2(eth3) entered forwarding state
[  318.409979] 8021q: adding VLAN 0 to HW filter on device eth3
[  318.422120] switch: port 3(eth4) entered blocking state
[  318.427431] switch: port 3(eth4) entered disabled state
[  318.432817] device eth4 entered promiscuous mode
[  318.509788] mscc_felix 0000:00:00.5 eth4: Unsupported PHY speed: 0
[  318.516002] Vitesse VSC8514 1f8100000:12: attached PHY driver [Vitesse VSC8514] (mii_bus:phy_addr=1f8100000:12, irq=POLL)
[  318.527686] switch: port 3(eth4) entered blocking state
[  318.532935] switch: port 3(eth4) entered forwarding state
[  318.538397] 8021q: adding VLAN 0 to HW filter on device eth4
[  318.550309] switch: port 4(eth5) entered blocking state
[  318.555574] switch: port 4(eth5) entered disabled state
[  318.561061] device eth5 entered promiscuous mode
[  318.637786] mscc_felix 0000:00:00.5 eth5: Unsupported PHY speed: 0
[  318.643998] Vitesse VSC8514 1f8100000:13: attached PHY driver [Vitesse VSC8514] (mii_bus:phy_addr=1f8100000:13, irq=POLL)
[  318.655683] switch: port 4(eth5) entered blocking state
[  318.660932] switch: port 4(eth5) entered forwarding state
[  318.666379] 8021q: adding VLAN 0 to HW filter on device eth5
[  318.678418] switch: port 5(eth6) entered blocking state
[  318.683733] switch: port 5(eth6) entered disabled state
[  318.689123] device eth6 entered promiscuous mode
[  318.695633] mscc_felix 0000:00:00.5 eth6: Link is Up - 1Gbps/Full - flow control off
[  318.703530] mscc_felix 0000:00:00.5 eth6: DBG felix_port_adjust_link:503
[  318.711275] Generic PHY fixed-0:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=fixed-0:01, irq=POLL)
[  318.721397] switch: port 5(eth6) entered blocking state
[  318.726648] switch: port 5(eth6) entered forwarding state
[  318.732099] 8021q: adding VLAN 0 to HW filter on device eth6
[  319.278287] mscc_felix 0000:00:00.5 eth2: Link is Down
[  319.406294] mscc_felix 0000:00:00.5 eth3: Link is Down
[  319.534293] mscc_felix 0000:00:00.5 eth4: Link is Down
[  319.662288] mscc_felix 0000:00:00.5 eth5: Link is Down
[  319.725683] mscc_felix 0000:00:00.5 eth6: Link is Up - 1Gbps/Full - flow control off
[  319.733462] mscc_felix 0000:00:00.5 eth6: DBG felix_port_adjust_link:503
[  320.205774] switch: port 1(eth2) entered disabled state
[  320.211128] switch: port 2(eth3) entered disabled state
[  320.216477] switch: port 3(eth4) entered disabled state
[  320.221810] switch: port 4(eth5) entered disabled state
[  322.478391] mscc_felix 0000:00:00.5 eth3: Link is Up - 1Gbps/Full - flow control rx/tx
[  322.486361] switch: port 2(eth3) entered blocking state
[  322.486366] switch: port 2(eth3) entered forwarding state
[  322.497131] mscc_felix 0000:00:00.5 eth3: DBG felix_port_adjust_link:503
[  350.227372] Generic PHY fixed-0:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=fixed-0:00, irq=POLL)
[  350.241123] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[  350.247001] 8021q: adding VLAN 0 to HW filter on device eth1
[  351.277735] fsl_enetc 0000:00:00.2 eth1: Link is Up - 1Gbps/Full - flow control off
[  351.285445] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready

After configuring,

root@ls1028a:~#  ip addr show dev switch
12: switch: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 5a:8d:bf:7c:5b:02 brd ff:ff:ff:ff:ff:ff
    inet 10.0.0.2/24 scope global switch
       valid_lft forever preferred_lft forever
    inet6 fe80::9828:c5ff:fe61:b3ac/64 scope link
       valid_lft forever preferred_lft forever

eth3 is connected to a desktop with interface

eth2      Link encap:Ethernet  HWaddr 6c:b3:11:52:02:a0 
          inet addr:10.0.0.1  Bcast:0.0.0.0  Mask:255.255.255.0
          inet6 addr: fe80::6eb3:11ff:fe52:2a1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5856596771 errors:0 dropped:0 overruns:14790723 frame:0
          TX packets:5204 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:690111737515 (690.1 GB)  TX bytes:780312 (780.3 KB)
          Memory:fe500000-fe5fffff
when I do ping, its always destination unreachable.
 root@ls1028a:~# ping 10.0.0.1
PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data.
From 10.0.0.2 icmp_seq=1 Destination Host Unreachable
From 10.0.0.2 icmp_seq=2 Destination Host Unreachable
From 10.0.0.2 icmp_seq=3 Destination Host Unreachable
From 10.0.0.2 icmp_seq=4 Destination Host Unreachable
From 10.0.0.2 icmp_seq=5 Destination Host Unreachable
From 10.0.0.2 icmp_seq=8 Destination Host Unreachable
From 10.0.0.2 icmp_seq=9 Destination Host Unreachable
From 10.0.0.2 icmp_seq=10 Destination Host Unreachable
From 10.0.0.2 icmp_seq=11 Destination Host Unreachable
From 10.0.0.2 icmp_seq=12 Destination Host Unreachable
From 10.0.0.2 icmp_seq=14 Destination Host Unreachable
From 10.0.0.2 icmp_seq=15 Destination Host Unreachable
^C
--- 10.0.0.1 ping statistics ---
16 packets transmitted, 0 received, +12 errors, 100% packet loss, time 15354ms
pipe 4
why this is failing?
Labels (1)
Tags (2)
0 Kudos
1 Reply

1,137 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please execute the bridge configuration script first.

root@localhost:~# vi /test_dir_new/switch_with_bridge.sh

#!/bin/bash

#

# Simple switch configuration

#

# Assume both ENETC and Felix drivers are already loaded

#

 

BRIDGE=br0

MAC_ROOT=bc:8d:bf:7c:5b

SW_NETNS=swns

EXEC_SWNS="ip netns exec $SW_NETNS"

 

# Create bridge namespace

ip netns add $SW_NETNS

# Create bridge device in net namespace

$EXEC_SWNS ip link add name $BRIDGE type bridge

$EXEC_SWNS ip link set $BRIDGE up

 

# Configure switch ports

#  * set MAC address

#  * bring up interface

#  * move net device into the bridge net namespace

#  * set bridge device as master

swps=($(ls /sys/bus/pci/devices/0000:00:00.5/net/))

nr=${#swps[@]}

for (( i=0; i<$nr; i++ ))

do

        echo "adding ${swps[$i]} to brigde .."

        ip link set ${swps[$i]} address $MAC_ROOT:$(echo "${swps[$i]}" | tr -dc '0-9')

        ip link set ${swps[$i]} netns $SW_NETNS

        $EXEC_SWNS ip link set ${swps[$i]} master $BRIDGE

        $EXEC_SWNS ip link set ${swps[$i]} up

done

 

# bring up ENETC ports connected to switch ports

enetc2=$(ls /sys/bus/pci/devices/0000:00:00.2/net/)

ip link set $enetc2 up

 

# move ENETC port connected to switch CPU port in bridge ns

enetc3=$(ls /sys/bus/pci/devices/0000:00:00.6/net/)

ip link set $enetc3 netns $SW_NETNS

$EXEC_SWNS ip link set $enetc3 up

 

# Check configuration

$EXEC_SWNS bridge link show

root@localhost:~#

root@localhost:~# uname -a;stty columns 2000;echo "7 4 1 7" > /proc/sys/kernel/printk

Linux localhost 4.14.47-00650-g6a585bc218f4-dirty #1 SMP PREEMPT Wed May 8 16:18:37 CST 2019 aarch64 aarch64 aarch64 GNU/Linux

root@localhost:~#

root@localhost:~# bash +x /test_dir_new/switch_with_bridge.sh

adding swp0 to brigde ..

[  808.096561] br0: port 1(swp0) entered blocking state

[  808.101591] br0: port 1(swp0) entered disabled state

[  808.106735] device swp0 entered promiscuous mode

[  808.222629] Vitesse VSC8514 1f8100000:10: attached PHY driver [Vitesse VSC8514] (mii_bus:phy_addr=1f8100000:10, irq=POLL)

[  808.233775] IPv6: ADDRCONF(NETDEV_UP): swp0: link is not ready

[  808.239655] br0: port 1(swp0) entered blocking state

[  808.244648] br0: port 1(swp0) entered forwarding state

[  808.249847] 8021q: adding VLAN 0 to HW filter on device swp0

adding swp1 to brigde ..

[  808.336382] br0: port 2(swp1) entered blocking state

[  808.341469] br0: port 2(swp1) entered disabled state

[  808.346923] device swp1 entered promiscuous mode

[  808.458632] Vitesse VSC8514 1f8100000:11: attached PHY driver [Vitesse VSC8514] (mii_bus:phy_addr=1f8100000:11, irq=POLL)

[  808.469854] IPv6: ADDRCONF(NETDEV_UP): swp1: link is not ready

[  808.475729] br0: port 2(swp1) entered blocking state

[  808.480722] br0: port 2(swp1) entered forwarding state

[  808.485911] 8021q: adding VLAN 0 to HW filter on device swp1

adding swp2 to brigde ..

[  808.573011] br0: port 3(swp2) entered blocking state

[  808.578148] br0: port 3(swp2) entered disabled state

[  808.583846] device swp2 entered promiscuous mode

[  808.706586] Vitesse VSC8514 1f8100000:12: attached PHY driver [Vitesse VSC8514] (mii_bus:phy_addr=1f8100000:12, irq=POLL)

[  808.717801] IPv6: ADDRCONF(NETDEV_UP): swp2: link is not ready

[  808.724954] br0: port 3(swp2) entered blocking state

[  808.729950] br0: port 3(swp2) entered forwarding state

[  808.735154] 8021q: adding VLAN 0 to HW filter on device swp2

adding swp3 to brigde ..

[  808.810009] br0: port 4(swp3) entered blocking state

[  808.815059] br0: port 4(swp3) entered disabled state

[  808.820249] device swp3 entered promiscuous mode

[  808.930592] Vitesse VSC8514 1f8100000:13: attached PHY driver [Vitesse VSC8514] (mii_bus:phy_addr=1f8100000:13, irq=POLL)

[  808.941745] IPv6: ADDRCONF(NETDEV_UP): swp3: link is not ready

[  808.948096] br0: port 4(swp3) entered blocking state

[  808.953099] br0: port 4(swp3) entered forwarding state

[  808.958297] 8021q: adding VLAN 0 to HW filter on device swp3

adding swp4 to brigde ..

[  809.052551] br0: port 5(swp4) entered blocking state

[  809.057642] br0: port 5(swp4) entered disabled state

[  809.062828] device swp4 entered promiscuous mode

[  809.120123] Generic PHY fixed-0:02: attached PHY driver [Generic PHY] (mii_bus:phy_addr=fixed-0:02, irq=POLL)

[  809.130249] IPv6: ADDRCONF(NETDEV_UP): swp4: link is not ready

[  809.136148] br0: port 5(swp4) entered blocking state

[  809.141141] br0: port 5(swp4) entered forwarding state

[  809.146495] 8021q: adding VLAN 0 to HW filter on device swp4

[  809.152259] br0: port 1(swp0) entered disabled state

[  809.157373] br0: port 2(swp1) entered disabled state

[  809.162465] br0: port 3(swp2) entered disabled state

[  809.167563] br0: port 4(swp3) entered disabled state

[  809.172653] br0: port 5(swp4) entered disabled state

adding swp5 to brigde ..

[  809.229772] br0: port 6(swp5) entered blocking state

[  809.234848] br0: port 6(swp5) entered disabled state

[  809.239996] device swp5 entered promiscuous mode

[  809.266968] mscc_felix 0000:00:00.5 swp0: Link is Down

[  809.282439] Generic PHY fixed-0:03: attached PHY driver [Generic PHY] (mii_bus:phy_addr=fixed-0:03, irq=POLL)

[  809.292558] IPv6: ADDRCONF(NETDEV_UP): swp5: link is not ready

[  809.298573] br0: port 6(swp5) entered blocking state

[  809.303568] br0: port 6(swp5) entered forwarding state

[  809.308761] 8021q: adding VLAN 0 to HW filter on device swp5

[  809.345059] Generic PHY fixed-0:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=fixed-0:00, irq=POLL)

[  809.359928] IPv6: ADDRCONF(NETDEV_UP): eno2: link is not ready

[  809.365972] 8021q: adding VLAN 0 to HW filter on device eno2

[  809.416879] Generic PHY fixed-0:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=fixed-0:01, irq=POLL)

[  809.431091] IPv6: ADDRCONF(NETDEV_UP): eno3: link is not ready

[  809.436975] 8021q: adding VLAN 0 to HW filter on device eno3

[  809.487020] mscc_felix 0000:00:00.5 swp1: Link is Down

7: swp0 state DOWN : <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1468 master br0 state disabled priority 32 cost 100

8: swp1 state DOWN : <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1468 master br0 state disabled priority 32 cost 100

9: swp2 state DOWN : <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1468 master br0 state disabled priority 32 cost 100

10: swp3 state DOWN : <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1468 master br0 state disabled priority 32 cost 100

11: swp4 state DOWN : <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1468 master br0 state disabled priority 32 cost 100

12: swp5 state UNKNOWN : <BROADCAST,MULTICAST,UP> mtu 1468 master br0 state forwarding priority 32 cost 100

root@localhost:~# [  809.743175] mscc_felix 0000:00:00.5 swp2: Link is Down

[  809.967156] mscc_felix 0000:00:00.5 swp3: Link is Down

[  810.158491] mscc_felix 0000:00:00.5 swp4: Link is Up - 1Gbps/Full - flow control off

[  810.166385] br0: port 6(swp5) entered disabled state

[  810.171524] IPv6: ADDRCONF(NETDEV_CHANGE): swp4: link becomes ready

[  810.177874] br0: port 5(swp4) entered blocking state

[  810.182863] br0: port 5(swp4) entered forwarding state

[  810.318395] mscc_felix 0000:00:00.5 swp5: Link is Up - 1Gbps/Full - flow control off

[  810.326250] IPv6: ADDRCONF(NETDEV_CHANGE): swp5: link becomes ready

[  810.326398] br0: port 6(swp5) entered blocking state

[  810.326410] br0: port 6(swp5) entered forwarding state

[  810.382487] fsl_enetc 0000:00:00.2 eno2: Link is Up - 1Gbps/Full - flow control off

[  810.390262] IPv6: ADDRCONF(NETDEV_CHANGE): eno2: link becomes ready

[  810.446481] fsl_enetc 0000:00:00.6 eno3: Link is Up - 1Gbps/Full - flow control off

[  810.454256] IPv6: ADDRCONF(NETDEV_CHANGE): eno3: link becomes ready

 

root@localhost:~#

Thanks,

Yiping

0 Kudos