您尚未登录。

楼主 #1 2020-03-10 22:09:48

wugang0420
会员
注册时间: 2019-12-11
已发帖子: 15
积分: 0

求助 nanopi-neo2 全志H5 Linux 内核启动正常但是网络不通就帮助

nanopi-neo2 全志H5
网卡rtl8211e
gcc version 7.5.0 (Linaro GCC 7.5-2019.12)
编译了2019-10月的u-boot 后uboot 网络正常可以ping 通网络,网口状态灯能正常闪亮。

但是加载内核后网络就不通了,不知到是什么问题。网口状态灯两个微亮不闪烁。

 
17478144 bytes read in 1300 ms (12.8 MiB/s)
18191 bytes read in 4 ms (4.3 MiB/s)
## Flattened Device Tree blob at 49000000
   Booting using the fdt blob at 0x49000000
EHCI failed to shut down host controller.
   Loading Device Tree to 0000000049ff8000, end 0000000049fff70e ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.3.6 (wg@ubuntu) (gcc version 7.5.0 (Linaro GCC 7.5-2019.12)) #1 SMP PREEMPT Tue Mar 10 06:05:31 PDT 2020
[    0.000000] Machine model: FriendlyARM NanoPi NEO 2
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] cma: Reserved 32 MiB at 0x000000005e000000
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000040000000-0x000000005fffffff]
[    0.000000] NUMA: NODE_DATA [mem 0x5dee6840-0x5dee7fff]
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000040000000-0x000000005fffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x000000005fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000005fffffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv0.2 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] percpu: Embedded 22 pages/cpu s52184 r8192 d29736 u90112
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129024
[    0.000000] Policy zone: DMA32
[    0.000000] Kernel command line: console=ttyS0,115200n8 earlyprintk root=/dev/mmcblk0p2  rw rootwait painc=10
[    0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 454224K/524288K available (10172K kernel code, 812K rwdata, 3752K rodata, 2240K init, 414K bss, 37296K reserved, 32768K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] random: get_random_bytes called from start_kernel+0x300/0x4a0 with crng_init=0
[    0.000000] arch_timer: 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.000010] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000232] Console: colour dummy device 80x25
[    0.000374] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.000399] pid_max: default: 32768 minimum: 301
[    0.000593] LSM: Security Framework initializing
[    0.000724] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.000752] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.024069] ASID allocator initialised with 32768 entries
[    0.032057] rcu: Hierarchical SRCU implementation.
[    0.040396] EFI services will not be available.
[    0.048130] smp: Bringing up secondary CPUs ...
[    0.081174] Detected VIPT I-cache on CPU1
[    0.081280] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.112890] Detected VIPT I-cache on CPU2
[    0.112957] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.144989] Detected VIPT I-cache on CPU3
[    0.145049] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.145210] smp: Brought up 1 node, 4 CPUs
[    0.145251] SMP: Total of 4 processors activated.
[    0.145266] CPU features: detected: 32-bit EL0 Support
[    0.145281] CPU features: detected: CRC32 instructions
[    0.146390] CPU: All CPU(s) started at EL2
[    0.146437] alternatives: patching kernel code
[    0.148847] devtmpfs: initialized
[    0.157413] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.157454] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.160383] pinctrl core: initialized pinctrl subsystem
[    0.161453] DMI not present or invalid.
[    0.162099] NET: Registered protocol family 16
[    0.162985] audit: initializing netlink subsys (disabled)
[    0.163346] audit: type=2000 audit(0.160:1): state=initialized audit_enabled=0 res=1
[    0.164590] cpuidle: using governor menu
[    0.165242] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.171385] DMA: preallocated 256 KiB pool for atomic allocations
[    0.171674] Serial: AMBA PL011 UART driver
[    0.200552] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[    0.200578] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[    0.200595] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.200611] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[    0.205104] cryptd: max_cpu_qlen set to 1000
[    0.213018] ACPI: Interpreter disabled.
[    0.215054] vgaarb: loaded
[    0.215786] SCSI subsystem initialized
[    0.216602] usbcore: registered new interface driver usbfs
[    0.216702] usbcore: registered new interface driver hub
[    0.216850] usbcore: registered new device driver usb
[    0.217367] pps_core: LinuxPPS API ver. 1 registered
[    0.217381] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.217418] PTP clock support registered
[    0.217488] EDAC MC: Ver: 3.0.0
[    0.218560] FPGA manager framework
[    0.218742] Advanced Linux Sound Architecture Driver Initialized.
[    0.220217] clocksource: Switched to clocksource arch_sys_counter
[    0.220566] VFS: Disk quotas dquot_6.6.0
[    0.220685] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.221068] pnp: PnP ACPI: disabled
[    0.233709] thermal_sys: Registered thermal governor 'step_wise'
[    0.233718] thermal_sys: Registered thermal governor 'power_allocator'
[    0.234254] NET: Registered protocol family 2
[    0.235064] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.235113] TCP established hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.235212] TCP bind hash table entries: 4096 (order: 4, 65536 bytes, linear)
[    0.235362] TCP: Hash tables configured (established 4096 bind 4096)
[    0.235547] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.235596] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.235870] NET: Registered protocol family 1
[    0.236840] RPC: Registered named UNIX socket transport module.
[    0.236854] RPC: Registered udp transport module.
[    0.236866] RPC: Registered tcp transport module.
[    0.236877] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.236900] PCI: CLS 0 bytes, default 64
[    0.238319] kvm [1]: IPA Size Limit: 40bits
[    0.239532] kvm [1]: vgic interrupt IRQ1
[    0.239770] kvm [1]: Hyp mode initialized successfully
[    0.253418] Initialise system trusted keyrings
[    0.253726] workingset: timestamp_bits=44 max_order=17 bucket_order=0
[    0.269351] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.270995] NFS: Registering the id_resolver key type
[    0.271047] Key type id_resolver registered
[    0.271060] Key type id_legacy registered
[    0.271095] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.271421] 9p: Installing v9fs 9p2000 file system support
[    0.309948] Key type asymmetric registered
[    0.309967] Asymmetric key parser 'x509' registered
[    0.310047] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    0.310063] io scheduler mq-deadline registered
[    0.310076] io scheduler kyber registered
[    0.311667] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[    0.315344] sun8i-h3-r-pinctrl 1f02c00.pinctrl: initialized sunXi PIO driver
[    0.322691] sun50i-h5-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.325358] EINJ: ACPI disabled.
[    0.336573] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.339121] sun50i-h5-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pa not found, using dummy regulator
[    0.339840] printk: console [ttyS0] disabled
[    0.360539] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 21, base_baud = 1500000) is a U6_16550A
[    1.133358] printk: console [ttyS0] enabled
[    1.139815] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    1.161288] loop: module loaded
[    1.169046] libphy: Fixed MDIO Bus: probed
[    1.174179] tun: Universal TUN/TAP device driver, 1.6
[    1.180311] thunder_xcv, ver 1.0
[    1.183618] thunder_bgx, ver 1.0
[    1.186956] nicpf, ver 1.0
[    1.190409] hclge is initializing
[    1.193753] hns3: Hisilicon Ethernet Network Driver for Hip08 Family - version
[    1.200989] hns3: Copyright (c) 2017 Huawei Corporation.
[    1.206424] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[    1.212275] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    1.218285] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.6.0-k
[    1.225260] igb: Copyright (c) 2007-2014 Intel Corporation.
[    1.230923] igbvf: Intel(R) Gigabit Virtual Function Network Driver - version 2.4.0-k
[    1.238766] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[    1.244799] sky2: driver version 1.30
[    1.248828] PPP generic driver version 2.4.2
[    1.253355] PPP BSD Compression module registered
[    1.258100] PPP Deflate Compression module registered
[    1.263204] PPP MPPE Compression module registered
[    1.268017] NET: Registered protocol family 24
[    1.272803] VFIO - User Level meta-driver version: 0.3
[    1.280096] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.286657] ehci-pci: EHCI PCI platform driver
[    1.291194] ehci-platform: EHCI generic platform driver
[    1.296785] ehci-platform 1c1a000.usb: EHCI Host Controller
[    1.302416] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    1.310373] ehci-platform 1c1a000.usb: irq 10, io mem 0x01c1a000
[    1.332260] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    1.339555] hub 1-0:1.0: USB hub found
[    1.343390] hub 1-0:1.0: 1 port detected
[    1.348431] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.354665] ohci-pci: OHCI PCI platform driver
[    1.359232] ohci-platform: OHCI generic platform driver
[    1.364740] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    1.371413] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    1.379364] ohci-platform 1c1a400.usb: irq 11, io mem 0x01c1a400
[    1.449327] hub 2-0:1.0: USB hub found
[    1.453180] hub 2-0:1.0: 1 port detected
[    1.458824] usbcore: registered new interface driver usb-storage
[    1.468590] sun6i-rtc 1f00000.rtc: registered as rtc0
[    1.473687] sun6i-rtc 1f00000.rtc: RTC enabled
[    1.478317] i2c /dev entries driver
[    1.483842] sdhci: Secure Digital Host Controller Interface driver
[    1.490046] sdhci: Copyright(c) Pierre Ossman
[    1.494684] Synopsys Designware Multimedia Card Interface Driver
[    1.501914] sun50i-h5-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    1.512874] sunxi-mmc 1c0f000.mmc: Got CD GPIO
[    1.543099] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB, uses new timings mode
[    1.552502] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.559019] sun8i-h3-r-pinctrl 1f02c00.pinctrl: 1f02c00.pinctrl supply vcc-pl not found, using dummy regulator
[    1.570220] ledtrig-cpu: registered to indicate activity on CPUs
[    1.577702] usbcore: registered new interface driver usbhid
[    1.583398] usbhid: USB HID core driver
[    1.590513] NET: Registered protocol family 17
[    1.595381] 9pnet: Installing 9P2000 support
[    1.599796] Key type dns_resolver registered
[    1.605453] registered taskstats version 1
[    1.609585] Loading compiled-in X.509 certificates
[    1.630799] sun50i-h5-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    1.640901] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.642092] sun50i-h5-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pg not found, using dummy regulator
[    1.653307] mmc0: new high speed SDHC card at address aaaa
[    1.661157] ehci-platform 1c1d000.usb: EHCI Host Controller
[    1.667309] mmcblk0: mmc0:aaaa SC16G 14.8 GiB 
[    1.670026] ehci-platform 1c1d000.usb: new USB bus registered, assigned bus number 3
[    1.682391] ehci-platform 1c1d000.usb: irq 12, io mem 0x01c1d000
[    1.683676]  mmcblk0: p1 p2
[    1.704263] ehci-platform 1c1d000.usb: USB 2.0 started, EHCI 1.00
[    1.711536] hub 3-0:1.0: USB hub found
[    1.715370] hub 3-0:1.0: 1 port detected
[    1.720896] ohci-platform 1c1d400.usb: Generic Platform OHCI controller
[    1.727569] ohci-platform 1c1d400.usb: new USB bus registered, assigned bus number 4
[    1.735529] ohci-platform 1c1d400.usb: irq 13, io mem 0x01c1d400
[    1.805301] hub 4-0:1.0: USB hub found
[    1.809144] hub 4-0:1.0: 1 port detected
[    1.814593] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.826073] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.831863] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 5
[    1.840803] hub 5-0:1.0: USB hub found
[    1.844637] hub 5-0:1.0: 1 port detected
[    1.854372] sun6i-rtc 1f00000.rtc: setting system clock to 1970-01-01T08:56:54 UTC (32214)
[    1.863153] ALSA device list:
[    1.866150]   No soundcards found.
[    1.894349] random: fast init done
[    1.905601] EXT4-fs (mmcblk0p2): recovery complete
[    1.911458] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.919695] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.931781] devtmpfs: mounted
[    1.938006] Freeing unused kernel memory: 2240K
[    1.942718] Run /sbin/init as init process
[    2.047209] init: Console is alive
[    2.061917] init: - preinit -
[    2.233898] random: jshn: uninitialized urandom read (4 bytes read)
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    2.856071] random: procd: uninitialized urandom read (4 bytes read)

