[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Debian ARM on QNAP TS-419P+: Ethernet issues



Hello Everyone,

I have a QNAP TS-419P+ that was sitting idle. Recently I started looking into an open-source solution for the firmware, which quickly led me to Debian ARM as per http://www.cyrius.com/debian/kirkwood/qnap/ts-41x/.

I worked through the installation steps a few days ago and successfully installed the Debian installer. However, after it boots up, the network connection does not seem to work properly. Specifically, the link on the lower Ethernet port (labelled "LAN2" on the QNAP) is operational with the LED lights blinking, but it does not obtain an IP address via DHCP, nor does it respond to a ping even after defaulting to 192.168.1.100.

After working through getting the serial console connected, it was confirmed the network does not work properly when the installer runs. In U-Boot however, I confirmed I could ping other hosts on my network, indicating the hardware is completely fine.

The kernel and/or device driver and/or DTS seem to be incorrect (I'm guessing). I poked around a bit with the shell, and looking at some sysfs nodes gives the following:

Both interfaces appear to be down:

~ # cat /sys/class/net/eth0/operstate
down
~ # cat /sys/class/net/eth1/operstate
down

And the modalias looks wrong:

~ # cat /sys/class/net/eth0/device/modalias
of:Nethernet0-portT<NULL>Cmarvell,kirkwood-eth-port

~ # cat /sys/class/net/eth1/device/modalias
of:Nethernet1-portT<NULL>Cmarvell,kirkwood-eth-port

For reference, the kernel dmesg output is:

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.19.0-10-marvell (debian-kernel@lists.debian.org) (gcc version 8.3.0 (Debian 8.3.0-6)) #1 Debian 4.19.132-1 (2020-07-24)
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: QNAP TS419 family
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 131072
[    0.000000]   Normal zone: 1024 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 131072 pages, LIFO batch:31
[    0.000000] random: get_random_bytes called from start_kernel+0x78/0x4a4 with crng_init=0
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/ram initrd=0xa00000,0x900000 ramdisk=34816
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 504440K/524288K available (3972K kernel code, 342K rwdata, 1036K rodata, 312K init, 218K bss, 19848K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (3973 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   ( 312 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 343 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 219 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] ftrace: allocating 18947 entries in 38 pages
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000006] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000029] Switching to timer-based delay loop, resolution 5ns
[    0.000099] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=800000)(skipped), value calculated using timer fr--More--
[    0.000116] pid_max: default: 32768 minimum: 301
[    0.000320] Security Framework initialized
[    0.000334] Yama: disabled by default; enable with sysctl kernel.yama.*
[    0.000425] AppArmor: AppArmor initialized
[    0.000523] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000540] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001267] CPU: Testing write buffer coherency: ok
[    0.002007] Setting up static identity map for 0x8200 - 0x823c
[    0.002187] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x0
[    0.003520] devtmpfs: initialized
[    0.006102] VFP support v0.3: not present
[    0.006218] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.006237] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.006471] pinctrl core: initialized pinctrl subsystem
[    0.007312] NET: Registered protocol family 16
[    0.007595] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.008057] audit: initializing netlink subsys (disabled)
[    0.008658] cpuidle: using governor ladder
[    0.008671] cpuidle: using governor menu
[    0.008924] Feroceon L2: Enabling L2
[    0.008955] Feroceon L2: Cache support initialised.
[    0.009131] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.009205] [Firmware Info]: /ocp@f1000000/ethernet-controller@76000/ethernet1-port@0: local-mac-address is not set
[    0.012071] audit: type=2000 audit(0.008:1): state=initialized audit_enabled=0 res=1
[    0.012263] No ATAGs?
[    0.015508] clocksource: Switched to clocksource orion_clocksource
[    0.032693] VFS: Disk quotas dquot_6.6.0
[    0.032757] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.033132] AppArmor: AppArmor Filesystem Enabled
[    0.033950] NET: Registered protocol family 2
[    0.034469] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[    0.034494] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.034546] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.034596] TCP: Hash tables configured (established 4096 bind 4096)
[    0.034663] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.034684] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.034834] NET: Registered protocol family 1
[    0.034865] PCI: CLS 0 bytes, default 32
[    0.035034] Unpacking initramfs...
[    1.023531] random: fast init done
[    2.845865] Freeing initrd memory: 9216K
[    2.846507] Initialise system trusted keyrings
[    2.846542] Key type blacklist registered
[    2.846686] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    2.850233] zbud: loaded
[    2.851557] Key type asymmetric registered
[    2.851566] Asymmetric key parser 'x509' registered
[    2.851605] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    2.851731] io scheduler noop registered
[    2.851923] io scheduler cfq registered (default)
[    2.853014] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    2.854263] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[    2.854278] pci_bus 0000:00: root bus resource [bus 00-ff]
[    2.854289] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    2.854297] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    2.854363] pci 0000:00:01.0: [11ab:6282] type 01 class 0x060400
[    2.854557] pci 0000:00:02.0: [11ab:6282] type 01 class 0x060400
[    2.855382] PCI: bus0: Fast back to back transfers disabled
[    2.855394] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.855404] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.855502] pci 0000:01:00.0: [11ab:7042] type 00 class 0x010000
[    2.855568] pci 0000:01:00.0: reg 0x10: [mem 0x90000000-0x900fffff 64bit]
[    2.855582] pci 0000:01:00.0: reg 0x18: [io  0xf0000000-0xf00000ff]
[    2.855682] pci 0000:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s x1 link at 0000:00:01.0 (capable of 8.000 Gb/s with 2.5 GT/s x4 link)
[    2.856508] PCI: bus1: Fast back to back transfers disabled
[    2.856520] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    2.857322] PCI: bus2: Fast back to back transfers enabled
[    2.857334] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    2.857477] pci 0000:00:01.0: BAR 8: assigned [mem 0xe0000000-0xe00fffff]
[    2.857488] pci 0000:00:01.0: BAR 7: assigned [io  0x10000-0x10fff]
[    2.857502] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe00fffff 64bit]
[    2.857518] pci 0000:01:00.0: BAR 2: assigned [io  0x10000-0x100ff]
[    2.857529] pci 0000:00:01.0: PCI bridge to [bus 01]
[    2.857538] pci 0000:00:01.0:   bridge window [io  0x10000-0x10fff]
[    2.857548] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    2.857558] pci 0000:00:02.0: PCI bridge to [bus 02]
[    2.857618] pcieport 0000:00:01.0: enabling device (0140 -> 0143)
[    2.858009] mv_xor f1060800.xor: Marvell shared XOR driver
[    2.888162] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    2.888299] mv_xor f1060900.xor: Marvell shared XOR driver
[    2.916165] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    2.916426] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    2.917137] console [ttyS0] disabled
[    2.917182] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 27, base_baud = 12500000) is a 16550A
[    3.570571] console [ttyS0] enabled
[    3.574501] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 28, base_baud = 12500000) is a 16550A
[    3.584021] libphy: Fixed MDIO Bus: probed
[    3.588156] i2c /dev entries driver
[    3.592648] ledtrig-cpu: registered to indicate activity on CPUs
[    3.599373] registered taskstats version 1
[    3.603515] Loading compiled-in X.509 certificates
[    3.623683] Loaded X.509 cert 'Debian Secure Boot CA: 6ccece7e4c6c0d1f6149f3dd27dfcc5cbb419ea1'
[    3.632611] Loaded X.509 cert 'Debian Secure Boot Signer 2020: 00b55eb3b9'
[    3.639577] AppArmor: AppArmor sha1 policy hashing enabled
[    3.646091] hctosys: unable to open rtc device (rtc0)
[    3.653399] Freeing unused kernel memory: 312K
[    3.657883] This architecture does not have kernel memory protection.
[    3.664359] Run /init as init process
[    3.808599] input: gpio_keys as /devices/platform/gpio_keys/input/input0
[    3.866564] SCSI subsystem initialized
[    3.916180] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    3.927395] libphy: orion_mdio_bus: probed
[    3.960047] libata version 3.00 loaded.
[    3.961959] sata_mv 0000:01:00.0: version 1.28
[    3.962152] sata_mv 0000:01:00.0: Gen-IIE 32 slots 4 ports SCSI mode IRQ via INTx
[    3.976726] mv643xx_eth_port mv643xx_eth_port.0: DMA mask not set
[    3.983395] usbcore: registered new interface driver usbfs
[    4.021712] usbcore: registered new interface driver hub
[    4.030545] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:08:9b:c2:9f:7f
[    4.051591] scsi host0: sata_mv
[    4.061263] usbcore: registered new device driver usb
[    4.076429] scsi host1: sata_mv
[    4.089391] mv643xx_eth_port mv643xx_eth_port.1: DMA mask not set
[    4.106116] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.114577] m25p80 spi0.0: m25p128 (16384 Kbytes)
[    4.120658] scsi host2: sata_mv
[    4.133879] scsi host3: sata_mv
[    4.147881] mv643xx_eth_port mv643xx_eth_port.1 eth1: port 0 with MAC address 00:08:9b:c2:9f:80
[    4.161515] ata1: SATA max UDMA/133 mmio m1048576@0xe0000000 port 0xe0022000 irq 40
[    4.169236] ata2: SATA max UDMA/133 mmio m1048576@0xe0000000 port 0xe0024000 irq 40
[    4.176935] ata3: SATA max UDMA/133 mmio m1048576@0xe0000000 port 0xe0026000 irq 40
[    4.184632] ata4: SATA max UDMA/133 mmio m1048576@0xe0000000 port 0xe0028000 irq 40
[    4.197077] ehci-orion: EHCI orion driver
[    4.218457] orion-ehci f1050000.ehci: EHCI Host Controller
[    4.228227] 6 fixed-partitions partitions found on MTD device spi0.0
[    4.234636] Creating 6 MTD partitions on "spi0.0":
[    4.260010] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    4.271594] 0x000000000000-0x000000080000 : "U-Boot"
[    4.277900] orion-ehci f1050000.ehci: irq 32, io mem 0xf1050000
[    4.290808] 0x000000200000-0x000000400000 : "Kernel"
[    4.296953] 0x000000400000-0x000000d00000 : "RootFS1"
[    4.303832] sata_mv f1080000.sata: version 1.28
[    4.304029] sata_mv f1080000.sata: slots 32 ports 2
[    4.310138] 0x000000d00000-0x000001000000 : "RootFS2"
[    4.315259] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    4.325025] 0x000000080000-0x0000000c0000 : "U-Boot Config"
[    4.332311] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[    4.340639] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.347907] usb usb1: Product: EHCI Host Controller
[    4.352814] usb usb1: Manufacturer: Linux 4.19.0-10-marvell ehci_hcd
[    4.359206] usb usb1: SerialNumber: f1050000.ehci
[    4.363978] scsi host4: sata_mv
[    4.369479] 0x0000000c0000-0x000000200000 : "NAS Config"
[    4.374872] scsi host5: sata_mv
[    4.379009] ata5: SATA max UDMA/133 irq 35
[    4.383144] ata6: SATA max UDMA/133 irq 35
[    4.460595] hub 1-0:1.0: USB hub found
[    4.464420] hub 1-0:1.0: 1 port detected
[    4.516214] ata1: SATA link down (SStatus 0 SControl 300)
[    4.701783] ata5: SATA link down (SStatus 0 SControl F300)
[    4.803525] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    4.835603] ata2: SATA link down (SStatus 0 SControl 300)
[    4.965027] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=77.63
[    4.973259] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    4.980447] usb 1-1: Product: USB2.0 Hub
[    4.989316] hub 1-1:1.0: USB hub found
[    4.993407] hub 1-1:1.0: 4 ports detected
[    5.153831] ata3: SATA link down (SStatus 0 SControl 300)
[    5.473807] ata4: SATA link down (SStatus 0 SControl 300)
[    5.793775] ata6: SATA link down (SStatus 0 SControl F300)
[   11.500217] random: crng init done
[   14.772481] mv643xx_eth_port mv643xx_eth_port.1 eth1: link up, 1000 Mb/s, full duplex, flow control disabled
[   21.819605] mv643xx_eth_port mv643xx_eth_port.1 eth1: link up, 1000 Mb/s, full duplex, flow control disabled
[   21.987582] NET: Registered protocol family 17

If anyone could provide some guidance on what might be wrong I'd very much appreciate it.

Thank you,

Alex


Reply to: