Welcome! Log In Create A New Profile

Advanced

Zyxel 310. No ethernet since the 4.20 kernel on Arch - is it working in Debian?

Posted by arti74 
Re: Zyxel 310. No ethernet since the 4.20 kernel on Arch - is it working in Debian?
February 26, 2019 03:41AM
Sorry for the late reply!

4.16.1 and 4.19.0: had no network at first, left Ethernet LED flashing, did modprobe r8169, LEDs out but the network went up!
[   66.296987] libphy: r8169: probed
[   66.308621] r8169 0000:01:00.0 eth0: RTL8168d/8111d, 00:00:00:00:00:30, XID 283000c0, IRQ 38
[   66.317106] r8169 0000:01:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
mark@nsa310a:~$ [   66.373085] r8169 0000:01:00.0 enp1s0: renamed from eth0
[   66.961880] RTL8211B Gigabit Ethernet r8169-100:00: attached PHY driver [RTL8211B Gigabit Ethernet] (mii_bus:phy_addr=r8169-100:00, irq=IGNORE)
[   67.159336] r8169 0000:01:00.0 enp1s0: Link is Down
[   67.164381] IPv6: ADDRCONF(NETDEV_UP): enp1s0: link is not ready
[   69.420000] r8169 0000:01:00.0 enp1s0: Link is Up - 1Gbps/Full - flow control rx/tx
[   69.427748] IPv6: ADDRCONF(NETDEV_CHANGE): enp1s0: link becomes ready

4.19.0 ->

mark@nsa310a:~$ sudo ethtool enp1s0
Settings for enp1s0:
        Supported ports: [ TP MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Half 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/Half 1000baseT/Full
        Advertised pause frame use: Symmetric Receive-only
        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
        Link partner advertised auto-negotiation: Yes
        Speed: 1000Mb/s
        Duplex: Full
        Port: MII
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: on
        Supports Wake-on: pumbg
        Wake-on: g
        Current message level: 0x00000033 (51)
                               drv probe ifdown ifup
        Link detected: yes

4.20.6-kirkwood-tld-2: no network, right LED flashing (huh?) modprobe failure...
mark@nsa310a:~$ sudo modprobe r8169
[   65.142387] r8169 0000:01:00.0 (unnamed net_device) (uninitialized): rtl_phyar_cond == 0 (loop: 20, delay: 25).
[   65.179047] r8169: probe of 0000:01:00.0 failed with error -5

No clue as to why it's not auto-detected on 4.19/16!

---
NSA310s, NSA310, C.H.I.P, Banana Pi, Orange Pi PC & Zero, RPI 1,2Bx8
Re: Zyxel 310. No ethernet since the 4.20 kernel on Arch - is it working in Debian?
February 26, 2019 01:54PM
Arti,

I saw you have tested the test case 1. That has confirmed what I would like to see: running the latest kernel, unplug/replug the cable still does not bring the card up for detection. Let me write another test below.

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 02/26/2019 02:05PM by bodhi.
Re: Zyxel 310. No ethernet since the 4.20 kernel on Arch - is it working in Debian?
February 26, 2019 02:06PM
mpmc,

Please repeat test 1. You've used the wrong version :) (tld-2 is to be trashed, not usable! )

1. Go back to kernel linux-4.20.6-kirkwood-tld-1. Reboot and do these following.

Unplug the ethernet cable, and replug. What are dmesg logs, if any, when you do that?

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Zyxel 310. No ethernet since the 4.20 kernel on Arch - is it working in Debian?
February 26, 2019 02:14PM
Please try this.


1. Go back to the working kernel linux-4.19.x. Reboot. Login and turn off WOL.

ethtool -s eth0 wol d

2. Reboot and check WOL status to make sure it is off.

ethtool eth0

3. Go back to the latest kernel 4.20.x. Reboot. Observer serial console log to see if there is any change in network card behavior.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Zyxel 310. No ethernet since the 4.20 kernel on Arch - is it working in Debian?
February 26, 2019 02:41PM
As requested :)

