2014-04-04 06:54:05

by Jagan Teki

[permalink] [raw]
Subject: Link up issue on ethernet/realtek/r8169.c

Hi,

I'm using TP-LINK PCIe NIC card on my PCIe Root Complex.

Probing looks fine by setting:
r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
PCI: enabling device 0000:00:00.0 (0140 -> 0143)
PCI: enabling device 0000:01:00.0 (0140 -> 0143)
r8169 0000:01:00.0 eth0: RTL8168e/8111e at 0xf006a000,
c0:4a:00:07:18:d4, XID 0c200000 IRQ 89
r8169 0000:01:00.0 eth0: jumbo features [frames: 9200 bytes, tx
checksumming: ko]

But I have an issue while in link is up

$ ifconfig 192.168.1.10 up
r8169 0000:01:00.0: Direct firmware load failed with error -2
r8169 0000:01:00.0: Falling back to user helper
r8169 0000:01:00.0 eth0: unable to load firmware patch
rtl_nic/rtl8168e-2.fw (-2)
r8169 0000:01:00.0 eth0: link down

Looks like firmware loading is failed in open call, Can any one
suggest how to debug further.

thanks!
--
Jagan.


2014-04-04 09:00:44

by Jagan Teki

[permalink] [raw]
Subject: Re: Link up issue on ethernet/realtek/r8169.c

On Fri, Apr 4, 2014 at 12:17 PM, Jagan Teki <[email protected]> wrote:
> Hi,
>
> I'm using TP-LINK PCIe NIC card on my PCIe Root Complex.
>
> Probing looks fine by setting:
> r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
> PCI: enabling device 0000:00:00.0 (0140 -> 0143)
> PCI: enabling device 0000:01:00.0 (0140 -> 0143)
> r8169 0000:01:00.0 eth0: RTL8168e/8111e at 0xf006a000,
> c0:4a:00:07:18:d4, XID 0c200000 IRQ 89
> r8169 0000:01:00.0 eth0: jumbo features [frames: 9200 bytes, tx
> checksumming: ko]
>
> But I have an issue while in link is up
>
> $ ifconfig 192.168.1.10 up
> r8169 0000:01:00.0: Direct firmware load failed with error -2
> r8169 0000:01:00.0: Falling back to user helper
> r8169 0000:01:00.0 eth0: unable to load firmware patch
> rtl_nic/rtl8168e-2.fw (-2)
> r8169 0000:01:00.0 eth0: link down
>
> Looks like firmware loading is failed in open call, Can any one
> suggest how to debug further.

Got the fix! I have updated .config with firmware details from [1]

CONFIG_EXTRA_FIRMWARE="rtl_nic/rtl8168e-2.fw"
CONFIG_EXTRA_FIRMWARE_DIR="/opt"

[1] http://git.exherbo.org/summer/packages/firmware/rtl_nic/index.html

thanks!
--
Jagan.