[    5.319416] mount_root: mounting /dev/root
[    5.324093] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    5.329751] mount_root: loading kmods from internal overlay
[    5.340992] mount_root: failed to launch kmodloader from internal overlay
[    5.469807] block: attempting to load /etc/config/fstab
[    5.483068] block: extroot: not configured
[    5.551350] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[    5.589196] urandom-seed: Seeding with /etc/urandom.seed
[    5.627591] procd: - early -
[    5.641391] random: procd: uninitialized urandom read (4 bytes read)
[    5.773927] random: jshn: uninitialized urandom read (4 bytes read)
[    5.915308] random: jshn: uninitialized urandom read (4 bytes read)
[    6.235558] procd: - ubus -
[    6.290206] procd: - init -
Please press Enter to activate this console.
[    6.552350] urngd: v1.0.1 started.
[    6.631386] random: crng init done
[    6.634870] random: 5 urandom warning(s) missed due to ratelimiting

能够正常启动 运行基本的操作命令
但是 ifconfig -a 没有eth0 。 网口灯两个微微亮不闪烁

root@FriendlyWrt:/# ifconfig -a
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:128 errors:0 dropped:0 overruns:0 frame:0
          TX packets:128 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:8704 (8.5 KiB)  TX bytes:8704 (8.5 KiB)

配置内核时也添加了网卡支持

 <*>   Realtek PHYs   

求哪位大神看到了能帮忙解决一下,万分感谢。

离线

楼主 #3 2020-03-31 19:24:55

wugang0420
会员
注册时间: 2019-12-11
已发帖子: 15
积分: 0

Re: 求助 nanopi-neo2 全志H5 Linux 内核启动正常但是网络不通就帮助

我心飞翔 说:

设备树有没有添加网卡 ?

问题已经解决了,没来得及回复万分抱歉。问题源于,编译时多选了个phy 芯片导致的

 <*>   Realtek PHYs   

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn