[LEDE-DEV] SUNXI: Network problem with kernel 4.9.51
Gerhard Bertelsmann
info at gerhard-bertelsmann.de
Sat Sep 23 09:03:30 PDT 2017
Hi Zoltan,
Am 2017-09-23 17:36, schrieb Zoltan HERPAI:
> Hi Gerhard,
>
> On Sat, 23 Sep 2017, Gerhard Bertelsmann wrote:
>
>> Hi,
>>
>> I'm trying Lede HEAD with a BananaPI (SUNXI7 A20) and have an issue
>> with the network connection:
>>
>> root at Modellbahn-BPi:/# ping -qc 100 192.168.0.9
>> PING 192.168.0.9 (192.168.0.9): 56 data bytes
> [snip]
>
>> Does anybody have a clue why this happens ?
>
> Can you please post a full dmesg.
yes, of course:
root at Modellbahn-BPi:~# dmesg
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.9.51 (gerd at nizza) (gcc version 5.4.0
(LEDE GCC 5.4.0 r4883-ce53c0e) ) #0 SMP Fri Sep 22 08:28:59 2017
[ 0.000000] CPU: ARMv7 Processor [410fc074] revision 4 (ARMv7),
cr=30c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing
instruction cache
[ 0.000000] OF: fdt:Machine model: LeMaker Banana Pi
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] On node 0 totalpages: 261738
[ 0.000000] free_area_init_node: node 0, pgdat c0682080, node_mem_map
ef7fa000
[ 0.000000] Normal zone: 1536 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 196608 pages, LIFO batch:31
[ 0.000000] HighMem zone: 65130 pages, LIFO batch:15
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: Using PSCI v0.1 Function IDs from DT
[ 0.000000] percpu: Embedded 14 pages/cpu @ef7c2000 s24780 r8192
d24372 u57344
[ 0.000000] pcpu-alloc: s24780 r8192 d24372 u57344 alloc=14*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on.
Total pages: 260202
[ 0.000000] Kernel command line: console=ttyS0,115200 earlyprintk
root=/dev/mmcblk0p2 rootwait
[ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288
bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144
bytes)
[ 0.000000] Memory: 1030756K/1046952K available (4537K kernel code,
250K rwdata, 1376K rodata, 320K init, 277K bss, 16196K reserved, 0K
cma-reserved, 260520K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xf0800000 - 0xff800000 ( 240 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xf0000000 ( 768 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0476ab0 (4539 kB)
[ 0.000000] .init : 0xc05f4000 - 0xc0644000 ( 320 kB)
[ 0.000000] .data : 0xc0644000 - 0xc0682980 ( 251 kB)
[ 0.000000] .bss : 0xc0684000 - 0xc06c9654 ( 278 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2,
Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=2.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16,
nr_cpu_ids=2
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] arm_arch_timer: Architected cp15 timer(s) running at
24.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff
max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps
every 4398046511097ns
[ 0.000019] Switching to timer-based delay loop, resolution 41ns
[ 0.000537] clocksource: timer: mask: 0xffffffff max_cycles:
0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000787] clocksource: hstimer: mask: 0xffffffff max_cycles:
0xffffffff, max_idle_ns: 12741736309 ns
[ 0.000955] Console: colour dummy device 80x30
[ 0.000988] Calibrating delay loop (skipped), value calculated using
timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.001004] pid_max: default: 32768 minimum: 301
[ 0.001127] Mount-cache hash table entries: 2048 (order: 1, 8192
bytes)
[ 0.001138] Mountpoint-cache hash table entries: 2048 (order: 1, 8192
bytes)
[ 0.001735] CPU: Testing write buffer coherency: ok
[ 0.002066] /cpus/cpu at 0 missing clock-frequency property
[ 0.002087] /cpus/cpu at 1 missing clock-frequency property
[ 0.002100] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.002125] Setting up static identity map for 0x400082c0 -
0x40008318
[ 0.013812] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.013922] Brought up 2 CPUs
[ 0.013942] SMP: Total of 2 processors activated (96.00 BogoMIPS).
[ 0.013949] CPU: All CPU(s) started in HYP mode.
[ 0.013955] CPU: Virtualization extensions available.
[ 0.024495] VFP support v0.3: implementor 41 architecture 2 part 30
variant 7 rev 4
[ 0.024881] clocksource: jiffies: mask: 0xffffffff max_cycles:
0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.024914] futex hash table entries: 512 (order: 3, 32768 bytes)
[ 0.025103] pinctrl core: initialized pinctrl subsystem
[ 0.026357] NET: Registered protocol family 16
[ 0.026701] DMA: preallocated 256 KiB pool for atomic coherent
allocations
[ 0.028242] No ATAGs?
[ 0.096074] reg-fixed-voltage usb0-vbus: could not find pctldev for
node /soc at 01c00000/pinctrl at 01c20800/usb0_vbus_pin at 0, deferring probe
[ 0.096135] reg-fixed-voltage usb1-vbus: could not find pctldev for
node /soc at 01c00000/pinctrl at 01c20800/usb1_vbus_pin at 0, deferring probe
[ 0.096169] reg-fixed-voltage usb2-vbus: could not find pctldev for
node /soc at 01c00000/pinctrl at 01c20800/usb2_vbus_pin at 0, deferring probe
[ 0.097038] reg-fixed-voltage gmac-3v3: could not find pctldev for
node /soc at 01c00000/pinctrl at 01c20800/gmac_power_pin at 0, deferring probe
[ 0.097636] SCSI subsystem initialized
[ 0.097729] libata version 3.00 loaded.
[ 0.098078] usbcore: registered new interface driver usbfs
[ 0.098161] usbcore: registered new interface driver hub
[ 0.098250] usbcore: registered new device driver usb
[ 0.098553] Linux video capture interface: v2.00
[ 0.098638] pps_core: LinuxPPS API ver. 1 registered
[ 0.098649] pps_core: Software ver. 5.3.6 - Copyright 2005-2007
Rodolfo Giometti <giometti at linux.it>
[ 0.098679] PTP clock support registered
[ 0.099008] Advanced Linux Sound Architecture Driver Initialized.
[ 0.100564] clocksource: Switched to clocksource arch_sys_counter
[ 0.101586] simple-framebuffer 7fe79000.framebuffer: framebuffer at
0x7fe79000, 0x178e00 bytes, mapped to 0xf0900000
[ 0.101606] simple-framebuffer 7fe79000.framebuffer: format=x8r8g8b8,
mode=656x536x32, linelength=2880
[ 0.108573] Console: switching to colour frame buffer device 82x33
[ 0.114423] simple-framebuffer 7fe79000.framebuffer: fb0: simplefb
registered!
[ 0.122239] NET: Registered protocol family 2
[ 0.122840] TCP established hash table entries: 8192 (order: 3, 32768
bytes)
[ 0.122936] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.123064] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.123157] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 0.123222] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 0.123462] NET: Registered protocol family 1
[ 0.124032] kvm [1]: 8-bit VMID
[ 0.124048] kvm [1]: IDMAP page: 40009000
[ 0.124055] kvm [1]: HYP VA range: c0000000:ffffffff
[ 0.124387] kvm [1]: Hyp mode initialized successfully
[ 0.124457] kvm [1]: vgic-v2 at 1c84000
[ 0.124602] kvm [1]: vgic interrupt IRQ16
[ 0.124628] kvm [1]: virtual timer IRQ20
[ 0.126034] No memory allocated for crashlog
[ 0.126322] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[ 0.133274] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.135553] bounce: pool size: 64 pages
[ 0.135573] io scheduler noop registered
[ 0.135580] io scheduler deadline registered
[ 0.135778] io scheduler cfq registered (default)
[ 0.136321] sun4i-usb-phy 1c13400.phy: could not find pctldev for
node /soc at 01c00000/pinctrl at 01c20800/usb0_id_detect_pin at 0, deferring
probe
[ 0.140751] sun7i-a20-pinctrl 1c20800.pinctrl: initialized sunXi PIO
driver
[ 0.199736] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.202936] console [ttyS0] disabled
[ 0.223149] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 45,
base_baud = 1500000) is a U6_16550A
[ 0.889354] console [ttyS0] enabled
[ 0.916556] 1c28800.serial: ttyS1 at MMIO 0x1c28800 (irq = 46,
base_baud = 1500000) is a U6_16550A
[ 0.949074] 1c28c00.serial: ttyS2 at MMIO 0x1c28c00 (irq = 47,
base_baud = 1500000) is a U6_16550A
[ 0.965914] loop: module loaded
[ 0.971538] libphy: Fixed MDIO Bus: probed
[ 0.976814] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI)
Driver
[ 0.983404] ehci-platform: EHCI generic platform driver
[ 0.989039] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.995280] ohci-platform: OHCI generic platform driver
[ 1.000986] usbcore: registered new interface driver usb-storage
[ 1.007485] udc-core: couldn't find an available UDC - added
[g_serial] to list of pending drivers
[ 1.016898] mousedev: PS/2 mouse device common for all mice
[ 1.023612] i2c /dev entries driver
[ 1.029514] sunxi-wdt 1c20c90.watchdog: Watchdog enabled (timeout=16
sec, nowayout=0)
[ 1.039447] sunxi-mmc 1c0f000.mmc: Got CD GPIO
[ 1.100756] sunxi-mmc 1c0f000.mmc: base:0xf08db000 irq:28
[ 1.107233] sun4i-ss 1c15000.crypto-engine: no reset control found
[ 1.115053] sun4i-ss 1c15000.crypto-engine: Die ID 0
[ 1.123162] NET: Registered protocol family 10
[ 1.129782] NET: Registered protocol family 17
[ 1.134327] can: controller area network core (rev 20120528 abi 9)
[ 1.140746] NET: Registered protocol family 29
[ 1.145199] 8021q: 802.1Q VLAN Support v1.8
[ 1.149503] Registering SWP/SWPB emulation handler
[ 1.207888] mmc0: host does not support reading read-only switch,
assuming write-enable
[ 1.218855] mmc0: new high speed SDHC card at address 0007
[ 1.224996] mmcblk0: mmc0:0007 SD04G 3.71 GiB
[ 1.231087] mmcblk0: p1 p2
[ 1.290645] sun7i-dwmac 1c50000.ethernet: no reset control found
[ 1.296658] Ring mode enabled
[ 1.299709] DMA HW capability register supported
[ 1.304261] Normal descriptors
[ 1.311025] libphy: stmmac: probed
[ 1.314437] eth%d: PHY ID 001cc915 at 0 IRQ POLL (stmmac-0:00) active
[ 1.320883] eth%d: PHY ID 001cc915 at 1 IRQ POLL (stmmac-0:01)
[ 1.329533] hctosys: unable to open rtc device (rtc0)
[ 1.335403] vcc3v0: disabling
[ 1.338379] vcc5v0: disabling
[ 1.341378] usb0-vbus: disabling
[ 1.344605] usb1-vbus: disabling
[ 1.347832] usb2-vbus: disabling
[ 1.351074] ALSA device list:
[ 1.354038] No soundcards found.
[ 1.359707] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to
feature incompatibilities
[ 1.369148] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to
feature incompatibilities
[ 1.388168] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data
mode. Opts: (null)
[ 1.396347] VFS: Mounted root (ext4 filesystem) readonly on device
179:2.
[ 1.403768] Freeing unused kernel memory: 320K
[ 1.408208] This architecture does not have kernel memory protection.
[ 1.508938] init: Console is alive
[ 1.512658] init: - watchdog -
[ 1.857161] kmodloader: loading kernel modules from
/etc/modules-boot.d/*
[ 2.040882] raid6: int32x1 gen() 121 MB/s
[ 2.210567] raid6: int32x1 xor() 95 MB/s
[ 2.380517] raid6: int32x2 gen() 155 MB/s
[ 2.550614] raid6: int32x2 xor() 101 MB/s
[ 2.720907] raid6: int32x4 gen() 129 MB/s
[ 2.890584] raid6: int32x4 xor() 90 MB/s
[ 3.060854] raid6: int32x8 gen() 115 MB/s
[ 3.230502] raid6: int32x8 xor() 77 MB/s
[ 3.234772] raid6: using algorithm int32x2 gen() 155 MB/s
[ 3.240163] raid6: .... xor() 101 MB/s, rmw enabled
[ 3.245049] raid6: using intx1 recovery algorithm
[ 3.250634] xor: measuring software checksum speed
[ 3.350507] arm4regs : 1142.400 MB/sec
[ 3.450501] 8regs : 679.600 MB/sec
[ 3.550497] 32regs : 839.200 MB/sec
[ 3.554676] xor: using function: arm4regs (1142.400 MB/sec)
[ 3.607366] Btrfs loaded, crc32c=crc32c-generic
[ 3.620849] random: fast init done
[ 3.649772] SGI XFS with security attributes, no debug enabled
[ 3.770614] ahci-sunxi 1c18000.sata: controller can't do PMP, turning
off CAP_PMP
[ 3.778107] ahci-sunxi 1c18000.sata: forcing PORTS_IMPL to 0x1
[ 3.784030] ahci-sunxi 1c18000.sata: AHCI 0001.0100 32 slots 1 ports
3 Gbps 0x1 impl platform mode
[ 3.793007] ahci-sunxi 1c18000.sata: flags: ncq sntf pm led clo only
pio slum part ccc
[ 3.802094] scsi host0: ahci-sunxi
[ 3.805907] ata1: SATA max UDMA/133 mmio [mem 0x01c18000-0x01c18fff]
port 0x100 irq 33
[ 4.141965] ata1: SATA link down (SStatus 0 SControl 300)
[ 4.147744] kmodloader: done loading kernel modules from
/etc/modules-boot.d/*
[ 4.158789] init: - preinit -
[ 4.395882] RX IPC Checksum Offload disabled
[ 4.400258] No MAC Management Counters available
[ 4.404993] sun7i-dwmac 1c50000.ethernet eth0: fail to init PTP.
[ 4.411386] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 7.512308] mount_root: mounting /dev/root
[ 7.751064] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 7.981603] random: crng init done
[ 8.008463] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 8.046288] procd: - early -
[ 8.049259] procd: - watchdog -
[ 8.925253] procd: - watchdog -
[ 8.928661] procd: - ubus -
[ 8.983819] procd: - init -
[ 9.149451] kmodloader: loading kernel modules from /etc/modules.d/*
[ 9.190241] RPC: Registered named UNIX socket transport module.
[ 9.196238] RPC: Registered udp transport module.
[ 9.200955] RPC: Registered tcp transport module.
[ 9.205654] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 9.217957] ntfs: driver 2.1.32 [Flags: R/O MODULE].
[ 9.239461] Installing knfsd (copyright (C) 1996 okir at monad.swb.de).
[ 9.249926] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 9.261681] IR RC5(x/sz) protocol handler initialized
[ 9.269265] sunxi-rtc 1c20d00.rtc: rtc core: registered rtc-sunxi as
rtc0
[ 9.276161] sunxi-rtc 1c20d00.rtc: RTC enabled
[ 9.284108] Registered IR keymap rc-empty
[ 9.288542] input: sunxi-ir as
/devices/platform/soc at 01c00000/1c21800.ir/rc/rc0/input0
[ 9.296570] rc rc0: sunxi-ir as
/devices/platform/soc at 01c00000/1c21800.ir/rc/rc0
[ 9.311045] sunxi-ir 1c21800.ir: initialized sunXi IR driver
[ 9.322178] usbcore: registered new interface driver i2c-tiny-usb
[ 9.335167] hidraw: raw HID events driver (C) Jiri Kosina
[ 9.344708] fuse init (API version 7.26)
[ 9.378656] can: broadcast manager protocol (rev 20161123 t)
[ 9.385920] CAN device driver interface
[ 9.390680] can: netlink gateway (rev 20130117) max_hops=1
[ 9.397216] can: raw protocol (rev 20120528)
[ 9.402243] Loading modules backported from Linux version
wt-2017-01-31-0-ge882dff19e7f
[ 9.410247] Backport generated by backports.git
backports-20160324-13-g24da7d3c
[ 9.420795] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 9.428484] lib80211: common routines for IEEE802.11 drivers
[ 9.434216] lib80211_crypt: registered algorithm 'NULL'
[ 9.434976] lib80211_crypt: registered algorithm 'CCMP'
[ 9.435749] lib80211_crypt: registered algorithm 'TKIP'
[ 9.436452] lib80211_crypt: registered algorithm 'WEP'
[ 9.440402] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
[ 9.470395] slcan: serial line CAN interface driver
[ 9.475358] slcan: 10 dynamic interface channels.
[ 9.483662] sun4i_can 1c2bc00.can: device registered (base=f0ec6c00,
irq=50)
[ 9.495348] usbcore: registered new interface driver usbhid
[ 9.501008] usbhid: USB HID core driver
[ 9.509112] usbcore: registered new interface driver usbserial
[ 9.515215] usbcore: registered new interface driver
usbserial_generic
[ 9.522057] usbserial: USB Serial support registered for generic
[ 9.529004] vcan: Virtual CAN interface driver
[ 9.542625] xt_time: kernel timezone is -0000
[ 9.558874] usbcore: registered new interface driver ch341
[ 9.564555] usbserial: USB Serial support registered for ch341-uart
[ 9.571826] usbcore: registered new interface driver cp210x
[ 9.577500] usbserial: USB Serial support registered for cp210x
[ 9.584762] usbcore: registered new interface driver ftdi_sio
[ 9.590716] usbserial: USB Serial support registered for FTDI USB
Serial Device
[ 9.622873] usbcore: registered new interface driver mt7601u
[ 9.633141] usbcore: registered new interface driver p54usb
[ 9.639761] usbcore: registered new interface driver pl2303
[ 9.645514] usbserial: USB Serial support registered for pl2303
[ 9.653459] PPP generic driver version 2.4.2
[ 9.659060] NET: Registered protocol family 24
[ 9.669794] usbcore: registered new interface driver rt73usb
[ 9.677402] usbcore: registered new interface driver rtl8187
[ 9.685871] usbcore: registered new interface driver rtl8xxxu
[ 9.698131] usbcore: registered new interface driver zd1211rw
[ 9.726426] usbcore: registered new interface driver brcmfmac
[ 9.736168] usbcore: registered new interface driver rt2500usb
[ 9.747025] usbcore: registered new interface driver rt2800usb
[ 9.759558] usbcore: registered new interface driver rtl8192cu
[ 9.770965] usbcore: registered new interface driver ath9k_htc
[ 9.777099] kmodloader: done loading kernel modules from
/etc/modules.d/*
[ 14.262948] RX IPC Checksum Offload disabled
[ 14.267322] No MAC Management Counters available
[ 14.272077] sun7i-dwmac 1c50000.ethernet eth0: fail to init PTP.
[ 14.290007] br-lan: port 1(eth0) entered blocking state
[ 14.295308] br-lan: port 1(eth0) entered disabled state
[ 14.300954] device eth0 entered promiscuous mode
[ 14.309640] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[ 14.934641] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready
[ 18.480878] sun7i-dwmac 1c50000.ethernet eth0: Link is Up -
1Gbps/Full - flow control rx/tx
[ 18.489276] br-lan: port 1(eth0) entered blocking state
[ 18.494524] br-lan: port 1(eth0) entered forwarding state
[ 18.500075] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
root at Modellbahn-BPi:~# ping -qc 100 192.168.0.9
PING 192.168.0.9 (192.168.0.9): 56 data bytes
--- 192.168.0.9 ping statistics ---
100 packets transmitted, 94 packets received, 6% packet loss
round-trip min/avg/max = 0.354/0.518/1.182 ms
root at Modellbahn-BPi:~# ip -s -d link show eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel
master br-lan state UP mode DEFAULT group default qlen 1000
link/ether 02:03:0a:43:06:44 brd ff:ff:ff:ff:ff:ff promiscuity 1
bridge_slave state forwarding priority 32 cost 4 hairpin off guard
off root_block off fastleave off learning on flood on port_id 0x8001
port_no 0x1 designated_port 32769
RX: bytes packets errors dropped overrun mcast
88003 560 0 9 0 0
TX: bytes packets errors dropped carrier collsns
20196 210 0 0 0 0
Regards,
Gerd
More information about the Lede-dev
mailing list