The paste is too large -> Pastebinned here for your enjoyment [password is bodhi]

---
NSA310s, NSA310, C.H.I.P, Banana Pi, Orange Pi PC & Zero, RPI 1,2Bx8
Re: Zyxel 310. No ethernet since the 4.20 kernel on Arch - is it working in Debian?
February 26, 2019 03:17PM
So that was not because of the WOL change in mainline, after all.

It is strange that now you don't see the module starts early in dmesg with kernel 4.20.x like before. It is supposed to be in-kernel module. Not something you have to modprobe.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Zyxel 310. No ethernet since the 4.20 kernel on Arch - is it working in Debian?
February 26, 2019 03:26PM
Did those all steps, with same result like @mpmc
And modprobing r8169 module - no effect:
[rtorrent@zyxel ~]$ sudo modprobe r8169
[rtorrent@zyxel ~]$ lsmod
Module                  Size  Used by
adt7475                18222  0
hwmon_vid               2046  1 adt7475
hwmon                  11907  1 adt7475
marvell_cesa           31895  0
i2c_mv64xxx             8110  0
nfsd                  274299  13
ip_tables              11147  0
x_tables               16467  1 ip_tables
ipv6                  410562  50
No changes in dmesg, just the same error during start-up.
[rtorrent@zyxel ~]$ dmesg | grep r816
[    2.019355] r8169 0000:01:00.0: enabling device (0140 -> 0143)
[    2.026039] r8169 0000:01:00.0 (unnamed net_device) (uninitialized): rtl_phyar_cond == 0 (loop: 20, delay: 25).
[    2.036418] r8169: probe of 0000:01:00.0 failed with error -5



Edited 1 time(s). Last edit at 02/26/2019 03:27PM by arti74.
Re: Zyxel 310. No ethernet since the 4.20 kernel on Arch - is it working in Debian?
February 26, 2019 09:08PM
mpmc,

How about this. Go back to the kernel linux-4.20.6-kirkwood-tld-1. Reboot. Login with serial console.

Back up the current version
/lib/modules/4.20.6-kirkwood-tld-1/kernel/drivers/net/ethernet/realtek/r8169.ko

Copy this attached version of r8169 to that folder.

And modprobe r8169.

My bad: I've just checked: kernel 4.20.6-kirkwood-tld-1 was built with r8169 as module (not in-kernel). That explained why it was not up early, and you have to modprobe it.

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 3 time(s). Last edit at 02/26/2019 09:15PM by bodhi.
Attachments:
open | download - r8169.ko (84.3 KB)
Re: Zyxel 310. No ethernet since the 4.20 kernel on Arch - is it working in Debian?
February 26, 2019 11:15PM
As requested :)


nsa310a login: mark
Password:
Last login: Tue Feb 26 21:34:28 GMT 2019 on ttyS0
Linux nsa310a 4.20.6-kirkwood-tld-1 #1 PREEMPT Thu Jan 31 21:41:45 PST 2019 armv                                                                                                                                                             5tel

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
sark@nsa310a:~$ sudo -
[sudo] password for mark:
root@nsa310a:/home/mark# [   55.138963] usb 1-1.2: USB disconnect, device number                                                                                                                                                              3

root@nsa310a:/home/mark#
root@nsa310a:/home/mark#
root@nsa310a:/home/mark# [  112.558913] usb 1-1.2: new high-speed USB device num                                                                                                                                                             ber 4 using orion-ehci
[  112.709839] usb 1-1.2: New USB device found, idVendor=0781, idProduct=5567, b                                                                                                                                                             cdDevice= 1.26
[  112.718251] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber                                                                                                                                                             =3
[  112.727255] usb 1-1.2: Product: Cruzer Blade
[  112.732559] usb 1-1.2: Manufacturer: SanDisk
[  112.736881] usb 1-1.2: SerialNumber: 4C530299941204110041
[  112.749702] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[  112.757788] scsi host2: usb-storage 1-1.2:1.0
[  113.770440] scsi 2:0:0:0: Direct-Access     SanDisk  Cruzer Blade     1.26 PQ                                                                                                                                                             : 0 ANSI: 6
[  113.786140] sd 2:0:0:0: Attached scsi generic sg1 type 0
[  113.792402] sd 2:0:0:0: [sdb] 15633408 512-byte logical blocks: (8.00 GB/7.45                                                                                                                                                              GiB)
[  113.810651] sd 2:0:0:0: [sdb] Write Protect is off
[  113.822333] sd 2:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doe                                                                                                                                                             sn't support DPO or FUA
[  113.865528]  sdb: sdb1
[  113.872521] sd 2:0:0:0: [sdb] Attached SCSI removable disk

