How to work PCIe Ethernet on i.MX6Q-SDB?

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

How to work PCIe Ethernet on i.MX6Q-SDB?

859 Views
yeongchann
Contributor I

Hi,

I testing PCIe Ethernet(RTL8111e) on iMX6Q SabreSD and custom board(based on iMX6Q-SDB).

Kernel 3.0.35, PCIe links up and detected RTL8111E. And I check Ethernet interface on this device(eth1). But it don't work networking(I test ping, iperf, dhcp). Then I modify MTU 1500 -> 500. but don't work.

Then I try kernel versions up(3.10.17). And board is hang after 'Starting Kernel ...' message.

This is my kernel log

IMX PCIe port: link up.
PCI: bus0: Fast back to back transfers disabled
PCI: bus1: Fast back to back transfers disabled
pci 0000:00:00.0: BAR 0: assigned [mem 0x01100000-0x011fffff 64bit pref]
pci 0000:00:00.0: BAR 0: set to [mem 0x01100000-0x011fffff 64bit pref] (PCI address [0x1100000-0x11fffff])
pci 0000:00:00.0: BAR 9: assigned [mem 0x01200000-0x012fffff pref]
pci 0000:00:00.0: BAR 6: assigned [mem 0x01300000-0x0130ffff pref]
pci 0000:00:00.0: BAR 7: assigned [io  0x1000000-0x1000fff]
pci 0000:01:00.0: BAR 4: assigned [mem 0x01200000-0x01203fff 64bit pref]
pci 0000:01:00.0: BAR 4: set to [mem 0x01200000-0x01203fff 64bit pref] (PCI address [0x1200000-0x1203fff])
pci 0000:01:00.0: BAR 2: assigned [mem 0x01204000-0x01204fff 64bit pref]
pci 0000:01:00.0: BAR 2: set to [mem 0x01204000-0x01204fff 64bit pref] (PCI address [0x1204000-0x1204fff])
pci 0000:01:00.0: BAR 0: assigned [io  0x1000000-0x10000ff]
pci 0000:01:00.0: BAR 0: set to [io  0x1000000-0x10000ff] (PCI address [0x1000000-0x10000ff])
pci 0000:00:00.0: PCI bridge to [bus 01-01]
pci 0000:00:00.0:   bridge window [io  0x1000000-0x1000fff]
pci 0000:00:00.0:   bridge window [mem disabled]
pci 0000:00:00.0:   bridge window [mem 0x01200000-0x012fffff pref]
IMX usb wakeup probe
add wake up source irq 75


r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
PCI: enabling device 0000:01:00.0 (0140 -> 0143)
r8169 0000:01:00.0: (unregistered net_device): unknown MAC, using family default
IMX-PCIe: MSI 0x3f01 @0x0:0x1ff8000, irq = 497
r8169 0000:01:00.0: eth1: RTL8168b/8111b at 0xeab86000, 00:00:00:00:00:03, XID 0c900800 IRQ 49

and lspci -v command.

00:00.0 PCI bridge: Device 16c3:abcd (rev 01) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0
        Memory at 01100000 (64-bit, prefetchable) [size=1M]
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        I/O behind bridge: 00000000-00000fff
        Prefetchable memory behind bridge: 01200000-012fffff
        [virtual] Expansion ROM at 01300000 [disabled] [size=64K]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] MSI: Enable+ Count=1/1 Maskable+ 64bit+
        Capabilities: [70] Express Root Port (Slot-), MSI 00
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [140] Virtual Channel
        Kernel driver in use: pcieport

01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)
        Subsystem: Realtek Semiconductor Co., Ltd. TEG-ECTX Gigabit PCI-E Adapter [Trendnet]
        Flags: bus master, fast devsel, latency 0, IRQ 497
        I/O ports at 1000000 [size=256]
        Memory at 01204000 (64-bit, prefetchable) [size=4K]
        Memory at 01200000 (64-bit, prefetchable) [size=16K]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [70] Express Endpoint, MSI 01
        Capabilities: [b0] MSI-X: Enable- Count=4 Masked-
        Capabilities: [d0] Vital Product Data
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [140] Virtual Channel
        Capabilities: [160] Device Serial Number 00-00-00-00-00-00-00-00
        Kernel driver in use: r8169


ifconfig

eth1      Link encap:Ethernet  HWaddr 00:00:00:00:00:03 
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:241 Base address:0x6000


I don't know this problem(why don't work networking) and solve. If anyone know this problem and solve, please help me.

Thanks.


Yeongchan.

Labels (2)
Tags (3)
0 Kudos
0 Replies