NSA-320 kirkwood - eth0 link down/up spam in logs February 01, 2016 10:26PM |
Registered: 8 years ago Posts: 11 |
Feb 1 22:16:49 IQ2700i kernel: [ 3291.719206] mv643xx_eth_port mv643xx_eth_port.0 eth0: link down Feb 1 22:16:49 IQ2700i kernel: [ 3291.725383] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled Feb 1 22:16:49 IQ2700i kernel: [ 3291.735315] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
IQ2700i# uname -a Linux IQ2700i 4.4.0-kirkwood-tld-1 #1 PREEMPT Mon Jan 25 20:35:24 PST 2016 armv5tel GNU/Linux IQ2700i# cat /etc/debian_version 8.3
IQ2700i# cat /etc/network/interfaces auto lo eth0 iface lo inet loopback iface eth0 inet static address 10.10.10.99 netmask 255.255.255.0 network 10.10.10.0 broadcast 10.10.10.255 gateway 10.10.10.1
IQ2700i# netstat -i Kernel Interface table Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg eth0 1500 0 118006 0 4 0 33730 0 0 0 BMRU lo 65536 0 1000 0 0 0 1000 0 0 0 LRU
IQ2700i# ifconfig -a eth0 Link encap:Ethernet HWaddr c8:6c:87:aa:a0:82 inet addr:10.10.10.99 Bcast:10.10.10.255 Mask:255.255.255.0 inet6 addr: fe80::ca6c:87ff:feaa:a082/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:118979 errors:0 dropped:4 overruns:0 frame:0 TX packets:34609 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:133170674 (127.0 MiB) TX bytes:6676459 (6.3 MiB) Interrupt:86 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:1028 errors:0 dropped:0 overruns:0 frame:0 TX packets:1028 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:123337 (120.4 KiB) TX bytes:123337 (120.4 KiB)
U-Boot 2015.10-tld-1 (Nov 06 2015 - 16:12:51 -0800) ZyXEL NSA320 2-Bay Power Media Server
IQ2700i# fw_printenv baudrate=115200 boot_sata1=mw 0x800000 0 1; setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts; ide reset; ext2load ide 0:1 0x800000 /boot/uImage; ext2load ide 0:1 0x01100000 /boot/uInitrd; bootm 0x00800000 0x01100000 boot_sata2=mw 0x800000 0 1; setenv bootargs console=ttyS0,115200 root=/dev/sdb1 rootdelay=10 $mtdparts; ide reset; ext2load ide 1:1 0x800000 /boot/uImage; ext2load ide 1:1 0x01100000 /boot/uInitrd; bootm 0x00800000 0x01100000 bootcmd=run boot_sata1; run boot_sata2; run bootcmd_usb; usb stop; run bootcmd_rescue; reset bootcmd_usb=run usb_init; run usb_load_uimage; run set_bootargs_usb; run usb_boot; bootdelay=4 console=ttyS0,115200 ethact=egiga0 ethaddr=C8:6C:87:AA:A0:82 if_netconsole=ping $serverip ipaddr=10.10.10.99 mainlineLinux=yes mtdids=nand0=orion_nand mtdparts=mtdparts=orion_nand:1M(u-boot),512K(uboot_env),512K(key_store),512K(info),10M(etc),10M(kernel_1),48896K(rootfs1),10M(kernel_2),-(rootfs2) ncip=10.10.10.123 netmask=255.255.255.0 partition=nand0,2 set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version; stderr=serial stdin=serial stdout=serial usb_device=0:1 usb_init=usb start usb_load_uimage=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage usb_root=LABEL=rootfs usb_rootdelay=5 usb_rootfstype=ext2 preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi preboot=run preboot_nc serverip=10.10.10.105 arcNumber=3956 load_dtb=ext2load usb 0:1 0x1c00000 /boot/dts/kirkwood-nsa320.dtb load_initrd=ext2load usb 0:1 0x1100000 /boot/uInitrd load_uimage=ext2load usb 0:1 0x800000 /boot/uImage usb_boot=run load_dtb; run load_uimage; if run load_initrd; then bootm 0x800000 0x1100000 0x1c00000; else bootm 0x800000 - 0x1c00000; fi
Re: NSA-320 kirkwood - eth0 link down/up spam in logs February 01, 2016 11:35PM |
Admin Registered: 13 years ago Posts: 18,564 |
Re: NSA-320 kirkwood - eth0 link down/up spam in logs February 02, 2016 07:21PM |
Registered: 8 years ago Posts: 11 |
-- typical logged lines -- Feb 2 19:02:11 IQ2700i kernel: [34517.452174] mv643xx_eth_port mv643xx_eth_port.0 eth0: link down Feb 2 19:02:11 IQ2700i kernel: [34517.458198] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled -- cable swap start -- Feb 2 19:03:20 IQ2700i kernel: [34586.725483] mv643xx_eth_port mv643xx_eth_port.0 eth0: link down Feb 2 19:03:52 IQ2700i kernel: [34618.893547] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled -- cable swap completed -- Feb 2 19:07:20 IQ2700i kernel: [34826.613900] mv643xx_eth_port mv643xx_eth_port.0 eth0: link down Feb 2 19:07:20 IQ2700i kernel: [34826.620165] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled Feb 2 19:07:20 IQ2700i kernel: [34826.630098] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled -- port swap start -- Feb 2 19:07:53 IQ2700i kernel: [34860.102667] mv643xx_eth_port mv643xx_eth_port.0 eth0: link down Feb 2 19:07:56 IQ2700i kernel: [34862.995091] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled -- port swap completed -- Feb 2 19:12:30 IQ2700i kernel: [35136.903402] mv643xx_eth_port mv643xx_eth_port.0 eth0: link down Feb 2 19:12:30 IQ2700i kernel: [35136.909425] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
Re: NSA-320 kirkwood - eth0 link down/up spam in logs February 02, 2016 07:49PM |
Registered: 8 years ago Posts: 11 |
IQ2700i# ethtool eth0 Settings for eth0: Supported ports: [ TP MII ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Supported pause frame use: No Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Advertised pause frame use: No Advertised auto-negotiation: Yes Link partner advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Half 1000baseT/Full Link partner advertised pause frame use: Symmetric Receive-only Link partner advertised auto-negotiation: Yes Speed: 1000Mb/s Duplex: Full Port: MII PHYAD: 1 Transceiver: external Auto-negotiation: on Supports Wake-on: g Wake-on: d Link detected: yes IQ2700i# ethtool eth0 Settings for eth0: Supported ports: [ TP MII ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Supported pause frame use: No Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Advertised pause frame use: No Advertised auto-negotiation: Yes Link partner advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Half 1000baseT/Full Link partner advertised pause frame use: Symmetric Receive-only Link partner advertised auto-negotiation: Yes Speed: 1000Mb/s Duplex: Full Port: MII PHYAD: 1 Transceiver: external Auto-negotiation: on Supports Wake-on: g Wake-on: d Link detected: no
IQ2700i# while (true) do ethtool eth0 |grep det;sleep 1; done Link detected: yes Link detected: yes Link detected: yes Link detected: yes Link detected: yes Link detected: yes Link detected: yes Link detected: yes Link detected: yes Link detected: yes Link detected: yes Link detected: yes Link detected: yes Link detected: yes Link detected: yes Link detected: yes Link detected: yes Link detected: yes Link detected: yes
IQ2700i# while (true) do ethtool eth0 |grep det; done Link detected: yes Link detected: no Link detected: no Link detected: no Link detected: no Link detected: no Link detected: yes Link detected: no Link detected: yes Link detected: no Link detected: yes Link detected: no Link detected: yes Link detected: yes Link detected: no Link detected: no Link detected: no Link detected: yes Link detected: no Link detected: yes
Re: NSA-320 kirkwood - eth0 link down/up spam in logs February 03, 2016 11:12AM |
Registered: 9 years ago Posts: 1,037 |
Re: NSA-320 kirkwood - eth0 link down/up spam in logs February 03, 2016 11:28AM |
Admin Registered: 13 years ago Posts: 18,564 |
Re: NSA-320 kirkwood - eth0 link down/up spam in logs February 03, 2016 05:21PM |
Registered: 8 years ago Posts: 11 |
-- start cable move to router -- Feb 3 17:10:56 IQ2700i kernel: [114241.766652] mv643xx_eth_port mv643xx_eth_port.0 eth0: link down Feb 3 17:11:04 IQ2700i kernel: [114250.438443] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled -- completed -- -- about 5 mins later another error logged -- Feb 3 17:15:12 IQ2700i kernel: [114498.176611] mv643xx_eth_port mv643xx_eth_port.0 eth0: link down Feb 3 17:15:12 IQ2700i kernel: [114498.182727] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
Re: NSA-320 kirkwood - eth0 link down/up spam in logs February 10, 2016 04:27AM |
Registered: 10 years ago Posts: 91 |
Re: NSA-320 kirkwood - eth0 link down/up spam in logs June 21, 2017 10:05AM |
Registered: 8 years ago Posts: 11 |
IQ2700i# uname -a Linux IQ2700i 4.11.3-kirkwood-tld-2 #1 PREEMPT Tue Jun 6 17:01:17 PDT 2017 armv5tel GNU/Linux
IQ2700i# netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 10.10.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 IQ2700i# route add -net 0.0.0.0 netmask 0.0.0.0 gw 10.10.10.1 dev eth0 IQ2700i# route add -net 10.10.10.99 netmask 255.255.255.255 gw 127.0.0.1 dev lo IQ2700i# netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 0.0.0.0 10.10.10.1 0.0.0.0 UG 0 0 0 eth0 10.10.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 10.10.10.99 127.0.0.1 255.255.255.255 UGH 0 0 0 lo
IQ2700i# ethtool -k eth0 Features for eth0: rx-checksumming: on tx-checksumming: on tx-checksum-ipv4: on tx-checksum-ip-generic: off [fixed] tx-checksum-ipv6: off [fixed] tx-checksum-fcoe-crc: off [fixed] tx-checksum-sctp: off [fixed] scatter-gather: on tx-scatter-gather: on tx-scatter-gather-fraglist: off [fixed] tcp-segmentation-offload: off tx-tcp-segmentation: off [fixed] tx-tcp-ecn-segmentation: off [fixed] tx-tcp-mangleid-segmentation: off [fixed] tx-tcp6-segmentation: off [fixed] udp-fragmentation-offload: off [fixed] generic-segmentation-offload: off generic-receive-offload: off large-receive-offload: off [fixed] rx-vlan-offload: off [fixed] tx-vlan-offload: off [fixed] ntuple-filters: off [fixed] receive-hashing: off [fixed] highdma: off [fixed] rx-vlan-filter: off [fixed] vlan-challenged: off [fixed] tx-lockless: off [fixed] netns-local: off [fixed] tx-gso-robust: off [fixed] tx-fcoe-segmentation: off [fixed] tx-gre-segmentation: off [fixed] tx-gre-csum-segmentation: off [fixed] tx-ipxip4-segmentation: off [fixed] tx-ipxip6-segmentation: off [fixed] tx-udp_tnl-segmentation: off [fixed] tx-udp_tnl-csum-segmentation: off [fixed] tx-gso-partial: off [fixed] tx-sctp-segmentation: off [fixed] fcoe-mtu: off [fixed] tx-nocache-copy: off loopback: off [fixed] rx-fcs: off [fixed] rx-all: off [fixed] tx-vlan-stag-hw-insert: off [fixed] rx-vlan-stag-hw-parse: off [fixed] rx-vlan-stag-filter: off [fixed] l2-fwd-offload: off [fixed] hw-tc-offload: off [fixed]
IQ2700i# cat /etc/init.d/ethernet-keepalive #! /bin/sh # /etc/init.d/ethernet-keepalive # # Keep that damn link up! while (true) do ifconfig eth0 10.10.10.99 netmask 255.255.255.0 up; /root/fix-routes.sh; sleep 2; done & exit 0 IQ2700i# cat /root/fix-routes.sh #!/bin/sh # what the f*ck happened to the network routes? # Fixing the f*cking network route add -net 0.0.0.0 netmask 0.0.0.0 gw 10.10.10.1 dev eth0 2> /dev/null route add -net 10.10.10.99 netmask 255.255.255.255 gw 127.0.0.1 dev lo 2> /dev/null # should be good now IQ2700i# cat /etc/init.d/enable-leds #! /bin/sh # /etc/init.d/enable-leds # This method of enabling LEDs, borrowed from another user post on this forum, # highly modified to be more logical in my mind. # Enable USB light for root (boot) drive present echo default-on > /sys/class/leds/nsa320\:green\:usb/trigger # Enable Copy light for root drive access # optionally enable this LED for fun # echo default-on > /sys/class/leds/nsa320\:green\:copy/trigger echo usb-host > /sys/class/leds/nsa320\:red\:copy/trigger # Enable HDD lights both green to indicate populated echo default-on > /sys/class/leds/nsa320\:green\:hdd1/trigger echo default-on > /sys/class/leds/nsa320\:green\:hdd2/trigger # Enable HDD red blink on access per drive echo ide-disk1 > /sys/class/leds/nsa320\:red\:hdd1/trigger echo ide-disk2 > /sys/class/leds/nsa320\:red\:hdd2/trigger # Not sure of how cpu utilization will trigger the orange LED for system status echo cpu0 > /sys/class/leds/nsa320\:orange\:sys/trigger # Enable a standard green LED for "good" system staus echo default-on > /sys/class/leds/nsa320\:green\:sys/trigger exit 0
Re: NSA-320 kirkwood - eth0 link down/up spam in logs June 26, 2017 08:52AM |
Registered: 8 years ago Posts: 11 |
IQ2700i# mii-tool egiga0 -v egiga0: negotiated 1000baseT-HD flow-control, link ok product info: vendor 00:50:43, model 41 rev 0 basic mode: autonegotiation enabled basic status: autonegotiation complete, link ok capabilities: 1000baseT-HD 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD advertising: 1000baseT-HD 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD link partner: 1000baseT-HD 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
IQ2700i# ethtool egiga0 Settings for egiga0: Supported ports: [ TP MII ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 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/Full Advertised pause frame use: No Advertised auto-negotiation: Yes Link partner advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Half 1000baseT/Full Link partner advertised pause frame use: No Link partner advertised auto-negotiation: No Speed: 1000Mb/s Duplex: Full Port: MII PHYAD: 1 Transceiver: internal Auto-negotiation: on Supports Wake-on: g Wake-on: d Link detected: yes
Jun 25 22:05:55 IQ2700i kernel: [ 736.021515] mv643xx_eth_port mv643xx_eth_port.0 egiga0: link up, 1000 Mb/s, full duplex, flow control disabled
IQ2700i# ethtool -s egiga0 duplex full speed 1000 autoneg off IQ2700i# mii-tool egiga0 -v egiga0: 1000 Mbit, full duplex, link ok product info: vendor 00:50:43, model 41 rev 0 basic mode: 10 Mbit, full duplex basic status: autonegotiation complete, link ok capabilities: 1000baseT-HD 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD advertising: 1000baseT-HD 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD link partner: 1000baseT-HD 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control IQ2700i# ethtool egiga0 Settings for egiga0: Supported ports: [ TP MII ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Supported pause frame use: Symmetric Receive-only Supports auto-negotiation: Yes Advertised link modes: 1000baseT/Full Advertised pause frame use: No Advertised auto-negotiation: No Speed: 1000Mb/s Duplex: Full Port: MII PHYAD: 1 Transceiver: internal Auto-negotiation: off Supports Wake-on: g Wake-on: d Link detected: yes
Re: NSA-320 kirkwood - eth0 link down/up spam in logs June 26, 2017 09:28AM |
Registered: 8 years ago Posts: 11 |
IQ2700i# cat /etc/init.d/ethernet-keepalive #! /bin/sh # /etc/init.d/ethernet-keepalive # # Keep that damn link up! # bypassing loop and disabling auto negotiation instead # while (true) do ifconfig egiga0 10.10.10.99 netmask 255.255.255.0 up; /root/fix-routes.sh; sleep 1; done & # disable auto negotiate mii-tool egiga0 >> /var/log/messages logger -t Ethernet "Disable auto negotiate and set speed correctly" ethtool -s egiga0 duplex full speed 1000 autoneg off 2>> /var/log/messages mii-tool egiga0 >> /var/log/messages sleep 5 mii-tool egiga0 >> /var/log/messages # just in case ... ifconfig egiga0 10.10.10.99 netmask 255.255.255.0 up /root/fix-routes.sh exit 0
Re: NSA-320 kirkwood - eth0 link down/up spam in logs June 26, 2017 04:49PM |
Admin Registered: 13 years ago Posts: 18,564 |
Re: NSA-320 kirkwood - eth0 link down/up spam in logs June 26, 2017 04:53PM |
Admin Registered: 13 years ago Posts: 18,564 |
Settings for eth0: Supported ports: [ TP MII ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 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/Full Advertised pause frame use: No 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: No Link partner advertised auto-negotiation: No Speed: 1000Mb/s Duplex: Full Port: MII PHYAD: 1 Transceiver: internal Auto-negotiation: on Supports Wake-on: g Wake-on: g Link detected: yes
Re: NSA-320 kirkwood - eth0 link down/up spam in logs June 26, 2017 10:25PM |
Registered: 8 years ago Posts: 11 |