root@nsa310a:/home/mark# cd /boot
root@nsa310a:/boot# mkdir /tmp/usb
root@nsa310a:/boot# mount /dev/sdb1 /tmp/usb
[  144.748705] FAT-fs (sdb1): utf8 is not a recommended IO charset for FAT files                                                                                                                                                             ystems, filesystem will be case sensitive!
root@nsa310a:/boot# cd /lib/modules/4.20.6-kirkwood-tld-1/kernel/drivers/net/eth                                                                                                                                                             ernet/realtek
root@nsa310a:/lib/modules/4.20.6-kirkwood-tld-1/kernel/drivers/net/ethernet/real                                                                                                                                                             tek# ls
r8169.ko
root@nsa310a:/lib/modules/4.20.6-kirkwood-tld-1/kernel/drivers/net/ethernet/real                                                                                                                                                             tek# mv r8169.ko r8169.ko.jic
root@nsa310a:/lib/modules/4.20.6-kirkwood-tld-1/kernel/drivers/net/ethernet/real                                                                                                                                                             tek# cp /tmp/
.font-unix/
.ICE-unix/
systemd-private-17df8ee5844446f7881539d5b405d6a4-systemd-timesyncd.service-cAeL3                                                                                                                                                             u/
.Test-unix/
usb/
.X11-unix/
.XIM-unix/
root@nsa310a:/lib/modules/4.20.6-kirkwood-tld-1/kernel/drivers/net/ethernet/real                                                                                                                                                             tek# cp /tmp/usb/r8169.ko .
root@nsa310a:/lib/modules/4.20.6-kirkwood-tld-1/kernel/drivers/net/ethernet/real                                                                                                                                                             tek# ls -lah
total 184K
drwxr-xr-x  2 root root 4.0K Feb 27 06:10 .
drwxr-xr-x 13 root root 4.0K Feb 26 21:32 ..
-rwxr-xr-x  1 root root  85K Feb 27 06:10 r8169.ko
-rw-r--r--  1 root root  85K Feb  1 08:36 r8169.ko.jic
root@nsa310a:/lib/modules/4.20.6-kirkwood-tld-1/kernel/drivers/net/ethernet/real                                                                                                                                                             tek# sudo reboot
         Stopping Session c1 of user mark.
....
[  216.598085] reboot: Restarting system
▒
         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|
 ** MARVELL BOARD: RD-88F6281A LE

U-Boot 1.1.4 (Feb 22 2011 - 10:31:35) Marvell version: 3.4.19

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CFEE0

Soc: 88F6281 A1 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB
DRAM Total size 256MB  16bit width
Addresses 10M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (10M - 7M): Done
NAND:128 MB
Flash:  0 kB

CPU : Marvell Feroceon (Rev 1)
Kernel address is 0x4640000.

Streaming disabled
Write allocate disabled

Module 0 is RGMII
Module 1 is TDM

USB 0: host mode
PEX 0: PCI Express Root Complex Interface
PEX interface detected Link X1
Net:   egiga0, egiga1 [PRIME]
Hit any key to stop autoboot:  0

Reset IDE:
Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode (6)
  Device 0 @ 0 0:
Model: SAMSUNG HD103SJ                          Firm: 1AJ10001 Ser#: S246J9GB900                                                                                                                                                             083
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)


4442428 bytes read
## Booting image at 00800000 ...
   Image Name:   Linux-4.20.6-kirkwood-tld-1
   Created:      2019-02-26  21:33:34 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4442364 Bytes =  4.2 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
....
[  OK  ] Started Update UTMP about System Runlevel Changes.

Debian GNU/Linux 9 nsa310a ttyS0

nsa310a login: mark
Password:
Last login: Wed Feb 27 06:07:57 GMT 2019 on ttyS0
Linux nsa310a 4.20.6-kirkwood-tld-1 #1 PREEMPT Thu Jan 31 21:41:45 PST 2019 armv                                                                                                                                                             5tel

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
mark@nsa310a:~$ sudo modprobe r8169
[sudo] password for mark:
[   47.350142] r8169: disagrees about version of symbol module_layout
modprobe: ERROR: could not insert 'r8169': Exec format error
mark@nsa310a:~$ cd /lib/modules/4.20.6-kirkwood-tld-1/kernel/drivers/net/etherne                                                                                                                                                             t/realtek/
mark@nsa310a:/lib/modules/4.20.6-kirkwood-tld-1/kernel/drivers/net/ethernet/real                                                                                                                                                             tek$ ls -lah
total 184K
drwxr-xr-x  2 root root 4.0K Feb 27 06:10 .
drwxr-xr-x 13 root root 4.0K Feb 26 21:32 ..
-rwxr-xr-x  1 root root  85K Feb 27 06:10 r8169.ko
-rw-r--r--  1 root root  85K Feb  1 08:36 r8169.ko.jic
mark@nsa310a:/lib/modules/4.20.6-kirkwood-tld-1/kernel/drivers/net/ethernet/real                                                                                                                                                             tek$ sha512sum *
a0f6fbda0bb00c08d2369e9bb8d50e73e52e1cc9aa66b2d30e22cb6ee3f99336e5fdbf4cccd37b77                                                                                                                                                             8ad28d21379c7a02777f1944f51915d6ea1e5ab854123940  r8169.ko
eb9ae3054026ff33a0a51b85513ae6f1b417ae669fe91ff6c3b4c91f2ffecad8c78aaf4a34bdf209                                                                                                                                                             fe07b0cc48f155c25dcb1f251fdef6e0aa71de583d25cfc5  r8169.ko.jic
mark@nsa310a:/lib/modules/4.20.6-kirkwood-tld-1/kernel/drivers/net/ethernet/real                                                                                                                                                             tek$

Not sure why that formatting screwed up like that!

---
NSA310s, NSA310, C.H.I.P, Banana Pi, Orange Pi PC & Zero, RPI 1,2Bx8



Edited 1 time(s). Last edit at 02/26/2019 11:38PM by mpmc.
Re: Zyxel 310. No ethernet since the 4.20 kernel on Arch - is it working in Debian?
February 27, 2019 01:05AM
mpmc,

Damn :) that means there were changes in the module interface, too, from older version to the current module version.

Hoping to avoid a bisect, I was just trying a few potential shortcuts. But looks like that is not going to work.

Thank for trying!

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 02/27/2019 01:07AM by bodhi.
Re: Zyxel 310. No ethernet since the 4.20 kernel on Arch - is it working in Debian?
February 27, 2019 01:29AM
@bodhi

I wonder if they've fixed it in 5.0? I'd build it myself to see but like I say I tried before and the cross compile just hung on deb unstable

I'm more than happy to test anything else you can think of though!

Cheers!

---
NSA310s, NSA310, C.H.I.P, Banana Pi, Orange Pi PC & Zero, RPI 1,2Bx8
Re: Zyxel 310. No ethernet since the 4.20 kernel on Arch - is it working in Debian?
February 27, 2019 12:25PM
mpmc Wrote:
-------------------------------------------------------
> @bodhi
>
> I wonder if they've fixed it in 5.0? I'd build it
> myself to see but like I say I tried before and
> the cross compile just hung on deb unstable
>
> I'm more than happy to test anything else you can
> think of though!
>
> Cheers!

Kernel 5.0 will be released in a week. Perhaps we should wait till then.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Zyxel 310. No ethernet since the 4.20 kernel on Arch - is it working in Debian?
March 04, 2019 02:33AM
bodhi Wrote:
-------------------------------------------------------
> mpmc Wrote:
> -------------------------------------------------------
> > @bodhi
> >
> > I wonder if they've fixed it in 5.0? I'd build
> it
> > myself to see but like I say I tried before and
> > the cross compile just hung on deb unstable
> >
> > I'm more than happy to test anything else you
> can
> > think of though!
> >
> > Cheers!
>
> Kernel 5.0 will be released in a week. Perhaps we
> should wait till then.

I tried 5.0.rc8 unfortunately that still has this issue too.
mark@nsa310a:~$ sudo modprobe r8169
[  114.935325] r8169 0000:01:00.0 (unnamed net_device) (uninitialized): rtl_phyar_cond == 0 (loop: 20, delay: 25).
[  114.977736] r8169: probe of 0000:01:00.0 failed with error -5
mark@nsa310a:~$ uname -a
Linux nsa310a 5.0.0-rc8-tld-1 #1 PREEMPT Fri Mar 1 11:58:42 GMT 2019 armv5tel GNU/Linux

---
NSA310s, NSA310, C.H.I.P, Banana Pi, Orange Pi PC & Zero, RPI 1,2Bx8
Re: Zyxel 310. No ethernet since the 4.20 kernel on Arch - is it working in Debian?
March 05, 2019 06:47AM
And this is not a good news... :( However hope dies last, so we'll see...
Re: Zyxel 310. No ethernet since the 4.20 kernel on Arch - is it working in Debian?
March 10, 2019 03:54AM
Confirmed - kernel
5.0.0-1-ARCH #1 PREEMPT Tue Mar 5 05:19:51 UTC 2019
and exactly the same r8169 "error -5"
Re: Zyxel 310. No ethernet since the 4.20 kernel on Arch - is it working in Debian?
March 10, 2019 04:43PM
arti74 Wrote:
-------------------------------------------------------
> Confirmed - kernel
>
> 5.0.0-1-ARCH #1 PREEMPT Tue Mar 5 05:19:51 UTC
> 2019
> 
>
> and exactly the same r8169 "error -5"

Bad news indeed !

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Zyxel 310. No ethernet since the 4.20 kernel on Arch - is it working in Debian?
March 10, 2019 07:36PM
Would be interesting to see which of these commits caused the issue!

https://github.com/torvalds/linux/commits/master/drivers/net/ethernet/realtek/r8169.c

Maybe applying this patch will help - https://lore.kernel.org/patchwork/patch/883134/

I'll give it a try and report back when I can!

---
NSA310s, NSA310, C.H.I.P, Banana Pi, Orange Pi PC & Zero, RPI 1,2Bx8



Edited 1 time(s). Last edit at 03/10/2019 07:50PM by mpmc.
Re: Zyxel 310. No ethernet since the 4.20 kernel on Arch - is it working in Debian?
March 25, 2019 03:53PM
Problem solved in 5.0.4-1-ARCH #1 PREEMPT Sun Mar 24 23:39:21 UTC 2019 ! Network is fully working on the new kernel.
It was connected to the pci bus issue, like mr Heiner Kallweit from Arch pointed out.
Thanks
Re: Zyxel 310. No ethernet since the 4.20 kernel on Arch - is it working in Debian?
March 25, 2019 04:25PM
Thanks arti!

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Zyxel 310. No ethernet since the 4.20 kernel on Arch - is it working in Debian?
March 25, 2019 07:07PM
That's great news! Thanks for the update :)

---
NSA310s, NSA310, C.H.I.P, Banana Pi, Orange Pi PC & Zero, RPI 1,2Bx8
Re: Zyxel 310. No ethernet since the 4.20 kernel on Arch - is it working in Debian?
March 25, 2019 10:17PM
This bug was a hard one. Only people who have seen the PCI issue recently on the mailing list could relate to that quickly like Heiner Kallweit did!

-bodhi
===========================
Forum Wiki
bodhi's corner
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: